@descope/applications-portal-widget 0.2.7 → 0.2.9
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 +57 -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.2.
|
|
3
|
+
* @descope/applications-portal-widget v0.2.9
|
|
4
4
|
*/
|
|
5
|
-
import{createSingletonMixin as t,compose as e,createTemplate as i}from"@descope/sdk-helpers";import{__awaiter as s,__classPrivateFieldGet as o,__classPrivateFieldSet as n}from"tslib";import{projectIdMixin as d,observeAttributesMixin as r,loggerMixin as a,baseUrlMixin as l,createStateManagementMixin as c,initLifecycleMixin as p,staticResourcesMixin as u,createValidateAttributesMixin as h,descopeUiMixin as g,initElementMixin as v,debuggerMixin as m,themeMixin as f}from"@descope/sdk-mixins";import{AppsListDriver as y}from"@descope/sdk-component-drivers";import{createSelector as b}from"reselect";import{createAsyncThunk as w}from"@reduxjs/toolkit";import A from"@descope/web-js-sdk";var x;!function(t){t.oidc="oidc",t.saml="saml"}(x||(x={}));const R=b((t=>t.ssoAppsList.data),(t=>{var e;return null===(e=null==t?void 0:t.filter)||void 0===e?void 0:e.call(t,(t=>t.appType===x.saml))})),k=b(R,(t=>t.map((t=>({name:t.name,icon:t.logo,url:t.samlSettings.idpInitiatedUrl}))))),S=w("ssoApps/load",((t,{extra:{api:e}})=>e.ssoApps.load())),j=(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)}))}))})(S)({onFulfilled:(t,e)=>{var i;t.ssoAppsList.data=null===(i=e.payload)||void 0===i?void 0:i.apps}},(W=t=>t.ssoAppsList,{onFulfilled:t=>{W(t).loading=!1},onPending:t=>{W(t).loading=!0,W(t).error=null},onRejected:(t,e)=>{W(t).loading=!1,W(t).error=e.error}}));var W;const I={action:S,reducer:j},O={ssoAppsList:{data:[],loading:!1,error:null}},T={load:"/v1/mgmt/sso/idp/apps/load"},L=()=>s(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:x.saml,logo:"logo1",samlSettings:{idpInitiatedUrl:""}},{id:"ssoapp2",name:"App 2",description:"This is the first OIDC app",enabled:!0,appType:x.oidc,logo:"logo2"},{id:"ssoapp3",name:"App 3",description:"This is the second SAML app",enabled:!0,appType:x.saml,logo:"logo3",samlSettings:{idpInitiatedUrl:""}}]})}))})),C=({httpClient:t,mock:e})=>({load:()=>s(void 0,void 0,void 0,(function*(){if(e)return L();const i=yield t.get(T.load);return yield(t=>s(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()}))}),P=t((t=>{var i,c,p,u;const h=e(d,r,a,l)(t);return u=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 o(this,c,"f")||o(this,i,"m",p).call(this),o(this,c,"f")}init(){const t=Object.create(null,{init:{get:()=>super.init}});return s(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"],(()=>{o(this,c,"f")&&o(this,i,"m",p).call(this)}))}))}},c=new WeakMap,i=new WeakSet,p=function(){this.logger.debug("creating an sdk instance"),n(this,c,((t,e,i)=>{const s=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.2.
|
|
5
|
+
import{createSingletonMixin as t,compose as e,createTemplate as i}from"@descope/sdk-helpers";import{__awaiter as s,__classPrivateFieldGet as o,__classPrivateFieldSet as n}from"tslib";import{projectIdMixin as d,observeAttributesMixin as r,loggerMixin as a,baseUrlMixin as l,createStateManagementMixin as c,initLifecycleMixin as p,staticResourcesMixin as u,createValidateAttributesMixin as h,descopeUiMixin as g,initElementMixin as v,debuggerMixin as m,themeMixin as f}from"@descope/sdk-mixins";import{AppsListDriver as y}from"@descope/sdk-component-drivers";import{createSelector as b}from"reselect";import{createAsyncThunk as w}from"@reduxjs/toolkit";import A from"@descope/web-js-sdk";var x;!function(t){t.oidc="oidc",t.saml="saml"}(x||(x={}));const R=b((t=>t.ssoAppsList.data),(t=>{var e;return null===(e=null==t?void 0:t.filter)||void 0===e?void 0:e.call(t,(t=>t.appType===x.saml))})),k=b(R,(t=>t.map((t=>({name:t.name,icon:t.logo,url:t.samlSettings.idpInitiatedUrl}))))),S=w("ssoApps/load",((t,{extra:{api:e}})=>e.ssoApps.load())),j=(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)}))}))})(S)({onFulfilled:(t,e)=>{var i;t.ssoAppsList.data=null===(i=e.payload)||void 0===i?void 0:i.apps}},(W=t=>t.ssoAppsList,{onFulfilled:t=>{W(t).loading=!1},onPending:t=>{W(t).loading=!0,W(t).error=null},onRejected:(t,e)=>{W(t).loading=!1,W(t).error=e.error}}));var W;const I={action:S,reducer:j},O={ssoAppsList:{data:[],loading:!1,error:null}},T={load:"/v1/mgmt/sso/idp/apps/load"},L=()=>s(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:x.saml,logo:"logo1",samlSettings:{idpInitiatedUrl:""}},{id:"ssoapp2",name:"App 2",description:"This is the first OIDC app",enabled:!0,appType:x.oidc,logo:"logo2"},{id:"ssoapp3",name:"App 3",description:"This is the second SAML app",enabled:!0,appType:x.saml,logo:"logo3",samlSettings:{idpInitiatedUrl:""}}]})}))})),C=({httpClient:t,mock:e})=>({load:()=>s(void 0,void 0,void 0,(function*(){if(e)return L();const i=yield t.get(T.load);return yield(t=>s(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()}))}),P=t((t=>{var i,c,p,u;const h=e(d,r,a,l)(t);return u=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 o(this,c,"f")||o(this,i,"m",p).call(this),o(this,c,"f")}init(){const t=Object.create(null,{init:{get:()=>super.init}});return s(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"],(()=>{o(this,c,"f")&&o(this,i,"m",p).call(this)}))}))}},c=new WeakMap,i=new WeakSet,p=function(){this.logger.debug("creating an sdk instance"),n(this,c,((t,e,i)=>{const s=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.2.9"}}));return{ssoApps:C({httpClient:s.httpClient,mock:e})}})({projectId:this.projectId,baseUrl:this.baseUrl},"true"===this.mock,this.widgetId),"f")},u})),E=t((t=>{const i=e(c({name:"widget",initialState:O,reducers:{},extraReducers:t=>{I.reducer(t)},asyncActions:{loadSSOApps:I.action}}),p,a,P)(t);return class extends i{constructor(...t){super(...t),this.state=O,this.subscribe((t=>{this.logger.debug("State update:",t),this.state=t}))}}})),$=t((t=>{const i=e(u,h({"widget-id":h.missingAttrValidator}))(t);return class extends i{get widgetId(){return this.getAttribute("widget-id")}fetchWidgetPage(t){return s(this,void 0,void 0,(function*(){return(yield this.fetchStaticResource(`applications-portal-widget/${this.widgetId}/${t}`,"text")).body}))}}})),M=t((t=>{var n,d,r,l;return l=class extends(e(a,p,g,v,$,E)(t)){constructor(){super(...arguments),n.add(this)}onWidgetRootReady(){return s(this,void 0,void 0,(function*(){}))}init(){const t=Object.create(null,{init:{get:()=>super.init}});return s(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([o(this,n,"m",d).call(this),this.actions.loadSSOApps()]);o(this,n,"m",r).call(this,i),this.onWidgetRootReady()}))}},n=new WeakSet,d=function(){return s(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))},l})),U=t((t=>{var i,n,d;return d=class extends(e(E,a,M)(t)){constructor(){super(...arguments),i.add(this)}onWidgetRootReady(){const t=Object.create(null,{onWidgetRootReady:{get:()=>super.onWidgetRootReady}});return s(this,void 0,void 0,(function*(){var e;yield null===(e=t.onWidgetRootReady)||void 0===e?void 0:e.call(this),o(this,i,"m",n).call(this,k(this.state))}))}},i=new WeakSet,n=function(t){this.appsList=new y((()=>{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})),D=t((t=>class extends(e(m,f,U)(t)){init(){const t=Object.create(null,{init:{get:()=>super.init}});return s(this,void 0,void 0,(function*(){var e;yield null===(e=t.init)||void 0===e?void 0:e.call(this)}))}})),F=e((t=>class extends(D(t)){}))(HTMLElement);customElements.define("descope-applications-portal-widget",F);export{F as default};
|
|
6
6
|
//# sourceMappingURL=index.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -975,16 +975,16 @@ declare const ApplicationsPortalWidget: {
|
|
|
975
975
|
tabIndex: number;
|
|
976
976
|
blur: (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void);
|
|
977
977
|
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);
|
|
978
|
-
"__#
|
|
979
|
-
"__#
|
|
978
|
+
"__#24310@#logger": _descope_sdk_mixins.Logger;
|
|
979
|
+
"__#24310@#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);
|
|
980
980
|
logger: _descope_sdk_mixins.Logger;
|
|
981
981
|
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: _descope_sdk_mixins.LogLevel, args: any[]) => void);
|
|
982
|
-
"__#
|
|
982
|
+
"__#24312@#observeMappings": {};
|
|
983
983
|
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);
|
|
984
984
|
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);
|
|
985
|
-
"__#
|
|
985
|
+
"__#24311@#isInit": boolean;
|
|
986
986
|
readonly projectId: string;
|
|
987
|
-
"__#
|
|
987
|
+
"__#24313@#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);
|
|
988
988
|
setHTMLUnsafe(html: string): void;
|
|
989
989
|
ariaBrailleLabel: string | null;
|
|
990
990
|
ariaBrailleRoleDescription: string | null;
|
|
@@ -1017,6 +1017,29 @@ declare const ApplicationsPortalWidget: {
|
|
|
1017
1017
|
};
|
|
1018
1018
|
subscribe: <SelectorR = State>(cb: (state: SelectorR) => void, selector?: (state: State) => SelectorR) => redux.Unsubscribe;
|
|
1019
1019
|
fetchWidgetPage(filename: string): Promise<string>;
|
|
1020
|
+
"__#24314@#lastBaseUrl"?: string;
|
|
1021
|
+
"__#24314@#workingBaseUrl"?: string;
|
|
1022
|
+
"__#24314@#getResourceUrls": ((filename: string) => (URL & {
|
|
1023
|
+
baseUrl: string;
|
|
1024
|
+
})[] | (URL & {
|
|
1025
|
+
baseUrl: string;
|
|
1026
|
+
})) & ((filename: string) => (URL & {
|
|
1027
|
+
baseUrl: string;
|
|
1028
|
+
}) | (URL & {
|
|
1029
|
+
baseUrl: string;
|
|
1030
|
+
})[]) & ((filename: string) => (URL & {
|
|
1031
|
+
baseUrl: string;
|
|
1032
|
+
}) | (URL & {
|
|
1033
|
+
baseUrl: string;
|
|
1034
|
+
})[]) & ((filename: string) => (URL & {
|
|
1035
|
+
baseUrl: string;
|
|
1036
|
+
}) | (URL & {
|
|
1037
|
+
baseUrl: string;
|
|
1038
|
+
})[]) & ((filename: string) => (URL & {
|
|
1039
|
+
baseUrl: string;
|
|
1040
|
+
}) | (URL & {
|
|
1041
|
+
baseUrl: string;
|
|
1042
|
+
})[]);
|
|
1020
1043
|
fetchStaticResource: (<F extends "text" | "json">(filename: string, format: F) => Promise<{
|
|
1021
1044
|
body: F extends "json" ? Record<string, any> : string;
|
|
1022
1045
|
headers: Record<string, string>;
|
|
@@ -1036,21 +1059,21 @@ declare const ApplicationsPortalWidget: {
|
|
|
1036
1059
|
readonly baseStaticUrl: string;
|
|
1037
1060
|
contentRootElement: HTMLElement;
|
|
1038
1061
|
rootElement: HTMLElement;
|
|
1039
|
-
"__#
|
|
1040
|
-
"__#
|
|
1041
|
-
"__#
|
|
1042
|
-
"__#
|
|
1043
|
-
"__#
|
|
1044
|
-
"__#
|
|
1045
|
-
"__#
|
|
1046
|
-
"__#
|
|
1062
|
+
"__#24318@#errorCbsSym": symbol;
|
|
1063
|
+
"__#24318@#loadCbsSym": symbol;
|
|
1064
|
+
"__#24318@#getComponentsVersion": (() => Promise<any>) & (() => Promise<any>);
|
|
1065
|
+
"__#24318@#exposeAlternateEvents": ((scriptEle: HTMLScriptElement) => void) & ((scriptEle: HTMLScriptElement) => void);
|
|
1066
|
+
"__#24318@#handleFallbackScript": ((errorCbs: ((error: string) => void)[], loadCbs: (() => void)[], elemId: string, scriptUrl: string) => Promise<void>) & ((errorCbs: ((error: string) => void)[], loadCbs: (() => void)[], elemId: string, scriptUrl: string) => Promise<void>);
|
|
1067
|
+
"__#24318@#registerEvents": ((scriptEle: HTMLScriptElement) => void) & ((scriptEle: HTMLScriptElement) => void);
|
|
1068
|
+
"__#24318@#getDescopeUiLoadingScript": (() => Promise<HTMLElement>) & (() => Promise<HTMLElement>);
|
|
1069
|
+
"__#24318@#descopeUi": Promise<any>;
|
|
1047
1070
|
readonly descopeUi: Promise<any>;
|
|
1048
|
-
"__#
|
|
1071
|
+
"__#24318@#loadDescopeUiComponent": ((componentName: string) => Promise<any>) & ((componentName: string) => Promise<any>);
|
|
1049
1072
|
loadDescopeUiComponents: ((templateOrComponentNames: HTMLTemplateElement | string[]) => Promise<any[]>) & ((templateOrComponentNames: HTMLTemplateElement | string[]) => Promise<any[]>);
|
|
1050
|
-
"__#
|
|
1073
|
+
"__#24318@#getDescopeUi": (() => Promise<unknown>) & (() => Promise<unknown>);
|
|
1051
1074
|
readonly config: any;
|
|
1052
|
-
"__#
|
|
1053
|
-
"__#
|
|
1075
|
+
"__#24315@#_configResource": any;
|
|
1076
|
+
"__#24315@#fetchConfig": (() => Promise<{
|
|
1054
1077
|
projectConfig: _descope_sdk_mixins.ProjectConfiguration;
|
|
1055
1078
|
executionContext: {
|
|
1056
1079
|
geo: any;
|
|
@@ -1066,23 +1089,23 @@ declare const ApplicationsPortalWidget: {
|
|
|
1066
1089
|
geo: any;
|
|
1067
1090
|
};
|
|
1068
1091
|
}>);
|
|
1069
|
-
"__#
|
|
1092
|
+
"__#24324@#globalStyleTag": HTMLStyleElement;
|
|
1070
1093
|
readonly theme: _descope_sdk_mixins.ThemeOptions;
|
|
1071
1094
|
readonly styleId: string;
|
|
1072
|
-
"__#
|
|
1073
|
-
"__#
|
|
1074
|
-
readonly "__#
|
|
1075
|
-
"__#
|
|
1076
|
-
"__#
|
|
1077
|
-
"__#
|
|
1095
|
+
"__#24324@#_themeResource": Promise<void | Record<string, any>>;
|
|
1096
|
+
"__#24324@#fetchTheme"(): Promise<Record<string, any>>;
|
|
1097
|
+
readonly "__#24324@#themeResource": Promise<void | Record<string, any>>;
|
|
1098
|
+
"__#24324@#loadGlobalStyle"(): Promise<void>;
|
|
1099
|
+
"__#24324@#loadComponentsStyle"(): Promise<void>;
|
|
1100
|
+
"__#24324@#getFontsConfig"(): Promise<Record<string, {
|
|
1078
1101
|
url?: string;
|
|
1079
1102
|
}>>;
|
|
1080
|
-
"__#
|
|
1081
|
-
"__#
|
|
1082
|
-
"__#
|
|
1083
|
-
"__#
|
|
1084
|
-
"__#
|
|
1085
|
-
"__#
|
|
1103
|
+
"__#24324@#loadFonts"(): Promise<void>;
|
|
1104
|
+
"__#24324@#applyTheme"(): Promise<void>;
|
|
1105
|
+
"__#24324@#onThemeChange": () => void;
|
|
1106
|
+
"__#24324@#loadTheme"(): void;
|
|
1107
|
+
"__#24324@#toggleOsThemeChangeListener": (listen: boolean) => void;
|
|
1108
|
+
"__#24317@#debuggerEle": (HTMLElement & {
|
|
1086
1109
|
updateData: (data: {
|
|
1087
1110
|
title: string;
|
|
1088
1111
|
description?: string;
|
|
@@ -1091,11 +1114,11 @@ declare const ApplicationsPortalWidget: {
|
|
|
1091
1114
|
description?: string;
|
|
1092
1115
|
}[]) => void;
|
|
1093
1116
|
}) | null;
|
|
1094
|
-
"__#
|
|
1095
|
-
"__#
|
|
1117
|
+
"__#24317@#disableDebugger"(): void;
|
|
1118
|
+
"__#24317@#enableDebugger"(): Promise<void>;
|
|
1096
1119
|
readonly debug: boolean;
|
|
1097
|
-
"__#
|
|
1098
|
-
"__#
|
|
1120
|
+
"__#24317@#handleDebugMode"(): void;
|
|
1121
|
+
"__#24317@#updateDebuggerMessages"(title: string, description: string): void;
|
|
1099
1122
|
};
|
|
1100
1123
|
};
|
|
1101
1124
|
|