@burdenoff/website-sdk 2026.826.1 → 2026.828.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.
- package/README.md +88 -0
- package/dist/client/index.d.mts +2 -2
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.js +13 -7
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +13 -7
- package/dist/client/index.mjs.map +1 -1
- package/dist/components/contact.js +13 -7
- package/dist/components/contact.js.map +1 -1
- package/dist/components/contact.mjs +13 -7
- package/dist/components/contact.mjs.map +1 -1
- package/dist/components/explore-cta.d.mts +26 -0
- package/dist/components/explore-cta.d.ts +26 -0
- package/dist/components/explore-cta.js +108 -0
- package/dist/components/explore-cta.js.map +1 -0
- package/dist/components/explore-cta.mjs +106 -0
- package/dist/components/explore-cta.mjs.map +1 -0
- package/dist/components/explore.d.mts +43 -0
- package/dist/components/explore.d.ts +43 -0
- package/dist/components/explore.js +2219 -0
- package/dist/components/explore.js.map +1 -0
- package/dist/components/explore.mjs +2193 -0
- package/dist/components/explore.mjs.map +1 -0
- package/dist/components/newsletter.js +13 -7
- package/dist/components/newsletter.js.map +1 -1
- package/dist/components/newsletter.mjs +13 -7
- package/dist/components/newsletter.mjs.map +1 -1
- package/dist/components/partners.js +13 -7
- package/dist/components/partners.js.map +1 -1
- package/dist/components/partners.mjs +13 -7
- package/dist/components/partners.mjs.map +1 -1
- package/dist/components/pricing.js +13 -7
- package/dist/components/pricing.js.map +1 -1
- package/dist/components/pricing.mjs +13 -7
- package/dist/components/pricing.mjs.map +1 -1
- package/dist/components/resource-links.js +13 -7
- package/dist/components/resource-links.js.map +1 -1
- package/dist/components/resource-links.mjs +13 -7
- package/dist/components/resource-links.mjs.map +1 -1
- package/dist/components/social-links.js +13 -7
- package/dist/components/social-links.js.map +1 -1
- package/dist/components/social-links.mjs +13 -7
- package/dist/components/social-links.mjs.map +1 -1
- package/dist/components/unsubscribe.js +13 -7
- package/dist/components/unsubscribe.js.map +1 -1
- package/dist/components/unsubscribe.mjs +13 -7
- package/dist/components/unsubscribe.mjs.map +1 -1
- package/dist/components/waitlist.js +13 -7
- package/dist/components/waitlist.js.map +1 -1
- package/dist/components/waitlist.mjs +13 -7
- package/dist/components/waitlist.mjs.map +1 -1
- package/dist/content/index.d.mts +2 -2
- package/dist/content/index.d.ts +2 -2
- package/dist/content/index.js +13 -7
- package/dist/content/index.js.map +1 -1
- package/dist/content/index.mjs +13 -7
- package/dist/content/index.mjs.map +1 -1
- package/dist/{graphql-client-Cv6TO6hn.d.mts → graphql-client-BXn6RYV0.d.mts} +31 -4
- package/dist/{graphql-client-Cv6TO6hn.d.ts → graphql-client-BXn6RYV0.d.ts} +31 -4
- package/dist/hooks/index.d.mts +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +1145 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/index.mjs +1140 -0
- package/dist/hooks/index.mjs.map +1 -0
- package/dist/{index-Cts2CAMO.d.ts → index-BXg7cQLm.d.ts} +1 -1
- package/dist/index-CUJTTlYx.d.mts +244 -0
- package/dist/index-CUJTTlYx.d.ts +244 -0
- package/dist/{index-B36goDSY.d.mts → index-DYxQiEm5.d.mts} +1 -1
- package/dist/index.d.mts +9 -6
- package/dist/index.d.ts +9 -6
- package/dist/index.js +2000 -426
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1990 -428
- package/dist/index.mjs.map +1 -1
- package/dist/product/index.js +13 -7
- package/dist/product/index.js.map +1 -1
- package/dist/product/index.mjs +13 -7
- package/dist/product/index.mjs.map +1 -1
- package/dist/{provider-BZlnZDBb.d.mts → provider-CUfI8meE.d.mts} +1 -1
- package/dist/{provider-CRLmsW5h.d.ts → provider-D_uUM7_e.d.ts} +1 -1
- package/dist/store/index.js +13 -7
- package/dist/store/index.js.map +1 -1
- package/dist/store/index.mjs +13 -7
- package/dist/store/index.mjs.map +1 -1
- package/dist/utils/index.d.mts +49 -1
- package/dist/utils/index.d.ts +49 -1
- package/dist/utils/index.js +70 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/index.mjs +68 -1
- package/dist/utils/index.mjs.map +1 -1
- package/package.json +6 -1
|
@@ -29,6 +29,30 @@ interface WebSDKClientConfig {
|
|
|
29
29
|
*/
|
|
30
30
|
maxRetries?: number;
|
|
31
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Per-call overrides for {@link WebSDKClient.query}.
|
|
34
|
+
*
|
|
35
|
+
* The defaults (5-minute response cache + in-flight deduplication) are right
|
|
36
|
+
* for the read-once content queries most SDK components make, and wrong for a
|
|
37
|
+
* poll loop: the second poll of the same `(query, variables)` pair would be
|
|
38
|
+
* served straight from the cache and the UI would freeze on the first
|
|
39
|
+
* response forever. Pass `{ cache: false }` for anything polled.
|
|
40
|
+
*/
|
|
41
|
+
interface WebSDKQueryOptions {
|
|
42
|
+
/**
|
|
43
|
+
* Use the response cache and in-flight deduplication. Default `true`.
|
|
44
|
+
* `false` skips the cache read, the dedupe map AND the cache write, so the
|
|
45
|
+
* call always hits the network and never poisons a later cached read.
|
|
46
|
+
*/
|
|
47
|
+
cache?: boolean;
|
|
48
|
+
/** Override the client-wide request timeout for this call only. */
|
|
49
|
+
timeoutMs?: number;
|
|
50
|
+
}
|
|
51
|
+
/** Per-call overrides for {@link WebSDKClient.mutate}. */
|
|
52
|
+
interface WebSDKMutateOptions {
|
|
53
|
+
/** Override the client-wide request timeout for this call only. */
|
|
54
|
+
timeoutMs?: number;
|
|
55
|
+
}
|
|
32
56
|
interface GraphQLResponse<T = Record<string, unknown>> {
|
|
33
57
|
data?: T;
|
|
34
58
|
errors?: Array<{
|
|
@@ -53,13 +77,16 @@ declare class WebSDKClient {
|
|
|
53
77
|
constructor(config: WebSDKClientConfig);
|
|
54
78
|
getConfig(): WebSDKClientConfig;
|
|
55
79
|
/**
|
|
56
|
-
* Execute a GraphQL query (with deduplication and caching)
|
|
80
|
+
* Execute a GraphQL query (with deduplication and caching).
|
|
81
|
+
*
|
|
82
|
+
* Pass `{ cache: false }` to bypass the cache entirely — required for poll
|
|
83
|
+
* loops, where every tick must reach the network.
|
|
57
84
|
*/
|
|
58
|
-
query<T = Record<string, unknown>>(query: string, variables?: Record<string, unknown
|
|
85
|
+
query<T = Record<string, unknown>>(query: string, variables?: Record<string, unknown>, options?: WebSDKQueryOptions): Promise<GraphQLResponse<T>>;
|
|
59
86
|
/**
|
|
60
87
|
* Execute a GraphQL mutation
|
|
61
88
|
*/
|
|
62
|
-
mutate<T = Record<string, unknown>>(mutation: string, variables?: Record<string, unknown
|
|
89
|
+
mutate<T = Record<string, unknown>>(mutation: string, variables?: Record<string, unknown>, options?: WebSDKMutateOptions): Promise<GraphQLResponse<T>>;
|
|
63
90
|
/** HTTP statuses worth another attempt — transient server/edge conditions. */
|
|
64
91
|
private static isRetriableStatus;
|
|
65
92
|
private static sleep;
|
|
@@ -72,4 +99,4 @@ declare class WebSDKClient {
|
|
|
72
99
|
private request;
|
|
73
100
|
}
|
|
74
101
|
|
|
75
|
-
export { WebSDKClient as W, type WebSDKClientConfig as a };
|
|
102
|
+
export { type GraphQLResponse as G, WebSDKClient as W, type WebSDKClientConfig as a, type WebSDKMutateOptions as b, type WebSDKQueryOptions as c };
|
|
@@ -29,6 +29,30 @@ interface WebSDKClientConfig {
|
|
|
29
29
|
*/
|
|
30
30
|
maxRetries?: number;
|
|
31
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Per-call overrides for {@link WebSDKClient.query}.
|
|
34
|
+
*
|
|
35
|
+
* The defaults (5-minute response cache + in-flight deduplication) are right
|
|
36
|
+
* for the read-once content queries most SDK components make, and wrong for a
|
|
37
|
+
* poll loop: the second poll of the same `(query, variables)` pair would be
|
|
38
|
+
* served straight from the cache and the UI would freeze on the first
|
|
39
|
+
* response forever. Pass `{ cache: false }` for anything polled.
|
|
40
|
+
*/
|
|
41
|
+
interface WebSDKQueryOptions {
|
|
42
|
+
/**
|
|
43
|
+
* Use the response cache and in-flight deduplication. Default `true`.
|
|
44
|
+
* `false` skips the cache read, the dedupe map AND the cache write, so the
|
|
45
|
+
* call always hits the network and never poisons a later cached read.
|
|
46
|
+
*/
|
|
47
|
+
cache?: boolean;
|
|
48
|
+
/** Override the client-wide request timeout for this call only. */
|
|
49
|
+
timeoutMs?: number;
|
|
50
|
+
}
|
|
51
|
+
/** Per-call overrides for {@link WebSDKClient.mutate}. */
|
|
52
|
+
interface WebSDKMutateOptions {
|
|
53
|
+
/** Override the client-wide request timeout for this call only. */
|
|
54
|
+
timeoutMs?: number;
|
|
55
|
+
}
|
|
32
56
|
interface GraphQLResponse<T = Record<string, unknown>> {
|
|
33
57
|
data?: T;
|
|
34
58
|
errors?: Array<{
|
|
@@ -53,13 +77,16 @@ declare class WebSDKClient {
|
|
|
53
77
|
constructor(config: WebSDKClientConfig);
|
|
54
78
|
getConfig(): WebSDKClientConfig;
|
|
55
79
|
/**
|
|
56
|
-
* Execute a GraphQL query (with deduplication and caching)
|
|
80
|
+
* Execute a GraphQL query (with deduplication and caching).
|
|
81
|
+
*
|
|
82
|
+
* Pass `{ cache: false }` to bypass the cache entirely — required for poll
|
|
83
|
+
* loops, where every tick must reach the network.
|
|
57
84
|
*/
|
|
58
|
-
query<T = Record<string, unknown>>(query: string, variables?: Record<string, unknown
|
|
85
|
+
query<T = Record<string, unknown>>(query: string, variables?: Record<string, unknown>, options?: WebSDKQueryOptions): Promise<GraphQLResponse<T>>;
|
|
59
86
|
/**
|
|
60
87
|
* Execute a GraphQL mutation
|
|
61
88
|
*/
|
|
62
|
-
mutate<T = Record<string, unknown>>(mutation: string, variables?: Record<string, unknown
|
|
89
|
+
mutate<T = Record<string, unknown>>(mutation: string, variables?: Record<string, unknown>, options?: WebSDKMutateOptions): Promise<GraphQLResponse<T>>;
|
|
63
90
|
/** HTTP statuses worth another attempt — transient server/edge conditions. */
|
|
64
91
|
private static isRetriableStatus;
|
|
65
92
|
private static sleep;
|
|
@@ -72,4 +99,4 @@ declare class WebSDKClient {
|
|
|
72
99
|
private request;
|
|
73
100
|
}
|
|
74
101
|
|
|
75
|
-
export { WebSDKClient as W, type WebSDKClientConfig as a };
|
|
102
|
+
export { type GraphQLResponse as G, WebSDKClient as W, type WebSDKClientConfig as a, type WebSDKMutateOptions as b, type WebSDKQueryOptions as c };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { D as DEFAULT_EXPLORE_EXAMPLE_PROMPTS, d as ExploreChatError, e as ExploreChatErrorKind, f as ExploreChatPhase, F as FALLBACK_EXPLORE_LIMITS, U as UseExploreChatOptions, u as UseExploreChatResult, v as classifyExploreError, w as useExploreChat } from '../index-CUJTTlYx.mjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { D as DEFAULT_EXPLORE_EXAMPLE_PROMPTS, d as ExploreChatError, e as ExploreChatErrorKind, f as ExploreChatPhase, F as FALLBACK_EXPLORE_LIMITS, U as UseExploreChatOptions, u as UseExploreChatResult, v as classifyExploreError, w as useExploreChat } from '../index-CUJTTlYx.js';
|