@openmrs/esm-app-shell 4.0.4-pre.494 → 4.0.4-pre.496

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,9 +1,9 @@
1
- @openmrs/esm-app-shell:build: cache hit, replaying output bea7ab250240df67
1
+ @openmrs/esm-app-shell:build: cache hit, replaying output 57984b16d2e377fd
2
2
  @openmrs/esm-app-shell:build: 
3
- @openmrs/esm-app-shell:build: > @openmrs/esm-app-shell@4.0.4-pre.494 build:production
3
+ @openmrs/esm-app-shell:build: > @openmrs/esm-app-shell@4.0.4-pre.496 build:production
4
4
  @openmrs/esm-app-shell:build: > cross-env OMRS_ESM_IMPORTMAP_URL="https://dev3.openmrs.org/openmrs/spa/importmap.json" OMRS_OFFLINE="enable" NODE_ENV="production" webpack --mode production
5
5
  @openmrs/esm-app-shell:build: 
6
- @openmrs/esm-app-shell:build: (node:3101) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated.
6
+ @openmrs/esm-app-shell:build: (node:3084) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated.
7
7
  @openmrs/esm-app-shell:build: BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation.
8
8
  @openmrs/esm-app-shell:build:  Do changes to assets earlier, e. g. in Compilation.hooks.processAssets.
9
9
  @openmrs/esm-app-shell:build:  Make sure to select an appropriate stage from Compilation.PROCESS_ASSETS_STAGE_*.
@@ -54,12 +54,12 @@
54
54
  @openmrs/esm-app-shell:build:  openmrs.js
55
55
  @openmrs/esm-app-shell:build: 
56
56
  @openmrs/esm-app-shell:build: 
57
- @openmrs/esm-app-shell:build: webpack 5.74.0 compiled with 2 warnings in 58396 ms
57
+ @openmrs/esm-app-shell:build: webpack 5.74.0 compiled with 2 warnings in 51073 ms
58
58
  @openmrs/esm-app-shell:build: 
59
- @openmrs/esm-app-shell:build: > @openmrs/esm-app-shell@4.0.4-pre.494 build:development
59
+ @openmrs/esm-app-shell:build: > @openmrs/esm-app-shell@4.0.4-pre.496 build:development
60
60
  @openmrs/esm-app-shell:build: > cross-env OMRS_OFFLINE="enable" NODE_ENV="development" webpack --mode development
61
61
  @openmrs/esm-app-shell:build: 
62
- @openmrs/esm-app-shell:build: (node:3166) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated.
62
+ @openmrs/esm-app-shell:build: (node:3148) [DEP_WEBPACK_COMPILATION_ASSETS] DeprecationWarning: Compilation.assets will be frozen in future, all modifications are deprecated.
63
63
  @openmrs/esm-app-shell:build: BREAKING CHANGE: No more changes should happen to Compilation.assets after sealing the Compilation.
64
64
  @openmrs/esm-app-shell:build:  Do changes to assets earlier, e. g. in Compilation.hooks.processAssets.
65
65
  @openmrs/esm-app-shell:build:  Make sure to select an appropriate stage from Compilation.PROCESS_ASSETS_STAGE_*.
@@ -96,4 +96,4 @@
96
96
  @openmrs/esm-app-shell:build: <i> The service worker at service-worker.js will precache
97
97
  @openmrs/esm-app-shell:build: <i>  187 URLs, totaling 26.1 MB.
98
98
  @openmrs/esm-app-shell:build: 
