@sparkvault/sdk 1.10.1 → 1.11.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.
@@ -7049,12 +7049,20 @@ class UploadModalContainer {
7049
7049
  this.elements.modal.classList.add('svu-with-sidebar');
7050
7050
  this.elements.modal.appendChild(sidebar);
7051
7051
  this.elements.sidebar = sidebar;
7052
+ // Hide header when sidebar is shown (sidebar has its own logo)
7053
+ if (this.headerElement) {
7054
+ this.headerElement.style.display = 'none';
7055
+ }
7052
7056
  }
7053
7057
  else if (!show && this.elements.sidebar) {
7054
7058
  // Remove sidebar
7055
7059
  this.elements.modal.classList.remove('svu-with-sidebar');
7056
7060
  this.elements.sidebar.remove();
7057
7061
  this.elements.sidebar = null;
7062
+ // Show header again when sidebar is hidden
7063
+ if (this.headerElement) {
7064
+ this.headerElement.style.display = '';
7065
+ }
7058
7066
  }
7059
7067
  }
7060
7068
  createSecuritySidebar() {
@@ -7992,6 +8000,7 @@ class UploadRenderer {
7992
8000
  from their SparkVault dashboard. Save the Ingot ID above for your records.
7993
8001
  </p>
7994
8002
 
8003
+ ${this.options.hideUploadAnother ? '' : `
7995
8004
  <button class="svu-btn svu-btn-secondary">
7996
8005
  <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
7997
8006
  <path d="M1 4v6h6M23 20v-6h-6"/>
@@ -7999,6 +8008,7 @@ class UploadRenderer {
7999
8008
  </svg>
8000
8009
  Upload Another File
8001
8010
  </button>
8011
+ `}
8002
8012
  `;
8003
8013
  // Copy button handler
8004
8014
  const copyBtn = div.querySelector('.svu-copy-btn');
@@ -8007,7 +8017,7 @@ class UploadRenderer {
8007
8017
  navigator.clipboard.writeText(result.ingotId);
8008
8018
  });
8009
8019
  }
8010
- // Upload another handler
8020
+ // Upload another handler (only if button exists)
8011
8021
  const uploadAnotherBtn = div.querySelector('.svu-btn-secondary');
8012
8022
  if (uploadAnotherBtn) {
8013
8023
  uploadAnotherBtn.addEventListener('click', () => {