@usesuperflow/toolbar-staging 1.0.151 → 1.0.152
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/package.json +1 -1
- package/superflow.js +2 -2
- package/superflow.min.js +2 -2
package/package.json
CHANGED
package/superflow.js
CHANGED
|
@@ -2998,7 +2998,7 @@ class ss extends Qi{}ss.Encryptor=class extends ss{processBlock(t,e){const i=t,o
|
|
|
2998
2998
|
</div>
|
|
2999
2999
|
</div>
|
|
3000
3000
|
`:O``}
|
|
3001
|
-
${null===(m=this.snippylyUser)||void 0===m
|
|
3001
|
+
${(null===(m=this.snippylyUser)||void 0===m?void 0:m.isGuest)?O`
|
|
3002
3002
|
${this.addCommentMode?O``:O`
|
|
3003
3003
|
<div class="s-guest-mode-chip">
|
|
3004
3004
|
<div class="s-guest-mode-chip-title">Guest Mode</div>
|
|
@@ -3031,5 +3031,5 @@ class ss extends Qi{}ss.Encryptor=class extends ss{processBlock(t,e){const i=t,o
|
|
|
3031
3031
|
</div>
|
|
3032
3032
|
</div>
|
|
3033
3033
|
`:O``}
|
|
3034
|
-
|
|
3034
|
+
`:O``}
|
|
3035
3035
|
`:O``}}Us.styles=[As,Os],$s([it()],Us.prototype,"loadPlugin",null),$s([it()],Us.prototype,"comments",void 0),$s([it()],Us.prototype,"commentElement",void 0),$s([it()],Us.prototype,"contactElement",void 0),$s([it()],Us.prototype,"rewriterElement",void 0),$s([it()],Us.prototype,"presenceElement",void 0),$s([it()],Us.prototype,"commentSubscription",void 0),$s([it()],Us.prototype,"selectionElement",void 0),$s([it()],Us.prototype,"addCommentMode",void 0),$s([it()],Us.prototype,"showTourCommentTooltip",void 0),$s([it()],Us.prototype,"allFeatureDisabled",void 0),$s([it()],Us.prototype,"allFeatureRestricted",void 0),$s([it()],Us.prototype,"guestMode",void 0),$s([it()],Us.prototype,"_expanded",void 0),$s([it()],Us.prototype,"loading",void 0),$s([it()],Us.prototype,"signInError",void 0),$s([it()],Us.prototype,"snippylyUser",void 0),$s([it()],Us.prototype,"snippylyUserRole",void 0),$s([it()],Us.prototype,"_isPlanExpired",void 0),$s([it()],Us.prototype,"showOnboardingModal",void 0),$s([it()],Us.prototype,"showLiveDemoModal",void 0),$s([it()],Us.prototype,"showFigmaDemoModal",void 0),$s([it()],Us.prototype,"showGuestModeSignInModal",void 0),$s([it()],Us.prototype,"guestModeSignInModalConfig",void 0),$s([it()],Us.prototype,"showGuestModeNameModal",void 0),$s([it()],Us.prototype,"guestModeSignInBannerVisible",void 0),$s([it()],Us.prototype,"guestUserNameInput",void 0),$s([it()],Us.prototype,"guestUserModelOpened",void 0),$s([it()],Us.prototype,"guestUserNameUpdated",void 0),$s([it()],Us.prototype,"guestUserNameUpdateLoading",void 0),$s([et()],Us.prototype,"apiKey",null),$s([et()],Us.prototype,"projectId",void 0),$s([it()],Us.prototype,"staging",void 0),$s([et()],Us.prototype,"projectVersionKey",null),$s([it()],Us.prototype,"projectVersion",void 0),$s([et()],Us.prototype,"autoLocation",null),$s([it()],Us.prototype,"_menuOpenedId",void 0),$s([it()],Us.prototype,"copyLinkTooltip",void 0),$s([it()],Us.prototype,"invalidApiKey",void 0),$s([it()],Us.prototype,"documentId",void 0),$s([it()],Us.prototype,"_isUserGlobalContact",void 0),$s([it()],Us.prototype,"location",void 0),$s([it()],Us.prototype,"qrCode",void 0),$s([it()],Us.prototype,"showQrCode",void 0),$s([it()],Us.prototype,"customLoginEnabledLocally",void 0),$s([et()],Us.prototype,"customLoginEnabled",void 0),$s([it()],Us.prototype,"providedUser",void 0),$s([it()],Us.prototype,"autoTranslation",void 0),$s([it()],Us.prototype,"addCommentCount",void 0),$s([it()],Us.prototype,"isSigningInUserAdmin",void 0),$s([it()],Us.prototype,"_privateCommentModeEnabled",void 0),$s([it()],Us.prototype,"superflowToolbarMoved",void 0),$s([it()],Us.prototype,"_customerMetadata",void 0),$s([it()],Us.prototype,"logoMark",void 0),$s([it()],Us.prototype,"wordMark",void 0),$s([it()],Us.prototype,"_darkMode",void 0),(t=>{if(customElements.get("superflow-toolbar")||customElements.get("snippyly-plugin"))return;const e={allow:["sdkUrl","windowVariables","snippylyPlugin"],loaders:{windowVariables:()=>{const t=null===window||void 0===window?void 0:window.SUPERFLOW_TOOLBAR_API_KEY;return{valid:!!t,type:"windowVariables",apiKey:t,staging:!!(null===window||void 0===window?void 0:window.SUPERFLOW_TOOLBAR_STAGING),projectVersionKey:null===window||void 0===window?void 0:window.SUPERFLOW_TOOLBAR_PROJECT_VERSION_KEY,projectId:null===window||void 0===window?void 0:window.SUPERFLOW_TOOLBAR_PROJECT_ID,autoLocation:null===window||void 0===window?void 0:window.SUPERFLOW_TOOLBAR_AUTO_LOCATION}},snippylyPlugin:()=>{const t=document.querySelector("snippyly-plugin");if(!t)return;const e=t.getAttribute("apiKey"),i=!!t.getAttribute("staging"),o=t.getAttribute("projectVersionKey"),n=t.getAttribute("projectId"),s=t.getAttribute("autoLocation");return null==t||t.remove(),{valid:!!e,type:"snippylyPlugin",apiKey:e,staging:i,projectVersionKey:o,projectId:n,autoLocation:s}},sdkUrl:()=>{const t=document.getElementById("superflowToolbarScript");if(!t)return;const e=null==t?void 0:t.src,i=new URL(e).searchParams,o=i.has("apiKey")?i.get("apiKey"):void 0;return{valid:!!o,type:"sdkUrl",apiKey:o,staging:void 0,projectVersionKey:void 0,projectId:i.has("projectId")?i.get("projectId"):void 0,autoLocation:i.has("autoLocation")?i.get("autoLocation"):void 0}}},load:()=>{for(let t=0;t<e.allow.length;t++){const i=e.allow[t],o=e.loaders[i]();if(o&&o.valid)return o}}},i=()=>{try{const i=e.load();if(customElements.define("superflow-toolbar",t),i&&i.valid){(()=>{try{document.querySelectorAll("superflow-toolbar").forEach((t=>{t.remove()})),document.querySelectorAll("snippyly-plugin").forEach((t=>{t.remove()}))}catch(t){console.warn("Error in removeSuperflowToolbarTag: ",t)}})();const t={};return t.apiKey=i.apiKey,i.staging&&(t.staging="true"),i.projectVersionKey&&(t.projectVersionKey=i.projectVersionKey),i.projectId&&(t.projectId=i.projectId),(null==i?void 0:i.autoLocation)&&(t.autoLocation=i.autoLocation),void((t={})=>{try{const e=document.createElement("superflow-toolbar");Object.keys(t||{}).forEach((i=>{e.setAttribute(i,t[i])})),document.body.appendChild(e)}catch(t){console.warn("Error in loadSuperflowToolbarTag: ",t)}})(t)}}catch(t){console.warn("Error in initSuperflow: ",t)}};(null===document||void 0===document?void 0:document.body)?i():null===document||void 0===document||document.addEventListener("DOMContentLoaded",(()=>{i()}))})(Us);class zs extends Q{}customElements.get("snippyly-plugin")||customElements.define("snippyly-plugin",zs);export{zs as SnippylyPlugin,Us as SuperflowToolbar};
|
package/superflow.min.js
CHANGED
|
@@ -2997,7 +2997,7 @@ class Ds extends To{}Ds.Encryptor=class extends Ds{processBlock(t,e){const i=t,o
|
|
|
2997
2997
|
</div>
|
|
2998
2998
|
</div>
|
|
2999
2999
|
`:F``}
|
|
3000
|
-
${null===(m=this.snippylyUser)||void 0===m
|
|
3000
|
+
${(null===(m=this.snippylyUser)||void 0===m?void 0:m.isGuest)?F`
|
|
3001
3001
|
${this.addCommentMode?F``:F`
|
|
3002
3002
|
<div class="s-guest-mode-chip">
|
|
3003
3003
|
<div class="s-guest-mode-chip-title">Guest Mode</div>
|
|
@@ -3030,5 +3030,5 @@ class Ds extends To{}Ds.Encryptor=class extends Ds{processBlock(t,e){const i=t,o
|
|
|
3030
3030
|
</div>
|
|
3031
3031
|
</div>
|
|
3032
3032
|
`:F``}
|
|
3033
|
-
|
|
3033
|
+
`:F``}
|
|
3034
3034
|
`:F``}}vr.styles=[lr,cr],pr([ot()],vr.prototype,"loadPlugin",null),pr([ot()],vr.prototype,"comments",void 0),pr([ot()],vr.prototype,"commentElement",void 0),pr([ot()],vr.prototype,"contactElement",void 0),pr([ot()],vr.prototype,"rewriterElement",void 0),pr([ot()],vr.prototype,"presenceElement",void 0),pr([ot()],vr.prototype,"commentSubscription",void 0),pr([ot()],vr.prototype,"selectionElement",void 0),pr([ot()],vr.prototype,"addCommentMode",void 0),pr([ot()],vr.prototype,"showTourCommentTooltip",void 0),pr([ot()],vr.prototype,"allFeatureDisabled",void 0),pr([ot()],vr.prototype,"allFeatureRestricted",void 0),pr([ot()],vr.prototype,"guestMode",void 0),pr([ot()],vr.prototype,"_expanded",void 0),pr([ot()],vr.prototype,"loading",void 0),pr([ot()],vr.prototype,"signInError",void 0),pr([ot()],vr.prototype,"snippylyUser",void 0),pr([ot()],vr.prototype,"snippylyUserRole",void 0),pr([ot()],vr.prototype,"_isPlanExpired",void 0),pr([ot()],vr.prototype,"showOnboardingModal",void 0),pr([ot()],vr.prototype,"showLiveDemoModal",void 0),pr([ot()],vr.prototype,"showFigmaDemoModal",void 0),pr([ot()],vr.prototype,"showGuestModeSignInModal",void 0),pr([ot()],vr.prototype,"guestModeSignInModalConfig",void 0),pr([ot()],vr.prototype,"showGuestModeNameModal",void 0),pr([ot()],vr.prototype,"guestModeSignInBannerVisible",void 0),pr([ot()],vr.prototype,"guestUserNameInput",void 0),pr([ot()],vr.prototype,"guestUserModelOpened",void 0),pr([ot()],vr.prototype,"guestUserNameUpdated",void 0),pr([ot()],vr.prototype,"guestUserNameUpdateLoading",void 0),pr([it()],vr.prototype,"apiKey",null),pr([it()],vr.prototype,"projectId",void 0),pr([ot()],vr.prototype,"staging",void 0),pr([it()],vr.prototype,"projectVersionKey",null),pr([ot()],vr.prototype,"projectVersion",void 0),pr([it()],vr.prototype,"autoLocation",null),pr([ot()],vr.prototype,"_menuOpenedId",void 0),pr([ot()],vr.prototype,"copyLinkTooltip",void 0),pr([ot()],vr.prototype,"invalidApiKey",void 0),pr([ot()],vr.prototype,"documentId",void 0),pr([ot()],vr.prototype,"_isUserGlobalContact",void 0),pr([ot()],vr.prototype,"location",void 0),pr([ot()],vr.prototype,"qrCode",void 0),pr([ot()],vr.prototype,"showQrCode",void 0),pr([ot()],vr.prototype,"customLoginEnabledLocally",void 0),pr([it()],vr.prototype,"customLoginEnabled",void 0),pr([ot()],vr.prototype,"providedUser",void 0),pr([ot()],vr.prototype,"autoTranslation",void 0),pr([ot()],vr.prototype,"addCommentCount",void 0),pr([ot()],vr.prototype,"isSigningInUserAdmin",void 0),pr([ot()],vr.prototype,"_privateCommentModeEnabled",void 0),pr([ot()],vr.prototype,"superflowToolbarMoved",void 0),pr([ot()],vr.prototype,"_customerMetadata",void 0),pr([ot()],vr.prototype,"logoMark",void 0),pr([ot()],vr.prototype,"wordMark",void 0),pr([ot()],vr.prototype,"_darkMode",void 0),(t=>{if(customElements.get("superflow-toolbar")||customElements.get("snippyly-plugin"))return;const e={allow:["sdkUrl","windowVariables","snippylyPlugin"],loaders:{windowVariables:()=>{const t=null===window||void 0===window?void 0:window.SUPERFLOW_TOOLBAR_API_KEY;return{valid:!!t,type:"windowVariables",apiKey:t,staging:!!(null===window||void 0===window?void 0:window.SUPERFLOW_TOOLBAR_STAGING),projectVersionKey:null===window||void 0===window?void 0:window.SUPERFLOW_TOOLBAR_PROJECT_VERSION_KEY,projectId:null===window||void 0===window?void 0:window.SUPERFLOW_TOOLBAR_PROJECT_ID,autoLocation:null===window||void 0===window?void 0:window.SUPERFLOW_TOOLBAR_AUTO_LOCATION}},snippylyPlugin:()=>{const t=document.querySelector("snippyly-plugin");if(!t)return;const e=t.getAttribute("apiKey"),i=!!t.getAttribute("staging"),o=t.getAttribute("projectVersionKey"),n=t.getAttribute("projectId"),s=t.getAttribute("autoLocation");return null==t||t.remove(),{valid:!!e,type:"snippylyPlugin",apiKey:e,staging:i,projectVersionKey:o,projectId:n,autoLocation:s}},sdkUrl:()=>{const t=document.getElementById("superflowToolbarScript");if(!t)return;const e=null==t?void 0:t.src,i=new URL(e).searchParams,o=i.has("apiKey")?i.get("apiKey"):void 0;return{valid:!!o,type:"sdkUrl",apiKey:o,staging:void 0,projectVersionKey:void 0,projectId:i.has("projectId")?i.get("projectId"):void 0,autoLocation:i.has("autoLocation")?i.get("autoLocation"):void 0}}},load:()=>{for(let t=0;t<e.allow.length;t++){const i=e.allow[t],o=e.loaders[i]();if(o&&o.valid)return o}}},i=()=>{try{const i=e.load();if(customElements.define("superflow-toolbar",t),i&&i.valid){(()=>{try{document.querySelectorAll("superflow-toolbar").forEach((t=>{t.remove()})),document.querySelectorAll("snippyly-plugin").forEach((t=>{t.remove()}))}catch(t){console.warn("Error in removeSuperflowToolbarTag: ",t)}})();const t={};return t.apiKey=i.apiKey,i.staging&&(t.staging="true"),i.projectVersionKey&&(t.projectVersionKey=i.projectVersionKey),i.projectId&&(t.projectId=i.projectId),(null==i?void 0:i.autoLocation)&&(t.autoLocation=i.autoLocation),void((t={})=>{try{const e=document.createElement("superflow-toolbar");Object.keys(t||{}).forEach((i=>{e.setAttribute(i,t[i])})),document.body.appendChild(e)}catch(t){console.warn("Error in loadSuperflowToolbarTag: ",t)}})(t)}}catch(t){console.warn("Error in initSuperflow: ",t)}};(null===document||void 0===document?void 0:document.body)?i():null===document||void 0===document||document.addEventListener("DOMContentLoaded",(()=>{i()}))})(vr);class mr extends X{}customElements.get("snippyly-plugin")||customElements.define("snippyly-plugin",mr),t.SnippylyPlugin=mr,t.SuperflowToolbar=vr,Object.defineProperty(t,"u",{value:!0})}({});
|