99
- @openmrs/esm-app-shell:build: webpack 5.74.0 compiled successfully in 13641 ms
99
+ @openmrs/esm-app-shell:build: webpack 5.74.0 compiled successfully in 12432 ms
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_openmrs_esm_app_shell=self.webpackChunk_openmrs_esm_app_shell||[]).push([[533],{8533:(e,t,r)=>{r.r(t),r.d(t,{Breadcrumbs:()=>y,CustomBreadcrumbItem:()=>v,default:()=>w});var n=r(7959),s=r.n(n),a=r(3866),o=r(9151),i=Object.defineProperty,c=Object.defineProperties,l=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,b=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f=(e,t)=>{for(var r in t||(t={}))p.call(t,r)&&b(e,r,t[r]);if(u)for(var r of u(t))m.call(t,r)&&b(e,r,t[r]);return e},d=(e,t)=>c(e,l(t));function g(e,t){const r=[...t];return e.replace(/:([A-Za-z0-9_]+)/g,(e=>{var t;return null!=(t=r.shift())?t:e}))}function h(e,t){const r=null==t?void 0:t.exec(e);if(r){const[,...e]=r;return e}{const r=e.split("/");if(r.pop(),r.length>1)return h(r.join("/"),t)}return[]}const v=({breadcrumbRegistration:e,params:t})=>{const[r,i]=(0,n.useState)("");return(0,n.useEffect)((()=>{"function"==typeof e.settings.title?Promise.resolve(e.settings.title(t)).then((e=>i(e))):i(e.settings.title)}),[e,t]),s().createElement(a.BreadcrumbItem,{key:e.settings.path},s().createElement(o.ConfigurableLink,{to:g(e.settings.path,t)},r||s().createElement(a.InlineLoading,null)))},y=()=>{const[e,t]=(0,n.useState)(location.pathname),r=(0,o.getBreadcrumbsFor)(e),i=r[r.length-1],c=h(e,null==i?void 0:i.matcher);return(0,n.useEffect)((()=>{const e=()=>t(location.pathname);return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)}),[]),r.length>4&&r.splice(1,r.length-3,d(f({},r[1]),{settings:d(f({},r[1].settings),{title:"..."})})),s().createElement(a.Breadcrumb,{className:"breadcrumbs-container"},r.map(((e,t)=>s().createElement(v,{key:`breadcrumb-item-${t}`,breadcrumbRegistration:e,params:c}))))},w=y}}]);
1
+ "use strict";(self.webpackChunk_openmrs_esm_app_shell=self.webpackChunk_openmrs_esm_app_shell||[]).push([[533],{8533:(e,t,r)=>{r.r(t),r.d(t,{Breadcrumbs:()=>y,CustomBreadcrumbItem:()=>v,default:()=>w});var n=r(7959),s=r.n(n),a=r(3866),o=r(9371),i=Object.defineProperty,c=Object.defineProperties,l=Object.getOwnPropertyDescriptors,u=Object.getOwnPropertySymbols,p=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,b=(e,t,r)=>t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f=(e,t)=>{for(var r in t||(t={}))p.call(t,r)&&b(e,r,t[r]);if(u)for(var r of u(t))m.call(t,r)&&b(e,r,t[r]);return e},d=(e,t)=>c(e,l(t));function g(e,t){const r=[...t];return e.replace(/:([A-Za-z0-9_]+)/g,(e=>{var t;return null!=(t=r.shift())?t:e}))}function h(e,t){const r=null==t?void 0:t.exec(e);if(r){const[,...e]=r;return e}{const r=e.split("/");if(r.pop(),r.length>1)return h(r.join("/"),t)}return[]}const v=({breadcrumbRegistration:e,params:t})=>{const[r,i]=(0,n.useState)("");return(0,n.useEffect)((()=>{"function"==typeof e.settings.title?Promise.resolve(e.settings.title(t)).then((e=>i(e))):i(e.settings.title)}),[e,t]),s().createElement(a.BreadcrumbItem,{key:e.settings.path},s().createElement(o.ConfigurableLink,{to:g(e.settings.path,t)},r||s().createElement(a.InlineLoading,null)))},y=()=>{const[e,t]=(0,n.useState)(location.pathname),r=(0,o.getBreadcrumbsFor)(e),i=r[r.length-1],c=h(e,null==i?void 0:i.matcher);return(0,n.useEffect)((()=>{const e=()=>t(location.pathname);return window.addEventListener("popstate",e),()=>window.removeEventListener("popstate",e)}),[]),r.length>4&&r.splice(1,r.length-3,d(f({},r[1]),{settings:d(f({},r[1].settings),{title:"..."})})),s().createElement(a.Breadcrumb,{className:"breadcrumbs-container"},r.map(((e,t)=>s().createElement(v,{key:`breadcrumb-item-${t}`,breadcrumbRegistration:e,params:c}))))},w=y}}]);