smartcomply-web-sdk 1.0.79 → 1.0.80

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.
@@ -5780,7 +5780,7 @@ var SmartComplySDK = (() => {
5780
5780
  * CDN tag they installed with (e.g. @1, which floats to the latest
5781
5781
  * matching release) actually resolved to the version they expect.
5782
5782
  */
5783
- _SmartComply.VERSION = "1.0.79";
5783
+ _SmartComply.VERSION = "1.0.80";
5784
5784
  var SmartComply = _SmartComply;
5785
5785
 
5786
5786
  // src/flow/theme.ts
@@ -7239,6 +7239,7 @@ var SmartComplySDK = (() => {
7239
7239
  this.stepLabel = null;
7240
7240
  this.stageDots = null;
7241
7241
  this.brandLabel = null;
7242
+ this.brandLogoImg = null;
7242
7243
  // State
7243
7244
  this.sdkConfig = null;
7244
7245
  this.currentStep = "loading";
@@ -7539,6 +7540,10 @@ var SmartComplySDK = (() => {
7539
7540
  if (this.brandLabel && this.sdkConfig.brand_name) {
7540
7541
  this.brandLabel.textContent = this.sdkConfig.brand_name;
7541
7542
  }
7543
+ if (this.brandLogoImg && this.sdkConfig.logo_url) {
7544
+ this.brandLogoImg.src = this.sdkConfig.logo_url;
7545
+ this.brandLogoImg.style.display = "block";
7546
+ }
7542
7547
  if (this.isDestroyed) return;
7543
7548
  this.showStep("welcome");
7544
7549
  } catch (err) {
@@ -7683,8 +7688,21 @@ var SmartComplySDK = (() => {
7683
7688
  color:${this.theme.primary};
7684
7689
  background:linear-gradient(135deg,${this.theme.primary}22,${this.theme.primaryGlow});
7685
7690
  border:1.5px solid ${this.theme.primary}33;
7691
+ overflow:hidden;
7686
7692
  `;
7687
- iconWrap.innerHTML = icon(isDocFlow ? "id-card" : "shield", 24);
7693
+ const logoUrl = this.sdkConfig?.logo_url;
7694
+ if (logoUrl) {
7695
+ const logoImg = document.createElement("img");
7696
+ logoImg.src = logoUrl;
7697
+ logoImg.alt = "";
7698
+ logoImg.style.cssText = "width:100%;height:100%;object-fit:contain;padding:6px;";
7699
+ logoImg.addEventListener("error", () => {
7700
+ iconWrap.innerHTML = icon(isDocFlow ? "id-card" : "shield", 24);
7701
+ });
7702
+ iconWrap.appendChild(logoImg);
7703
+ } else {
7704
+ iconWrap.innerHTML = icon(isDocFlow ? "id-card" : "shield", 24);
7705
+ }
7688
7706
  topRow.appendChild(iconWrap);
7689
7707
  const badge = document.createElement("div");
7690
7708
  badge.style.cssText = `
@@ -8884,6 +8902,16 @@ var SmartComplySDK = (() => {
8884
8902
  }
8885
8903
  });
8886
8904
  leftArea.appendChild(this.headerBackBtn);
8905
+ this.brandLogoImg = document.createElement("img");
8906
+ this.brandLogoImg.alt = "";
8907
+ this.brandLogoImg.style.cssText = `
8908
+ height:28px;max-width:120px;object-fit:contain;flex-shrink:0;
8909
+ display:none;
8910
+ `;
8911
+ this.brandLogoImg.addEventListener("error", () => {
8912
+ if (this.brandLogoImg) this.brandLogoImg.style.display = "none";
8913
+ });
8914
+ leftArea.appendChild(this.brandLogoImg);
8887
8915
  this.brandLabel = document.createElement("div");
8888
8916
  this.brandLabel.setAttribute("aria-label", "Verification provider");
8889
8917
  this.brandLabel.style.cssText = `