@burdenoff/website-sdk 2026.824.1 → 2026.826.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.
- package/dist/client/index.d.mts +1 -2
- package/dist/client/index.d.ts +1 -2
- package/dist/components/contact.d.mts +2 -2
- package/dist/components/contact.d.ts +2 -2
- package/dist/components/electron-download.d.mts +2 -2
- package/dist/components/electron-download.d.ts +2 -2
- package/dist/components/launch-countdown.d.mts +2 -2
- package/dist/components/launch-countdown.d.ts +2 -2
- package/dist/components/newsletter.d.mts +3 -3
- package/dist/components/newsletter.d.ts +3 -3
- package/dist/components/partners.d.mts +2 -2
- package/dist/components/partners.d.ts +2 -2
- package/dist/components/pricing.d.mts +3 -3
- package/dist/components/pricing.d.ts +3 -3
- package/dist/components/problems-solved.d.mts +2 -2
- package/dist/components/problems-solved.d.ts +2 -2
- package/dist/components/resource-links.d.mts +2 -2
- package/dist/components/resource-links.d.ts +2 -2
- package/dist/components/social-links.d.mts +2 -2
- package/dist/components/social-links.d.ts +2 -2
- package/dist/components/unsubscribe.d.mts +2 -2
- package/dist/components/unsubscribe.d.ts +2 -2
- package/dist/components/unsubscribe.js.map +1 -1
- package/dist/components/unsubscribe.mjs.map +1 -1
- package/dist/components/waitlist.d.mts +3 -3
- package/dist/components/waitlist.d.ts +3 -3
- package/dist/components/website-switcher.d.mts +2 -2
- package/dist/components/website-switcher.d.ts +2 -2
- package/dist/content/index.d.mts +4 -360
- package/dist/content/index.d.ts +4 -360
- package/dist/content/index.js +64 -0
- package/dist/content/index.js.map +1 -1
- package/dist/content/index.mjs +63 -1
- package/dist/content/index.mjs.map +1 -1
- package/dist/index-B36goDSY.d.mts +424 -0
- package/dist/index-Cts2CAMO.d.ts +424 -0
- package/dist/index.d.mts +13 -55
- package/dist/index.d.ts +13 -55
- package/dist/index.js +64 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +63 -1
- package/dist/index.mjs.map +1 -1
- package/dist/product/index.d.mts +2 -2
- package/dist/product/index.d.ts +2 -2
- package/dist/{product-card-DL9O3Ez9.d.mts → product-card-CGxETsFa.d.mts} +7 -7
- package/dist/{product-card-DL9O3Ez9.d.ts → product-card-CGxETsFa.d.ts} +7 -7
- package/dist/{provider-BhsbxVPo.d.mts → provider-BZlnZDBb.d.mts} +2 -2
- package/dist/{provider-D-Do5PmD.d.ts → provider-CRLmsW5h.d.ts} +2 -2
- package/dist/seo/index.d.mts +2 -2
- package/dist/seo/index.d.ts +2 -2
- package/dist/store/index.d.mts +3 -3
- package/dist/store/index.d.ts +3 -3
- package/dist/store/index.js.map +1 -1
- package/dist/store/index.mjs.map +1 -1
- package/package.json +35 -30
package/dist/index.js
CHANGED
|
@@ -4810,6 +4810,25 @@ var PUBLIC_JOB_POSTING_QUERY = (
|
|
|
4810
4810
|
}
|
|
4811
4811
|
`
|
|
4812
4812
|
);
|
|
4813
|
+
var PUBLIC_JOB_POSTINGS_FOR_SUBMISSION_QUERY = (
|
|
4814
|
+
/* GraphQL */
|
|
4815
|
+
`
|
|
4816
|
+
query PublicJobPostingsForSubmission(
|
|
4817
|
+
$productId: ID
|
|
4818
|
+
$limit: Int
|
|
4819
|
+
$offset: Int
|
|
4820
|
+
) {
|
|
4821
|
+
publicJobPostingsForSubmission(
|
|
4822
|
+
productId: $productId
|
|
4823
|
+
limit: $limit
|
|
4824
|
+
offset: $offset
|
|
4825
|
+
) {
|
|
4826
|
+
id
|
|
4827
|
+
title
|
|
4828
|
+
}
|
|
4829
|
+
}
|
|
4830
|
+
`
|
|
4831
|
+
);
|
|
4813
4832
|
async function fetchPublicJobPostings(client, options) {
|
|
4814
4833
|
const result = await client.query(PUBLIC_JOB_POSTINGS_QUERY, {
|
|
4815
4834
|
productId: options?.productId,
|
|
@@ -4831,6 +4850,17 @@ async function fetchPublicJobPosting(client, slug, options) {
|
|
|
4831
4850
|
}
|
|
4832
4851
|
return result.data?.publicJobPosting ?? null;
|
|
4833
4852
|
}
|
|
4853
|
+
async function fetchPublicJobPostingsForSubmission(client, options) {
|
|
4854
|
+
const result = await client.query(PUBLIC_JOB_POSTINGS_FOR_SUBMISSION_QUERY, {
|
|
4855
|
+
productId: options?.productId,
|
|
4856
|
+
limit: options?.limit ?? 50,
|
|
4857
|
+
offset: options?.offset ?? 0
|
|
4858
|
+
});
|
|
4859
|
+
if (result.errors?.length) {
|
|
4860
|
+
throw new Error(result.errors[0]?.message ?? "Unknown error");
|
|
4861
|
+
}
|
|
4862
|
+
return result.data?.publicJobPostingsForSubmission ?? [];
|
|
4863
|
+
}
|
|
4834
4864
|
function usePublicJobPostings(options) {
|
|
4835
4865
|
const client = useWebSDK();
|
|
4836
4866
|
const config = useWebSDKConfig();
|
|
@@ -4863,6 +4893,38 @@ function usePublicJobPostings(options) {
|
|
|
4863
4893
|
}, [fetchPostings]);
|
|
4864
4894
|
return { postings, loading, error, refetch: fetchPostings };
|
|
4865
4895
|
}
|
|
4896
|
+
function usePublicJobPostingsForSubmission(options) {
|
|
4897
|
+
const client = useWebSDK();
|
|
4898
|
+
const config = useWebSDKConfig();
|
|
4899
|
+
const { product } = useProduct();
|
|
4900
|
+
const resolvedProductId = options?.productId ?? product?.id ?? config.productId;
|
|
4901
|
+
const [postings, setPostings] = React.useState([]);
|
|
4902
|
+
const [loading, setLoading] = React.useState(true);
|
|
4903
|
+
const [error, setError] = React.useState(null);
|
|
4904
|
+
const fetchPostings = React.useCallback(async () => {
|
|
4905
|
+
setLoading(true);
|
|
4906
|
+
setError(null);
|
|
4907
|
+
try {
|
|
4908
|
+
const items = await fetchPublicJobPostingsForSubmission(client, {
|
|
4909
|
+
productId: resolvedProductId,
|
|
4910
|
+
limit: options?.limit,
|
|
4911
|
+
offset: options?.offset
|
|
4912
|
+
});
|
|
4913
|
+
setPostings(items);
|
|
4914
|
+
} catch (err) {
|
|
4915
|
+
setError(
|
|
4916
|
+
err instanceof Error ? err.message : "Failed to fetch job postings"
|
|
4917
|
+
);
|
|
4918
|
+
setPostings([]);
|
|
4919
|
+
} finally {
|
|
4920
|
+
setLoading(false);
|
|
4921
|
+
}
|
|
4922
|
+
}, [client, resolvedProductId, options?.limit, options?.offset]);
|
|
4923
|
+
React.useEffect(() => {
|
|
4924
|
+
fetchPostings();
|
|
4925
|
+
}, [fetchPostings]);
|
|
4926
|
+
return { postings, loading, error, refetch: fetchPostings };
|
|
4927
|
+
}
|
|
4866
4928
|
function usePublicJobPosting(slug, options) {
|
|
4867
4929
|
const client = useWebSDK();
|
|
4868
4930
|
const config = useWebSDKConfig();
|
|
@@ -9641,6 +9703,7 @@ exports.cn = cn;
|
|
|
9641
9703
|
exports.detectElectronPlatform = detectElectronPlatform;
|
|
9642
9704
|
exports.fetchPublicJobPosting = fetchPublicJobPosting;
|
|
9643
9705
|
exports.fetchPublicJobPostings = fetchPublicJobPostings;
|
|
9706
|
+
exports.fetchPublicJobPostingsForSubmission = fetchPublicJobPostingsForSubmission;
|
|
9644
9707
|
exports.formatDownloads = formatDownloads;
|
|
9645
9708
|
exports.formatPrice = formatPrice2;
|
|
9646
9709
|
exports.isValidUrl = isValidUrl;
|
|
@@ -9650,6 +9713,7 @@ exports.useProduct = useProduct;
|
|
|
9650
9713
|
exports.useProductConfig = useProductConfig;
|
|
9651
9714
|
exports.usePublicJobPosting = usePublicJobPosting;
|
|
9652
9715
|
exports.usePublicJobPostings = usePublicJobPostings;
|
|
9716
|
+
exports.usePublicJobPostingsForSubmission = usePublicJobPostingsForSubmission;
|
|
9653
9717
|
exports.useWebSDK = useWebSDK;
|
|
9654
9718
|
exports.useWebSDKConfig = useWebSDKConfig;
|
|
9655
9719
|
//# sourceMappingURL=index.js.map
|