@descope/applications-portal-widget 0.7.2 → 0.7.3
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/esm/index.js +2 -2
- package/dist/index.d.ts +50 -44
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* @descope/applications-portal-widget v0.7.
|
|
3
|
+
* @descope/applications-portal-widget v0.7.3
|
|
4
4
|
*/
|
|
5
|
-
import{createSingletonMixin as t,compose as e,createTemplate as i}from"@descope/sdk-helpers";import{__awaiter as o,__classPrivateFieldGet as s,__classPrivateFieldSet as n}from"tslib";import{projectIdMixin as d,observeAttributesMixin as r,loggerMixin as l,cookieConfigMixin as a,baseUrlMixin as p,createStateManagementMixin as c,initLifecycleMixin as u,staticResourcesMixin as g,createValidateAttributesMixin as h,descopeUiMixin as v,initElementMixin as m,debuggerMixin as f,themeMixin as y}from"@descope/sdk-mixins";import{AppsListDriver as w}from"@descope/sdk-component-drivers";import{createSelector as b}from"reselect";import{createAsyncThunk as S}from"@reduxjs/toolkit";import A from"@descope/web-js-sdk";var k;!function(t){t.oidc="oidc",t.saml="saml",t.wsfed="wsfed",t.custom="custom"}(k||(k={}));const x=t=>t.ssoAppsList.data,R=b(x,(t=>{var e;return null===(e=null==t?void 0:t.filter)||void 0===e?void 0:e.call(t,(t=>t.appType===k.saml))})),I=b(x,(t=>{var e;return null===(e=null==t?void 0:t.filter)||void 0===e?void 0:e.call(t,(t=>{var e;return t.appType===k.oidc&&(null===(e=t.oidcSettings)||void 0===e?void 0:e.customIdpInitiatedLoginPageUrl)}))})),j=b(x,(t=>{var e;return null===(e=null==t?void 0:t.filter)||void 0===e?void 0:e.call(t,(t=>{var e;return t.appType===k.wsfed&&(null===(e=t.wsfedSettings)||void 0===e?void 0:e.idpInitiatedUrl)}))})),T=b(x,(t=>{var e;return null===(e=null==t?void 0:t.filter)||void 0===e?void 0:e.call(t,(t=>t.appType===k.custom))})),U=t=>{var e,i,o,s;switch(t.appType){case k.saml:return null===(e=t.samlSettings)||void 0===e?void 0:e.idpInitiatedUrl;case k.oidc:return null===(i=t.oidcSettings)||void 0===i?void 0:i.customIdpInitiatedLoginPageUrl;case k.wsfed:return null===(o=t.wsfedSettings)||void 0===o?void 0:o.idpInitiatedUrl;case k.custom:return null===(s=t.customSettings)||void 0===s?void 0:s.loginPageUrl;default:return}},W=b(R,I,j,T,((t,e,i,o)=>[...t,...e,...i,...o].map((t=>({name:t.name,icon:t.logo,url:U(t)}))))),P=S("ssoApps/load",((t,{extra:{api:e}})=>e.ssoApps.load())),C=(t=>(...e)=>i=>{i.addCase(t.pending,((t,i)=>{e.forEach((({onPending:e})=>{null==e||e(t,i)}))})),i.addCase(t.fulfilled,((t,i)=>{e.forEach((({onFulfilled:e})=>{null==e||e(t,i)}))})),i.addCase(t.rejected,((t,i)=>{e.forEach((({onRejected:e})=>{null==e||e(t,i)}))}))})(P)({onFulfilled:(t,e)=>{var i;t.ssoAppsList.data=null===(i=e.payload)||void 0===i?void 0:i.apps}},(L=t=>t.ssoAppsList,{onFulfilled:t=>{L(t).loading=!1},onPending:t=>{L(t).loading=!0,L(t).error=null},onRejected:(t,e)=>{L(t).loading=!1,L(t).error=e.error}}));var L;const O={action:P,reducer:C},E={ssoAppsList:{data:[],loading:!1,error:null}},$={load:"/v1/mgmt/sso/idp/apps/load"},M=()=>o(void 0,void 0,void 0,(function*(){return new Promise((t=>{t({apps:[{id:"ssoapp1",name:"App 1",description:"This is the first SAML app",enabled:!0,appType:k.saml,logo:"logo1",samlSettings:{idpInitiatedUrl:""}},{id:"ssoapp2",name:"App 2",description:"This is the first OIDC app",enabled:!0,appType:k.oidc,logo:"logo2"},{id:"ssoapp3",name:"App 3",description:"This is the second SAML app",enabled:!0,appType:k.saml,logo:"logo3",samlSettings:{idpInitiatedUrl:""}},{id:"ssoapp4",name:"App 4",description:"This is a WS-Fed app",enabled:!0,appType:k.wsfed,logo:"logo4",wsfedSettings:{idpInitiatedUrl:"http://localhost/wsfed/idp-initiated",realm:"urn:mock:realm",replyUrl:"http://localhost/reply",loginPageUrl:"http://localhost/login"}}]})}))})),F=({httpClient:t,mock:e})=>({load:()=>o(void 0,void 0,void 0,(function*(){if(e)return M();const i=yield t.get($.load);return yield(t=>o(void 0,void 0,void 0,(function*(){const e=yield t.text(),i=JSON.parse(e);if(!t.ok){const e=`${i.errorDescription}${i.errorMessage?`: ${i.errorMessage}`:""}`;throw Error(e||`${t.status} ${t.statusText}`)}t.json=()=>Promise.resolve(i),t.text=()=>Promise.resolve(e)})))(i),i.json()}))}),N=t((t=>{var i,c,u,g;const h=e(d,r,l,a,p)(t);return g=class extends h{constructor(){super(...arguments),i.add(this),c.set(this,void 0)}get widgetId(){return this.getAttribute("widget-id")}get mock(){return this.getAttribute("mock")}get api(){return s(this,c,"f")||s(this,i,"m",u).call(this),s(this,c,"f")}init(){const t=Object.create(null,{init:{get:()=>super.init}});return o(this,void 0,void 0,(function*(){var e;yield null===(e=t.init)||void 0===e?void 0:e.call(this),this.observeAttributes(["project-id","base-url"],(()=>{s(this,c,"f")&&s(this,i,"m",u).call(this)}))}))}},c=new WeakMap,i=new WeakSet,u=function(){this.logger.debug("creating an sdk instance"),n(this,c,((t,e,i)=>{const o=A(Object.assign(Object.assign({},t),{persistTokens:!0,baseHeaders:{"x-descope-widget-type":"applications-portal-widget","x-descope-widget-id":i,"x-descope-widget-version":"0.7.
|
|
5
|
+
import{createSingletonMixin as t,compose as e,createTemplate as i}from"@descope/sdk-helpers";import{__awaiter as o,__classPrivateFieldGet as s,__classPrivateFieldSet as n}from"tslib";import{projectIdMixin as d,observeAttributesMixin as r,loggerMixin as l,cookieConfigMixin as a,baseUrlMixin as p,createStateManagementMixin as c,initLifecycleMixin as u,staticResourcesMixin as g,createValidateAttributesMixin as h,descopeUiMixin as v,initElementMixin as m,debuggerMixin as f,themeMixin as y}from"@descope/sdk-mixins";import{AppsListDriver as w}from"@descope/sdk-component-drivers";import{createSelector as b}from"reselect";import{createAsyncThunk as S}from"@reduxjs/toolkit";import A from"@descope/web-js-sdk";var k;!function(t){t.oidc="oidc",t.saml="saml",t.wsfed="wsfed",t.custom="custom"}(k||(k={}));const x=t=>t.ssoAppsList.data,R=b(x,(t=>{var e;return null===(e=null==t?void 0:t.filter)||void 0===e?void 0:e.call(t,(t=>t.appType===k.saml))})),I=b(x,(t=>{var e;return null===(e=null==t?void 0:t.filter)||void 0===e?void 0:e.call(t,(t=>{var e;return t.appType===k.oidc&&(null===(e=t.oidcSettings)||void 0===e?void 0:e.customIdpInitiatedLoginPageUrl)}))})),j=b(x,(t=>{var e;return null===(e=null==t?void 0:t.filter)||void 0===e?void 0:e.call(t,(t=>{var e;return t.appType===k.wsfed&&(null===(e=t.wsfedSettings)||void 0===e?void 0:e.idpInitiatedUrl)}))})),T=b(x,(t=>{var e;return null===(e=null==t?void 0:t.filter)||void 0===e?void 0:e.call(t,(t=>t.appType===k.custom))})),U=t=>{var e,i,o,s;switch(t.appType){case k.saml:return null===(e=t.samlSettings)||void 0===e?void 0:e.idpInitiatedUrl;case k.oidc:return null===(i=t.oidcSettings)||void 0===i?void 0:i.customIdpInitiatedLoginPageUrl;case k.wsfed:return null===(o=t.wsfedSettings)||void 0===o?void 0:o.idpInitiatedUrl;case k.custom:return null===(s=t.customSettings)||void 0===s?void 0:s.loginPageUrl;default:return}},W=b(R,I,j,T,((t,e,i,o)=>[...t,...e,...i,...o].map((t=>({name:t.name,icon:t.logo,url:U(t)}))))),P=S("ssoApps/load",((t,{extra:{api:e}})=>e.ssoApps.load())),C=(t=>(...e)=>i=>{i.addCase(t.pending,((t,i)=>{e.forEach((({onPending:e})=>{null==e||e(t,i)}))})),i.addCase(t.fulfilled,((t,i)=>{e.forEach((({onFulfilled:e})=>{null==e||e(t,i)}))})),i.addCase(t.rejected,((t,i)=>{e.forEach((({onRejected:e})=>{null==e||e(t,i)}))}))})(P)({onFulfilled:(t,e)=>{var i;t.ssoAppsList.data=null===(i=e.payload)||void 0===i?void 0:i.apps}},(L=t=>t.ssoAppsList,{onFulfilled:t=>{L(t).loading=!1},onPending:t=>{L(t).loading=!0,L(t).error=null},onRejected:(t,e)=>{L(t).loading=!1,L(t).error=e.error}}));var L;const O={action:P,reducer:C},E={ssoAppsList:{data:[],loading:!1,error:null}},$={load:"/v1/mgmt/sso/idp/apps/load"},M=()=>o(void 0,void 0,void 0,(function*(){return new Promise((t=>{t({apps:[{id:"ssoapp1",name:"App 1",description:"This is the first SAML app",enabled:!0,appType:k.saml,logo:"logo1",samlSettings:{idpInitiatedUrl:""}},{id:"ssoapp2",name:"App 2",description:"This is the first OIDC app",enabled:!0,appType:k.oidc,logo:"logo2"},{id:"ssoapp3",name:"App 3",description:"This is the second SAML app",enabled:!0,appType:k.saml,logo:"logo3",samlSettings:{idpInitiatedUrl:""}},{id:"ssoapp4",name:"App 4",description:"This is a WS-Fed app",enabled:!0,appType:k.wsfed,logo:"logo4",wsfedSettings:{idpInitiatedUrl:"http://localhost/wsfed/idp-initiated",realm:"urn:mock:realm",replyUrl:"http://localhost/reply",loginPageUrl:"http://localhost/login"}}]})}))})),F=({httpClient:t,mock:e})=>({load:()=>o(void 0,void 0,void 0,(function*(){if(e)return M();const i=yield t.get($.load);return yield(t=>o(void 0,void 0,void 0,(function*(){const e=yield t.text(),i=JSON.parse(e);if(!t.ok){const e=`${i.errorDescription}${i.errorMessage?`: ${i.errorMessage}`:""}`;throw Error(e||`${t.status} ${t.statusText}`)}t.json=()=>Promise.resolve(i),t.text=()=>Promise.resolve(e)})))(i),i.json()}))}),N=t((t=>{var i,c,u,g;const h=e(d,r,l,a,p)(t);return g=class extends h{constructor(){super(...arguments),i.add(this),c.set(this,void 0)}get widgetId(){return this.getAttribute("widget-id")}get mock(){return this.getAttribute("mock")}get api(){return s(this,c,"f")||s(this,i,"m",u).call(this),s(this,c,"f")}init(){const t=Object.create(null,{init:{get:()=>super.init}});return o(this,void 0,void 0,(function*(){var e;yield null===(e=t.init)||void 0===e?void 0:e.call(this),this.observeAttributes(["project-id","base-url"],(()=>{s(this,c,"f")&&s(this,i,"m",u).call(this)}))}))}},c=new WeakMap,i=new WeakSet,u=function(){this.logger.debug("creating an sdk instance"),n(this,c,((t,e,i)=>{const o=A(Object.assign(Object.assign({},t),{persistTokens:!0,baseHeaders:{"x-descope-widget-type":"applications-portal-widget","x-descope-widget-id":i,"x-descope-widget-version":"0.7.3"}}));return{ssoApps:F({httpClient:o.httpClient,mock:e})}})({projectId:this.projectId,baseUrl:this.baseUrl,refreshCookieName:this.refreshCookieName},"true"===this.mock,this.widgetId),"f")},g})),D=t((t=>{const i=e(c({name:"widget",initialState:E,reducers:{},extraReducers:t=>{O.reducer(t)},asyncActions:{loadSSOApps:O.action}}),u,l,N)(t);return class extends i{constructor(...t){super(...t),this.state=E,this.subscribe((t=>{this.logger.debug("State update:",t),this.state=t}))}}})),H=t((t=>{const i=e(g,h({"widget-id":h.missingAttrValidator}))(t);return class extends i{get widgetId(){return this.getAttribute("widget-id")}fetchWidgetPage(t){return o(this,void 0,void 0,(function*(){return(yield this.fetchStaticResource(`applications-portal-widget/${this.widgetId}/${t}`,"text")).body}))}}})),q=t((t=>{var n,d,r,a;return a=class extends(e(l,u,v,m,H,D)(t)){constructor(){super(...arguments),n.add(this)}onWidgetRootReady(){return o(this,void 0,void 0,(function*(){}))}init(){const t=Object.create(null,{init:{get:()=>super.init}});return o(this,void 0,void 0,(function*(){var e;yield null===(e=t.init)||void 0===e?void 0:e.call(this);const[i]=yield Promise.all([s(this,n,"m",d).call(this),this.actions.loadSSOApps()]);s(this,n,"m",r).call(this,i),yield this.onWidgetRootReady(),this.dispatchEvent(new CustomEvent("ready"))}))}},n=new WeakSet,d=function(){return o(this,void 0,void 0,(function*(){const t=i(yield this.fetchWidgetPage("root.html"));return yield this.loadDescopeUiComponents(t),t}))},r=function(t){this.contentRootElement.append(t.content.cloneNode(!0))},a})),J=t((t=>{var i,n,d;return d=class extends(e(D,l,q)(t)){constructor(){super(...arguments),i.add(this)}onWidgetRootReady(){const t=Object.create(null,{onWidgetRootReady:{get:()=>super.onWidgetRootReady}});return o(this,void 0,void 0,(function*(){var e;yield null===(e=t.onWidgetRootReady)||void 0===e?void 0:e.call(this),s(this,i,"m",n).call(this,W(this.state))}))}},i=new WeakSet,n=function(t){this.appsList=new w((()=>{var t;return null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("descope-apps-list")}),{logger:this.logger}),this.appsList.data=t},d})),V=t((t=>class extends(e(f,y,J)(t)){init(){const t=Object.create(null,{init:{get:()=>super.init}});return o(this,void 0,void 0,(function*(){var e;yield null===(e=t.init)||void 0===e?void 0:e.call(this)}))}})),z=e((t=>class extends(V(t)){}))(HTMLElement);customElements.define("descope-applications-portal-widget",z);export{z as default};
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -310,7 +310,7 @@ declare const ApplicationsPortalWidget: {
|
|
|
310
310
|
(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
311
311
|
};
|
|
312
312
|
attributeChangedCallback: ((attrName: string, oldValue: string, newValue: string) => void) & ((attrName: string, oldValue: string, newValue: string) => void) & ((attrName: string, oldValue: string, newValue: string) => void) & ((attrName: string, oldValue: string, newValue: string) => void) & ((attrName: string, oldValue: string, newValue: string) => void) & ((attrName: string, oldValue: string | null, newValue: string | null) => void) & ((attrName: string, oldValue: string, newValue: string) => void) & ((attrName: string, oldValue: string, newValue: string) => void) & ((attrName: string, oldValue: string, newValue: string) => void) & ((attrName: string, oldValue: string, newValue: string) => void) & ((attrName: string, oldValue: string, newValue: string) => void) & ((attrName: string, oldValue: string, newValue: string) => void) & ((attrName: string, oldValue: string, newValue: string) => void) & ((attrName: string, oldValue: string | null, newValue: string | null) => void);
|
|
313
|
-
connectedCallback: (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void);
|
|
313
|
+
connectedCallback: (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void);
|
|
314
314
|
readonly attributes: NamedNodeMap;
|
|
315
315
|
readonly classList: DOMTokenList;
|
|
316
316
|
className: string;
|
|
@@ -1105,16 +1105,16 @@ declare const ApplicationsPortalWidget: {
|
|
|
1105
1105
|
blur: (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void);
|
|
1106
1106
|
focus: ((options?: FocusOptions) => void) & ((options?: FocusOptions) => void) & ((options?: FocusOptions) => void) & ((options?: FocusOptions) => void) & ((options?: FocusOptions) => void) & ((options?: FocusOptions) => void) & ((options?: FocusOptions) => void) & ((options?: FocusOptions) => void) & ((options?: FocusOptions) => void) & ((options?: FocusOptions) => void) & ((options?: FocusOptions) => void) & ((options?: FocusOptions) => void) & ((options?: FocusOptions) => void) & ((options?: FocusOptions) => void);
|
|
1107
1107
|
readonly refreshCookieName: string;
|
|
1108
|
-
"__#
|
|
1109
|
-
"__#
|
|
1108
|
+
"__#34158@#logger": _descope_sdk_mixins.Logger;
|
|
1109
|
+
"__#34158@#wrapLogger": ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger) & ((logger: Partial<_descope_sdk_mixins.Logger>) => _descope_sdk_mixins.Logger);
|
|
1110
1110
|
logger: _descope_sdk_mixins.Logger;
|
|
1111
|
-
onLogEvent: ((logLevel: _descope_sdk_mixins.LogLevel, data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: _descope_sdk_mixins.LogLevel, args: any[]) => void);
|
|
1112
|
-
"__#
|
|
1113
|
-
observeAttribute: ((attrName: string, onAttrChange: (attrName: string, value: string | null) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any);
|
|
1114
|
-
observeAttributes: ((attrs: string[], cb: (attrName: string, value: string | null) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void);
|
|
1115
|
-
"__#
|
|
1111
|
+
onLogEvent: ((logLevel: _descope_sdk_mixins.LogLevel, data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: "error" | "warn" | "info" | "debug", data: any[]) => void) & ((logLevel: _descope_sdk_mixins.LogLevel, args: any[]) => void);
|
|
1112
|
+
"__#34160@#observeMappings": {};
|
|
1113
|
+
observeAttribute: ((attrName: string, onAttrChange: (attrName: string, value: string | null) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any) & ((attrName: string, onAttrChange: (attrName: string, value: string) => void) => () => any);
|
|
1114
|
+
observeAttributes: ((attrs: string[], cb: (attrName: string, value: string | null) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void) & ((attrs: string[], cb: (attrName: string, value: string) => void) => () => void);
|
|
1115
|
+
"__#34159@#isInit": boolean;
|
|
1116
1116
|
readonly projectId: string;
|
|
1117
|
-
"__#
|
|
1117
|
+
"__#34161@#handleError": ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string | null) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void) & ((attrName: string, newValue: string) => void);
|
|
1118
1118
|
setHTMLUnsafe(html: string): void;
|
|
1119
1119
|
ariaBrailleLabel: string | null;
|
|
1120
1120
|
ariaBrailleRoleDescription: string | null;
|
|
@@ -1147,10 +1147,10 @@ declare const ApplicationsPortalWidget: {
|
|
|
1147
1147
|
};
|
|
1148
1148
|
subscribe: <SelectorR = State>(cb: (state: SelectorR) => void, selector?: (state: State) => SelectorR) => redux.Unsubscribe;
|
|
1149
1149
|
fetchWidgetPage(filename: string): Promise<string>;
|
|
1150
|
-
"__#
|
|
1151
|
-
"__#
|
|
1152
|
-
"__#
|
|
1153
|
-
"__#
|
|
1150
|
+
"__#34162@#lastBaseUrl"?: string;
|
|
1151
|
+
"__#34162@#workingBaseUrl"?: string;
|
|
1152
|
+
"__#34162@#failedUrls": Set<string>;
|
|
1153
|
+
"__#34162@#getResourceUrls": ((filename: string) => (URL & {
|
|
1154
1154
|
baseUrl: string;
|
|
1155
1155
|
})[] | (URL & {
|
|
1156
1156
|
baseUrl: string;
|
|
@@ -1171,7 +1171,7 @@ declare const ApplicationsPortalWidget: {
|
|
|
1171
1171
|
}) | (URL & {
|
|
1172
1172
|
baseUrl: string;
|
|
1173
1173
|
})[]);
|
|
1174
|
-
"__#
|
|
1174
|
+
"__#34162@#createResourceUrl": ((filename: string, baseUrl: string) => URL & {
|
|
1175
1175
|
baseUrl: string;
|
|
1176
1176
|
}) & ((filename: string, baseUrl: string) => URL & {
|
|
1177
1177
|
baseUrl: string;
|
|
@@ -1223,13 +1223,13 @@ declare const ApplicationsPortalWidget: {
|
|
|
1223
1223
|
replaceSync(cssString: string): void;
|
|
1224
1224
|
readonly cssRules: CSSRuleList;
|
|
1225
1225
|
} | CSSStyleSheet);
|
|
1226
|
-
"__#
|
|
1227
|
-
"__#
|
|
1228
|
-
"__#
|
|
1229
|
-
"__#
|
|
1226
|
+
"__#34165@#setNonce": (() => void) & (() => void) & (() => void);
|
|
1227
|
+
"__#34168@#getComponentsVersion": (() => Promise<string>) & (() => Promise<string>);
|
|
1228
|
+
"__#34168@#getComponentsVersionSri": (() => Promise<string>) & (() => Promise<string>);
|
|
1229
|
+
"__#34168@#descopeUi": Promise<any>;
|
|
1230
1230
|
readonly descopeUi: Promise<any>;
|
|
1231
|
-
"__#
|
|
1232
|
-
"__#
|
|
1231
|
+
"__#34168@#loadDescopeUiComponent": ((componentName: string) => Promise<any>) & ((componentName: string) => Promise<any>);
|
|
1232
|
+
"__#34168@#getDescopeUi": (() => Promise<any>) & (() => Promise<any>);
|
|
1233
1233
|
loadDescopeUiComponents: ((templateOrComponentNames: HTMLTemplateElement | string[]) => Promise<any[]>) & ((templateOrComponentNames: HTMLTemplateElement | string[]) => Promise<any[]>);
|
|
1234
1234
|
readonly baseCdnUrl: string;
|
|
1235
1235
|
injectNpmLib: ((libName: string, version: string, filePath?: string, overrides?: string[], integrity?: string) => Promise<{
|
|
@@ -1242,33 +1242,39 @@ declare const ApplicationsPortalWidget: {
|
|
|
1242
1242
|
integrity?: string;
|
|
1243
1243
|
}>);
|
|
1244
1244
|
readonly config: Promise<_descope_sdk_mixins.Config>;
|
|
1245
|
-
"__#
|
|
1246
|
-
"__#
|
|
1247
|
-
"__#
|
|
1248
|
-
"__#
|
|
1245
|
+
"__#34164@#configCacheClear": (() => void) & (() => void) & (() => void);
|
|
1246
|
+
"__#34164@#_configResource": Promise<_descope_sdk_mixins.Config>;
|
|
1247
|
+
"__#34164@#fetchConfig": (() => Promise<_descope_sdk_mixins.Config>) & (() => Promise<_descope_sdk_mixins.Config>) & (() => Promise<_descope_sdk_mixins.Config>);
|
|
1248
|
+
"__#34163@#callbacks": Map<string, () => void> & Map<string, () => void> & Map<string, () => void>;
|
|
1249
1249
|
onReset: ((sectionId: string, callback: () => void | Promise<void>) => () => void) & ((sectionId: string, callback: () => void | Promise<void>) => () => void) & ((sectionId: string, callback: () => void | Promise<void>) => () => void);
|
|
1250
1250
|
reset: ((...sectionIds: string[]) => Promise<void>) & ((...sectionIds: string[]) => Promise<void>) & ((...sectionIds: string[]) => Promise<void>);
|
|
1251
|
-
"__#
|
|
1252
|
-
"__#
|
|
1251
|
+
"__#34174@#globalStyle": _descope_sdk_mixins.InjectedStyle;
|
|
1252
|
+
"__#34174@#tenantStyle": _descope_sdk_mixins.InjectedStyle;
|
|
1253
|
+
"__#34174@#customStyle": _descope_sdk_mixins.InjectedStyle;
|
|
1253
1254
|
readonly theme: _descope_sdk_mixins.ThemeOptions;
|
|
1254
1255
|
readonly styleId: string;
|
|
1255
1256
|
readonly themeOverride: Record<string, any>;
|
|
1256
|
-
"__#
|
|
1257
|
-
"__#
|
|
1258
|
-
"__#
|
|
1259
|
-
|
|
1260
|
-
"__#
|
|
1261
|
-
"__#
|
|
1262
|
-
"__#
|
|
1263
|
-
"__#
|
|
1257
|
+
"__#34174@#getThemeOverrideString"(): string;
|
|
1258
|
+
"__#34174@#_themeResource": Promise<void | Record<string, any>>;
|
|
1259
|
+
"__#34174@#_tenantThemeResource": Promise<Record<string, any> | undefined>;
|
|
1260
|
+
"__#34174@#fetchTheme"(): Promise<Record<string, any>>;
|
|
1261
|
+
readonly "__#34174@#themeResource": Promise<void | Record<string, any>>;
|
|
1262
|
+
"__#34174@#loadGlobalStyle"(): Promise<void>;
|
|
1263
|
+
"__#34174@#fetchTenantTheme"(): Promise<Record<string, any>>;
|
|
1264
|
+
readonly "__#34174@#tenantThemeResource": Promise<Record<string, any>>;
|
|
1265
|
+
"__#34174@#loadTenantStyle"(): Promise<void>;
|
|
1266
|
+
"__#34174@#loadCustomStyle"(): Promise<void>;
|
|
1267
|
+
"__#34174@#loadComponentsStyle"(): Promise<void>;
|
|
1268
|
+
"__#34174@#getFontsConfig"(): Promise<Record<string, {
|
|
1264
1269
|
url?: string;
|
|
1265
1270
|
}>>;
|
|
1266
|
-
"__#
|
|
1267
|
-
"__#
|
|
1268
|
-
"__#
|
|
1269
|
-
"__#
|
|
1270
|
-
"__#
|
|
1271
|
-
|
|
1271
|
+
"__#34174@#loadFonts"(): Promise<void>;
|
|
1272
|
+
"__#34174@#applyTheme"(): Promise<void>;
|
|
1273
|
+
"__#34174@#onThemeChange": () => void;
|
|
1274
|
+
"__#34174@#loadTheme"(): void;
|
|
1275
|
+
"__#34174@#toggleOsThemeChangeListener": (listen: boolean) => void;
|
|
1276
|
+
readonly tenantId: string;
|
|
1277
|
+
"__#34167@#debuggerEle": (HTMLElement & {
|
|
1272
1278
|
updateData: (data: {
|
|
1273
1279
|
title: string;
|
|
1274
1280
|
description?: string;
|
|
@@ -1277,11 +1283,11 @@ declare const ApplicationsPortalWidget: {
|
|
|
1277
1283
|
description?: string;
|
|
1278
1284
|
}[]) => void;
|
|
1279
1285
|
}) | null;
|
|
1280
|
-
"__#
|
|
1281
|
-
"__#
|
|
1286
|
+
"__#34167@#disableDebugger"(): void;
|
|
1287
|
+
"__#34167@#enableDebugger"(): Promise<void>;
|
|
1282
1288
|
readonly debug: boolean;
|
|
1283
|
-
"__#
|
|
1284
|
-
"__#
|
|
1289
|
+
"__#34167@#handleDebugMode"(): void;
|
|
1290
|
+
"__#34167@#updateDebuggerMessages"(title: string, description: string): void;
|
|
1285
1291
|
};
|
|
1286
1292
|
};
|
|
1287
1293
|
|