@burdenoff/website-sdk 2026.828.2 → 2026.828.3
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/dist/client/index.d.mts +2 -2
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.js +22 -1
- package/dist/client/index.js.map +1 -1
- package/dist/client/index.mjs +22 -1
- package/dist/client/index.mjs.map +1 -1
- package/dist/components/contact.js +22 -1
- package/dist/components/contact.js.map +1 -1
- package/dist/components/contact.mjs +22 -1
- package/dist/components/contact.mjs.map +1 -1
- package/dist/components/explore.js +22 -1
- package/dist/components/explore.js.map +1 -1
- package/dist/components/explore.mjs +22 -1
- package/dist/components/explore.mjs.map +1 -1
- package/dist/components/newsletter.js +22 -1
- package/dist/components/newsletter.js.map +1 -1
- package/dist/components/newsletter.mjs +22 -1
- package/dist/components/newsletter.mjs.map +1 -1
- package/dist/components/partners.js +22 -1
- package/dist/components/partners.js.map +1 -1
- package/dist/components/partners.mjs +22 -1
- package/dist/components/partners.mjs.map +1 -1
- package/dist/components/pricing.js +22 -1
- package/dist/components/pricing.js.map +1 -1
- package/dist/components/pricing.mjs +22 -1
- package/dist/components/pricing.mjs.map +1 -1
- package/dist/components/resource-links.js +22 -1
- package/dist/components/resource-links.js.map +1 -1
- package/dist/components/resource-links.mjs +22 -1
- package/dist/components/resource-links.mjs.map +1 -1
- package/dist/components/social-links.js +22 -1
- package/dist/components/social-links.js.map +1 -1
- package/dist/components/social-links.mjs +22 -1
- package/dist/components/social-links.mjs.map +1 -1
- package/dist/components/unsubscribe.js +22 -1
- package/dist/components/unsubscribe.js.map +1 -1
- package/dist/components/unsubscribe.mjs +22 -1
- package/dist/components/unsubscribe.mjs.map +1 -1
- package/dist/components/waitlist.js +22 -1
- package/dist/components/waitlist.js.map +1 -1
- package/dist/components/waitlist.mjs +22 -1
- 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 +22 -1
- package/dist/content/index.js.map +1 -1
- package/dist/content/index.mjs +22 -1
- package/dist/content/index.mjs.map +1 -1
- package/dist/{graphql-client-BXn6RYV0.d.mts → graphql-client-CI9vbgat.d.mts} +18 -0
- package/dist/{graphql-client-BXn6RYV0.d.ts → graphql-client-CI9vbgat.d.ts} +18 -0
- package/dist/hooks/index.js +22 -1
- package/dist/hooks/index.js.map +1 -1
- package/dist/hooks/index.mjs +22 -1
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/{index-DYxQiEm5.d.mts → index-BMWQNZDX.d.mts} +1 -1
- package/dist/{index-BXg7cQLm.d.ts → index-BqHF-G-S.d.ts} +1 -1
- package/dist/index.d.mts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +22 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -1
- package/dist/index.mjs.map +1 -1
- package/dist/product/index.js +22 -1
- package/dist/product/index.js.map +1 -1
- package/dist/product/index.mjs +22 -1
- package/dist/product/index.mjs.map +1 -1
- package/dist/{provider-D_uUM7_e.d.ts → provider-Dwgz4d0r.d.ts} +1 -1
- package/dist/{provider-CUfI8meE.d.mts → provider-MFV1NVqZ.d.mts} +1 -1
- package/dist/store/index.js +22 -1
- package/dist/store/index.js.map +1 -1
- package/dist/store/index.mjs +22 -1
- package/dist/store/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { G as GraphQLResponse, W as WebSDKClient, a as WebSDKClientConfig, b as WebSDKMutateOptions, c as WebSDKQueryOptions } from './graphql-client-
|
|
2
|
-
export { W as WebSDKProvider, a as WebSDKProviderProps, u as useWebSDK, b as useWebSDKConfig } from './provider-
|
|
1
|
+
export { G as GraphQLResponse, W as WebSDKClient, a as WebSDKClientConfig, b as WebSDKMutateOptions, c as WebSDKQueryOptions } from './graphql-client-CI9vbgat.js';
|
|
2
|
+
export { W as WebSDKProvider, a as WebSDKProviderProps, u as useWebSDK, b as useWebSDKConfig } from './provider-Dwgz4d0r.js';
|
|
3
3
|
export { ContactCategory, ContactPage, ContactPageProps, DEFAULT_CONTACT_CATEGORIES } from './components/contact.js';
|
|
4
4
|
export { PartnersPage, PartnersPageProps } from './components/partners.js';
|
|
5
|
-
import { C as CareersPostingOption } from './index-
|
|
6
|
-
export { B as BlogListPage, a as BlogListPageProps, b as BlogPostPage, c as BlogPostPageProps, d as CareersApplyForm, e as CareersApplyFormProps, f as CaseStudiesListPage, g as CaseStudiesListPageProps, h as CaseStudyPage, i as CaseStudyPageProps, j as ChangelogEntry, k as ChangelogPage, l as ChangelogPageProps, m as ContentPageData, n as ContentPageListData, o as ContentPageListItem, p as ContentRenderer, q as ContractAsset, r as ContractsPage, s as ContractsPageProps, M as Markdown, t as MarkdownProps, P as PressKitAsset, u as PressKitAssetCategory, v as PressKitPage, w as PressKitPageProps, x as PublicInterviewRoundConfig, y as PublicJobPosting, U as UsePublicJobPostingOptions, z as UsePublicJobPostingsOptions, A as fetchPublicJobPosting, D as fetchPublicJobPostings, E as fetchPublicJobPostingsForSubmission, F as useContentPage, G as useContentPages, H as usePublicJobPosting, I as usePublicJobPostings, J as usePublicJobPostingsForSubmission } from './index-
|
|
5
|
+
import { C as CareersPostingOption } from './index-BqHF-G-S.js';
|
|
6
|
+
export { B as BlogListPage, a as BlogListPageProps, b as BlogPostPage, c as BlogPostPageProps, d as CareersApplyForm, e as CareersApplyFormProps, f as CaseStudiesListPage, g as CaseStudiesListPageProps, h as CaseStudyPage, i as CaseStudyPageProps, j as ChangelogEntry, k as ChangelogPage, l as ChangelogPageProps, m as ContentPageData, n as ContentPageListData, o as ContentPageListItem, p as ContentRenderer, q as ContractAsset, r as ContractsPage, s as ContractsPageProps, M as Markdown, t as MarkdownProps, P as PressKitAsset, u as PressKitAssetCategory, v as PressKitPage, w as PressKitPageProps, x as PublicInterviewRoundConfig, y as PublicJobPosting, U as UsePublicJobPostingOptions, z as UsePublicJobPostingsOptions, A as fetchPublicJobPosting, D as fetchPublicJobPostings, E as fetchPublicJobPostingsForSubmission, F as useContentPage, G as useContentPages, H as usePublicJobPosting, I as usePublicJobPostings, J as usePublicJobPostingsForSubmission } from './index-BqHF-G-S.js';
|
|
7
7
|
import * as react from 'react';
|
|
8
8
|
export { NewsletterForm, NewsletterFormProps, NewsletterPage, NewsletterPageProps } from './components/newsletter.js';
|
|
9
9
|
export { PlanCard, PricingPage, PricingProps, PricingSection } from './components/pricing.js';
|
|
@@ -62,7 +62,7 @@ declare function CareersSubmissionForm({ productName, recaptchaSiteKey, postings
|
|
|
62
62
|
|
|
63
63
|
declare const buttonVariants: (props?: ({
|
|
64
64
|
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
|
|
65
|
-
size?: "
|
|
65
|
+
size?: "icon" | "default" | "sm" | "lg" | null | undefined;
|
|
66
66
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
67
67
|
interface ButtonProps extends react.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
|
68
68
|
asChild?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -88,6 +88,26 @@ function sanitizeHeaders(headers) {
|
|
|
88
88
|
)
|
|
89
89
|
);
|
|
90
90
|
}
|
|
91
|
+
var CF_ACCESS_GATED_HOSTS = /* @__PURE__ */ new Set([
|
|
92
|
+
"alphagraphql.burdenoff.com",
|
|
93
|
+
"alphagraphqlworkspaces.burdenoff.com"
|
|
94
|
+
]);
|
|
95
|
+
function cfAccessHeaders(gatewayUrl, cfAccess) {
|
|
96
|
+
const clientId = cfAccess?.clientId?.trim();
|
|
97
|
+
const clientSecret = cfAccess?.clientSecret?.trim();
|
|
98
|
+
if (!clientId || !clientSecret) return {};
|
|
99
|
+
let host;
|
|
100
|
+
try {
|
|
101
|
+
host = new URL(gatewayUrl).hostname.toLowerCase();
|
|
102
|
+
} catch {
|
|
103
|
+
return {};
|
|
104
|
+
}
|
|
105
|
+
if (!CF_ACCESS_GATED_HOSTS.has(host)) return {};
|
|
106
|
+
return {
|
|
107
|
+
"CF-Access-Client-Id": clientId,
|
|
108
|
+
"CF-Access-Client-Secret": clientSecret
|
|
109
|
+
};
|
|
110
|
+
}
|
|
91
111
|
|
|
92
112
|
// src/client/graphql-client.ts
|
|
93
113
|
var _WebSDKClient = class _WebSDKClient {
|
|
@@ -170,7 +190,8 @@ var _WebSDKClient = class _WebSDKClient {
|
|
|
170
190
|
headers: {
|
|
171
191
|
"Content-Type": "application/json",
|
|
172
192
|
"x-product-id": this.config.productId,
|
|
173
|
-
...this.config.headers
|
|
193
|
+
...this.config.headers,
|
|
194
|
+
...cfAccessHeaders(this.config.gatewayUrl, this.config.cfAccess)
|
|
174
195
|
},
|
|
175
196
|
body: JSON.stringify({ query, variables }),
|
|
176
197
|
signal: controller.signal
|