@descope/applications-portal-widget 0.5.10 → 0.5.12
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 +46 -34
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/**
|
|
3
|
-
* @descope/applications-portal-widget v0.5.
|
|
3
|
+
* @descope/applications-portal-widget v0.5.12
|
|
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 r,observeAttributesMixin as d,loggerMixin as a,cookieConfigMixin as l,baseUrlMixin as c,createStateManagementMixin as p,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 b}from"@descope/sdk-component-drivers";import{createSelector as w}from"reselect";import{createAsyncThunk as A}from"@reduxjs/toolkit";import S from"@descope/web-js-sdk";var k;!function(t){t.oidc="oidc",t.saml="saml",t.custom="custom"}(k||(k={}));const x=t=>t.ssoAppsList.data,R=w(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))})),j=w(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)}))})),I=w(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))})),T=t=>{var e,i,o;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.custom:return null===(o=t.customSettings)||void 0===o?void 0:o.loginPageUrl;default:return}},W=w(R,j,I,((t,e,i)=>[...t,...e,...i].map((t=>({name:t.name,icon:t.logo,url:T(t)}))))),C=A("ssoApps/load",((t,{extra:{api:e}})=>e.ssoApps.load())),L=(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)}))}))})(C)({onFulfilled:(t,e)=>{var i;t.ssoAppsList.data=null===(i=e.payload)||void 0===i?void 0:i.apps}},(P=t=>t.ssoAppsList,{onFulfilled:t=>{P(t).loading=!1},onPending:t=>{P(t).loading=!0,P(t).error=null},onRejected:(t,e)=>{P(t).loading=!1,P(t).error=e.error}}));var P;const O={action:C,reducer:L},E={ssoAppsList:{data:[],loading:!1,error:null}},U={load:"/v1/mgmt/sso/idp/apps/load"},$=()=>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:""}}]})}))})),M=({httpClient:t,mock:e})=>({load:()=>o(void 0,void 0,void 0,(function*(){if(e)return $();const i=yield t.get(U.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,p,u,g;const h=e(r,d,a,l,c)(t);return g=class extends h{constructor(){super(...arguments),i.add(this),p.set(this,void 0)}get widgetId(){return this.getAttribute("widget-id")}get mock(){return this.getAttribute("mock")}get api(){return s(this,p,"f")||s(this,i,"m",u).call(this),s(this,p,"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,p,"f")&&s(this,i,"m",u).call(this)}))}))}},p=new WeakMap,i=new WeakSet,u=function(){this.logger.debug("creating an sdk instance"),n(this,p,((t,e,i)=>{const o=S(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.5.
|
|
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 r,observeAttributesMixin as d,loggerMixin as a,cookieConfigMixin as l,baseUrlMixin as c,createStateManagementMixin as p,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 b}from"@descope/sdk-component-drivers";import{createSelector as w}from"reselect";import{createAsyncThunk as A}from"@reduxjs/toolkit";import S from"@descope/web-js-sdk";var k;!function(t){t.oidc="oidc",t.saml="saml",t.custom="custom"}(k||(k={}));const x=t=>t.ssoAppsList.data,R=w(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))})),j=w(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)}))})),I=w(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))})),T=t=>{var e,i,o;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.custom:return null===(o=t.customSettings)||void 0===o?void 0:o.loginPageUrl;default:return}},W=w(R,j,I,((t,e,i)=>[...t,...e,...i].map((t=>({name:t.name,icon:t.logo,url:T(t)}))))),C=A("ssoApps/load",((t,{extra:{api:e}})=>e.ssoApps.load())),L=(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)}))}))})(C)({onFulfilled:(t,e)=>{var i;t.ssoAppsList.data=null===(i=e.payload)||void 0===i?void 0:i.apps}},(P=t=>t.ssoAppsList,{onFulfilled:t=>{P(t).loading=!1},onPending:t=>{P(t).loading=!0,P(t).error=null},onRejected:(t,e)=>{P(t).loading=!1,P(t).error=e.error}}));var P;const O={action:C,reducer:L},E={ssoAppsList:{data:[],loading:!1,error:null}},U={load:"/v1/mgmt/sso/idp/apps/load"},$=()=>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:""}}]})}))})),M=({httpClient:t,mock:e})=>({load:()=>o(void 0,void 0,void 0,(function*(){if(e)return $();const i=yield t.get(U.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,p,u,g;const h=e(r,d,a,l,c)(t);return g=class extends h{constructor(){super(...arguments),i.add(this),p.set(this,void 0)}get widgetId(){return this.getAttribute("widget-id")}get mock(){return this.getAttribute("mock")}get api(){return s(this,p,"f")||s(this,i,"m",u).call(this),s(this,p,"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,p,"f")&&s(this,i,"m",u).call(this)}))}))}},p=new WeakMap,i=new WeakSet,u=function(){this.logger.debug("creating an sdk instance"),n(this,p,((t,e,i)=>{const o=S(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.5.12"}}));return{ssoApps:M({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(p({name:"widget",initialState:E,reducers:{},extraReducers:t=>{O.reducer(t)},asyncActions:{loadSSOApps:O.action}}),u,a,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}))}}})),F=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}))}}})),H=t((t=>{var n,r,d,l;return l=class extends(e(a,u,v,m,F,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",r).call(this),this.actions.loadSSOApps()]);s(this,n,"m",d).call(this,i),yield this.onWidgetRootReady(),this.dispatchEvent(new CustomEvent("ready"))}))}},n=new WeakSet,r=function(){return o(this,void 0,void 0,(function*(){const t=i(yield this.fetchWidgetPage("root.html"));return yield this.loadDescopeUiComponents(t),t}))},d=function(t){this.contentRootElement.append(t.content.cloneNode(!0))},l})),q=t((t=>{var i,n,r;return r=class extends(e(D,a,H)(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 b((()=>{var t;return null===(t=this.shadowRoot)||void 0===t?void 0:t.querySelector("descope-apps-list")}),{logger:this.logger}),this.appsList.data=t},r})),J=t((t=>class extends(e(f,y,q)(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)}))}})),V=e((t=>class extends(J(t)){}))(HTMLElement);customElements.define("descope-applications-portal-widget",V);export{V as default};
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1075,16 +1075,16 @@ declare const ApplicationsPortalWidget: {
|
|
|
1075
1075
|
blur: (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void);
|
|
1076
1076
|
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);
|
|
1077
1077
|
readonly refreshCookieName: string;
|
|
1078
|
-
"__#
|
|
1079
|
-
"__#
|
|
1078
|
+
"__#29734@#logger": _descope_sdk_mixins.Logger;
|
|
1079
|
+
"__#29734@#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);
|
|
1080
1080
|
logger: _descope_sdk_mixins.Logger;
|
|
1081
1081
|
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);
|
|
1082
|
-
"__#
|
|
1082
|
+
"__#29736@#observeMappings": {};
|
|
1083
1083
|
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);
|
|
1084
1084
|
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);
|
|
1085
|
-
"__#
|
|
1085
|
+
"__#29735@#isInit": boolean;
|
|
1086
1086
|
readonly projectId: string;
|
|
1087
|
-
"__#
|
|
1087
|
+
"__#29737@#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);
|
|
1088
1088
|
setHTMLUnsafe(html: string): void;
|
|
1089
1089
|
ariaBrailleLabel: string | null;
|
|
1090
1090
|
ariaBrailleRoleDescription: string | null;
|
|
@@ -1117,9 +1117,10 @@ declare const ApplicationsPortalWidget: {
|
|
|
1117
1117
|
};
|
|
1118
1118
|
subscribe: <SelectorR = State>(cb: (state: SelectorR) => void, selector?: (state: State) => SelectorR) => redux.Unsubscribe;
|
|
1119
1119
|
fetchWidgetPage(filename: string): Promise<string>;
|
|
1120
|
-
"__#
|
|
1121
|
-
"__#
|
|
1122
|
-
"__#
|
|
1120
|
+
"__#29738@#lastBaseUrl"?: string;
|
|
1121
|
+
"__#29738@#workingBaseUrl"?: string;
|
|
1122
|
+
"__#29738@#failedUrls": Set<string>;
|
|
1123
|
+
"__#29738@#getResourceUrls": ((filename: string) => (URL & {
|
|
1123
1124
|
baseUrl: string;
|
|
1124
1125
|
})[] | (URL & {
|
|
1125
1126
|
baseUrl: string;
|
|
@@ -1140,6 +1141,17 @@ declare const ApplicationsPortalWidget: {
|
|
|
1140
1141
|
}) | (URL & {
|
|
1141
1142
|
baseUrl: string;
|
|
1142
1143
|
})[]);
|
|
1144
|
+
"__#29738@#createResourceUrl": ((filename: string, baseUrl: string) => URL & {
|
|
1145
|
+
baseUrl: string;
|
|
1146
|
+
}) & ((filename: string, baseUrl: string) => URL & {
|
|
1147
|
+
baseUrl: string;
|
|
1148
|
+
}) & ((filename: string, baseUrl: string) => URL & {
|
|
1149
|
+
baseUrl: string;
|
|
1150
|
+
}) & ((filename: string, baseUrl: string) => URL & {
|
|
1151
|
+
baseUrl: string;
|
|
1152
|
+
}) & ((filename: string, baseUrl: string) => URL & {
|
|
1153
|
+
baseUrl: string;
|
|
1154
|
+
});
|
|
1143
1155
|
fetchStaticResource: (<F extends "text" | "json">(filename: string, format: F) => Promise<{
|
|
1144
1156
|
body: F extends "json" ? Record<string, any> : string;
|
|
1145
1157
|
headers: Record<string, string>;
|
|
@@ -1181,12 +1193,12 @@ declare const ApplicationsPortalWidget: {
|
|
|
1181
1193
|
replaceSync(cssString: string): void;
|
|
1182
1194
|
readonly cssRules: CSSRuleList;
|
|
1183
1195
|
} | CSSStyleSheet);
|
|
1184
|
-
"__#
|
|
1185
|
-
"__#
|
|
1186
|
-
"__#
|
|
1196
|
+
"__#29741@#setNonce": (() => void) & (() => void) & (() => void);
|
|
1197
|
+
"__#29744@#getComponentsVersion": (() => Promise<string>) & (() => Promise<string>);
|
|
1198
|
+
"__#29744@#descopeUi": Promise<any>;
|
|
1187
1199
|
readonly descopeUi: Promise<any>;
|
|
1188
|
-
"__#
|
|
1189
|
-
"__#
|
|
1200
|
+
"__#29744@#loadDescopeUiComponent": ((componentName: string) => Promise<any>) & ((componentName: string) => Promise<any>);
|
|
1201
|
+
"__#29744@#getDescopeUi": (() => Promise<any>) & (() => Promise<any>);
|
|
1190
1202
|
loadDescopeUiComponents: ((templateOrComponentNames: HTMLTemplateElement | string[]) => Promise<any[]>) & ((templateOrComponentNames: HTMLTemplateElement | string[]) => Promise<any[]>);
|
|
1191
1203
|
readonly baseCdnUrl: string;
|
|
1192
1204
|
injectNpmLib: ((libName: string, version: string, filePath?: string, overrides?: string[]) => Promise<{
|
|
@@ -1197,29 +1209,29 @@ declare const ApplicationsPortalWidget: {
|
|
|
1197
1209
|
url: URL;
|
|
1198
1210
|
}>);
|
|
1199
1211
|
readonly config: Promise<_descope_sdk_mixins.Config>;
|
|
1200
|
-
"__#
|
|
1201
|
-
"__#
|
|
1202
|
-
"__#
|
|
1203
|
-
"__#
|
|
1212
|
+
"__#29740@#configCacheClear": (() => void) & (() => void) & (() => void);
|
|
1213
|
+
"__#29740@#_configResource": Promise<_descope_sdk_mixins.Config>;
|
|
1214
|
+
"__#29740@#fetchConfig": (() => Promise<_descope_sdk_mixins.Config>) & (() => Promise<_descope_sdk_mixins.Config>) & (() => Promise<_descope_sdk_mixins.Config>);
|
|
1215
|
+
"__#29739@#callbacks": Map<string, () => void> & Map<string, () => void> & Map<string, () => void>;
|
|
1204
1216
|
onReset: ((sectionId: string, callback: () => void | Promise<void>) => () => void) & ((sectionId: string, callback: () => void | Promise<void>) => () => void) & ((sectionId: string, callback: () => void | Promise<void>) => () => void);
|
|
1205
1217
|
reset: ((...sectionIds: string[]) => Promise<void>) & ((...sectionIds: string[]) => Promise<void>) & ((...sectionIds: string[]) => Promise<void>);
|
|
1206
|
-
"__#
|
|
1218
|
+
"__#29750@#globalStyle": _descope_sdk_mixins.InjectedStyle;
|
|
1207
1219
|
readonly theme: _descope_sdk_mixins.ThemeOptions;
|
|
1208
1220
|
readonly styleId: string;
|
|
1209
|
-
"__#
|
|
1210
|
-
"__#
|
|
1211
|
-
readonly "__#
|
|
1212
|
-
"__#
|
|
1213
|
-
"__#
|
|
1214
|
-
"__#
|
|
1221
|
+
"__#29750@#_themeResource": Promise<void | Record<string, any>>;
|
|
1222
|
+
"__#29750@#fetchTheme"(): Promise<Record<string, any>>;
|
|
1223
|
+
readonly "__#29750@#themeResource": Promise<void | Record<string, any>>;
|
|
1224
|
+
"__#29750@#loadGlobalStyle"(): Promise<void>;
|
|
1225
|
+
"__#29750@#loadComponentsStyle"(): Promise<void>;
|
|
1226
|
+
"__#29750@#getFontsConfig"(): Promise<Record<string, {
|
|
1215
1227
|
url?: string;
|
|
1216
1228
|
}>>;
|
|
1217
|
-
"__#
|
|
1218
|
-
"__#
|
|
1219
|
-
"__#
|
|
1220
|
-
"__#
|
|
1221
|
-
"__#
|
|
1222
|
-
"__#
|
|
1229
|
+
"__#29750@#loadFonts"(): Promise<void>;
|
|
1230
|
+
"__#29750@#applyTheme"(): Promise<void>;
|
|
1231
|
+
"__#29750@#onThemeChange": () => void;
|
|
1232
|
+
"__#29750@#loadTheme"(): void;
|
|
1233
|
+
"__#29750@#toggleOsThemeChangeListener": (listen: boolean) => void;
|
|
1234
|
+
"__#29743@#debuggerEle": (HTMLElement & {
|
|
1223
1235
|
updateData: (data: {
|
|
1224
1236
|
title: string;
|
|
1225
1237
|
description?: string;
|
|
@@ -1228,11 +1240,11 @@ declare const ApplicationsPortalWidget: {
|
|
|
1228
1240
|
description?: string;
|
|
1229
1241
|
}[]) => void;
|
|
1230
1242
|
}) | null;
|
|
1231
|
-
"__#
|
|
1232
|
-
"__#
|
|
1243
|
+
"__#29743@#disableDebugger"(): void;
|
|
1244
|
+
"__#29743@#enableDebugger"(): Promise<void>;
|
|
1233
1245
|
readonly debug: boolean;
|
|
1234
|
-
"__#
|
|
1235
|
-
"__#
|
|
1246
|
+
"__#29743@#handleDebugMode"(): void;
|
|
1247
|
+
"__#29743@#updateDebuggerMessages"(title: string, description: string): void;
|
|
1236
1248
|
};
|
|
1237
1249
|
};
|
|
1238
1250
|
|