@firebase/util 1.11.0-firebase-studio-sdk-integration.a528caf5f → 1.11.0-firebase-studio-sdk-integration.0615f555a

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.cjs.js CHANGED
@@ -815,7 +815,7 @@ function updateEmulatorBanner(name, isRunningEmulator) {
815
815
  bannerEl.style.left = '5px';
816
816
  bannerEl.style.padding = '.5em';
817
817
  bannerEl.style.borderRadius = '5px';
818
- bannerEl.style.alignContent = 'center';
818
+ bannerEl.style.alignItems = 'center';
819
819
  }
820
820
  function setupIconStyles(prependIcon, iconId) {
821
821
  prependIcon.setAttribute('width', '24');
@@ -828,7 +828,8 @@ function updateEmulatorBanner(name, isRunningEmulator) {
828
828
  function setupCloseBtn() {
829
829
  const closeBtn = document.createElement('span');
830
830
  closeBtn.style.cursor = 'pointer';
831
- closeBtn.style.paddingLeft = '5px';
831
+ closeBtn.style.marginLeft = '16px';
832
+ closeBtn.style.fontSize = '24px';
832
833
  closeBtn.innerHTML = ' ×';
833
834
  closeBtn.onclick = () => {
834
835
  previouslyDismissed = true;
@@ -840,17 +841,10 @@ function updateEmulatorBanner(name, isRunningEmulator) {
840
841
  learnMoreLink.setAttribute('id', learnMoreId);
841
842
  learnMoreLink.innerText = 'Learn more';
842
843
  learnMoreLink.href =
843
- 'http://firebase.google.com/docs/studio/deploy-app#emulator ';
844
+ 'https://firebase.google.com/docs/studio/preview-apps#preview-backend';
844
845
  learnMoreLink.setAttribute('target', '__blank');
845
846
  learnMoreLink.style.paddingLeft = '5px';
846
- }
847
- function setupOpenExternal(svgElement, id) {
848
- svgElement.setAttribute('viewBox', '0 0 16 16');
849
- svgElement.setAttribute('fill', 'none');
850
- svgElement.setAttribute('id', id);
851
- svgElement.style.width = '16px';
852
- svgElement.style.marginLeft = '4px';
853
- svgElement.innerHTML = `<path fill-rule="evenodd" clip-rule="evenodd" d="M12.6667 12.6667H3.33333V3.33333H8V2H3.33333C2.59333 2 2 2.6 2 3.33333V12.6667C2 13.4 2.59333 14 3.33333 14H12.6667C13.4 14 14 13.4 14 12.6667V8H12.6667V12.6667ZM9.33333 2V3.33333H11.7267L5.17333 9.88667L6.11333 10.8267L12.6667 4.27333V6.66667H14V2H9.33333Z" fill="#212121"/>`;
847
+ learnMoreLink.style.textDecoration = 'underline';
854
848
  }
855
849
  function setupDom() {
856
850
  const banner = getOrCreateEl(bannerId);
@@ -862,22 +856,18 @@ function updateEmulatorBanner(name, isRunningEmulator) {
862
856
  const prependIconId = prefixedId('preprendIcon');
863
857
  const prependIcon = document.getElementById(prependIconId) ||
864
858
  document.createElementNS('http://www.w3.org/2000/svg', 'svg');
865
- const openExternalIconId = prefixedId('openexternal');
866
- const openExternalIcon = document.getElementById(openExternalIconId) ||
867
- document.createElementNS('http://www.w3.org/2000/svg', 'svg');
868
859
  if (banner.created) {
869
860
  // update styles
870
861
  const bannerEl = banner.element;
871
862
  setupBannerStyles(bannerEl);
872
863
  setupLinkStyles(learnMoreLink, learnMoreId);
873
- setupOpenExternal(openExternalIcon, openExternalIconId);
874
864
  const closeBtn = setupCloseBtn();
875
865
  setupIconStyles(prependIcon, prependIconId);
876
- bannerEl.append(prependIcon, firebaseText, learnMoreLink, openExternalIcon, closeBtn);
866
+ bannerEl.append(prependIcon, firebaseText, learnMoreLink, closeBtn);
877
867
  document.body.appendChild(bannerEl);
878
868
  }
879
869
  if (showError) {
880
- firebaseText.innerText = `Not using emulated backend.`;
870
+ firebaseText.innerText = `Preview backend disconnected.`;
881
871
  prependIcon.innerHTML = `<g clip-path="url(#clip0_6013_33858)">
882
872
  <path d="M4.8 17.6L12 5.6L19.2 17.6H4.8ZM6.91667 16.4H17.0833L12 7.93333L6.91667 16.4ZM12 15.6C12.1667 15.6 12.3056 15.5444 12.4167 15.4333C12.5389 15.3111 12.6 15.1667 12.6 15C12.6 14.8333 12.5389 14.6944 12.4167 14.5833C12.3056 14.4611 12.1667 14.4 12 14.4C11.8333 14.4 11.6889 14.4611 11.5667 14.5833C11.4556 14.6944 11.4 14.8333 11.4 15C11.4 15.1667 11.4556 15.3111 11.5667 15.4333C11.6889 15.5444 11.8333 15.6 12 15.6ZM11.4 13.6H12.6V10.4H11.4V13.6Z" fill="#212121"/>
883
873
  </g>
@@ -896,7 +886,7 @@ function updateEmulatorBanner(name, isRunningEmulator) {
896
886
  <rect width="24" height="24" fill="white"/>
897
887
  </clipPath>
898
888
  </defs>`;
899
- firebaseText.innerText = 'Using emulated backend';
889
+ firebaseText.innerText = 'Preview backend running in this workspace.';
900
890
  }
901
891
  firebaseText.setAttribute('id', firebaseTextId);
902
892
  }