@webority/web-core 0.153.0 → 0.154.0

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.
@@ -1 +1 @@
1
- import{setRemoteLogger as e}from"../logger/logger.js";import{ApplicationInsights as t,SeverityLevel as n}from"@microsoft/applicationinsights-web";var r=500,i=/^(?:(\d+)\.)?(\d+):(\d+):(\d+(?:\.\d+)?)$/,a={info:n.Information,warn:n.Warning,error:n.Error},o=/* @__PURE__ */ new Map;function s(n){if(n.connectionString===``||l())return null;let i;try{i=new URL(n.apiBaseUrl,window.location.href).hostname}catch{throw Error(`initAppInsights: apiBaseUrl must be a URL, absolute or relative to the page`)}let s=n.environment===``||n.environment===`Production`?n.cloudRole:`${n.cloudRole}-${n.environment.toLowerCase()}`,u=n.slowDependencyMs??r,f=new t({config:{connectionString:n.connectionString,extensions:n.extensions??[],enableAutoRouteTracking:!0,disableAjaxTracking:!1,autoTrackPageVisitTime:!1,enableCorsCorrelation:!0,enableRequestHeaderTracking:!1,enableResponseHeaderTracking:!1,correlationHeaderDomains:[i],disableCookiesUsage:!0,disablePageUnloadEvents:[`unload`]}});f.loadAppInsights(),f.addTelemetryInitializer(e=>{e.tags=e.tags??{},e.tags[`ai.cloud.role`]=s,e.tags[`ai.application.ver`]=n.version}),f.addTelemetryInitializer(w),f.addTelemetryInitializer(C),f.addTelemetryInitializer(e=>d(e,u)),f.addDependencyInitializer(e=>p(e,i));for(let e of n.initializers??[])f.addTelemetryInitializer(e);return T(f),e(c([{log:(e,t)=>{e!==`debug`&&f.trackTrace({message:t,severityLevel:a[e]})},recordError:(e,t)=>{f.trackException({exception:e instanceof Error?e:Error(String(e))},t)},setUser:e=>{typeof e==`string`?f.setAuthenticatedUserContext(e):f.clearAuthenticatedUserContext()},setAttribute:(e,t)=>{o.set(e,t)}},...n.sinks??[]])),f}function c(e){let t=t=>{for(let n of e)try{t(n)}catch{}};return{breadcrumb:(e,n)=>t(t=>t.breadcrumb?.(e,n)),recordError:(e,n)=>t(t=>t.recordError?.(e,n)),setUser:(e,n)=>t(t=>t.setUser?.(e,n)),setAttribute:(e,n)=>t(t=>t.setAttribute?.(e,n)),log:(e,n,r)=>t(t=>t.log?.(e,n,r))}}function l(){let e=globalThis,t=`process`in e?e.process:void 0,n=typeof t==`object`&&t&&`env`in t?t.env:void 0;return typeof n==`object`&&!!n&&`VITEST`in n&&!!n.VITEST}function u(e){if(typeof e==`number`)return e;let t=typeof e==`string`?i.exec(e):null;if(!t)return;let[,n=`0`,r,a,o]=t;return(((Number(n)*24+Number(r))*60+Number(a))*60+Number(o))*1e3}function d(e,t=r){if(e.baseType===`MetricData`)return!1;if(e.baseType!==`RemoteDependencyData`||e.baseData?.success!==!0)return!0;let n=u(e.baseData.duration);return n===void 0||n>=t}function f(e){if(typeof e!=`string`||e===``)return``;try{return new URL(e.includes(`://`)?e:`https://${e}`).hostname}catch{return``}}function p({item:e},t){let n=Number(e?.responseCode);return n>0&&n<400?f(e.target)!==t:!0}var m=/* @__PURE__ */ new Set([`token`,`code`,`email`,`access_token`,`id_token`,`state`,`session_state`,`password`,`search`,`q`,`query`]),h=[`uri`,`refUri`,`url`],g=[`name`,`data`,`message`],_=/^(\/|https?:\/\/)/i;function v(e){if(typeof e!=`string`||e===``)return e;let t=e.indexOf(`#`),n=t===-1?e:e.slice(0,t),r=n.indexOf(`?`);if(r===-1)return n;let i=new URLSearchParams;for(let[e,t]of new URLSearchParams(n.slice(r+1)))m.has(e.toLowerCase())||i.append(e,_.test(t)?v(t):t);let a=i.toString();return a?`${n.slice(0,r)}?${a}`:n.slice(0,r)}var y=/[^\s"'<>]+/g,b=/https?:\/\/./i;function x(e){let t=e.search(b),n=e.indexOf(`/`),r=n!==-1&&n<e.lastIndexOf(`?`)?n:-1,i=t===-1?r:r===-1?t:Math.min(t,r);return i===-1?e:e.slice(0,i)+v(e.slice(i))}function S(e){return e.replace(y,e=>x(e))}function C(e){for(let t of[e.baseData,e.baseData?.properties,e.data])if(t){for(let e of h)typeof t[e]==`string`&&(t[e]=v(t[e]));for(let e of g)typeof t[e]==`string`&&(t[e]=S(t[e]))}}function w(e){e.data=e.data??{};for(let[t,n]of o)n===null?delete e.data[t]:e.data[t]=n}function T(e){window.history.state?.idx!=null&&e.trackPageView()}export{s as initAppInsights,d as keepFailedOrSlowDependency,S as scrubText,v as scrubUrl};
1
+ import{setRemoteLogger as e}from"../logger/logger.js";import{ApplicationInsights as t,SeverityLevel as n}from"@microsoft/applicationinsights-web";var r=500,i=/^(?:(\d+)\.)?(\d+):(\d+):(\d+(?:\.\d+)?)$/,a={info:n.Information,warn:n.Warning,error:n.Error},o=/* @__PURE__ */ new Map;function s(n){if(n.connectionString===``||l())return null;let i;try{i=new URL(n.apiBaseUrl,window.location.href).hostname}catch{throw Error(`initAppInsights: apiBaseUrl must be a URL, absolute or relative to the page`)}let s=n.environment===``||n.environment===`Production`?n.cloudRole:`${n.cloudRole}-${n.environment.toLowerCase()}`,u=n.slowDependencyMs??r,f=new t({config:{connectionString:n.connectionString,extensions:n.extensions??[],enableAutoRouteTracking:!0,disableAjaxTracking:!1,autoTrackPageVisitTime:!1,enableCorsCorrelation:!0,enableRequestHeaderTracking:!1,enableResponseHeaderTracking:!1,correlationHeaderDomains:[i],disableCookiesUsage:!0,disablePageUnloadEvents:[`unload`]}});f.loadAppInsights(),f.addTelemetryInitializer(e=>{e.tags=e.tags??{},e.tags[`ai.cloud.role`]=s,e.tags[`ai.application.ver`]=n.version}),f.addTelemetryInitializer(w),f.addTelemetryInitializer(C),f.addTelemetryInitializer(e=>d(e,u)),f.addDependencyInitializer(e=>p(e,i));for(let e of n.initializers??[])f.addTelemetryInitializer(e);return T(f),e(c([{log:(e,t)=>{e!==`debug`&&f.trackTrace({message:t,severityLevel:a[e]})},recordError:(e,t)=>{f.trackException({exception:e instanceof Error?e:Error(String(e))},t)},setUser:e=>{typeof e==`string`?f.setAuthenticatedUserContext(e):f.clearAuthenticatedUserContext()},setAttribute:(e,t)=>{o.set(e,t)}},...n.sinks??[]])),f}function c(e){let t=t=>{let n=[];for(let r of e)try{t(r)}catch(e){n.push(e)}if(n.length===1)throw n[0];if(n.length>1)throw AggregateError(n,`Several remote sinks failed.`)};return{breadcrumb:(e,n)=>t(t=>t.breadcrumb?.(e,n)),recordError:(e,n)=>t(t=>t.recordError?.(e,n)),setUser:(e,n)=>t(t=>t.setUser?.(e,n)),setAttribute:(e,n)=>t(t=>t.setAttribute?.(e,n)),log:(e,n,r)=>t(t=>t.log?.(e,n,r))}}function l(){let e=globalThis,t=`process`in e?e.process:void 0,n=typeof t==`object`&&t&&`env`in t?t.env:void 0;return typeof n==`object`&&!!n&&`VITEST`in n&&!!n.VITEST}function u(e){if(typeof e==`number`)return e;let t=typeof e==`string`?i.exec(e):null;if(!t)return;let[,n=`0`,r,a,o]=t;return(((Number(n)*24+Number(r))*60+Number(a))*60+Number(o))*1e3}function d(e,t=r){if(e.baseType===`MetricData`)return!1;if(e.baseType!==`RemoteDependencyData`||e.baseData?.success!==!0)return!0;let n=u(e.baseData.duration);return n===void 0||n>=t}function f(e){if(typeof e!=`string`||e===``)return``;try{return new URL(e.includes(`://`)?e:`https://${e}`).hostname}catch{return``}}function p({item:e},t){let n=Number(e?.responseCode);return n>0&&n<400?f(e.target)!==t:!0}var m=/* @__PURE__ */ new Set([`token`,`code`,`email`,`access_token`,`id_token`,`state`,`session_state`,`password`,`search`,`q`,`query`]),h=[`uri`,`refUri`,`url`],g=[`name`,`data`,`message`],_=/^(\/|https?:\/\/)/i;function v(e){if(typeof e!=`string`||e===``)return e;let t=e.indexOf(`#`),n=t===-1?e:e.slice(0,t),r=n.indexOf(`?`);if(r===-1)return n;let i=new URLSearchParams;for(let[e,t]of new URLSearchParams(n.slice(r+1)))m.has(e.toLowerCase())||i.append(e,_.test(t)?v(t):t);let a=i.toString();return a?`${n.slice(0,r)}?${a}`:n.slice(0,r)}var y=/[^\s"'<>]+/g,b=/https?:\/\/./i;function x(e){let t=e.search(b),n=e.indexOf(`/`),r=n!==-1&&n<e.lastIndexOf(`?`)?n:-1,i=t===-1?r:r===-1?t:Math.min(t,r);return i===-1?e:e.slice(0,i)+v(e.slice(i))}function S(e){return e.replace(y,e=>x(e))}function C(e){for(let t of[e.baseData,e.baseData?.properties,e.data])if(t){for(let e of h)typeof t[e]==`string`&&(t[e]=v(t[e]));for(let e of g)typeof t[e]==`string`&&(t[e]=S(t[e]))}}function w(e){e.data=e.data??{};for(let[t,n]of o)n===null?delete e.data[t]:e.data[t]=n}function T(e){window.history.state?.idx!=null&&e.trackPageView()}export{s as initAppInsights,d as keepFailedOrSlowDependency,S as scrubText,v as scrubUrl};
@@ -1 +1 @@
1
- import{Logger as e}from"../logger/logger.js";import{getJWTExpiry as t}from"./jwt.js";var n=`accessToken`,r=`refreshToken`,i=`sessionUser`,a=2592e6,o=/* @__PURE__ */ new Set([n,r,i]),s=null,c=()=>globalThis.localStorage,l=()=>globalThis.sessionStorage,u=(e,t)=>{try{return e().getItem(t)}catch{return null}},d=(e,t)=>{try{e().removeItem(t)}catch{}},f=()=>s===null?u(c,`refreshToken`)!==null||u(c,`accessToken`)!==null:s,p=()=>f()?c:l,m=()=>f()?l:c,h=t=>{let n=s;s=t;let r=p(),i=m();for(let t of o){let a=u(i,t);if(a!==null)try{r().setItem(t,a),d(i,t)}catch(r){throw s=n,e.error(`[authStore] could not move "${t}" to the chosen store`,r),r}}},g=/* @__PURE__ */ new Set,_=`sessionEnded`,v=()=>u(l,_)!==null,y=(t,n)=>{try{l().setItem(_,t)}catch{}for(let r of[...g])try{r(t,n)}catch(t){e.error(`[authStore] a session-ended listener threw`,t)}},b=e=>{if(e.storageArea!==c())return;let t=e.key===`refreshToken`&&e.oldValue!==null&&e.newValue===null;(e.key===null||t)&&u(l,`refreshToken`)===null&&y(`otherTab`,{code:null,detail:null})},x=e=>(g.size===0&&typeof window<`u`&&window.addEventListener(`storage`,b),g.add(e),()=>{g.delete(e),g.size===0&&typeof window<`u`&&window.removeEventListener(`storage`,b)}),S=async(t,n,r)=>{try{p()().setItem(t,JSON.stringify({token:n,expiry:r})),d(m(),t),d(l,_)}catch(n){throw e.error(`Error storing token for key: ${t}`,n),n}},C=e=>typeof e==`object`&&!!e&&`token`in e&&typeof e.token==`string`&&`expiry`in e&&typeof e.expiry==`string`,w=e=>{try{let t=JSON.parse(e);return C(t)?t:null}catch{return null}},T=e=>u(l,e)??u(c,e),E=async t=>{let n=T(t);return n===null&&M(t)&&R()&&(n=T(t)),n===null?null:w(n)||(e.warn(`Stored credentials for key "${t}" are not a valid token; clearing them.`),M(t)?await z(`corrupt`,!0):await O(t),null)},D=()=>{T(`refreshToken`)===null&&T(`accessToken`)===null&&R();let e=T(r);if(e!==null&&w(e)!==null)return!0;let t=T(n),i=t===null?null:w(t);if(i===null)return!1;let a=Date.parse(i.expiry);return Number.isNaN(a)||a>Date.now()},O=async e=>{d(c,e),d(l,e)},k=async t=>{try{p()().setItem(i,JSON.stringify(t)),d(m(),i)}catch(t){throw e.error(`Error storing the session user`,t),t}},A=async t=>{let n=T(i);if(n===null)return null;let r;try{r=JSON.parse(n)}catch{return e.warn(`The stored session user is not valid JSON; clearing it.`),await j(),null}return r===null?null:t(r)},j=async()=>{d(c,i),d(l,i)},M=e=>e===`accessToken`||e===`refreshToken`,N=null,P=!1,F=e=>{N=e,P=!1},I=e=>{let t=w(e);if(t)return t;let n=e;try{let t=JSON.parse(e);typeof t==`string`&&(n=t)}catch{}return n.trim()===``?null:{token:n,expiry:null}},L=e=>e.split(`.`).length===3?t(e)?.toISOString()??null:null,R=()=>{if(!N||P)return!1;P=!0;let t=N,a=[c,l].every(e=>u(e,`accessToken`)===null&&u(e,`refreshToken`)===null),o=!1;for(let s of[c,l]){let l=u(s,t.accessToken),f=u(s,t.refreshToken),p=t.sessionUser?u(s,t.sessionUser):null,m=!1;if(a&&!o&&(l!==null||f!==null))try{let t=l===null?null:I(l),a=f===null?null:I(f);if(t){let e=t.expiry??L(t.token)??(/* @__PURE__ */ new Date()).toISOString();s().setItem(n,JSON.stringify({token:t.token,expiry:e}))}if(a){let e=a.expiry??L(a.token)??new Date(Date.now()+2592e6).toISOString();s().setItem(r,JSON.stringify({token:a.token,expiry:e}))}p!==null&&s().setItem(i,p),o=t!==null||a!==null,o&&e.breadcrumb(`[authStore] moved a session from the legacy token keys`,{store:s===c?`localStorage`:`sessionStorage`})}catch(t){m=!0,d(s,n),d(s,r),e.error(`[authStore] could not move the session from the legacy token keys`,t)}if(!m)for(let e of[t.accessToken,t.refreshToken,t.sessionUser])e&&d(s,e)}return o},z=async(e,t,i=null,a=null)=>{let o=t||await E(`accessToken`)!==null||await E(`refreshToken`)!==null;await O(n),await O(r),await j(),s=null,(o||t)&&y(e,{code:i,detail:a})},B=async(e=`signedOut`,t={})=>z(e,!1,t.code??null,t.detail??null);export{n as ACCESS_TOKEN_KEY,a as LEGACY_REFRESH_TOKEN_LIFETIME_MS,r as REFRESH_TOKEN_KEY,i as SESSION_USER_KEY,x as addSessionEndedListener,B as clearSession,f as getKeepSignedIn,A as getSessionUser,E as getToken,D as hasSession,v as hasSessionEndedInTab,j as removeSessionUser,O as removeToken,h as setKeepSignedIn,F as setLegacyTokenKeys,k as storeSessionUser,S as storeToken};
1
+ import{Logger as e}from"../logger/logger.js";import{getJWTExpiry as t}from"./jwt.js";var n=`accessToken`,r=`refreshToken`,i=`sessionUser`,a=2592e6,o=/* @__PURE__ */ new Set([n,r,i]),s=null,c=()=>globalThis.localStorage,l=()=>globalThis.sessionStorage,u=(e,t)=>{try{return e().getItem(t)}catch{return null}},d=(e,t)=>{try{e().removeItem(t)}catch(e){if(!(e instanceof DOMException))throw e}},f=()=>s===null?u(c,`refreshToken`)!==null||u(c,`accessToken`)!==null:s,p=()=>f()?c:l,m=()=>f()?l:c,h=t=>{let n=s;s=t;let r=p(),i=m();for(let t of o){let a=u(i,t);if(a!==null)try{r().setItem(t,a),d(i,t)}catch(r){throw s=n,e.error(`[authStore] could not move "${t}" to the chosen store`,r),r}}},g=/* @__PURE__ */ new Set,_=`sessionEnded`,v=()=>u(l,_)!==null,y=(t,n)=>{try{l().setItem(_,t)}catch(e){if(!(e instanceof DOMException))throw e}for(let r of[...g])try{r(t,n)}catch(t){e.error(`[authStore] a session-ended listener threw`,t)}},b=e=>{if(e.storageArea!==c())return;let t=e.key===`refreshToken`&&e.oldValue!==null&&e.newValue===null;(e.key===null||t)&&u(l,`refreshToken`)===null&&y(`otherTab`,{code:null,detail:null})},x=e=>(g.size===0&&typeof window<`u`&&window.addEventListener(`storage`,b),g.add(e),()=>{g.delete(e),g.size===0&&typeof window<`u`&&window.removeEventListener(`storage`,b)}),S=async(t,n,r)=>{try{p()().setItem(t,JSON.stringify({token:n,expiry:r})),d(m(),t),d(l,_)}catch(n){throw e.error(`Error storing token for key: ${t}`,n),n}},C=e=>typeof e==`object`&&!!e&&`token`in e&&typeof e.token==`string`&&`expiry`in e&&typeof e.expiry==`string`,w=e=>{try{let t=JSON.parse(e);return C(t)?t:null}catch{return null}},T=e=>u(l,e)??u(c,e),E=async t=>{let n=T(t);return n===null&&M(t)&&R()&&(n=T(t)),n===null?null:w(n)||(e.warn(`Stored credentials for key "${t}" are not a valid token; clearing them.`),M(t)?await z(`corrupt`,!0):await O(t),null)},D=()=>{T(`refreshToken`)===null&&T(`accessToken`)===null&&R();let e=T(r);if(e!==null&&w(e)!==null)return!0;let t=T(n),i=t===null?null:w(t);if(i===null)return!1;let a=Date.parse(i.expiry);return Number.isNaN(a)||a>Date.now()},O=async e=>{d(c,e),d(l,e)},k=async t=>{try{p()().setItem(i,JSON.stringify(t)),d(m(),i)}catch(t){throw e.error(`Error storing the session user`,t),t}},A=async t=>{let n=T(i);if(n===null)return null;let r;try{r=JSON.parse(n)}catch{return e.warn(`The stored session user is not valid JSON; clearing it.`),await j(),null}return r===null?null:t(r)},j=async()=>{d(c,i),d(l,i)},M=e=>e===`accessToken`||e===`refreshToken`,N=null,P=!1,F=e=>{N=e,P=!1},I=e=>{let t=w(e);if(t)return t;let n=e;try{let t=JSON.parse(e);typeof t==`string`&&(n=t)}catch(e){if(!(e instanceof SyntaxError))throw e}return n.trim()===``?null:{token:n,expiry:null}},L=e=>e.split(`.`).length===3?t(e)?.toISOString()??null:null,R=()=>{if(!N||P)return!1;P=!0;let t=N,a=[c,l].every(e=>u(e,`accessToken`)===null&&u(e,`refreshToken`)===null),o=!1;for(let s of[c,l]){let l=u(s,t.accessToken),f=u(s,t.refreshToken),p=t.sessionUser?u(s,t.sessionUser):null,m=!1;if(a&&!o&&(l!==null||f!==null))try{let t=l===null?null:I(l),a=f===null?null:I(f);if(t){let e=t.expiry??L(t.token)??(/* @__PURE__ */ new Date()).toISOString();s().setItem(n,JSON.stringify({token:t.token,expiry:e}))}if(a){let e=a.expiry??L(a.token)??new Date(Date.now()+2592e6).toISOString();s().setItem(r,JSON.stringify({token:a.token,expiry:e}))}p!==null&&s().setItem(i,p),o=t!==null||a!==null,o&&e.breadcrumb(`[authStore] moved a session from the legacy token keys`,{store:s===c?`localStorage`:`sessionStorage`})}catch(t){m=!0,d(s,n),d(s,r),e.error(`[authStore] could not move the session from the legacy token keys`,t)}if(!m)for(let e of[t.accessToken,t.refreshToken,t.sessionUser])e&&d(s,e)}return o},z=async(e,t,i=null,a=null)=>{let o=t||await E(`accessToken`)!==null||await E(`refreshToken`)!==null;await O(n),await O(r),await j(),s=null,(o||t)&&y(e,{code:i,detail:a})},B=async(e=`signedOut`,t={})=>z(e,!1,t.code??null,t.detail??null);export{n as ACCESS_TOKEN_KEY,a as LEGACY_REFRESH_TOKEN_LIFETIME_MS,r as REFRESH_TOKEN_KEY,i as SESSION_USER_KEY,x as addSessionEndedListener,B as clearSession,f as getKeepSignedIn,A as getSessionUser,E as getToken,D as hasSession,v as hasSessionEndedInTab,j as removeSessionUser,O as removeToken,h as setKeepSignedIn,F as setLegacyTokenKeys,k as storeSessionUser,S as storeToken};
@@ -1,2 +1,2 @@
1
- import"../api/requestDefaults.js";import{getConfigValue as e}from"../config/index.js";import{redact as t,redactError as n,redactRecord as r,redactString as i}from"./redact.js";var a=[`debug`,`info`,`warn`,`error`],o=t=>{let n=e(`logLevel`,`info`);return a.indexOf(t)>=a.indexOf(n)},s=()=>e(`loggingEnabled`,!0),c=null,l=e=>{c=e},u=e=>{if(e)try{e()}catch{}},d=null,f=e=>e==null?null:typeof e==`string`||typeof e==`number`||typeof e==`boolean`?e:String(e),p=e=>{if(d=e,e)for(let[t,n]of Object.entries(e))u(()=>c?.setAttribute?.(t,f(n)))},m=()=>d,h={dedupeWindowMs:5e3,dedupeMaxPerWindow:1,screenHistoryLimit:20},g=null,_=[],v=e=>{h={...h,...e},_.length>h.screenHistoryLimit&&(_=_.slice(_.length-h.screenHistoryLimit))},y=/* @__PURE__ */ new Map,b=200,x=e=>{let t=e.stack?.split(`
1
+ import"../api/requestDefaults.js";import{getConfigValue as e}from"../config/index.js";import{redact as t,redactError as n,redactRecord as r,redactString as i}from"./redact.js";var a=[`debug`,`info`,`warn`,`error`],o=t=>{let n=e(`logLevel`,`info`);return a.indexOf(t)>=a.indexOf(n)},s=()=>e(`loggingEnabled`,!0),c=null,l=e=>{c=e},u=e=>{if(e)try{e()}catch(e){console.error(`[logger] the remote sink failed`,e)}},d=null,f=e=>e==null?null:typeof e==`string`||typeof e==`number`||typeof e==`boolean`?e:String(e),p=e=>{if(d=e,e)for(let[t,n]of Object.entries(e))u(()=>c?.setAttribute?.(t,f(n)))},m=()=>d,h={dedupeWindowMs:5e3,dedupeMaxPerWindow:1,screenHistoryLimit:20},g=null,_=[],v=e=>{h={...h,...e},_.length>h.screenHistoryLimit&&(_=_.slice(_.length-h.screenHistoryLimit))},y=/* @__PURE__ */ new Map,b=200,x=e=>{let t=e.stack?.split(`
2
2
  `)[1]?.trim();return t?`${e.message}::${t}`:e.message},S=()=>{for(;y.size>b;){let e=y.keys().next().value;if(e===void 0)return;y.delete(e)}},C=e=>{if(h.dedupeWindowMs<=0)return{forward:!0};let t=Date.now(),n=y.get(e);if(!n||t-n.windowStart>=h.dedupeWindowMs){let r=n?.suppressedCount??0;return y.set(e,{windowStart:t,count:1,suppressedCount:0}),S(),r>0?{forward:!0,suppressedCount:r}:{forward:!0}}return n.count+=1,n.count>h.dedupeMaxPerWindow?(n.suppressedCount+=1,{forward:!1}):{forward:!0}},w=(e,t)=>{let n={...d};return g!==null&&(n.screen=g),t&&(n.suppressedCount=t),{...n,...e}},T=(e,t)=>{let{forward:n,suppressedCount:r}=C(x(e));n&&u(()=>c?.recordError?.(e,w(t,r)))},E=e=>{let n=t(e);return Array.isArray(n)?n:[n]},D=(e,...t)=>{s()&&o(`debug`)&&console.debug(`[DEBUG]: ${i(e)}`,...E(t))},O=(e,...t)=>{let n=i(e),r=E(t);s()&&o(`info`)&&(console.info(`[INFO]: ${n}`,...r),u(()=>c?.log?.(`info`,n,r)))},k=(e,...t)=>{let n=i(e),r=E(t);s()&&o(`warn`)&&(console.warn(`[WARNING]: ${n}`,...r),u(()=>c?.log?.(`warn`,n,r)))},A=(e,...t)=>{let r=i(e),a=E(t);s()&&o(`error`)&&console.error(`[ERROR]: ${r}`,...a),u(()=>c?.log?.(`error`,r,a));let l=t[0];l!==void 0&&T(n(l),{source:`Logger.error`,message:r})},j=(e,t)=>{let n=i(e),a=t===void 0?void 0:r(t);s()&&o(`info`)&&console.info(`[BREADCRUMB]: ${n}`,a??``),u(()=>c?.breadcrumb?.(n,a))},M=(e,t)=>{let i=n(e),a=t===void 0?void 0:r(t);s()&&o(`error`)&&console.error(`[RECORDED]: ${i.message}`,a??``),T(i,a)},N=e=>typeof e==`object`&&!!e,P=e=>N(e)?e:null,F=(e,t)=>{let n=P(e);if(!n)return null;let r=n.get,i=typeof r==`function`?r.call(e,t):n[t]??n[t.toLowerCase()];return typeof i==`string`&&i!==``?i:null},I=e=>F(e,`traceparent`)?.split(`-`)[1]??null,L={debug:D,info:O,warn:k,error:A,breadcrumb:j,recordError:M,requestFailed:(e,t={})=>{let{label:n,expectedStatuses:a=[],...l}=t,d=P(e),f=P(d?.config),p=P(d?.response),m=P(p?.data),h=typeof p?.status==`number`?p.status:null,g=typeof f?.method==`string`?f.method.toUpperCase():null,_=typeof f?.url==`string`?f.url.split(`?`)[0]??null:null,v=n??([g,_].filter(Boolean).join(` `)||`Request`);if(d?.name===`CanceledError`||d?.code===`ERR_CANCELED`||d?.__CANCEL__===!0){O(`${v} canceled`);return}if(h!==null&&a.includes(h)){O(`${v} refused (${h})`);return}let y=typeof d?.message==`string`?d.message:e instanceof Error?e.message:null,b=i(h===null?`${v} failed`:`${v} failed (${h})`);s()&&o(`error`)&&console.error(`[ERROR]: ${b}`,i(y??``)),u(()=>c?.log?.(`error`,b,[]));let x=r({source:`Logger.requestFailed`,label:v,status:h,method:g,path:_,code:typeof m?.code==`string`?m.code:null,traceId:(typeof m?.traceId==`string`?m.traceId:null)??I(f?.headers),detail:y,...l});T(Error(b),x)},setUser:(e,t)=>{u(()=>c?.setUser?.(e,t))},setAttribute:(e,t)=>{u(()=>c?.setAttribute?.(e,t))},trackScreen:(e,t)=>{e!==g&&(g=e,_.push(e),_.length>h.screenHistoryLimit&&(_=_.slice(_.length-h.screenHistoryLimit)),j(`Screen: ${e}`,t))},getCurrentScreen:()=>g,getScreenHistory:()=>[..._]};export{L as Logger,v as configureLogger,m as getDeviceContext,p as setDeviceContext,l as setRemoteLogger};
@@ -1 +1 @@
1
- import{extractApiError as e}from"../errors/extractApiError.js";import{Logger as t}from"../logger/logger.js";import n from"axios";var r=e=>e instanceof Date?encodeURIComponent(e.toISOString()):encodeURIComponent(typeof e==`object`?JSON.stringify(e):String(e)),i=e=>{if(!(typeof e!=`string`||e.startsWith(`W/`)))return/^"([^"]*)"$/.exec(e)?.[1]},a=e=>`"${e}"`,o=e=>{let t={};if(e.ifMatch&&(t[`If-Match`]=a(e.ifMatch)),e.idempotencyKey&&(t[`Idempotency-Key`]=e.idempotencyKey),Object.keys(t).length===0)return e.headers;let n=Object.keys(t).map(e=>e.toLowerCase()),r=Object.entries(e.headers??{}).filter(([e])=>!n.includes(e.toLowerCase()));return{...Object.fromEntries(r),...t}},s=`precondition_failed`,c=e=>e.status===412?{...e,code:s}:e,l=e=>t=>{let n=[];for(let[i,a]of Object.entries(t)){if(a==null)continue;let t=encodeURIComponent(i);if(!Array.isArray(a))n.push(`${t}=${r(a)}`);else if(e===`comma`)n.push(`${t}=${a.map(r).join(`,`)}`);else{let i=e===`brackets`?`${t}[]`:t;for(let e of a)n.push(`${i}=${r(e)}`)}}return n.join(`&`)},u=({client:r,publicClient:a})=>async(s,{signal:u},d)=>{let f=typeof s==`string`?{url:s}:s,p=f.silent??d?.silent??!1,m=f.expectedStatuses??d?.expectedStatuses,h=f.paramsFormat??d?.paramsFormat,g=f.public?a:r;if(!g)throw Error(`createApiBaseQuery: "${f.url}" is marked public but no publicClient was passed.`);let _=o(f),v={url:f.url,method:f.method??`GET`,data:f.data,params:f.params,...h&&{paramsSerializer:l(h)},..._!==void 0&&{headers:_},...f.responseType!==void 0&&{responseType:f.responseType},...f.timeout!==void 0&&{timeout:f.timeout},signal:u,skipErrorLog:!0};try{let e=await g.request(v),t=i(e.headers.etag);return{data:e.data,meta:{silent:p,status:e.status,...t!==void 0&&{entityTag:t}}}}catch(r){let a=c(e(r)),o=n.isCancel(r);o||t.requestFailed(r,{...m&&{expectedStatuses:m}});let s=n.isAxiosError(r)?i(r.response?.headers.etag):void 0;return{error:a,meta:{silent:p||o,status:a.status,...m&&{expectedStatuses:m},...s!==void 0&&{entityTag:s}}}}};export{u as createApiBaseQuery,a as ifMatchValue,i as strongEntityTag};
1
+ import{extractApiError as e}from"../errors/extractApiError.js";import{Logger as t}from"../logger/logger.js";import n from"axios";var r=e=>e instanceof Date?encodeURIComponent(e.toISOString()):encodeURIComponent(typeof e==`object`?JSON.stringify(e):String(e)),i=e=>{if(!(typeof e!=`string`||e.startsWith(`W/`)))return/^"([^"]*)"$/.exec(e)?.[1]},a=e=>`"${e}"`,o=e=>{let t={};if(e.ifMatch&&(t[`If-Match`]=a(e.ifMatch)),e.idempotencyKey&&(t[`Idempotency-Key`]=e.idempotencyKey),Object.keys(t).length===0)return e.headers;let n=Object.keys(t).map(e=>e.toLowerCase()),r=Object.entries(e.headers??{}).filter(([e])=>!n.includes(e.toLowerCase()));return{...Object.fromEntries(r),...t}},s=`precondition_failed`,c=e=>e.status===412?{...e,code:s}:e,l=e=>t=>{let n=[];for(let[i,a]of Object.entries(t)){if(a==null)continue;let t=encodeURIComponent(i);if(!Array.isArray(a))n.push(`${t}=${r(a)}`);else if(e===`comma`)n.push(`${t}=${a.map(r).join(`,`)}`);else{let i=e===`brackets`?`${t}[]`:t;for(let e of a)n.push(`${i}=${r(e)}`)}}return n.join(`&`)},u=({client:r,publicClient:a})=>async(s,{signal:u},d)=>{let f=typeof s==`string`?{url:s}:s,p=f.silent??d?.silent??!1,m=f.expectedStatuses??d?.expectedStatuses,h=f.paramsFormat??d?.paramsFormat,g=f.public?a:r;if(!g)throw Error(`createApiBaseQuery: "${f.url}" is marked public but no publicClient was passed.`);let _=o(f),v={url:f.url,method:f.method??`GET`,data:f.data,params:f.params,...h&&{paramsSerializer:l(h)},..._!==void 0&&{headers:_},...f.responseType!==void 0&&{responseType:f.responseType},...f.timeout!==void 0&&{timeout:f.timeout},signal:u,skipErrorLog:!0};try{let e=await g.request(v),t=i(e.headers?.etag);return{data:e.data,meta:{silent:p,status:e.status,...t!==void 0&&{entityTag:t}}}}catch(r){let a=c(e(r)),o=n.isCancel(r);o||t.requestFailed(r,{...m&&{expectedStatuses:m}});let s=n.isAxiosError(r)?i(r.response?.headers?.etag):void 0;return{error:a,meta:{silent:p||o,status:a.status,...m&&{expectedStatuses:m},...s!==void 0&&{entityTag:s}}}}};export{u as createApiBaseQuery,a as ifMatchValue,i as strongEntityTag};
@@ -1 +1 @@
1
- import{extractApiError as e}from"../errors/extractApiError.js";import{useMemo as t}from"react";function n(n,i){let{currentData:a,error:o,isFetching:s,isUninitialized:c,refetch:l,fulfilledTimeStamp:u}=n,d=i?.keepPreviousData===!0?n.data:void 0,f=i?.isEmpty??r;return t(()=>{let t=()=>{l()},n=e=>f(e)?{status:`empty`,refreshing:s,refresh:t,fulfilledTimeStamp:u}:{status:`data`,data:e,refreshing:s,refresh:t,fulfilledTimeStamp:u};return a===void 0?o===void 0?c===!0?{status:`idle`}:d===void 0?{status:`loading`}:n(d):{status:`error`,error:e(o),retry:t}:n(a)},[a,d,o,s,c,l,f,u])}var r=e=>Array.isArray(e)?e.length===0:typeof e==`object`&&e&&`items`in e&&Array.isArray(e.items)?e.items.length===0:!1;function i(n){let{currentData:r,error:i,isFetching:a,isFetchingNextPage:o,hasNextPage:s,isError:c,isUninitialized:l,refetch:u,fetchNextPage:d,fulfilledTimeStamp:f}=n,p=t(()=>(r?.pages??[]).flatMap(e=>e.items),[r]);return{state:t(()=>{let t=()=>{u()};if(r===void 0)return i===void 0?l===!0?{status:`idle`}:{status:`loading`}:{status:`error`,error:e(i),retry:t};let n=a&&!o;return p.length===0?{status:`empty`,refreshing:n,refresh:t,fulfilledTimeStamp:f}:{status:`data`,data:p,refreshing:n,refresh:t,fulfilledTimeStamp:f}},[r,i,a,o,l,p,u,f]),paging:t(()=>({hasMore:s,loadingMore:o,errorMore:c?e(i):null,loadMore:()=>{s&&!o&&!c&&d()},retryMore:()=>{c&&d()}}),[s,o,c,i,d])}}export{n as useDataState,i as useInfiniteDataState};
1
+ import{extractApiError as e}from"../errors/extractApiError.js";import{useMemo as t}from"react";function n(n,i){let{currentData:a,error:o,isFetching:s,isUninitialized:c,refetch:l,fulfilledTimeStamp:u}=n,d=i?.keepPreviousData===!0?n.data:void 0,f=i?.isEmpty??r;return t(()=>{let t=()=>{l()},n=e=>f(e)?{status:`empty`,refreshing:s,refresh:t,fulfilledTimeStamp:u}:{status:`data`,data:e,refreshing:s,refresh:t,fulfilledTimeStamp:u};return a===void 0?o===void 0?c===!0?{status:`idle`}:d===void 0?{status:`loading`}:n(d):{status:`error`,error:e(o),retry:t}:n(a)},[a,d,o,s,c,l,f,u])}var r=e=>Array.isArray(e)?e.length===0:typeof e==`object`&&e&&`items`in e&&Array.isArray(e.items)?e.items.length===0:!1;function i(n){let{currentData:r,error:i,isFetching:a,isFetchingNextPage:o,hasNextPage:s,isError:c,isFetchNextPageError:l,isUninitialized:u,refetch:d,fetchNextPage:f,fulfilledTimeStamp:p}=n,m=t(()=>(r?.pages??[]).flatMap(e=>e.items),[r]),h=t(()=>{let t=()=>{d()};if(r===void 0)return i===void 0?u===!0?{status:`idle`}:{status:`loading`}:{status:`error`,error:e(i),retry:t};let n=a&&!o;return m.length===0?{status:`empty`,refreshing:n,refresh:t,fulfilledTimeStamp:p}:{status:`data`,data:m,refreshing:n,refresh:t,fulfilledTimeStamp:p}},[r,i,a,o,u,m,d,p]),g=c&&l;return{state:h,paging:t(()=>({hasMore:s,loadingMore:o,errorMore:g?e(i):null,loadMore:()=>{s&&!o&&!g&&f()},retryMore:()=>{g&&f()}}),[s,o,g,i,f])}}export{n as useDataState,i as useInfiniteDataState};
@@ -1 +1 @@
1
- import{Logger as e}from"../logger/logger.js";import{lazy as t,useEffect as n,useState as r}from"react";var i=`webority.chunkReload`,a=6e4,o=[/failed to fetch dynamically imported module/i,/error loading dynamically imported module/i,/importing a module script failed/i,/unable to preload css/i,/loading (css )?chunk [\w-]+ failed/i],s=e=>{if(!e||typeof e!=`object`)return!1;if((`name`in e?e.name:void 0)===`ChunkLoadError`)return!0;let t=`message`in e?e.message:void 0;return typeof t==`string`&&o.some(e=>e.test(t))},c=()=>{let{pathname:e,search:t,hash:n}=globalThis.location;return`${e}${t}${n}`},l=e=>typeof e==`object`&&!!e&&`target`in e&&typeof e.target==`string`&&`at`in e&&typeof e.at==`number`,u=e=>{if(!e)return null;try{let t=JSON.parse(e);return l(t)?t:null}catch{return null}},d=()=>{try{return u(globalThis.sessionStorage.getItem(i))}catch{return`blocked`}},f=e=>{let t=d();return t===`blocked`?`blocked`:!t||t.target!==e||Date.now()-t.at>=a?`none`:t.at>globalThis.performance.timeOrigin?`pending`:`reloaded`},p=()=>f(c())!==`none`,m=()=>{try{let e={target:c(),at:Date.now()};return globalThis.sessionStorage.setItem(i,JSON.stringify(e)),!0}catch{return!1}},h=()=>{let e=d();if(e&&e!==`blocked`&&e.target!==c())try{globalThis.sessionStorage.removeItem(i)}catch{}},g=t=>{let n=f(c());return n===`pending`?`reloading`:n===`none`?m()?(e.warn(`[router] a code chunk failed to load; reloading once for the new build`,t),globalThis.location.reload(),`reloading`):`blocked`:n},_=e=>(h(),e),v=e=>({Component(){throw e}}),y=e=>({action(){throw e},Component(){let[t,i]=r(()=>f(c()));if(n(()=>{t===`none`&&g(e)===`blocked`&&i(`blocked`)},[t,e]),t===`reloaded`||t===`blocked`)throw e;return null}}),b=e=>()=>e().then(_,e=>s(e)?y(e):v(e)),x=e=>t(()=>e().then(_,e=>{if(s(e)&&g(e)===`reloading`)return new Promise(()=>void 0);throw e}));export{p as hasRecentlyReloaded,b as importWithReload,s as isChunkLoadError,x as lazyWithReload,m as markReloaded,g as reloadForChunkError};
1
+ import{Logger as e}from"../logger/logger.js";import{lazy as t,useEffect as n,useState as r}from"react";var i=`webority.chunkReload`,a=6e4,o=[/failed to fetch dynamically imported module/i,/error loading dynamically imported module/i,/importing a module script failed/i,/unable to preload css/i,/loading (css )?chunk [\w-]+ failed/i],s=e=>{if(!e||typeof e!=`object`)return!1;if((`name`in e?e.name:void 0)===`ChunkLoadError`)return!0;let t=`message`in e?e.message:void 0;return typeof t==`string`&&o.some(e=>e.test(t))},c=()=>{let{pathname:e,search:t,hash:n}=globalThis.location;return`${e}${t}${n}`},l=e=>typeof e==`object`&&!!e&&`target`in e&&typeof e.target==`string`&&`at`in e&&typeof e.at==`number`,u=e=>{if(!e)return null;try{let t=JSON.parse(e);return l(t)?t:null}catch{return null}},d=()=>{try{return u(globalThis.sessionStorage.getItem(i))}catch{return`blocked`}},f=e=>{let t=d();return t===`blocked`?`blocked`:!t||t.target!==e||Date.now()-t.at>=a?`none`:t.at>globalThis.performance.timeOrigin?`pending`:`reloaded`},p=()=>f(c())!==`none`,m=()=>{try{let e={target:c(),at:Date.now()};return globalThis.sessionStorage.setItem(i,JSON.stringify(e)),!0}catch{return!1}},h=()=>{let e=d();if(e&&e!==`blocked`&&e.target!==c())try{globalThis.sessionStorage.removeItem(i)}catch(e){if(!(e instanceof DOMException))throw e}},g=t=>{let n=f(c());return n===`pending`?`reloading`:n===`none`?m()?(e.warn(`[router] a code chunk failed to load; reloading once for the new build`,t),globalThis.location.reload(),`reloading`):`blocked`:n},_=e=>(h(),e),v=e=>({Component(){throw e}}),y=e=>({action(){throw e},Component(){let[t,i]=r(()=>f(c()));if(n(()=>{t===`none`&&g(e)===`blocked`&&i(`blocked`)},[t,e]),t===`reloaded`||t===`blocked`)throw e;return null}}),b=e=>()=>e().then(_,e=>s(e)?y(e):v(e)),x=e=>t(()=>e().then(_,e=>{if(s(e)&&g(e)===`reloading`)return new Promise(()=>void 0);throw e}));export{p as hasRecentlyReloaded,b as importWithReload,s as isChunkLoadError,x as lazyWithReload,m as markReloaded,g as reloadForChunkError};
@@ -68,6 +68,8 @@ export interface InfiniteQueryResultLike<T> {
68
68
  readonly isFetchingNextPage: boolean;
69
69
  readonly hasNextPage: boolean;
70
70
  readonly isError: boolean;
71
+ /** True when the last next-page fetch failed; isError alone is also true for a failed refresh. */
72
+ readonly isFetchNextPageError: boolean;
71
73
  /** True while the query has never started, which for an RTK Query hook means it is skipped. */
72
74
  readonly isUninitialized?: boolean | undefined;
73
75
  readonly fulfilledTimeStamp?: number | undefined;
@@ -6,7 +6,7 @@
6
6
  * over 100 to 100. A capped answer carries the cap as `totalCount`.
7
7
  */
8
8
  export interface PagedDataObject<T> {
9
- items: T[];
9
+ items: readonly T[];
10
10
  page: number;
11
11
  pageSize: number;
12
12
  totalCount: number;
@@ -23,7 +23,7 @@ export interface UseListQueryOptions<TRow> {
23
23
  }
24
24
  export interface UseListQueryResult<TRow> {
25
25
  query: ListQueryState;
26
- rows: TRow[];
26
+ rows: readonly TRow[];
27
27
  state: DataState<PagedDataObject<TRow>>;
28
28
  totalCount: number;
29
29
  totalPages: number;
@@ -36,7 +36,7 @@ export interface UseListQueryResult<TRow> {
36
36
  setPageSize(pageSize: number): void;
37
37
  reset(): void;
38
38
  tableProps: {
39
- rows: TRow[];
39
+ rows: readonly TRow[];
40
40
  sort?: {
41
41
  key: string;
42
42
  dir: SortOrder;
@@ -1,6 +1,9 @@
1
- import type { PathParam } from "react-router";
2
- /** One route as a portal's table declares it: a literal path or an index route, and its children. Other RouteObject keys pass through untouched. */
3
- export type RouteTableEntry = {
1
+ import type { BaseRouteObject, PathParam } from "react-router";
2
+ /**
3
+ * One route as a portal's table declares it: every React Router route field (element, Component, lazy, loader, HydrateFallback
4
+ * and the rest), with a literal path or an index flag, and its children as table entries.
5
+ */
6
+ export type RouteTableEntry = Readonly<Omit<BaseRouteObject, "path">> & {
4
7
  readonly path?: string;
5
8
  readonly index?: boolean;
6
9
  readonly children?: readonly RouteTableEntry[];
@@ -1 +1 @@
1
- import{addMinAppVersionListener as e,getMinAppVersion as t}from"../api/minAppVersion.js";import{getConfigValue as n}from"../config/index.js";import{Logger as r}from"../logger/logger.js";import{isBuildBelowMinimum as i,parseBuildNumber as a}from"./buildNumber.js";import{addDeployedBuildListener as o,getNewerDeployedBuild as s,startDeployedBuildCheck as c}from"./deployedBuild.js";import{useMemo as l,useSyncExternalStore as u}from"react";var d=t=>{let n=e(()=>t()),r=o(t);return()=>{n(),r()}},f=()=>`${t()??``}|${s()??``}`,p=e=>{if(e===null)return!1;let t=a(n(`appBuild`));return t===null?(r.error(`[VersionCheck] the build number is not configured. Call setConfig({ appBuild: <integer> }) at startup with the build number the deploy stamps into the bundle.`),!1):i(t,e)},m=()=>p(t())||s()!==null,h=()=>{let e=u(d,f,f);return l(()=>({updateAvailable:p(t())||s()!==null}),[e])},g=`webority.versionCheck.reloadedFor`,_=e=>{try{return window.sessionStorage.getItem(e)}catch{return null}},v=(e,t)=>{try{window.sessionStorage.setItem(e,t)}catch{}},y=(e,{reload:n=()=>window.location.reload()}={})=>{let i=e.state.location.key;return e.subscribe(e=>{let a=e.location.key;if(a===i)return;i=a;let o=t(),c=s(),l;if(p(o))l=String(o);else if(c!==null)l=`build:${c}`;else return;_(g)===l?r.warn(`[VersionCheck] still on the old bundle after a reload for ${l}`):(v(g,l),n())})};export{o as addDeployedBuildListener,s as getNewerDeployedBuild,y as installReloadOnNavigate,i as isBuildBelowMinimum,m as isUpdateAvailable,a as parseBuildNumber,c as startDeployedBuildCheck,h as useVersionCheck};
1
+ import{addMinAppVersionListener as e,getMinAppVersion as t}from"../api/minAppVersion.js";import{getConfigValue as n}from"../config/index.js";import{Logger as r}from"../logger/logger.js";import{isBuildBelowMinimum as i,parseBuildNumber as a}from"./buildNumber.js";import{addDeployedBuildListener as o,getNewerDeployedBuild as s,startDeployedBuildCheck as c}from"./deployedBuild.js";import{useMemo as l,useSyncExternalStore as u}from"react";var d=t=>{let n=e(()=>t()),r=o(t);return()=>{n(),r()}},f=()=>`${t()??``}|${s()??``}`,p=e=>{if(e===null)return!1;let t=a(n(`appBuild`));return t===null?(r.error(`[VersionCheck] the build number is not configured. Call setConfig({ appBuild: <integer> }) at startup with the build number the deploy stamps into the bundle.`),!1):i(t,e)},m=()=>p(t())||s()!==null,h=()=>{let e=u(d,f,f);return l(()=>({updateAvailable:p(t())||s()!==null}),[e])},g=`webority.versionCheck.reloadedFor`,_=e=>{try{return window.sessionStorage.getItem(e)}catch{return null}},v=(e,t)=>{try{window.sessionStorage.setItem(e,t)}catch(e){if(!(e instanceof DOMException))throw e}},y=(e,{reload:n=()=>window.location.reload()}={})=>{let i=e.state.location.key;return e.subscribe(e=>{let a=e.location.key;if(a===i)return;i=a;let o=t(),c=s(),l;if(p(o))l=String(o);else if(c!==null)l=`build:${c}`;else return;_(g)===l?r.warn(`[VersionCheck] still on the old bundle after a reload for ${l}`):(v(g,l),n())})};export{o as addDeployedBuildListener,s as getNewerDeployedBuild,y as installReloadOnNavigate,i as isBuildBelowMinimum,m as isUpdateAvailable,a as parseBuildNumber,c as startDeployedBuildCheck,h as useVersionCheck};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/web-core",
3
- "version": "0.153.0",
3
+ "version": "0.154.0",
4
4
  "description": "Platform layer for Webority React web portals: HTTP clients with single-flight token refresh, auth store, API error extraction, RTK Query base query, logger, formatters, storage, version check and route guards. No UI.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "type": "module",
@@ -98,7 +98,7 @@
98
98
  },
99
99
  "sideEffects": false,
100
100
  "dependencies": {
101
- "@webority/api-contract": "0.153.0"
101
+ "@webority/api-contract": "0.154.0"
102
102
  },
103
103
  "peerDependencies": {
104
104
  "@microsoft/applicationinsights-web": "^3.4.5",
@@ -120,7 +120,7 @@
120
120
  "@types/node": "25.6.0",
121
121
  "@types/react": "^19.3.0",
122
122
  "@vitest/coverage-v8": "5.1.0",
123
- "@webority/biome-config": "0.153.0",
123
+ "@webority/biome-config": "0.154.0",
124
124
  "axios": "^1.18.0",
125
125
  "jsdom": "30.1.1",
126
126
  "react": "^19.3.1",