@descope/applications-portal-widget 0.5.17 → 0.5.19
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 +41 -38
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +5 -5
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.19
|
|
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.19"}}));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
|
+
"__#32150@#logger": _descope_sdk_mixins.Logger;
|
|
1079
|
+
"__#32150@#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
|
+
"__#32152@#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
|
+
"__#32151@#isInit": boolean;
|
|
1086
1086
|
readonly projectId: string;
|
|
1087
|
-
"__#
|
|
1087
|
+
"__#32153@#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,10 +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
|
-
"__#
|
|
1123
|
-
"__#
|
|
1120
|
+
"__#32154@#lastBaseUrl"?: string;
|
|
1121
|
+
"__#32154@#workingBaseUrl"?: string;
|
|
1122
|
+
"__#32154@#failedUrls": Set<string>;
|
|
1123
|
+
"__#32154@#getResourceUrls": ((filename: string) => (URL & {
|
|
1124
1124
|
baseUrl: string;
|
|
1125
1125
|
})[] | (URL & {
|
|
1126
1126
|
baseUrl: string;
|
|
@@ -1141,7 +1141,7 @@ declare const ApplicationsPortalWidget: {
|
|
|
1141
1141
|
}) | (URL & {
|
|
1142
1142
|
baseUrl: string;
|
|
1143
1143
|
})[]);
|
|
1144
|
-
"__#
|
|
1144
|
+
"__#32154@#createResourceUrl": ((filename: string, baseUrl: string) => URL & {
|
|
1145
1145
|
baseUrl: string;
|
|
1146
1146
|
}) & ((filename: string, baseUrl: string) => URL & {
|
|
1147
1147
|
baseUrl: string;
|
|
@@ -1193,45 +1193,48 @@ declare const ApplicationsPortalWidget: {
|
|
|
1193
1193
|
replaceSync(cssString: string): void;
|
|
1194
1194
|
readonly cssRules: CSSRuleList;
|
|
1195
1195
|
} | CSSStyleSheet);
|
|
1196
|
-
"__#
|
|
1197
|
-
"__#
|
|
1198
|
-
"__#
|
|
1196
|
+
"__#32157@#setNonce": (() => void) & (() => void) & (() => void);
|
|
1197
|
+
"__#32160@#getComponentsVersion": (() => Promise<string>) & (() => Promise<string>);
|
|
1198
|
+
"__#32160@#getComponentsVersionSri": (() => Promise<string>) & (() => Promise<string>);
|
|
1199
|
+
"__#32160@#descopeUi": Promise<any>;
|
|
1199
1200
|
readonly descopeUi: Promise<any>;
|
|
1200
|
-
"__#
|
|
1201
|
-
"__#
|
|
1201
|
+
"__#32160@#loadDescopeUiComponent": ((componentName: string) => Promise<any>) & ((componentName: string) => Promise<any>);
|
|
1202
|
+
"__#32160@#getDescopeUi": (() => Promise<any>) & (() => Promise<any>);
|
|
1202
1203
|
loadDescopeUiComponents: ((templateOrComponentNames: HTMLTemplateElement | string[]) => Promise<any[]>) & ((templateOrComponentNames: HTMLTemplateElement | string[]) => Promise<any[]>);
|
|
1203
1204
|
readonly baseCdnUrl: string;
|
|
1204
|
-
injectNpmLib: ((libName: string, version: string, filePath?: string, overrides?: string[]) => Promise<{
|
|
1205
|
+
injectNpmLib: ((libName: string, version: string, filePath?: string, overrides?: string[], integrity?: string) => Promise<{
|
|
1205
1206
|
id: string;
|
|
1206
1207
|
url: URL;
|
|
1207
|
-
|
|
1208
|
+
integrity?: string;
|
|
1209
|
+
}>) & ((libName: string, version: string, filePath?: string, overrides?: string[], integrity?: string) => Promise<{
|
|
1208
1210
|
id: string;
|
|
1209
1211
|
url: URL;
|
|
1212
|
+
integrity?: string;
|
|
1210
1213
|
}>);
|
|
1211
1214
|
readonly config: Promise<_descope_sdk_mixins.Config>;
|
|
1212
|
-
"__#
|
|
1213
|
-
"__#
|
|
1214
|
-
"__#
|
|
1215
|
-
"__#
|
|
1215
|
+
"__#32156@#configCacheClear": (() => void) & (() => void) & (() => void);
|
|
1216
|
+
"__#32156@#_configResource": Promise<_descope_sdk_mixins.Config>;
|
|
1217
|
+
"__#32156@#fetchConfig": (() => Promise<_descope_sdk_mixins.Config>) & (() => Promise<_descope_sdk_mixins.Config>) & (() => Promise<_descope_sdk_mixins.Config>);
|
|
1218
|
+
"__#32155@#callbacks": Map<string, () => void> & Map<string, () => void> & Map<string, () => void>;
|
|
1216
1219
|
onReset: ((sectionId: string, callback: () => void | Promise<void>) => () => void) & ((sectionId: string, callback: () => void | Promise<void>) => () => void) & ((sectionId: string, callback: () => void | Promise<void>) => () => void);
|
|
1217
1220
|
reset: ((...sectionIds: string[]) => Promise<void>) & ((...sectionIds: string[]) => Promise<void>) & ((...sectionIds: string[]) => Promise<void>);
|
|
1218
|
-
"__#
|
|
1221
|
+
"__#32166@#globalStyle": _descope_sdk_mixins.InjectedStyle;
|
|
1219
1222
|
readonly theme: _descope_sdk_mixins.ThemeOptions;
|
|
1220
1223
|
readonly styleId: string;
|
|
1221
|
-
"__#
|
|
1222
|
-
"__#
|
|
1223
|
-
readonly "__#
|
|
1224
|
-
"__#
|
|
1225
|
-
"__#
|
|
1226
|
-
"__#
|
|
1224
|
+
"__#32166@#_themeResource": Promise<void | Record<string, any>>;
|
|
1225
|
+
"__#32166@#fetchTheme"(): Promise<Record<string, any>>;
|
|
1226
|
+
readonly "__#32166@#themeResource": Promise<void | Record<string, any>>;
|
|
1227
|
+
"__#32166@#loadGlobalStyle"(): Promise<void>;
|
|
1228
|
+
"__#32166@#loadComponentsStyle"(): Promise<void>;
|
|
1229
|
+
"__#32166@#getFontsConfig"(): Promise<Record<string, {
|
|
1227
1230
|
url?: string;
|
|
1228
1231
|
}>>;
|
|
1229
|
-
"__#
|
|
1230
|
-
"__#
|
|
1231
|
-
"__#
|
|
1232
|
-
"__#
|
|
1233
|
-
"__#
|
|
1234
|
-
"__#
|
|
1232
|
+
"__#32166@#loadFonts"(): Promise<void>;
|
|
1233
|
+
"__#32166@#applyTheme"(): Promise<void>;
|
|
1234
|
+
"__#32166@#onThemeChange": () => void;
|
|
1235
|
+
"__#32166@#loadTheme"(): void;
|
|
1236
|
+
"__#32166@#toggleOsThemeChangeListener": (listen: boolean) => void;
|
|
1237
|
+
"__#32159@#debuggerEle": (HTMLElement & {
|
|
1235
1238
|
updateData: (data: {
|
|
1236
1239
|
title: string;
|
|
1237
1240
|
description?: string;
|
|
@@ -1240,11 +1243,11 @@ declare const ApplicationsPortalWidget: {
|
|
|
1240
1243
|
description?: string;
|
|
1241
1244
|
}[]) => void;
|
|
1242
1245
|
}) | null;
|
|
1243
|
-
"__#
|
|
1244
|
-
"__#
|
|
1246
|
+
"__#32159@#disableDebugger"(): void;
|
|
1247
|
+
"__#32159@#enableDebugger"(): Promise<void>;
|
|
1245
1248
|
readonly debug: boolean;
|
|
1246
|
-
"__#
|
|
1247
|
-
"__#
|
|
1249
|
+
"__#32159@#handleDebugMode"(): void;
|
|
1250
|
+
"__#32159@#updateDebuggerMessages"(title: string, description: string): void;
|
|
1248
1251
|
};
|
|
1249
1252
|
};
|
|
1250
1253
|
|