@looker/extension-sdk-react
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -24,2 +24,3 @@ "use strict"; | ||
; | ||
extensionHost.clientRouteChanged(location.pathname); | ||
@@ -26,0 +27,0 @@ }, [location]); |
@@ -1,5 +0,5 @@ | ||
import { ExtensionHostApi } from "@looker/extension-sdk"; | ||
import { ExtensionSDK } from "@looker/extension-sdk"; | ||
export interface RouteChangeListenerProps { | ||
onPathnameChange?: (pathname: string) => void; | ||
extensionHost: ExtensionHostApi; | ||
extensionHost: ExtensionSDK; | ||
} |
@@ -103,3 +103,5 @@ "use strict"; | ||
setExtensionData(ctx); | ||
})["catch"](console.error); | ||
})["catch"](function (error) { | ||
return console.error(error); | ||
}); | ||
}, []); | ||
@@ -106,0 +108,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { ExtensionHostApi } from "@looker/extension-sdk"; | ||
import { ExtensionSDK } from "@looker/extension-sdk"; | ||
import { LookerSDK } from "@looker/sdk/dist/sdk/methods"; | ||
@@ -8,5 +8,5 @@ /** | ||
/** | ||
* Extension API. | ||
* Extension SDK. | ||
*/ | ||
extensionSDK: ExtensionHostApi; | ||
extensionSDK: ExtensionSDK; | ||
/** | ||
@@ -13,0 +13,0 @@ * Looker SDK. Note that SDK calls are made by the extension host. |
{ | ||
"name": "@looker/extension-sdk-react", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "Looker Extension SDK for React", | ||
@@ -46,2 +46,3 @@ "main": "lib/index", | ||
"peerDependencies": { | ||
"@looker/extension-sdk": "^0.1.6", | ||
"@looker/sdk": "^0.1.3-beta.8", | ||
@@ -48,0 +49,0 @@ "@types/react": "^16.8", |
@@ -1,6 +0,6 @@ | ||
import { ExtensionHostApi } from "@looker/extension-sdk" | ||
import { ExtensionSDK } from "@looker/extension-sdk" | ||
export interface RouteChangeListenerProps { | ||
onPathnameChange?: (pathname: string) => void | ||
extensionHost: ExtensionHostApi | ||
extensionHost: ExtensionSDK | ||
} |
@@ -25,3 +25,3 @@ /* | ||
import { ExtensionHostApi } from "@looker/extension-sdk" | ||
import { ExtensionSDK } from "@looker/extension-sdk" | ||
import { LookerSDK } from "@looker/sdk/dist/sdk/methods" | ||
@@ -34,5 +34,5 @@ | ||
/** | ||
* Extension API. | ||
* Extension SDK. | ||
*/ | ||
extensionSDK: ExtensionHostApi | ||
extensionSDK: ExtensionSDK | ||
/** | ||
@@ -39,0 +39,0 @@ * Looker SDK. Note that SDK calls are made by the extension host. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35030
508
8