@descope/applications-portal-widget 0.2.17 → 0.2.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 +37 -37
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
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.19
|
|
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.19"}}));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
|
+
"__#24332@#logger": _descope_sdk_mixins.Logger;
|
|
979
|
+
"__#24332@#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
|
+
"__#24334@#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
|
+
"__#24333@#isInit": boolean;
|
|
986
986
|
readonly projectId: string;
|
|
987
|
-
"__#
|
|
987
|
+
"__#24335@#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,9 +1017,9 @@ 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
|
-
"__#
|
|
1021
|
-
"__#
|
|
1022
|
-
"__#
|
|
1020
|
+
"__#24336@#lastBaseUrl"?: string;
|
|
1021
|
+
"__#24336@#workingBaseUrl"?: string;
|
|
1022
|
+
"__#24336@#getResourceUrls": ((filename: string) => (URL & {
|
|
1023
1023
|
baseUrl: string;
|
|
1024
1024
|
})[] | (URL & {
|
|
1025
1025
|
baseUrl: string;
|
|
@@ -1059,21 +1059,21 @@ declare const ApplicationsPortalWidget: {
|
|
|
1059
1059
|
readonly baseStaticUrl: string;
|
|
1060
1060
|
contentRootElement: HTMLElement;
|
|
1061
1061
|
rootElement: HTMLElement;
|
|
1062
|
-
"__#
|
|
1063
|
-
"__#
|
|
1064
|
-
"__#
|
|
1065
|
-
"__#
|
|
1066
|
-
"__#
|
|
1067
|
-
"__#
|
|
1068
|
-
"__#
|
|
1069
|
-
"__#
|
|
1062
|
+
"__#24340@#errorCbsSym": symbol;
|
|
1063
|
+
"__#24340@#loadCbsSym": symbol;
|
|
1064
|
+
"__#24340@#getComponentsVersion": (() => Promise<any>) & (() => Promise<any>);
|
|
1065
|
+
"__#24340@#exposeAlternateEvents": ((scriptEle: HTMLScriptElement) => void) & ((scriptEle: HTMLScriptElement) => void);
|
|
1066
|
+
"__#24340@#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
|
+
"__#24340@#registerEvents": ((scriptEle: HTMLScriptElement) => void) & ((scriptEle: HTMLScriptElement) => void);
|
|
1068
|
+
"__#24340@#getDescopeUiLoadingScript": (() => Promise<HTMLElement>) & (() => Promise<HTMLElement>);
|
|
1069
|
+
"__#24340@#descopeUi": Promise<any>;
|
|
1070
1070
|
readonly descopeUi: Promise<any>;
|
|
1071
|
-
"__#
|
|
1071
|
+
"__#24340@#loadDescopeUiComponent": ((componentName: string) => Promise<any>) & ((componentName: string) => Promise<any>);
|
|
1072
1072
|
loadDescopeUiComponents: ((templateOrComponentNames: HTMLTemplateElement | string[]) => Promise<any[]>) & ((templateOrComponentNames: HTMLTemplateElement | string[]) => Promise<any[]>);
|
|
1073
|
-
"__#
|
|
1073
|
+
"__#24340@#getDescopeUi": (() => Promise<unknown>) & (() => Promise<unknown>);
|
|
1074
1074
|
readonly config: any;
|
|
1075
|
-
"__#
|
|
1076
|
-
"__#
|
|
1075
|
+
"__#24337@#_configResource": any;
|
|
1076
|
+
"__#24337@#fetchConfig": (() => Promise<{
|
|
1077
1077
|
projectConfig: _descope_sdk_mixins.ProjectConfiguration;
|
|
1078
1078
|
executionContext: {
|
|
1079
1079
|
geo: any;
|
|
@@ -1089,23 +1089,23 @@ declare const ApplicationsPortalWidget: {
|
|
|
1089
1089
|
geo: any;
|
|
1090
1090
|
};
|
|
1091
1091
|
}>);
|
|
1092
|
-
"__#
|
|
1092
|
+
"__#24346@#globalStyleTag": HTMLStyleElement;
|
|
1093
1093
|
readonly theme: _descope_sdk_mixins.ThemeOptions;
|
|
1094
1094
|
readonly styleId: string;
|
|
1095
|
-
"__#
|
|
1096
|
-
"__#
|
|
1097
|
-
readonly "__#
|
|
1098
|
-
"__#
|
|
1099
|
-
"__#
|
|
1100
|
-
"__#
|
|
1095
|
+
"__#24346@#_themeResource": Promise<void | Record<string, any>>;
|
|
1096
|
+
"__#24346@#fetchTheme"(): Promise<Record<string, any>>;
|
|
1097
|
+
readonly "__#24346@#themeResource": Promise<void | Record<string, any>>;
|
|
1098
|
+
"__#24346@#loadGlobalStyle"(): Promise<void>;
|
|
1099
|
+
"__#24346@#loadComponentsStyle"(): Promise<void>;
|
|
1100
|
+
"__#24346@#getFontsConfig"(): Promise<Record<string, {
|
|
1101
1101
|
url?: string;
|
|
1102
1102
|
}>>;
|
|
1103
|
-
"__#
|
|
1104
|
-
"__#
|
|
1105
|
-
"__#
|
|
1106
|
-
"__#
|
|
1107
|
-
"__#
|
|
1108
|
-
"__#
|
|
1103
|
+
"__#24346@#loadFonts"(): Promise<void>;
|
|
1104
|
+
"__#24346@#applyTheme"(): Promise<void>;
|
|
1105
|
+
"__#24346@#onThemeChange": () => void;
|
|
1106
|
+
"__#24346@#loadTheme"(): void;
|
|
1107
|
+
"__#24346@#toggleOsThemeChangeListener": (listen: boolean) => void;
|
|
1108
|
+
"__#24339@#debuggerEle": (HTMLElement & {
|
|
1109
1109
|
updateData: (data: {
|
|
1110
1110
|
title: string;
|
|
1111
1111
|
description?: string;
|
|
@@ -1114,11 +1114,11 @@ declare const ApplicationsPortalWidget: {
|
|
|
1114
1114
|
description?: string;
|
|
1115
1115
|
}[]) => void;
|
|
1116
1116
|
}) | null;
|
|
1117
|
-
"__#
|
|
1118
|
-
"__#
|
|
1117
|
+
"__#24339@#disableDebugger"(): void;
|
|
1118
|
+
"__#24339@#enableDebugger"(): Promise<void>;
|
|
1119
1119
|
readonly debug: boolean;
|
|
1120
|
-
"__#
|
|
1121
|
-
"__#
|
|
1120
|
+
"__#24339@#handleDebugMode"(): void;
|
|
1121
|
+
"__#24339@#updateDebuggerMessages"(title: string, description: string): void;
|
|
1122
1122
|
};
|
|
1123
1123
|
};
|
|
1124
1124
|
|