@amp-labs/react 2.9.12 → 2.10.1

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/build/index.d.ts CHANGED
@@ -2050,13 +2050,29 @@ export declare function useInstallation(): {
2050
2050
  error: Error | null;
2051
2051
  };
2052
2052
 
2053
- export declare const useIsIntegrationInstalled: (integration: string, groupRef: string) => UseIsIntegrationInstalledResult;
2053
+ /**
2054
+ * Hook to check if an integration is installed for a specific group
2055
+ *
2056
+ * @param integration - Integration name or ID
2057
+ * @param groupRef - Group reference.
2058
+ * @param consumerRef - Consumer reference. Required for JWT auth if not provided via InstallationProvider.
2059
+ *
2060
+ * @remarks
2061
+ * For JWT authentication, consumerRef and groupRef must be provided either:
2062
+ * 1. Via InstallationProvider context, or
2063
+ * 2. As parameters to this hook (overrides context values)
2064
+ *
2065
+ * For API key authentication, consumerRef parameter is not required.
2066
+ */
2067
+ export declare const useIsIntegrationInstalled: (integration: string, groupRef: string, consumerRef?: string) => UseIsIntegrationInstalledResult;
2054
2068
 
2055
2069
  declare interface UseIsIntegrationInstalledResult {
2056
2070
  isLoading: boolean;
2057
2071
  isLoaded: boolean;
2058
2072
  isIntegrationInstalled: boolean | null;
2059
2073
  config?: Config;
2074
+ isError: boolean;
2075
+ error: Error | null;
2060
2076
  }
2061
2077
 
2062
2078
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amp-labs/react",
3
- "version": "2.9.12",
3
+ "version": "2.10.1",
4
4
  "description": "Ampersand React library.",
5
5
  "author": {
6
6
  "name": "Ampersand Labs",