@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.
Files changed (55) hide show
  1. package/dist/client/index.d.mts +1 -2
  2. package/dist/client/index.d.ts +1 -2
  3. package/dist/components/contact.d.mts +2 -2
  4. package/dist/components/contact.d.ts +2 -2
  5. package/dist/components/electron-download.d.mts +2 -2
  6. package/dist/components/electron-download.d.ts +2 -2
  7. package/dist/components/launch-countdown.d.mts +2 -2
  8. package/dist/components/launch-countdown.d.ts +2 -2
  9. package/dist/components/newsletter.d.mts +3 -3
  10. package/dist/components/newsletter.d.ts +3 -3
  11. package/dist/components/partners.d.mts +2 -2
  12. package/dist/components/partners.d.ts +2 -2
  13. package/dist/components/pricing.d.mts +3 -3
  14. package/dist/components/pricing.d.ts +3 -3
  15. package/dist/components/problems-solved.d.mts +2 -2
  16. package/dist/components/problems-solved.d.ts +2 -2
  17. package/dist/components/resource-links.d.mts +2 -2
  18. package/dist/components/resource-links.d.ts +2 -2
  19. package/dist/components/social-links.d.mts +2 -2
  20. package/dist/components/social-links.d.ts +2 -2
  21. package/dist/components/unsubscribe.d.mts +2 -2
  22. package/dist/components/unsubscribe.d.ts +2 -2
  23. package/dist/components/unsubscribe.js.map +1 -1
  24. package/dist/components/unsubscribe.mjs.map +1 -1
  25. package/dist/components/waitlist.d.mts +3 -3
  26. package/dist/components/waitlist.d.ts +3 -3
  27. package/dist/components/website-switcher.d.mts +2 -2
  28. package/dist/components/website-switcher.d.ts +2 -2
  29. package/dist/content/index.d.mts +4 -360
  30. package/dist/content/index.d.ts +4 -360
  31. package/dist/content/index.js +64 -0
  32. package/dist/content/index.js.map +1 -1
  33. package/dist/content/index.mjs +63 -1
  34. package/dist/content/index.mjs.map +1 -1
  35. package/dist/index-B36goDSY.d.mts +424 -0
  36. package/dist/index-Cts2CAMO.d.ts +424 -0
  37. package/dist/index.d.mts +13 -55
  38. package/dist/index.d.ts +13 -55
  39. package/dist/index.js +64 -0
  40. package/dist/index.js.map +1 -1
  41. package/dist/index.mjs +63 -1
  42. package/dist/index.mjs.map +1 -1
  43. package/dist/product/index.d.mts +2 -2
  44. package/dist/product/index.d.ts +2 -2
  45. package/dist/{product-card-DL9O3Ez9.d.mts → product-card-CGxETsFa.d.mts} +7 -7
  46. package/dist/{product-card-DL9O3Ez9.d.ts → product-card-CGxETsFa.d.ts} +7 -7
  47. package/dist/{provider-BhsbxVPo.d.mts → provider-BZlnZDBb.d.mts} +2 -2
  48. package/dist/{provider-D-Do5PmD.d.ts → provider-CRLmsW5h.d.ts} +2 -2
  49. package/dist/seo/index.d.mts +2 -2
  50. package/dist/seo/index.d.ts +2 -2
  51. package/dist/store/index.d.mts +3 -3
  52. package/dist/store/index.d.ts +3 -3
  53. package/dist/store/index.js.map +1 -1
  54. package/dist/store/index.mjs.map +1 -1
  55. 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