@bucketco/react-sdk
Advanced tools
Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2
{ | ||
"name": "@bucketco/react-sdk", | ||
"version": "1.0.0-alpha.1", | ||
"version": "1.0.0-alpha.2", | ||
"license": "MIT", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/bucketco/bucket-tracking-sdk.git" | ||
"url": "https://github.com/bucketco/bucket-javascript-sdk.git" | ||
}, | ||
@@ -30,3 +30,3 @@ "publishConfig": { | ||
"dependencies": { | ||
"@bucketco/tracking-sdk": "2.3.2", | ||
"@bucketco/tracking-sdk": "2.3.3", | ||
"canonical-json": "^0.0.4" | ||
@@ -58,3 +58,3 @@ }, | ||
}, | ||
"gitHead": "2c540d489d5e5a1c0524aa90ad3951a99df37a1b" | ||
"gitHead": "754a42132372d7c36a21ffd612a443bbcca6c3a9" | ||
} |
@@ -20,3 +20,5 @@ # Bucket React SDK | ||
```tsx | ||
<Bucket | ||
import BucketProvider from "@bucketco/react-sdk"; | ||
<BucketProvider | ||
publishableKey="{YOUR_PUBLISHABLE_KEY}" | ||
@@ -31,3 +33,3 @@ context={{ | ||
{/* ... */} | ||
</Bucket> | ||
</BucketProvider>; | ||
``` | ||
@@ -42,3 +44,5 @@ | ||
```tsx | ||
<Bucket | ||
import BucketProvider from "@bucketco/react-sdk"; | ||
<BucketProvider | ||
publishableKey="{YOUR_PUBLISHABLE_KEY}" // The publishable key of your app environment | ||
@@ -49,6 +53,10 @@ debug={false} // Enable debug mode to log info and errors | ||
sseHost="https://livemessaging.bucket.co" // Configure the host Bucket SSE calls are made to | ||
feedback={{ | ||
// See feedback options here: https://github.com/bucketco/bucket-tracking-sdk/blob/main/packages/tracking-sdk/FEEDBACK.md#global-feedback-configuration | ||
}} | ||
feedback={ | ||
{ | ||
// See feedback options here: https://github.com/bucketco/bucket-tracking-sdk/blob/main/packages/tracking-sdk/FEEDBACK.md#global-feedback-configuration | ||
} | ||
} | ||
> | ||
{/* ... */} | ||
</BucketProvider>; | ||
``` | ||
@@ -63,2 +71,4 @@ | ||
```ts | ||
import { useBucket } from "@bucketco/react-sdk"; | ||
const bucket = useBucket(); | ||
@@ -76,2 +86,4 @@ | ||
```ts | ||
import { useFeatureFlag } from "@bucketco/react-sdk"; | ||
const joinHuddleFlag = useFeatureFlag("join-huddle"); | ||
@@ -89,2 +101,4 @@ // { | ||
```ts | ||
import { useFeatureFlags } from "@bucketco/react-sdk"; | ||
const featureFlags = useFeatureFlags(); | ||
@@ -91,0 +105,0 @@ // { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
258322
118
+ Added@bucketco/tracking-sdk@2.3.3(transitive)
- Removed@bucketco/tracking-sdk@2.3.2(transitive)
Updated@bucketco/tracking-sdk@2.3.3