@uptrademedia/site-kit 1.1.2 → 1.1.4

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
@@ -6,7 +6,7 @@ export { SetupWizard } from './chunk-ZUYWXUHQ.mjs';
6
6
  export { clearRedirectCache, fetchRedirectRules, generateNextRedirects, handleManagedRedirects } from './chunk-TJUON7TH.mjs';
7
7
  import { SitemapSync } from './chunk-BQOFRBGZ.mjs';
8
8
  import { AnalyticsProvider } from './chunk-OW2C3ATV.mjs';
9
- import { EngageWidget } from './chunk-AQWUIXKC.mjs';
9
+ import { EngageWidget } from './chunk-DUH5S5MV.mjs';
10
10
  import { configureFormsApi } from './chunk-SMUFNQLM.mjs';
11
11
  import './chunk-4XPGGLVP.mjs';
12
12
  import React3, { createContext, useContext, useState, useRef, useCallback, useEffect, useMemo, Suspense } from 'react';
@@ -353,6 +353,7 @@ function SiteKitProvider({
353
353
  apiUrl,
354
354
  signalUrl,
355
355
  projectId,
356
+ recaptchaSiteKey,
356
357
  analytics,
357
358
  engage,
358
359
  forms,
@@ -361,6 +362,7 @@ function SiteKitProvider({
361
362
  }) {
362
363
  const finalApiUrl = apiUrl || "https://api.uptrademedia.com";
363
364
  const finalSignalUrl = signalUrl || "https://signal.uptrademedia.com";
365
+ const finalRecaptchaSiteKey = recaptchaSiteKey ?? (typeof process !== "undefined" ? process.env?.NEXT_PUBLIC_RECAPTCHA_SITE_KEY : void 0);
364
366
  if (!apiKey) {
365
367
  console.error("@uptrade/site-kit: No API key provided. Set NEXT_PUBLIC_UPTRADE_API_KEY environment variable.");
366
368
  }
@@ -368,6 +370,7 @@ function SiteKitProvider({
368
370
  window.__SITE_KIT_API_URL__ = finalApiUrl;
369
371
  window.__SITE_KIT_SIGNAL_URL__ = finalSignalUrl;
370
372
  window.__SITE_KIT_API_KEY__ = apiKey;
373
+ window.__SITE_KIT_RECAPTCHA_SITE_KEY__ = finalRecaptchaSiteKey;
371
374
  window.__SITE_KIT_DEBUG__ = debug;
372
375
  }
373
376
  useEffect(() => {