@bucketco/react-sdk
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -23,3 +23,3 @@ import { default as React, ReactNode } from 'react'; | ||
}; | ||
export declare function BucketProvider({ children, user, company, otherContext, publishableKey, featureOptions, loadingComponent, newBucketClient, ...config }: BucketProps): string | number | true | Iterable<React.ReactNode> | React.JSX.Element; | ||
export declare function BucketProvider({ children, user, company, otherContext, publishableKey, featureOptions, loadingComponent, newBucketClient, ...config }: BucketProps): React.JSX.Element; | ||
/** | ||
@@ -29,4 +29,8 @@ * Returns the state of a given feature for the current context, e.g. | ||
* ```ts | ||
* const {isEnabled, isLoading, track} = useFeature("huddle"); | ||
* | ||
* function HuddleButton() { | ||
* const {isEnabled, track} = useFeature("huddle"); | ||
* if (isEnabled) { | ||
* return <button onClick={() => track()}>Start Huddle</button>; | ||
* } | ||
* } | ||
* ``` | ||
@@ -37,2 +41,3 @@ */ | ||
isEnabled: boolean; | ||
track: () => void; | ||
}; | ||
@@ -39,0 +44,0 @@ /** |
{ | ||
"name": "@bucketco/react-sdk", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"license": "MIT", | ||
@@ -31,3 +31,3 @@ "repository": { | ||
"dependencies": { | ||
"@bucketco/browser-sdk": "1.0.0", | ||
"@bucketco/browser-sdk": "1.0.1", | ||
"canonical-json": "^0.0.4" | ||
@@ -62,3 +62,3 @@ }, | ||
}, | ||
"gitHead": "597f6be635db7a4bd51d13c1e138bab9eb6c69bf" | ||
"gitHead": "f944554d25ac07c2a71f73afd6eff21ef57418a4" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
345187
3418
+ Added@bucketco/browser-sdk@1.0.1(transitive)
- Removed@bucketco/browser-sdk@1.0.0(transitive)
Updated@bucketco/browser-sdk@1.0.1