@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
|
@@ -71,9 +71,15 @@ var _WebSDKClient = class _WebSDKClient {
|
|
|
71
71
|
return this.config;
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
74
|
-
* Execute a GraphQL query (with deduplication and caching)
|
|
74
|
+
* Execute a GraphQL query (with deduplication and caching).
|
|
75
|
+
*
|
|
76
|
+
* Pass `{ cache: false }` to bypass the cache entirely — required for poll
|
|
77
|
+
* loops, where every tick must reach the network.
|
|
75
78
|
*/
|
|
76
|
-
async query(query, variables) {
|
|
79
|
+
async query(query, variables, options) {
|
|
80
|
+
if (options?.cache === false) {
|
|
81
|
+
return this.request(query, variables, true, options.timeoutMs);
|
|
82
|
+
}
|
|
77
83
|
const cacheKey = JSON.stringify({ query, variables });
|
|
78
84
|
const cached = this.queryCache.get(cacheKey);
|
|
79
85
|
if (cached) {
|
|
@@ -86,7 +92,7 @@ var _WebSDKClient = class _WebSDKClient {
|
|
|
86
92
|
if (existing) {
|
|
87
93
|
return existing;
|
|
88
94
|
}
|
|
89
|
-
const promise = this.request(query, variables).then((result) => {
|
|
95
|
+
const promise = this.request(query, variables, true, options?.timeoutMs).then((result) => {
|
|
90
96
|
if (result.data && !result.errors?.length) {
|
|
91
97
|
if (this.queryCache.size >= _WebSDKClient.MAX_CACHE_ENTRIES) {
|
|
92
98
|
const oldestEntry = this.queryCache.keys().next().value;
|
|
@@ -106,8 +112,8 @@ var _WebSDKClient = class _WebSDKClient {
|
|
|
106
112
|
/**
|
|
107
113
|
* Execute a GraphQL mutation
|
|
108
114
|
*/
|
|
109
|
-
async mutate(mutation, variables) {
|
|
110
|
-
return this.request(mutation, variables, false);
|
|
115
|
+
async mutate(mutation, variables, options) {
|
|
116
|
+
return this.request(mutation, variables, false, options?.timeoutMs);
|
|
111
117
|
}
|
|
112
118
|
/** HTTP statuses worth another attempt — transient server/edge conditions. */
|
|
113
119
|
static isRetriableStatus(status) {
|
|
@@ -178,8 +184,8 @@ var _WebSDKClient = class _WebSDKClient {
|
|
|
178
184
|
clearTimeout(timer);
|
|
179
185
|
}
|
|
180
186
|
}
|
|
181
|
-
async request(query, variables, retry = true) {
|
|
182
|
-
const timeoutMs = this.config.timeoutMs ?? _WebSDKClient.DEFAULT_TIMEOUT_MS;
|
|
187
|
+
async request(query, variables, retry = true, timeoutOverrideMs) {
|
|
188
|
+
const timeoutMs = timeoutOverrideMs ?? this.config.timeoutMs ?? _WebSDKClient.DEFAULT_TIMEOUT_MS;
|
|
183
189
|
const maxRetries = retry ? this.config.maxRetries ?? _WebSDKClient.DEFAULT_MAX_RETRIES : 0;
|
|
184
190
|
let last;
|
|
185
191
|
for (let i = 0; i <= maxRetries; i++) {
|