@burdenoff/website-sdk 2026.813.3 → 2026.817.2

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.
@@ -0,0 +1,37 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
3
+ import { a as WebSDKClientConfig, W as WebSDKClient } from './graphql-client-Cv6TO6hn.mjs';
4
+
5
+ interface WebSDKProviderProps {
6
+ /** SDK client configuration */
7
+ config: WebSDKClientConfig;
8
+ /** Child components */
9
+ children: ReactNode;
10
+ }
11
+ /**
12
+ * Provider component that makes the WebSDKClient available to all child components.
13
+ *
14
+ * @example
15
+ * ```tsx
16
+ * <WebSDKProvider config={{
17
+ * gatewayUrl: "https://api.burdenoff.com/global/graphql",
18
+ * productId: "your-product-id",
19
+ * productSlug: "your-product",
20
+ * }}>
21
+ * <App />
22
+ * </WebSDKProvider>
23
+ * ```
24
+ */
25
+ declare function WebSDKProvider({ config, children }: WebSDKProviderProps): react_jsx_runtime.JSX.Element;
26
+ /**
27
+ * Hook to access the WebSDKClient instance.
28
+ * Must be used within a WebSDKProvider.
29
+ */
30
+ declare function useWebSDK(): WebSDKClient;
31
+ /**
32
+ * Hook to access the SDK configuration.
33
+ * Useful for components that need config values like productId, recaptchaSiteKey, etc.
34
+ */
35
+ declare function useWebSDKConfig(): WebSDKClientConfig;
36
+
37
+ export { WebSDKProvider as W, type WebSDKProviderProps as a, useWebSDKConfig as b, useWebSDK as u };
@@ -0,0 +1,37 @@
1
+ import * as react_jsx_runtime from 'react/jsx-runtime';
2
+ import { ReactNode } from 'react';
3
+ import { a as WebSDKClientConfig, W as WebSDKClient } from './graphql-client-Cv6TO6hn.js';
4
+
5
+ interface WebSDKProviderProps {
6
+ /** SDK client configuration */
7
+ config: WebSDKClientConfig;
8
+ /** Child components */
9
+ children: ReactNode;
10
+ }
11
+ /**
12
+ * Provider component that makes the WebSDKClient available to all child components.
13
+ *
14
+ * @example
15
+ * ```tsx
16
+ * <WebSDKProvider config={{
17
+ * gatewayUrl: "https://api.burdenoff.com/global/graphql",
18
+ * productId: "your-product-id",
19
+ * productSlug: "your-product",
20
+ * }}>
21
+ * <App />
22
+ * </WebSDKProvider>
23
+ * ```
24
+ */
25
+ declare function WebSDKProvider({ config, children }: WebSDKProviderProps): react_jsx_runtime.JSX.Element;
26
+ /**
27
+ * Hook to access the WebSDKClient instance.
28
+ * Must be used within a WebSDKProvider.
29
+ */
30
+ declare function useWebSDK(): WebSDKClient;
31
+ /**
32
+ * Hook to access the SDK configuration.
33
+ * Useful for components that need config values like productId, recaptchaSiteKey, etc.
34
+ */
35
+ declare function useWebSDKConfig(): WebSDKClientConfig;
36
+
37
+ export { WebSDKProvider as W, type WebSDKProviderProps as a, useWebSDKConfig as b, useWebSDK as u };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/website-sdk",
3
- "version": "2026.813.3",
3
+ "version": "2026.817.2",
4
4
  "description": "Shared SDK for Burdenoff product websites - reusable React components, utilities, and configurations",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",