@descope/audit-management-widget 0.1.79 → 0.1.81

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 CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /**
3
- * @descope/audit-management-widget v0.1.79
3
+ * @descope/audit-management-widget v0.1.81
4
4
  */
5
- import{createSingletonMixin as e,compose as t,createTemplate as i,debounce as s,withMemCache as o}from"@descope/sdk-helpers";import{__awaiter as r,__classPrivateFieldGet as a,__classPrivateFieldSet as n}from"tslib";import{projectIdMixin as d,observeAttributesMixin as c,loggerMixin as l,baseUrlMixin as u,createValidateAttributesMixin as h,createStateManagementMixin as g,initLifecycleMixin as m,staticResourcesMixin as p,descopeUiMixin as v,initElementMixin as f,debuggerMixin as w,themeMixin as b}from"@descope/sdk-mixins";import{TextFieldDriver as y,SingleSelectDriver as k,GridDriver as x}from"@descope/sdk-component-drivers";import{createAsyncThunk as R}from"@reduxjs/toolkit";import{createSelector as C}from"reselect";import I from"@descope/web-js-sdk";const L=e=>e.selectedAuditId,j=C((e=>e.auditList.data),(e=>e.map((e=>Object.assign(Object.assign({},e),{occurredFormatted:(null==e?void 0:e.occurred)?new Date(Number(null==e?void 0:e.occurred)||0).toLocaleString():"N/A"})))));C(L,j,((e,t)=>t.find((t=>e===t.id)))),C(L,(e=>!!e));const A=R("audit/search",((e,{extra:{api:t},getState:i})=>{const s=i().searchParams;return t.audit.search(Object.assign(Object.assign({},s),e))})),W=(e=>(...t)=>i=>{i.addCase(e.pending,((e,i)=>{t.forEach((({onPending:t})=>{null==t||t(e,i)}))})),i.addCase(e.fulfilled,((e,i)=>{t.forEach((({onFulfilled:t})=>{null==t||t(e,i)}))})),i.addCase(e.rejected,((e,i)=>{t.forEach((({onRejected:t})=>{null==t||t(e,i)}))}))})(A)({onPending:(e,t)=>{e.searchParams=Object.assign(Object.assign({},e.searchParams),t.meta.arg)},onFulfilled:(e,t)=>{e.auditList.data=t.payload}},(D=e=>e.auditList,{onFulfilled:e=>{D(e).loading=!1},onPending:e=>{D(e).loading=!0,D(e).error=null},onRejected:(e,t)=>{D(e).loading=!1,D(e).error=t.error}}));var D;const S={action:A,reducer:W},$={auditList:{data:[],loading:!1,error:null},searchParams:{text:"",sort:[]},selectedAuditId:""},O={search:"/v1/mgmt/audit/search"},P=e=>r(void 0,[e],void 0,(function*({text:e,sort:t}){return new Promise((i=>{const s=[];for(let e=1;e<9;e+=1)s.push({id:`Audit ${e}`,action:`Action ${e}`,actorId:`Actor ${e}`,type:"info",method:`Method ${e}`,userId:`User ${e}`,device:`Device ${e}`,geo:`Geo ${e}`,remoteAddress:`127.0.0.${e}`,externalIds:[`Login ID ${e}`],occurred:(new Date).getTime()});t.forEach((e=>{s.sort(((t,i)=>{var s,o;return e.desc?null===(o=i[e.field])||void 0===o?void 0:o.localeCompare(t[e.field]):null===(s=t[e.field])||void 0===s?void 0:s.localeCompare(i[e.field])}))})),i(s.filter((t=>t.id.toLowerCase().includes(e.toLowerCase())||t.action.toLowerCase().includes(e.toLowerCase())||t.type.toLowerCase().includes(e.toLowerCase())||t.device.toLowerCase().includes(e.toLowerCase())||t.method.toLowerCase().includes(e.toLowerCase())||t.geo.toLowerCase().includes(e.toLowerCase())||t.remoteAddress.toLowerCase().includes(e.toLowerCase())||t.externalIds.includes(e.toLowerCase())||t.userId.toLowerCase().includes(e.toLowerCase()))))}))})),M=({httpClient:e,tenant:t,mock:i})=>({search:(...s)=>r(void 0,[...s],void 0,(function*({page:s,limit:o=1e4,text:a,sort:n,from:d}={}){if(i)return P({page:s,limit:o,text:a,sort:n},t);const c=yield e.post(O.search,{limit:o,page:s,text:a,sort:n,from:d},{queryParams:{tenant:t}});yield(e=>r(void 0,void 0,void 0,(function*(){const t=yield e.text(),i=JSON.parse(t);if(!e.ok){const t=`${i.errorDescription}${i.errorMessage?`: ${i.errorMessage}`:""}`;throw Error(t||`${e.status} ${e.statusText}`)}e.json=()=>Promise.resolve(i),e.text=()=>Promise.resolve(t)})))(c);return(yield c.json()).audits}))}),E=e((e=>{var i,s,o,g;const m=t(d,c,l,u,h({tenant:h.missingAttrValidator}))(e);return g=class extends m{constructor(){super(...arguments),i.add(this),s.set(this,void 0)}get tenant(){return this.getAttribute("tenant")}get widgetId(){return this.getAttribute("widget-id")}get mock(){return this.getAttribute("mock")}get api(){return a(this,s,"f")||a(this,i,"m",o).call(this),a(this,s,"f")}init(){const e=Object.create(null,{init:{get:()=>super.init}});return r(this,void 0,void 0,(function*(){var t;yield null===(t=e.init)||void 0===t?void 0:t.call(this),this.observeAttributes(["project-id","base-url","tenant"],(()=>{a(this,s,"f")&&a(this,i,"m",o).call(this)}))}))}},s=new WeakMap,i=new WeakSet,o=function(){this.logger.debug("creating an sdk instance"),n(this,s,((e,t,i,s)=>{const o=I(Object.assign(Object.assign({},e),{persistTokens:!0,baseHeaders:{"x-descope-widget-type":"audit-management-widget","x-descope-widget-id":s,"x-descope-widget-version":"0.1.79"}}));return{audit:M({httpClient:o.httpClient,tenant:t,mock:i})}})({projectId:this.projectId,baseUrl:this.baseUrl},this.tenant,"true"===this.mock,this.widgetId),"f")},g})),T=e((e=>{const i=t(g({name:"widget",initialState:$,reducers:{setSelectedAuditId:(e,{payload:t})=>{e.selectedAuditId=t}},extraReducers:e=>{S.reducer(e)},asyncActions:{searchAudit:S.action}}),m,l,E)(e);return class extends i{constructor(...e){super(...e),this.state=$,this.subscribe((e=>{this.logger.debug("State update:",e),this.state=e}))}}})),H=e((e=>{const i=t(p,h({"widget-id":h.missingAttrValidator}))(e);return class extends i{get widgetId(){return this.getAttribute("widget-id")}fetchWidgetPage(e){return r(this,void 0,void 0,(function*(){return(yield this.fetchStaticResource(`audit-management-widget/${this.widgetId}/${e}`,"text")).body}))}}})),q=e((e=>{var s,o,n;return n=class extends(t(l,m,v,f,H,T)(e)){constructor(){super(...arguments),s.add(this)}onWidgetRootReady(){return r(this,void 0,void 0,(function*(){}))}init(){const e=Object.create(null,{init:{get:()=>super.init}});return r(this,void 0,void 0,(function*(){var t;yield null===(t=e.init)||void 0===t?void 0:t.call(this),yield Promise.all([a(this,s,"m",o).call(this)]),this.onWidgetRootReady()}))}},s=new WeakSet,o=function(){return r(this,void 0,void 0,(function*(){const e=i(yield this.fetchWidgetPage("root.html"));yield this.loadDescopeUiComponents(e),this.contentRootElement.append(e.content.cloneNode(!0))}))},n})),F=e((e=>{var i,o,n,d,c;return c=class extends(t(l,q,T)(e)){constructor(){super(...arguments),i.add(this),o.set(this,s((()=>{const e=this.rangeInput.value,t=new Date;let i;switch(e){case"minuets15":i=t.setMinutes(t.getMinutes()-15);break;case"hour":i=t.setHours(t.getHours()-1);break;case"hour6":i=t.setHours(t.getHours()-6);break;case"day":default:i=t.setDate(t.getDate()-1);break;case"day3":i=t.setDate(t.getDate()-3);break;case"week":i=t.setDate(t.getDate()-7);break;case"week2":i=t.setDate(t.getDate()-14);break;case"month":i=t.setMonth(t.getMonth()-1)}this.actions.searchAudit({text:this.searchInput.value,from:Math.floor(new Date(i).getTime())})})))}onWidgetRootReady(){const e=Object.create(null,{onWidgetRootReady:{get:()=>super.onWidgetRootReady}});return r(this,void 0,void 0,(function*(){var t;yield null===(t=e.onWidgetRootReady)||void 0===t?void 0:t.call(this),a(this,i,"m",n).call(this),a(this,i,"m",d).call(this)}))}},o=new WeakMap,i=new WeakSet,n=function(){var e;this.searchInput=new y(null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector('[data-id="search-input"]'),{logger:this.logger}),this.searchInput.onInput(a(this,o,"f"))},d=function(){var e;this.rangeInput=new k(null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector('[data-id="range-input"]'),{logger:this.logger}),this.rangeInput.onInput(a(this,o,"f"))},c})),N=e((e=>{var i,s,n,d;return d=class extends(t(T,l,q)(e)){constructor(){super(...arguments),i.add(this),n.set(this,o((e=>{this.auditTable.data=e})))}onWidgetRootReady(){const e=Object.create(null,{onWidgetRootReady:{get:()=>super.onWidgetRootReady}});return r(this,void 0,void 0,(function*(){var t;yield null===(t=e.onWidgetRootReady)||void 0===t?void 0:t.call(this),a(this,i,"m",s).call(this),a(this,n,"f").call(this,j(this.state)),this.subscribe(a(this,n,"f").bind(this),j)}))}},n=new WeakMap,i=new WeakSet,s=function(){var e;this.auditTable=new x(null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector('[data-id="audit-table"]'),{logger:this.logger}),this.auditTable.onSelectedItemsChange((e=>{this.actions.setSelectedAuditId(e.detail.value.map((({id:e})=>e)))}))},d})),U=e((e=>class extends(t(w,b,N,F)(e)){init(){const e=Object.create(null,{init:{get:()=>super.init}});return r(this,void 0,void 0,(function*(){var t;yield null===(t=e.init)||void 0===t?void 0:t.call(this)}))}})),V=t((e=>class extends(U(e)){}))(HTMLElement);customElements.define("descope-audit-management-widget",V);export{V as default};
5
+ import{createSingletonMixin as e,compose as t,createTemplate as i,debounce as s,withMemCache as o}from"@descope/sdk-helpers";import{__awaiter as r,__classPrivateFieldGet as a,__classPrivateFieldSet as n}from"tslib";import{projectIdMixin as d,observeAttributesMixin as c,loggerMixin as l,baseUrlMixin as u,createValidateAttributesMixin as h,createStateManagementMixin as g,initLifecycleMixin as m,staticResourcesMixin as p,descopeUiMixin as v,initElementMixin as f,debuggerMixin as w,themeMixin as b}from"@descope/sdk-mixins";import{TextFieldDriver as y,SingleSelectDriver as k,GridDriver as x}from"@descope/sdk-component-drivers";import{createAsyncThunk as R}from"@reduxjs/toolkit";import{createSelector as C}from"reselect";import I from"@descope/web-js-sdk";const L=e=>e.selectedAuditId,j=C((e=>e.auditList.data),(e=>e.map((e=>Object.assign(Object.assign({},e),{occurredFormatted:(null==e?void 0:e.occurred)?new Date(Number(null==e?void 0:e.occurred)||0).toLocaleString():"N/A"})))));C(L,j,((e,t)=>t.find((t=>e===t.id)))),C(L,(e=>!!e));const A=R("audit/search",((e,{extra:{api:t},getState:i})=>{const s=i().searchParams;return t.audit.search(Object.assign(Object.assign({},s),e))})),W=(e=>(...t)=>i=>{i.addCase(e.pending,((e,i)=>{t.forEach((({onPending:t})=>{null==t||t(e,i)}))})),i.addCase(e.fulfilled,((e,i)=>{t.forEach((({onFulfilled:t})=>{null==t||t(e,i)}))})),i.addCase(e.rejected,((e,i)=>{t.forEach((({onRejected:t})=>{null==t||t(e,i)}))}))})(A)({onPending:(e,t)=>{e.searchParams=Object.assign(Object.assign({},e.searchParams),t.meta.arg)},onFulfilled:(e,t)=>{e.auditList.data=t.payload}},(D=e=>e.auditList,{onFulfilled:e=>{D(e).loading=!1},onPending:e=>{D(e).loading=!0,D(e).error=null},onRejected:(e,t)=>{D(e).loading=!1,D(e).error=t.error}}));var D;const S={action:A,reducer:W},$={auditList:{data:[],loading:!1,error:null},searchParams:{text:"",sort:[]},selectedAuditId:""},O={search:"/v1/mgmt/audit/search"},P=e=>r(void 0,[e],void 0,(function*({text:e,sort:t}){return new Promise((i=>{const s=[];for(let e=1;e<9;e+=1)s.push({id:`Audit ${e}`,action:`Action ${e}`,actorId:`Actor ${e}`,type:"info",method:`Method ${e}`,userId:`User ${e}`,device:`Device ${e}`,geo:`Geo ${e}`,remoteAddress:`127.0.0.${e}`,externalIds:[`Login ID ${e}`],occurred:(new Date).getTime()});t.forEach((e=>{s.sort(((t,i)=>{var s,o;return e.desc?null===(o=i[e.field])||void 0===o?void 0:o.localeCompare(t[e.field]):null===(s=t[e.field])||void 0===s?void 0:s.localeCompare(i[e.field])}))})),i(s.filter((t=>t.id.toLowerCase().includes(e.toLowerCase())||t.action.toLowerCase().includes(e.toLowerCase())||t.type.toLowerCase().includes(e.toLowerCase())||t.device.toLowerCase().includes(e.toLowerCase())||t.method.toLowerCase().includes(e.toLowerCase())||t.geo.toLowerCase().includes(e.toLowerCase())||t.remoteAddress.toLowerCase().includes(e.toLowerCase())||t.externalIds.includes(e.toLowerCase())||t.userId.toLowerCase().includes(e.toLowerCase()))))}))})),M=({httpClient:e,tenant:t,mock:i})=>({search:(...s)=>r(void 0,[...s],void 0,(function*({page:s,limit:o=1e4,text:a,sort:n,from:d}={}){if(i)return P({page:s,limit:o,text:a,sort:n},t);const c=yield e.post(O.search,{limit:o,page:s,text:a,sort:n,from:d},{queryParams:{tenant:t}});yield(e=>r(void 0,void 0,void 0,(function*(){const t=yield e.text(),i=JSON.parse(t);if(!e.ok){const t=`${i.errorDescription}${i.errorMessage?`: ${i.errorMessage}`:""}`;throw Error(t||`${e.status} ${e.statusText}`)}e.json=()=>Promise.resolve(i),e.text=()=>Promise.resolve(t)})))(c);return(yield c.json()).audits}))}),E=e((e=>{var i,s,o,g;const m=t(d,c,l,u,h({tenant:h.missingAttrValidator}))(e);return g=class extends m{constructor(){super(...arguments),i.add(this),s.set(this,void 0)}get tenant(){return this.getAttribute("tenant")}get widgetId(){return this.getAttribute("widget-id")}get mock(){return this.getAttribute("mock")}get api(){return a(this,s,"f")||a(this,i,"m",o).call(this),a(this,s,"f")}init(){const e=Object.create(null,{init:{get:()=>super.init}});return r(this,void 0,void 0,(function*(){var t;yield null===(t=e.init)||void 0===t?void 0:t.call(this),this.observeAttributes(["project-id","base-url","tenant"],(()=>{a(this,s,"f")&&a(this,i,"m",o).call(this)}))}))}},s=new WeakMap,i=new WeakSet,o=function(){this.logger.debug("creating an sdk instance"),n(this,s,((e,t,i,s)=>{const o=I(Object.assign(Object.assign({},e),{persistTokens:!0,baseHeaders:{"x-descope-widget-type":"audit-management-widget","x-descope-widget-id":s,"x-descope-widget-version":"0.1.81"}}));return{audit:M({httpClient:o.httpClient,tenant:t,mock:i})}})({projectId:this.projectId,baseUrl:this.baseUrl},this.tenant,"true"===this.mock,this.widgetId),"f")},g})),T=e((e=>{const i=t(g({name:"widget",initialState:$,reducers:{setSelectedAuditId:(e,{payload:t})=>{e.selectedAuditId=t}},extraReducers:e=>{S.reducer(e)},asyncActions:{searchAudit:S.action}}),m,l,E)(e);return class extends i{constructor(...e){super(...e),this.state=$,this.subscribe((e=>{this.logger.debug("State update:",e),this.state=e}))}}})),H=e((e=>{const i=t(p,h({"widget-id":h.missingAttrValidator}))(e);return class extends i{get widgetId(){return this.getAttribute("widget-id")}fetchWidgetPage(e){return r(this,void 0,void 0,(function*(){return(yield this.fetchStaticResource(`audit-management-widget/${this.widgetId}/${e}`,"text")).body}))}}})),q=e((e=>{var s,o,n;return n=class extends(t(l,m,v,f,H,T)(e)){constructor(){super(...arguments),s.add(this)}onWidgetRootReady(){return r(this,void 0,void 0,(function*(){}))}init(){const e=Object.create(null,{init:{get:()=>super.init}});return r(this,void 0,void 0,(function*(){var t;yield null===(t=e.init)||void 0===t?void 0:t.call(this),yield Promise.all([a(this,s,"m",o).call(this)]),this.onWidgetRootReady()}))}},s=new WeakSet,o=function(){return r(this,void 0,void 0,(function*(){const e=i(yield this.fetchWidgetPage("root.html"));yield this.loadDescopeUiComponents(e),this.contentRootElement.append(e.content.cloneNode(!0))}))},n})),F=e((e=>{var i,o,n,d,c;return c=class extends(t(l,q,T)(e)){constructor(){super(...arguments),i.add(this),o.set(this,s((()=>{const e=this.rangeInput.value,t=new Date;let i;switch(e){case"minuets15":i=t.setMinutes(t.getMinutes()-15);break;case"hour":i=t.setHours(t.getHours()-1);break;case"hour6":i=t.setHours(t.getHours()-6);break;case"day":default:i=t.setDate(t.getDate()-1);break;case"day3":i=t.setDate(t.getDate()-3);break;case"week":i=t.setDate(t.getDate()-7);break;case"week2":i=t.setDate(t.getDate()-14);break;case"month":i=t.setMonth(t.getMonth()-1)}this.actions.searchAudit({text:this.searchInput.value,from:Math.floor(new Date(i).getTime())})})))}onWidgetRootReady(){const e=Object.create(null,{onWidgetRootReady:{get:()=>super.onWidgetRootReady}});return r(this,void 0,void 0,(function*(){var t;yield null===(t=e.onWidgetRootReady)||void 0===t?void 0:t.call(this),a(this,i,"m",n).call(this),a(this,i,"m",d).call(this)}))}},o=new WeakMap,i=new WeakSet,n=function(){var e;this.searchInput=new y(null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector('[data-id="search-input"]'),{logger:this.logger}),this.searchInput.onInput(a(this,o,"f"))},d=function(){var e;this.rangeInput=new k(null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector('[data-id="range-input"]'),{logger:this.logger}),this.rangeInput.onInput(a(this,o,"f"))},c})),N=e((e=>{var i,s,n,d;return d=class extends(t(T,l,q)(e)){constructor(){super(...arguments),i.add(this),n.set(this,o((e=>{this.auditTable.data=e})))}onWidgetRootReady(){const e=Object.create(null,{onWidgetRootReady:{get:()=>super.onWidgetRootReady}});return r(this,void 0,void 0,(function*(){var t;yield null===(t=e.onWidgetRootReady)||void 0===t?void 0:t.call(this),a(this,i,"m",s).call(this),a(this,n,"f").call(this,j(this.state)),this.subscribe(a(this,n,"f").bind(this),j)}))}},n=new WeakMap,i=new WeakSet,s=function(){var e;this.auditTable=new x(null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelector('[data-id="audit-table"]'),{logger:this.logger}),this.auditTable.onSelectedItemsChange((e=>{this.actions.setSelectedAuditId(e.detail.value.map((({id:e})=>e)))}))},d})),U=e((e=>class extends(t(w,b,N,F)(e)){init(){const e=Object.create(null,{init:{get:()=>super.init}});return r(this,void 0,void 0,(function*(){var t;yield null===(t=e.init)||void 0===t?void 0:t.call(this)}))}})),V=t((e=>class extends(U(e)){}))(HTMLElement);customElements.define("descope-audit-management-widget",V);export{V as default};
6
6
  //# sourceMappingURL=index.js.map
