@burdenoff/website-sdk 2026.824.2 → 2026.828.1

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.
Files changed (124) hide show
  1. package/README.md +88 -0
  2. package/dist/client/index.d.mts +2 -3
  3. package/dist/client/index.d.ts +2 -3
  4. package/dist/client/index.js +13 -7
  5. package/dist/client/index.js.map +1 -1
  6. package/dist/client/index.mjs +13 -7
  7. package/dist/client/index.mjs.map +1 -1
  8. package/dist/components/contact.d.mts +2 -2
  9. package/dist/components/contact.d.ts +2 -2
  10. package/dist/components/contact.js +13 -7
  11. package/dist/components/contact.js.map +1 -1
  12. package/dist/components/contact.mjs +13 -7
  13. package/dist/components/contact.mjs.map +1 -1
  14. package/dist/components/electron-download.d.mts +2 -2
  15. package/dist/components/electron-download.d.ts +2 -2
  16. package/dist/components/explore-cta.d.mts +26 -0
  17. package/dist/components/explore-cta.d.ts +26 -0
  18. package/dist/components/explore-cta.js +95 -0
  19. package/dist/components/explore-cta.js.map +1 -0
  20. package/dist/components/explore-cta.mjs +93 -0
  21. package/dist/components/explore-cta.mjs.map +1 -0
  22. package/dist/components/explore.d.mts +43 -0
  23. package/dist/components/explore.d.ts +43 -0
  24. package/dist/components/explore.js +2219 -0
  25. package/dist/components/explore.js.map +1 -0
  26. package/dist/components/explore.mjs +2193 -0
  27. package/dist/components/explore.mjs.map +1 -0
  28. package/dist/components/launch-countdown.d.mts +2 -2
  29. package/dist/components/launch-countdown.d.ts +2 -2
  30. package/dist/components/newsletter.d.mts +3 -3
  31. package/dist/components/newsletter.d.ts +3 -3
  32. package/dist/components/newsletter.js +13 -7
  33. package/dist/components/newsletter.js.map +1 -1
  34. package/dist/components/newsletter.mjs +13 -7
  35. package/dist/components/newsletter.mjs.map +1 -1
  36. package/dist/components/partners.d.mts +2 -2
  37. package/dist/components/partners.d.ts +2 -2
  38. package/dist/components/partners.js +13 -7
  39. package/dist/components/partners.js.map +1 -1
  40. package/dist/components/partners.mjs +13 -7
  41. package/dist/components/partners.mjs.map +1 -1
  42. package/dist/components/pricing.d.mts +3 -3
  43. package/dist/components/pricing.d.ts +3 -3
  44. package/dist/components/pricing.js +13 -7
  45. package/dist/components/pricing.js.map +1 -1
  46. package/dist/components/pricing.mjs +13 -7
  47. package/dist/components/pricing.mjs.map +1 -1
  48. package/dist/components/problems-solved.d.mts +2 -2
  49. package/dist/components/problems-solved.d.ts +2 -2
  50. package/dist/components/resource-links.d.mts +2 -2
  51. package/dist/components/resource-links.d.ts +2 -2
  52. package/dist/components/resource-links.js +13 -7
  53. package/dist/components/resource-links.js.map +1 -1
  54. package/dist/components/resource-links.mjs +13 -7
  55. package/dist/components/resource-links.mjs.map +1 -1
  56. package/dist/components/social-links.d.mts +2 -2
  57. package/dist/components/social-links.d.ts +2 -2
  58. package/dist/components/social-links.js +13 -7
  59. package/dist/components/social-links.js.map +1 -1
  60. package/dist/components/social-links.mjs +13 -7
  61. package/dist/components/social-links.mjs.map +1 -1
  62. package/dist/components/unsubscribe.d.mts +2 -2
  63. package/dist/components/unsubscribe.d.ts +2 -2
  64. package/dist/components/unsubscribe.js +13 -7
  65. package/dist/components/unsubscribe.js.map +1 -1
  66. package/dist/components/unsubscribe.mjs +13 -7
  67. package/dist/components/unsubscribe.mjs.map +1 -1
  68. package/dist/components/waitlist.d.mts +3 -3
  69. package/dist/components/waitlist.d.ts +3 -3
  70. package/dist/components/waitlist.js +13 -7
  71. package/dist/components/waitlist.js.map +1 -1
  72. package/dist/components/waitlist.mjs +13 -7
  73. package/dist/components/waitlist.mjs.map +1 -1
  74. package/dist/components/website-switcher.d.mts +2 -2
  75. package/dist/components/website-switcher.d.ts +2 -2
  76. package/dist/content/index.d.mts +2 -3
  77. package/dist/content/index.d.ts +2 -3
  78. package/dist/content/index.js +13 -7
  79. package/dist/content/index.js.map +1 -1
  80. package/dist/content/index.mjs +13 -7
  81. package/dist/content/index.mjs.map +1 -1
  82. package/dist/{graphql-client-Cv6TO6hn.d.mts → graphql-client-BXn6RYV0.d.mts} +31 -4
  83. package/dist/{graphql-client-Cv6TO6hn.d.ts → graphql-client-BXn6RYV0.d.ts} +31 -4
  84. package/dist/hooks/index.d.mts +1 -0
  85. package/dist/hooks/index.d.ts +1 -0
  86. package/dist/hooks/index.js +1145 -0
  87. package/dist/hooks/index.js.map +1 -0
  88. package/dist/hooks/index.mjs +1140 -0
  89. package/dist/hooks/index.mjs.map +1 -0
  90. package/dist/{index-CFsUFxYo.d.ts → index-BXg7cQLm.d.ts} +11 -11
  91. package/dist/index-CUJTTlYx.d.mts +244 -0
  92. package/dist/index-CUJTTlYx.d.ts +244 -0
  93. package/dist/{index-CuMRiKGB.d.mts → index-DYxQiEm5.d.mts} +11 -11
  94. package/dist/index.d.mts +17 -15
  95. package/dist/index.d.ts +17 -15
  96. package/dist/index.js +1987 -426
  97. package/dist/index.js.map +1 -1
  98. package/dist/index.mjs +1977 -428
  99. package/dist/index.mjs.map +1 -1
  100. package/dist/product/index.d.mts +2 -2
  101. package/dist/product/index.d.ts +2 -2
  102. package/dist/product/index.js +13 -7
  103. package/dist/product/index.js.map +1 -1
  104. package/dist/product/index.mjs +13 -7
  105. package/dist/product/index.mjs.map +1 -1
  106. package/dist/{product-card-DL9O3Ez9.d.mts → product-card-CGxETsFa.d.mts} +7 -7
  107. package/dist/{product-card-DL9O3Ez9.d.ts → product-card-CGxETsFa.d.ts} +7 -7
  108. package/dist/{provider-D-Do5PmD.d.ts → provider-CUfI8meE.d.mts} +3 -3
  109. package/dist/{provider-BhsbxVPo.d.mts → provider-D_uUM7_e.d.ts} +3 -3
  110. package/dist/seo/index.d.mts +2 -2
  111. package/dist/seo/index.d.ts +2 -2
  112. package/dist/store/index.d.mts +3 -3
  113. package/dist/store/index.d.ts +3 -3
  114. package/dist/store/index.js +13 -7
  115. package/dist/store/index.js.map +1 -1
  116. package/dist/store/index.mjs +13 -7
  117. package/dist/store/index.mjs.map +1 -1
  118. package/dist/utils/index.d.mts +49 -1
  119. package/dist/utils/index.d.ts +49 -1
  120. package/dist/utils/index.js +70 -0
  121. package/dist/utils/index.js.map +1 -1
  122. package/dist/utils/index.mjs +68 -1
  123. package/dist/utils/index.mjs.map +1 -1
  124. package/package.json +40 -30
@@ -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>): Promise<GraphQLResponse<T>>;
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>): Promise<GraphQLResponse<T>>;
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>): Promise<GraphQLResponse<T>>;
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>): Promise<GraphQLResponse<T>>;
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';