@burdenoff/website-sdk 2026.824.1 → 2026.824.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/dist/index.mjs CHANGED
@@ -4780,6 +4780,25 @@ var PUBLIC_JOB_POSTING_QUERY = (
4780
4780
  }
4781
4781
  `
4782
4782
  );
4783
+ var PUBLIC_JOB_POSTINGS_FOR_SUBMISSION_QUERY = (
4784
+ /* GraphQL */
4785
+ `
4786
+ query PublicJobPostingsForSubmission(
4787
+ $productId: ID
4788
+ $limit: Int
4789
+ $offset: Int
4790
+ ) {
4791
+ publicJobPostingsForSubmission(
4792
+ productId: $productId
4793
+ limit: $limit
4794
+ offset: $offset
4795
+ ) {
4796
+ id
4797
+ title
4798
+ }
4799
+ }
4800
+ `
4801
+ );
4783
4802
  async function fetchPublicJobPostings(client, options) {
4784
4803
  const result = await client.query(PUBLIC_JOB_POSTINGS_QUERY, {
4785
4804
  productId: options?.productId,
@@ -4801,6 +4820,17 @@ async function fetchPublicJobPosting(client, slug, options) {
4801
4820
  }
4802
4821
  return result.data?.publicJobPosting ?? null;
4803
4822
  }
4823
+ async function fetchPublicJobPostingsForSubmission(client, options) {
4824
+ const result = await client.query(PUBLIC_JOB_POSTINGS_FOR_SUBMISSION_QUERY, {
4825
+ productId: options?.productId,
4826
+ limit: options?.limit ?? 50,
4827
+ offset: options?.offset ?? 0
4828
+ });
4829
+ if (result.errors?.length) {
4830
+ throw new Error(result.errors[0]?.message ?? "Unknown error");
4831
+ }
4832
+ return result.data?.publicJobPostingsForSubmission ?? [];
4833
+ }
4804
4834
  function usePublicJobPostings(options) {
4805
4835
  const client = useWebSDK();
4806
4836
  const config = useWebSDKConfig();
@@ -4833,6 +4863,38 @@ function usePublicJobPostings(options) {
4833
4863
  }, [fetchPostings]);
4834
4864
  return { postings, loading, error, refetch: fetchPostings };
4835
4865
  }
4866
+ function usePublicJobPostingsForSubmission(options) {
4867
+ const client = useWebSDK();
4868
+ const config = useWebSDKConfig();
4869
+ const { product } = useProduct();
4870
+ const resolvedProductId = options?.productId ?? product?.id ?? config.productId;
4871
+ const [postings, setPostings] = useState([]);
4872
+ const [loading, setLoading] = useState(true);
4873
+ const [error, setError] = useState(null);
4874
+ const fetchPostings = useCallback(async () => {
4875
+ setLoading(true);
4876
+ setError(null);
4877
+ try {
4878
+ const items = await fetchPublicJobPostingsForSubmission(client, {
4879
+ productId: resolvedProductId,
4880
+ limit: options?.limit,
4881
+ offset: options?.offset
4882
+ });
4883
+ setPostings(items);
4884
+ } catch (err) {
4885
+ setError(
4886
+ err instanceof Error ? err.message : "Failed to fetch job postings"
4887
+ );
4888
+ setPostings([]);
4889
+ } finally {
4890
+ setLoading(false);
4891
+ }
4892
+ }, [client, resolvedProductId, options?.limit, options?.offset]);
4893
+ useEffect(() => {
4894
+ fetchPostings();
4895
+ }, [fetchPostings]);
4896
+ return { postings, loading, error, refetch: fetchPostings };
4897
+ }
4836
4898
  function usePublicJobPosting(slug, options) {
4837
4899
  const client = useWebSDK();
4838
4900
  const config = useWebSDKConfig();
@@ -9562,6 +9624,6 @@ var ECOSYSTEM_PRODUCTS = [
9562
9624
  }
9563
9625
  ];
9564
9626
 
9565
- export { BlogListPage, BlogPostPage, Button, CareersApplyForm, CareersSubmissionForm, CaseStudiesListPage, CaseStudyPage, ChangelogPage, ContactPage, ContentRenderer, ContractsPage, DEFAULT_CONTACT_CATEGORIES, ECOSYSTEM_PRODUCTS, ElectronDownloadLink, Input, Label, LaunchCountdown, Markdown, NewsletterForm, NewsletterPage, PageHead, PartnersPage, PressKitPage, PricingPage, PricingSection, ProblemsSolvedSection, ProductCard, ProductProvider, ResourceLinks, RybbitAnalytics, Select, SocialLinks, StarRating, StoreBrowsePage, StoreHomePage, StoreProductDetailPage, Textarea, TypeBadge, UnsubscribePage, WaitlistForm, WaitlistPage, WebSDKClient, WebSDKProvider, WebsiteSwitcher, buttonVariants, cn, detectElectronPlatform, fetchPublicJobPosting, fetchPublicJobPostings, formatDownloads, formatPrice2 as formatPrice, isValidUrl, useContentPage, useContentPages, useProduct, useProductConfig, usePublicJobPosting, usePublicJobPostings, useWebSDK, useWebSDKConfig };
9627
+ export { BlogListPage, BlogPostPage, Button, CareersApplyForm, CareersSubmissionForm, CaseStudiesListPage, CaseStudyPage, ChangelogPage, ContactPage, ContentRenderer, ContractsPage, DEFAULT_CONTACT_CATEGORIES, ECOSYSTEM_PRODUCTS, ElectronDownloadLink, Input, Label, LaunchCountdown, Markdown, NewsletterForm, NewsletterPage, PageHead, PartnersPage, PressKitPage, PricingPage, PricingSection, ProblemsSolvedSection, ProductCard, ProductProvider, ResourceLinks, RybbitAnalytics, Select, SocialLinks, StarRating, StoreBrowsePage, StoreHomePage, StoreProductDetailPage, Textarea, TypeBadge, UnsubscribePage, WaitlistForm, WaitlistPage, WebSDKClient, WebSDKProvider, WebsiteSwitcher, buttonVariants, cn, detectElectronPlatform, fetchPublicJobPosting, fetchPublicJobPostings, fetchPublicJobPostingsForSubmission, formatDownloads, formatPrice2 as formatPrice, isValidUrl, useContentPage, useContentPages, useProduct, useProductConfig, usePublicJobPosting, usePublicJobPostings, usePublicJobPostingsForSubmission, useWebSDK, useWebSDKConfig };
9566
9628
  //# sourceMappingURL=index.mjs.map
9567
9629
  //# sourceMappingURL=index.mjs.map