package/dist/index.d.ts CHANGED
@@ -67,11 +67,11 @@ declare const AuditManagementWidget: {
67
67
  search: (config: SearchAuditConfig) => Promise<Audit[]>;
68
68
  };
69
69
  };
70
- "__#12318@#handleError": ((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);
71
- "__#12317@#observeMappings": {};
70
+ "__#12325@#handleError": ((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);
71
+ "__#12324@#observeMappings": {};
72
72
  observeAttribute: ((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);
73
73
  observeAttributes: ((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);
74
- "__#12316@#isInit": boolean;
74
+ "__#12323@#isInit": boolean;
75
75
  connectedCallback: (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void);
76
76
  accessKey: string;
77
77
  readonly accessKeyLabel: string;
@@ -934,13 +934,13 @@ declare const AuditManagementWidget: {
934
934
  tabIndex: number;
935
935
  blur: (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void) & (() => void);
936
936
  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);
937
- "__#12315@#logger": {
937
+ "__#12322@#logger": {
938
938
  error(...data: any[]): void;
939
939
  warn(...data: any[]): void;
940
940
  info(...data: any[]): void;
941
941
  debug(...data: any[]): void;
942
942
  };
943
- "__#12315@#wrapLogger": ((logger: Partial<{
943
+ "__#12322@#wrapLogger": ((logger: Partial<{
944
944
  error(...data: any[]): void;
945
945
  warn(...data: any[]): void;
946
946
  info(...data: any[]): void;
@@ -1491,21 +1491,21 @@ declare const AuditManagementWidget: {
1491
1491
  readonly baseStaticUrl: string;
1492
1492
  contentRootElement: HTMLElement;
1493
1493
  rootElement: HTMLElement;
1494
- "__#12322@#errorCbsSym": symbol;
1495
- "__#12322@#loadCbsSym": symbol;
1496
- "__#12322@#getComponentsVersion": (() => Promise<any>) & (() => Promise<any>);
1497
- "__#12322@#exposeAlternateEvents": ((scriptEle: HTMLScriptElement) => void) & ((scriptEle: HTMLScriptElement) => void);
1498
- "__#12322@#handleFallbackScript": ((errorCbs: ((error: string) => void)[], loadCbs: (() => void)[]) => Promise<void>) & ((errorCbs: ((error: string) => void)[], loadCbs: (() => void)[]) => Promise<void>);
1499
- "__#12322@#registerEvents": ((scriptEle: HTMLScriptElement) => void) & ((scriptEle: HTMLScriptElement) => void);
1500
- "__#12322@#getDescopeUiLoadingScript": (() => Promise<HTMLElement>) & (() => Promise<HTMLElement>);
1501
- "__#12322@#descopeUi": Promise<any>;
1494
+ "__#12329@#errorCbsSym": symbol;
1495
+ "__#12329@#loadCbsSym": symbol;
1496
+ "__#12329@#getComponentsVersion": (() => Promise<any>) & (() => Promise<any>);
1497
+ "__#12329@#exposeAlternateEvents": ((scriptEle: HTMLScriptElement) => void) & ((scriptEle: HTMLScriptElement) => void);
1498
+ "__#12329@#handleFallbackScript": ((errorCbs: ((error: string) => void)[], loadCbs: (() => void)[]) => Promise<void>) & ((errorCbs: ((error: string) => void)[], loadCbs: (() => void)[]) => Promise<void>);
1499
+ "__#12329@#registerEvents": ((scriptEle: HTMLScriptElement) => void) & ((scriptEle: HTMLScriptElement) => void);
1500
+ "__#12329@#getDescopeUiLoadingScript": (() => Promise<HTMLElement>) & (() => Promise<HTMLElement>);
1501
+ "__#12329@#descopeUi": Promise<any>;
1502
1502
  readonly descopeUi: Promise<any>;
1503
- "__#12322@#loadDescopeUiComponent": ((componentName: string) => Promise<any>) & ((componentName: string) => Promise<any>);
1503
+ "__#12329@#loadDescopeUiComponent": ((componentName: string) => Promise<any>) & ((componentName: string) => Promise<any>);
1504
1504
  loadDescopeUiComponents: ((templateOrComponentNames: string[] | HTMLTemplateElement) => Promise<any[]>) & ((templateOrComponentNames: string[] | HTMLTemplateElement) => Promise<any[]>);
1505
- "__#12322@#getDescopeUi": (() => Promise<unknown>) & (() => Promise<unknown>);
1505
+ "__#12329@#getDescopeUi": (() => Promise<unknown>) & (() => Promise<unknown>);
1506
1506
  readonly config: any;
1507
- "__#12319@#_configResource": any;
1508
- "__#12319@#fetchConfig": (() => Promise<{
1507
+ "__#12326@#_configResource": any;
1508
+ "__#12326@#fetchConfig": (() => Promise<{
1509
1509
  projectConfig: _descope_sdk_mixins.ProjectConfiguration;
1510
1510
  executionContext: {
1511
1511
  geo: string;
@@ -1538,15 +1538,20 @@ declare const AuditManagementWidget: {
1538
1538
  externalIds: string[];
1539
1539
  data?: Record<string, string>;
1540
1540
  }[]) => void;
1541
+ "__#12335@#globalStyleTag": HTMLStyleElement;
1541
1542
  readonly theme: _descope_sdk_mixins.ThemeOptions;
1542
- "__#12328@#_themeResource": Promise<void | Record<string, any>>;
1543
- "__#12328@#fetchTheme"(): Promise<Record<string, any>>;
1544
- readonly "__#12328@#themeResource": Promise<void | Record<string, any>>;
1545
- "__#12328@#loadGlobalStyle"(): Promise<void>;
1546
- "__#12328@#loadComponentsStyle"(): Promise<void>;
1547
- "__#12328@#loadFonts"(): Promise<void>;
1548
- "__#12328@#applyTheme"(): Promise<void>;
1549
- "__#12321@#debuggerEle": HTMLElement & {
1543
+ readonly styleId: string;
1544
+ "__#12335@#_themeResource": Promise<void | Record<string, any>>;
1545
+ "__#12335@#fetchTheme"(): Promise<Record<string, any>>;
1546
+ readonly "__#12335@#themeResource": Promise<void | Record<string, any>>;
1547
+ "__#12335@#loadGlobalStyle"(): Promise<void>;
1548
+ "__#12335@#loadComponentsStyle"(): Promise<void>;
1549
+ "__#12335@#getFontsConfig"(): Promise<Record<string, {
1550
+ url?: string;
1551
+ }>>;
1552
+ "__#12335@#loadFonts"(): Promise<void>;
1553
+ "__#12335@#applyTheme"(): Promise<void>;
1554
+ "__#12328@#debuggerEle": HTMLElement & {
1550
1555
  updateData: (data: {
1551
1556
  title: string;
1552
1557
  description?: string;
@@ -1555,11 +1560,11 @@ declare const AuditManagementWidget: {
1555
1560
  description?: string;
1556
1561
  }[]) => void;
1557
1562
  };
1558
- "__#12321@#disableDebugger"(): void;
1559
- "__#12321@#enableDebugger"(): Promise<void>;
1563
+ "__#12328@#disableDebugger"(): void;
1564
+ "__#12328@#enableDebugger"(): Promise<void>;
1560
1565
  readonly debug: boolean;
1561
- "__#12321@#handleDebugMode"(): void;
1562
- "__#12321@#updateDebuggerMessages"(title: string, description: string): void;
1566
+ "__#12328@#handleDebugMode"(): void;
1567
+ "__#12328@#updateDebuggerMessages"(title: string, description: string): void;
1563
1568
  };
1564
1569
  };
1565
1570