@neofaceid/web-sdk 1.8.7 → 1.9.0

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.
@@ -1135,7 +1135,10 @@ class NeoFaceError extends Error {
1135
1135
  }
1136
1136
  }
1137
1137
  const __vite_import_meta_env__$1 = {};
1138
- const API_BASE_URL = (__vite_import_meta_env__$1 == null ? void 0 : __vite_import_meta_env__$1.VITE_API_BASE_URL) || "http://localhost:8000";
1138
+ const API_BASE_URL = __vite_import_meta_env__$1 == null ? void 0 : __vite_import_meta_env__$1.VITE_API_BASE_URL;
1139
+ if (!API_BASE_URL) {
1140
+ console.error("[NeoFaceID SDK] VITE_API_BASE_URL não está configurado. Configure no arquivo .env");
1141
+ }
1139
1142
  const REQUEST_TIMEOUT = 1e4;
1140
1143
  const ensureSecureContext = () => {
1141
1144
  const isLocalhost = window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1" || window.location.hostname === "";
@@ -3151,7 +3154,7 @@ function BiometricRegistrationModal({
3151
3154
  stepProgress > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "progress-bar", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "progress-fill", style: { width: `${stepProgress}%` } }) })
3152
3155
  ] }),
3153
3156
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "branding-small", children: [
3154
- /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: "/public/logo-icone.png", alt: "NeoFaceId", className: "brand-logo-small" }),
3157
+ /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: "/logo-icone.png", alt: "NeoFaceId", className: "brand-logo-small" }),
3155
3158
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: "NeoFaceId by" }),
3156
3159
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "brand-name", children: "OCTA" })
3157
3160
  ] })
@@ -4442,7 +4445,7 @@ class BiometricStatusOverlay {
4442
4445
  <div class="neofaceid-logo-wrapper">
4443
4446
  ${showLogo ? `
4444
4447
  <img
4445
- src="/logo-icone-no-backgorund.png"
4448
+ src="/logo-icone-no-background.png"
4446
4449
  alt="NeoFaceId"
4447
4450
  class="neofaceid-logo ${isPulsing ? "pulsing" : ""}"
4448
4451
  onerror="this.style.display='none'"
@@ -4809,7 +4812,7 @@ class EmailPasswordModal {
4809
4812
 
4810
4813
  <!-- Branding -->
4811
4814
  <div class="neoface-email-branding">
4812
- <img src="/public/logo-icone-no-backgorund.png" alt="NeoFaceId" class="neoface-email-brand-logo" onerror="this.style.display='none'" />
4815
+ <img src="/logo-icone-no-background.png" alt="NeoFaceId" class="neoface-email-brand-logo" onerror="this.style.display='none'" />
4813
4816
  <span>NeoFaceId by</span>
4814
4817
  <span class="neoface-email-brand-name">OCTA</span>
4815
4818
  </div>
@@ -5711,8 +5714,8 @@ const biometricDetection = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
5711
5714
  initializeBiometricDetection,
5712
5715
  isAdvancedDetectionAvailable
5713
5716
  }, Symbol.toStringTag, { value: "Module" }));
5714
- const VERSION = "1.8.7";
5715
- const RELEASE_DATE = "2025-12-30";
5717
+ const VERSION = "1.9.0";
5718
+ const RELEASE_DATE = "2026-01-20";
5716
5719
  class OnboardingCaptureModal {
5717
5720
  constructor(options) {
5718
5721
  __publicField(this, "overlay", null);
@@ -5943,9 +5946,15 @@ class NeoFaceID {
5943
5946
  __publicField(this, "signature");
5944
5947
  __publicField(this, "sessionData");
5945
5948
  this.appToken = config.appToken;
5946
- this.baseUrl = config.baseUrl || (__vite_import_meta_env__ == null ? void 0 : __vite_import_meta_env__.VITE_API_BASE_URL) || "http://localhost:8000";
5949
+ this.baseUrl = config.baseUrl || (__vite_import_meta_env__ == null ? void 0 : __vite_import_meta_env__.VITE_API_BASE_URL);
5947
5950
  this.signature = config.signature;
5948
5951
  this.sessionData = config.sessionData;
5952
+ if (!this.baseUrl) {
5953
+ throw new NeoFaceError(
5954
+ "baseUrl não configurado. Passe via config ou configure VITE_API_BASE_URL no .env",
5955
+ ErrorType.VALIDATION_ERROR
5956
+ );
5957
+ }
5949
5958
  if (this.signature && !this.validateSignatureFormat(this.signature)) {
5950
5959
  throw new NeoFaceError(
5951
5960
  "Invalid signature format. Expected HMAC-SHA256 hex string (minimum 64 characters)",
@@ -6614,7 +6623,7 @@ class DocumentCaptureModal {
6614
6623
  renderBranding() {
6615
6624
  return `
6616
6625
  <div class="neoface-doc-branding">
6617
- <img src="/logo-icone-no-backgorund.png"
6626
+ <img src="/logo-icone-no-background.png"
6618
6627
  alt="NeoFaceId" class="neoface-doc-brand-icon"
6619
6628
  onerror="this.style.display='none'" />
6620
6629
  <span class="neoface-doc-brand-name-text">NeoFaceId</span>