@firebase/util 1.11.0-firebase-studio-sdk-integration.dbac496fa → 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.
@@ -811,7 +811,7 @@ function updateEmulatorBanner(name, isRunningEmulator) {
811
811
  bannerEl.style.left = '5px';
812
812
  bannerEl.style.padding = '.5em';
813
813
  bannerEl.style.borderRadius = '5px';
814
- bannerEl.style.alignContent = 'center';
814
+ bannerEl.style.alignItems = 'center';
815
815
  }
816
816
  function setupIconStyles(prependIcon, iconId) {
817
817
  prependIcon.setAttribute('width', '24');
@@ -824,8 +824,8 @@ function updateEmulatorBanner(name, isRunningEmulator) {
824
824
  function setupCloseBtn() {
825
825
  const closeBtn = document.createElement('span');
826
826
  closeBtn.style.cursor = 'pointer';
827
- closeBtn.style.paddingLeft = '5px';
828
- closeBtn.style.width = '10px';
827
+ closeBtn.style.marginLeft = '16px';
828
+ closeBtn.style.fontSize = '24px';
829
829
  closeBtn.innerHTML = ' ×';
830
830
  closeBtn.onclick = () => {
831
831
  previouslyDismissed = true;
@@ -833,23 +833,14 @@ function updateEmulatorBanner(name, isRunningEmulator) {
833
833
  };
834
834
  return closeBtn;
835
835
  }
836
- function setupLinkStyles(learnMoreLink, learnMoreId, svgElement) {
836
+ function setupLinkStyles(learnMoreLink, learnMoreId) {
837
837
  learnMoreLink.setAttribute('id', learnMoreId);
838
838
  learnMoreLink.innerText = 'Learn more';
839
839
  learnMoreLink.href =
840
- 'http://firebase.google.com/docs/studio/deploy-app#emulator ';
840
+ 'https://firebase.google.com/docs/studio/preview-apps#preview-backend';
841
841
  learnMoreLink.setAttribute('target', '__blank');
842
842
  learnMoreLink.style.paddingLeft = '5px';
843
843
  learnMoreLink.style.textDecoration = 'underline';
844
- learnMoreLink.appendChild(svgElement);
845
- }
846
- function setupOpenExternal(svgElement, id) {
847
- svgElement.setAttribute('viewBox', '0 0 16 16');
848
- svgElement.setAttribute('fill', 'none');
849
- svgElement.setAttribute('id', id);
850
- svgElement.style.width = '16px';
851
- svgElement.style.marginLeft = '4px';
852
- 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"/>`;
853
844
  }
854
845
  function setupDom() {
855
846
  const banner = getOrCreateEl(bannerId);
@@ -861,22 +852,18 @@ function updateEmulatorBanner(name, isRunningEmulator) {
861
852
  const prependIconId = prefixedId('preprendIcon');
862
853
  const prependIcon = document.getElementById(prependIconId) ||
863
854
  document.createElementNS('http://www.w3.org/2000/svg', 'svg');
864
- const openExternalIconId = prefixedId('openexternal');
865
- const openExternalIcon = document.getElementById(openExternalIconId) ||
866
- document.createElementNS('http://www.w3.org/2000/svg', 'svg');
867
855
  if (banner.created) {
868
856
  // update styles
869
857
  const bannerEl = banner.element;
870
858
  setupBannerStyles(bannerEl);
871
- setupOpenExternal(openExternalIcon, openExternalIconId);
872
- setupLinkStyles(learnMoreLink, learnMoreId, openExternalIcon);
859
+ setupLinkStyles(learnMoreLink, learnMoreId);
873
860
  const closeBtn = setupCloseBtn();
874
861
  setupIconStyles(prependIcon, prependIconId);
875
- bannerEl.append(prependIcon, firebaseText, learnMoreLink, openExternalIcon, closeBtn);
862
+ bannerEl.append(prependIcon, firebaseText, learnMoreLink, closeBtn);
876
863
  document.body.appendChild(bannerEl);
877
864
  }
878
865
  if (showError) {
879
- firebaseText.innerText = `Not using emulated backend.`;
866
+ firebaseText.innerText = `Preview backend disconnected.`;
880
867
  prependIcon.innerHTML = `<g clip-path="url(#clip0_6013_33858)">
881
868
  <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"/>
882
869
  </g>
@@ -895,7 +882,7 @@ function updateEmulatorBanner(name, isRunningEmulator) {
895
882
  <rect width="24" height="24" fill="white"/>
896
883
  </clipPath>
897
884
  </defs>`;
898
- firebaseText.innerText = 'Using emulated backend';
885
+ firebaseText.innerText = 'Preview backend running in this workspace.';
899
886
  }
900
887
  firebaseText.setAttribute('id', firebaseTextId);
901
888
  }