@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 +8 -18
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm2017.js +8 -18
- package/dist/index.esm2017.js.map +1 -1
- package/dist/index.node.cjs.js +8 -18
- package/dist/index.node.cjs.js.map +1 -1
- package/dist/node-esm/index.node.esm.js +8 -18
- package/dist/node-esm/index.node.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -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.
|
|
814
|
+
bannerEl.style.alignItems = 'center';
|
|
815
815
|
}
|
|
816
816
|
function setupIconStyles(prependIcon, iconId) {
|
|
817
817
|
prependIcon.setAttribute('width', '24');
|
|
@@ -824,7 +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.
|
|
827
|
+
closeBtn.style.marginLeft = '16px';
|
|
828
|
+
closeBtn.style.fontSize = '24px';
|
|
828
829
|
closeBtn.innerHTML = ' ×';
|
|
829
830
|
closeBtn.onclick = () => {
|
|
830
831
|
previouslyDismissed = true;
|
|
@@ -836,17 +837,10 @@ function updateEmulatorBanner(name, isRunningEmulator) {
|
|
|
836
837
|
learnMoreLink.setAttribute('id', learnMoreId);
|
|
837
838
|
learnMoreLink.innerText = 'Learn more';
|
|
838
839
|
learnMoreLink.href =
|
|
839
|
-
'
|
|
840
|
+
'https://firebase.google.com/docs/studio/preview-apps#preview-backend';
|
|
840
841
|
learnMoreLink.setAttribute('target', '__blank');
|
|
841
842
|
learnMoreLink.style.paddingLeft = '5px';
|
|
842
|
-
|
|
843
|
-
function setupOpenExternal(svgElement, id) {
|
|
844
|
-
svgElement.setAttribute('viewBox', '0 0 16 16');
|
|
845
|
-
svgElement.setAttribute('fill', 'none');
|
|
846
|
-
svgElement.setAttribute('id', id);
|
|
847
|
-
svgElement.style.width = '16px';
|
|
848
|
-
svgElement.style.marginLeft = '4px';
|
|
849
|
-
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"/>`;
|
|
843
|
+
learnMoreLink.style.textDecoration = 'underline';
|
|
850
844
|
}
|
|
851
845
|
function setupDom() {
|
|
852
846
|
const banner = getOrCreateEl(bannerId);
|
|
@@ -858,22 +852,18 @@ function updateEmulatorBanner(name, isRunningEmulator) {
|
|
|
858
852
|
const prependIconId = prefixedId('preprendIcon');
|
|
859
853
|
const prependIcon = document.getElementById(prependIconId) ||
|
|
860
854
|
document.createElementNS('http://www.w3.org/2000/svg', 'svg');
|
|
861
|
-
const openExternalIconId = prefixedId('openexternal');
|
|
862
|
-
const openExternalIcon = document.getElementById(openExternalIconId) ||
|
|
863
|
-
document.createElementNS('http://www.w3.org/2000/svg', 'svg');
|
|
864
855
|
if (banner.created) {
|
|
865
856
|
// update styles
|
|
866
857
|
const bannerEl = banner.element;
|
|
867
858
|
setupBannerStyles(bannerEl);
|
|
868
859
|
setupLinkStyles(learnMoreLink, learnMoreId);
|
|
869
|
-
setupOpenExternal(openExternalIcon, openExternalIconId);
|
|
870
860
|
const closeBtn = setupCloseBtn();
|
|
871
861
|
setupIconStyles(prependIcon, prependIconId);
|
|
872
|
-
bannerEl.append(prependIcon, firebaseText, learnMoreLink,
|
|
862
|
+
bannerEl.append(prependIcon, firebaseText, learnMoreLink, closeBtn);
|
|
873
863
|
document.body.appendChild(bannerEl);
|
|
874
864
|
}
|
|
875
865
|
if (showError) {
|
|
876
|
-
firebaseText.innerText = `
|
|
866
|
+
firebaseText.innerText = `Preview backend disconnected.`;
|
|
877
867
|
prependIcon.innerHTML = `<g clip-path="url(#clip0_6013_33858)">
|
|
878
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"/>
|
|
879
869
|
</g>
|
|
@@ -892,7 +882,7 @@ function updateEmulatorBanner(name, isRunningEmulator) {
|
|
|
892
882
|
<rect width="24" height="24" fill="white"/>
|
|
893
883
|
</clipPath>
|
|
894
884
|
</defs>`;
|
|
895
|
-
firebaseText.innerText = '
|
|
885
|
+
firebaseText.innerText = 'Preview backend running in this workspace.';
|
|
896
886
|
}
|
|
897
887
|
firebaseText.setAttribute('id', firebaseTextId);
|
|
898
888
|
}
|