@usesuperflow/toolbar-staging 1.0.71 → 1.0.72
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 +1 -1
- package/superflow.min.js +1 -1
package/package.json
CHANGED
package/superflow.js
CHANGED
|
@@ -1994,4 +1994,4 @@ class cn extends ii{}cn.Encryptor=class extends cn{processBlock(t,e){const i=t,o
|
|
|
1994
1994
|
</div>
|
|
1995
1995
|
</div>
|
|
1996
1996
|
`:H``}
|
|
1997
|
-
`:H``}}_n.styles=[Hn,Bn],Tn([it()],_n.prototype,"loadPlugin",null),Tn([it()],_n.prototype,"comments",void 0),Tn([it()],_n.prototype,"commentElement",void 0),Tn([it()],_n.prototype,"contactElement",void 0),Tn([it()],_n.prototype,"rewriterElement",void 0),Tn([it()],_n.prototype,"presenceElement",void 0),Tn([it()],_n.prototype,"commentSubscription",void 0),Tn([it()],_n.prototype,"selectionElement",void 0),Tn([it()],_n.prototype,"addCommentMode",void 0),Tn([it()],_n.prototype,"showTourCommentTooltip",void 0),Tn([it()],_n.prototype,"allFeatureDisabled",void 0),Tn([it()],_n.prototype,"allFeatureRestricted",void 0),Tn([it()],_n.prototype,"_expanded",void 0),Tn([it()],_n.prototype,"loading",void 0),Tn([it()],_n.prototype,"signInError",void 0),Tn([it()],_n.prototype,"snippylyUser",void 0),Tn([it()],_n.prototype,"snippylyUserRole",void 0),Tn([it()],_n.prototype,"_isPlanExpired",void 0),Tn([it()],_n.prototype,"showOnboardingModal",void 0),Tn([it()],_n.prototype,"showLiveDemoModal",void 0),Tn([it()],_n.prototype,"showFigmaDemoModal",void 0),Tn([et()],_n.prototype,"apiKey",null),Tn([et()],_n.prototype,"projectId",void 0),Tn([it()],_n.prototype,"staging",void 0),Tn([et()],_n.prototype,"projectVersionKey",null),Tn([it()],_n.prototype,"projectVersion",void 0),Tn([it()],_n.prototype,"_menuOpenedId",void 0),Tn([it()],_n.prototype,"copyLinkTooltip",void 0),Tn([it()],_n.prototype,"invalidApiKey",void 0),Tn([it()],_n.prototype,"documentId",void 0),Tn([it()],_n.prototype,"_isUserGlobalContact",void 0),Tn([it()],_n.prototype,"location",void 0),Tn([it()],_n.prototype,"viewMode",void 0),Tn([it()],_n.prototype,"qrCode",void 0),Tn([it()],_n.prototype,"showQrCode",void 0),Tn([it()],_n.prototype,"customLoginEnabledLocally",void 0),Tn([it()],_n.prototype,"customLoginEnabled",void 0),Tn([it()],_n.prototype,"providedUser",void 0),Tn([it()],_n.prototype,"autoTranslation",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}},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");return null==t||t.remove(),{valid:!!e,type:"snippylyPlugin",apiKey:e,staging:i,projectVersionKey:o,projectId:n}},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}}},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(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
|
|
1997
|
+
`:H``}}_n.styles=[Hn,Bn],Tn([it()],_n.prototype,"loadPlugin",null),Tn([it()],_n.prototype,"comments",void 0),Tn([it()],_n.prototype,"commentElement",void 0),Tn([it()],_n.prototype,"contactElement",void 0),Tn([it()],_n.prototype,"rewriterElement",void 0),Tn([it()],_n.prototype,"presenceElement",void 0),Tn([it()],_n.prototype,"commentSubscription",void 0),Tn([it()],_n.prototype,"selectionElement",void 0),Tn([it()],_n.prototype,"addCommentMode",void 0),Tn([it()],_n.prototype,"showTourCommentTooltip",void 0),Tn([it()],_n.prototype,"allFeatureDisabled",void 0),Tn([it()],_n.prototype,"allFeatureRestricted",void 0),Tn([it()],_n.prototype,"_expanded",void 0),Tn([it()],_n.prototype,"loading",void 0),Tn([it()],_n.prototype,"signInError",void 0),Tn([it()],_n.prototype,"snippylyUser",void 0),Tn([it()],_n.prototype,"snippylyUserRole",void 0),Tn([it()],_n.prototype,"_isPlanExpired",void 0),Tn([it()],_n.prototype,"showOnboardingModal",void 0),Tn([it()],_n.prototype,"showLiveDemoModal",void 0),Tn([it()],_n.prototype,"showFigmaDemoModal",void 0),Tn([et()],_n.prototype,"apiKey",null),Tn([et()],_n.prototype,"projectId",void 0),Tn([it()],_n.prototype,"staging",void 0),Tn([et()],_n.prototype,"projectVersionKey",null),Tn([it()],_n.prototype,"projectVersion",void 0),Tn([it()],_n.prototype,"_menuOpenedId",void 0),Tn([it()],_n.prototype,"copyLinkTooltip",void 0),Tn([it()],_n.prototype,"invalidApiKey",void 0),Tn([it()],_n.prototype,"documentId",void 0),Tn([it()],_n.prototype,"_isUserGlobalContact",void 0),Tn([it()],_n.prototype,"location",void 0),Tn([it()],_n.prototype,"viewMode",void 0),Tn([it()],_n.prototype,"qrCode",void 0),Tn([it()],_n.prototype,"showQrCode",void 0),Tn([it()],_n.prototype,"customLoginEnabledLocally",void 0),Tn([it()],_n.prototype,"customLoginEnabled",void 0),Tn([it()],_n.prototype,"providedUser",void 0),Tn([it()],_n.prototype,"autoTranslation",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}},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");return null==t||t.remove(),{valid:!!e,type:"snippylyPlugin",apiKey:e,staging:i,projectVersionKey:o,projectId:n}},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}}},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),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()}))})(_n);class On extends X{}customElements.get("snippyly-plugin")||customElements.define("snippyly-plugin",On);export{On as SnippylyPlugin,_n as SuperflowToolbar};
|
package/superflow.min.js
CHANGED
|
@@ -1993,4 +1993,4 @@ class Fn extends Si{}Fn.Encryptor=class extends Fn{processBlock(t,e){const i=t,o
|
|
|
1993
1993
|
</div>
|
|
1994
1994
|
</div>
|
|
1995
1995
|
`:B``}
|
|
1996
|
-
`:B``}}ss.styles=[ts,es],ns([ot()],ss.prototype,"loadPlugin",null),ns([ot()],ss.prototype,"comments",void 0),ns([ot()],ss.prototype,"commentElement",void 0),ns([ot()],ss.prototype,"contactElement",void 0),ns([ot()],ss.prototype,"rewriterElement",void 0),ns([ot()],ss.prototype,"presenceElement",void 0),ns([ot()],ss.prototype,"commentSubscription",void 0),ns([ot()],ss.prototype,"selectionElement",void 0),ns([ot()],ss.prototype,"addCommentMode",void 0),ns([ot()],ss.prototype,"showTourCommentTooltip",void 0),ns([ot()],ss.prototype,"allFeatureDisabled",void 0),ns([ot()],ss.prototype,"allFeatureRestricted",void 0),ns([ot()],ss.prototype,"_expanded",void 0),ns([ot()],ss.prototype,"loading",void 0),ns([ot()],ss.prototype,"signInError",void 0),ns([ot()],ss.prototype,"snippylyUser",void 0),ns([ot()],ss.prototype,"snippylyUserRole",void 0),ns([ot()],ss.prototype,"_isPlanExpired",void 0),ns([ot()],ss.prototype,"showOnboardingModal",void 0),ns([ot()],ss.prototype,"showLiveDemoModal",void 0),ns([ot()],ss.prototype,"showFigmaDemoModal",void 0),ns([it()],ss.prototype,"apiKey",null),ns([it()],ss.prototype,"projectId",void 0),ns([ot()],ss.prototype,"staging",void 0),ns([it()],ss.prototype,"projectVersionKey",null),ns([ot()],ss.prototype,"projectVersion",void 0),ns([ot()],ss.prototype,"_menuOpenedId",void 0),ns([ot()],ss.prototype,"copyLinkTooltip",void 0),ns([ot()],ss.prototype,"invalidApiKey",void 0),ns([ot()],ss.prototype,"documentId",void 0),ns([ot()],ss.prototype,"_isUserGlobalContact",void 0),ns([ot()],ss.prototype,"location",void 0),ns([ot()],ss.prototype,"viewMode",void 0),ns([ot()],ss.prototype,"qrCode",void 0),ns([ot()],ss.prototype,"showQrCode",void 0),ns([ot()],ss.prototype,"customLoginEnabledLocally",void 0),ns([ot()],ss.prototype,"customLoginEnabled",void 0),ns([ot()],ss.prototype,"providedUser",void 0),ns([ot()],ss.prototype,"autoTranslation",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}},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");return null==t||t.remove(),{valid:!!e,type:"snippylyPlugin",apiKey:e,staging:i,projectVersionKey:o,projectId:n}},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}}},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(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
|
|
1996
|
+
`:B``}}ss.styles=[ts,es],ns([ot()],ss.prototype,"loadPlugin",null),ns([ot()],ss.prototype,"comments",void 0),ns([ot()],ss.prototype,"commentElement",void 0),ns([ot()],ss.prototype,"contactElement",void 0),ns([ot()],ss.prototype,"rewriterElement",void 0),ns([ot()],ss.prototype,"presenceElement",void 0),ns([ot()],ss.prototype,"commentSubscription",void 0),ns([ot()],ss.prototype,"selectionElement",void 0),ns([ot()],ss.prototype,"addCommentMode",void 0),ns([ot()],ss.prototype,"showTourCommentTooltip",void 0),ns([ot()],ss.prototype,"allFeatureDisabled",void 0),ns([ot()],ss.prototype,"allFeatureRestricted",void 0),ns([ot()],ss.prototype,"_expanded",void 0),ns([ot()],ss.prototype,"loading",void 0),ns([ot()],ss.prototype,"signInError",void 0),ns([ot()],ss.prototype,"snippylyUser",void 0),ns([ot()],ss.prototype,"snippylyUserRole",void 0),ns([ot()],ss.prototype,"_isPlanExpired",void 0),ns([ot()],ss.prototype,"showOnboardingModal",void 0),ns([ot()],ss.prototype,"showLiveDemoModal",void 0),ns([ot()],ss.prototype,"showFigmaDemoModal",void 0),ns([it()],ss.prototype,"apiKey",null),ns([it()],ss.prototype,"projectId",void 0),ns([ot()],ss.prototype,"staging",void 0),ns([it()],ss.prototype,"projectVersionKey",null),ns([ot()],ss.prototype,"projectVersion",void 0),ns([ot()],ss.prototype,"_menuOpenedId",void 0),ns([ot()],ss.prototype,"copyLinkTooltip",void 0),ns([ot()],ss.prototype,"invalidApiKey",void 0),ns([ot()],ss.prototype,"documentId",void 0),ns([ot()],ss.prototype,"_isUserGlobalContact",void 0),ns([ot()],ss.prototype,"location",void 0),ns([ot()],ss.prototype,"viewMode",void 0),ns([ot()],ss.prototype,"qrCode",void 0),ns([ot()],ss.prototype,"showQrCode",void 0),ns([ot()],ss.prototype,"customLoginEnabledLocally",void 0),ns([ot()],ss.prototype,"customLoginEnabled",void 0),ns([ot()],ss.prototype,"providedUser",void 0),ns([ot()],ss.prototype,"autoTranslation",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}},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");return null==t||t.remove(),{valid:!!e,type:"snippylyPlugin",apiKey:e,staging:i,projectVersionKey:o,projectId:n}},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}}},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),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()}))})(ss);class rs extends Q{}customElements.get("snippyly-plugin")||customElements.define("snippyly-plugin",rs),t.SnippylyPlugin=rs,t.SuperflowToolbar=ss,Object.defineProperty(t,"u",{value:!0})}({});
|