@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
package/dist/store/index.mjs
CHANGED
|
@@ -258,9 +258,15 @@ var _WebSDKClient = class _WebSDKClient {
|
|
|
258
258
|
return this.config;
|
|
259
259
|
}
|
|
260
260
|
/**
|
|
261
|
-
* Execute a GraphQL query (with deduplication and caching)
|
|
261
|
+
* Execute a GraphQL query (with deduplication and caching).
|
|
262
|
+
*
|
|
263
|
+
* Pass `{ cache: false }` to bypass the cache entirely — required for poll
|
|
264
|
+
* loops, where every tick must reach the network.
|
|
262
265
|
*/
|
|
263
|
-
async query(query, variables) {
|
|
266
|
+
async query(query, variables, options) {
|
|
267
|
+
if (options?.cache === false) {
|
|
268
|
+
return this.request(query, variables, true, options.timeoutMs);
|
|
269
|
+
}
|
|
264
270
|
const cacheKey = JSON.stringify({ query, variables });
|
|
265
271
|
const cached = this.queryCache.get(cacheKey);
|
|
266
272
|
if (cached) {
|
|
@@ -273,7 +279,7 @@ var _WebSDKClient = class _WebSDKClient {
|
|
|
273
279
|
if (existing) {
|
|
274
280
|
return existing;
|
|
275
281
|
}
|
|
276
|
-
const promise = this.request(query, variables).then((result) => {
|
|
282
|
+
const promise = this.request(query, variables, true, options?.timeoutMs).then((result) => {
|
|
277
283
|
if (result.data && !result.errors?.length) {
|
|
278
284
|
if (this.queryCache.size >= _WebSDKClient.MAX_CACHE_ENTRIES) {
|
|
279
285
|
const oldestEntry = this.queryCache.keys().next().value;
|
|
@@ -293,8 +299,8 @@ var _WebSDKClient = class _WebSDKClient {
|
|
|
293
299
|
/**
|
|
294
300
|
* Execute a GraphQL mutation
|
|
295
301
|
*/
|
|
296
|
-
async mutate(mutation, variables) {
|
|
297
|
-
return this.request(mutation, variables, false);
|
|
302
|
+
async mutate(mutation, variables, options) {
|
|
303
|
+
return this.request(mutation, variables, false, options?.timeoutMs);
|
|
298
304
|
}
|
|
299
305
|
/** HTTP statuses worth another attempt — transient server/edge conditions. */
|
|
300
306
|
static isRetriableStatus(status) {
|
|
@@ -365,8 +371,8 @@ var _WebSDKClient = class _WebSDKClient {
|
|
|
365
371
|
clearTimeout(timer);
|
|
366
372
|
}
|
|
367
373
|
}
|
|
368
|
-
async request(query, variables, retry = true) {
|
|
369
|
-
const timeoutMs = this.config.timeoutMs ?? _WebSDKClient.DEFAULT_TIMEOUT_MS;
|
|
374
|
+
async request(query, variables, retry = true, timeoutOverrideMs) {
|
|
375
|
+
const timeoutMs = timeoutOverrideMs ?? this.config.timeoutMs ?? _WebSDKClient.DEFAULT_TIMEOUT_MS;
|
|
370
376
|
const maxRetries = retry ? this.config.maxRetries ?? _WebSDKClient.DEFAULT_MAX_RETRIES : 0;
|
|
371
377
|
let last;
|
|
372
378
|
for (let i = 0; i <= maxRetries; i++) {
|