@crystaltech/hsms-shared-ui 0.7.0 → 0.7.3

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.
@@ -27,4 +27,3 @@ export interface ProtectedRouteProps {
27
27
  children: React.ReactNode;
28
28
  }
29
29
  export declare const ProtectedRoute: React.FC<ProtectedRouteProps>;
30
- export declare const hasAccess: (user: UserInfo | null, roles?: string[], clients?: string[]) => boolean;
@@ -0,0 +1,2 @@
1
+ import { UserInfo } from './ProtectedRoute';
2
+ export declare const hasAccess: (user: UserInfo | null, roles?: string[], clients?: string[]) => boolean;
package/dist/sw.js CHANGED
@@ -1 +1 @@
1
- if(!self.define){let e,s={};const i=(i,r)=>(i=new URL(i+".js",r).href,s[i]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()}).then(()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e}));self.define=(r,n)=>{const o=e||("document"in self?document.currentScript.src:"")||location.href;if(s[o])return;let d={};const t=e=>i(e,o),f={module:{uri:o},exports:d,require:t};s[o]=Promise.all(r.map(e=>f[e]||t(e))).then(e=>(n(...e),d))}}define(["./workbox-3105ea8d"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"preMountSplash.js",revision:"e40e6dbb3c6690093f35987407265e4b"},{url:"preMountSplash.es.js",revision:"a30f544ac075c22e6b0255489fe64928"},{url:"index.js",revision:"dffb86b361339b78aecf7635f517b2e0"},{url:"index.es.js",revision:"3b480fad4b389a4f5a14c000a376d6cf"},{url:"hsms-shared-ui.css",revision:"7f5aef0a9303b4cde437120fbb05ea5b"},{url:"Loader-Ds4EzcXM.js",revision:"2db3b929265da57ba54b39e5fd4d2006"},{url:"manifest.webmanifest",revision:"e6d4972ea70a2ecb105e17f18dad67f9"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))});
1
+ if(!self.define){let e,s={};const i=(i,r)=>(i=new URL(i+".js",r).href,s[i]||new Promise(s=>{if("document"in self){const e=document.createElement("script");e.src=i,e.onload=s,document.head.appendChild(e)}else e=i,importScripts(i),s()}).then(()=>{let e=s[i];if(!e)throw new Error(`Module ${i} didn’t register its module`);return e}));self.define=(r,d)=>{const n=e||("document"in self?document.currentScript.src:"")||location.href;if(s[n])return;let o={};const t=e=>i(e,n),c={module:{uri:n},exports:o,require:t};s[n]=Promise.all(r.map(e=>c[e]||t(e))).then(e=>(d(...e),o))}}define(["./workbox-3105ea8d"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"preMountSplash.js",revision:"78b3563e10c89664b2737c57eaecd131"},{url:"preMountSplash.es.js",revision:"ee1df8b0a8addf2e42146e651e9b1162"},{url:"index.js",revision:"b80c7de2c50ea8629427c5721a996da5"},{url:"index.es.js",revision:"bf54b27cb5ef29a8cadf912461dcca2d"},{url:"hsms-shared-ui.css",revision:"7f5aef0a9303b4cde437120fbb05ea5b"},{url:"Loader-Ds4EzcXM.js",revision:"2db3b929265da57ba54b39e5fd4d2006"},{url:"manifest.webmanifest",revision:"e6d4972ea70a2ecb105e17f18dad67f9"}],{}),e.cleanupOutdatedCaches(),e.registerRoute(new e.NavigationRoute(e.createHandlerBoundToURL("index.html")))});
@@ -0,0 +1 @@
1
+ export declare const getImageFullUrl: (imagePath: string) => string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@crystaltech/hsms-shared-ui",
3
+ "version": "0.7.3",
3
4
  "private": false,
4
- "version": "0.7.0",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
7
7
  "module": "dist/index.mjs",
@@ -29,58 +29,57 @@
29
29
  }
30
30
  },
31
31
  "peerDependencies": {
32
- "@emotion/react": "^11.0.0",
33
- "@emotion/styled": "^11.0.0",
34
- "@mui/icons-material": "^6.0.0",
32
+ "react": ">=19 <20",
33
+ "react-dom": ">=19 <20",
35
34
  "@mui/material": "^6.0.0",
35
+ "@mui/system": "^6.0.0",
36
+ "@mui/icons-material": "^6.0.0",
36
37
  "@mui/x-date-pickers": "^7.25.0",
37
- "dayjs": "^1.11.13",
38
- "react": "^19.0.0",
39
- "react-dom": "^19.0.0",
40
- "react-perfect-scrollbar": "^1.5.8"
38
+ "@emotion/react": "^11.0.0",
39
+ "@emotion/styled": "^11.0.0",
40
+ "dayjs": "^1.11.0",
41
+ "react-perfect-scrollbar": "^1.5.0"
42
+ },
43
+ "peerDependenciesMeta": {
44
+ "react": {
45
+ "optional": false
46
+ },
47
+ "react-dom": {
48
+ "optional": false
49
+ }
41
50
  },
42
51
  "dependencies": {
43
- "@emotion/react": "^11.14.0",
44
- "@emotion/styled": "^11.14.0",
45
- "@mui/icons-material": "^6.4.6",
46
- "@mui/material": "^6.4.6",
47
- "@mui/system": "^6.4.6",
48
- "@mui/x-date-pickers": "^7.27.1",
49
- "dayjs": "^1.11.13",
50
- "react": "^19.0.0",
51
52
  "react-color": "^2.19.3",
52
- "react-dom": "^19.0.0",
53
- "react-perfect-scrollbar": "^1.5.8",
54
53
  "react-router": "^7.9.6",
55
54
  "react-router-dom": "^7.3.0",
56
55
  "simplebar-react": "^3.3.0",
57
56
  "vite-plugin-pwa": "^0.21.1"
58
57
  },
59
58
  "devDependencies": {
60
- "@jridgewell/sourcemap-codec": "^1.5.0",
61
- "@types/node": "^22.13.8",
59
+ "typescript": "^5.8.2",
62
60
  "@types/react": "^19.0.10",
63
- "@types/react-color": "^3.0.13",
64
61
  "@types/react-dom": "^19.0.4",
65
- "@typescript-eslint/eslint-plugin": "^8.25.0",
66
- "@typescript-eslint/parser": "^8.25.0",
62
+ "@types/react-color": "^3.0.13",
63
+ "@types/node": "^22.13.8",
64
+ "@mui/material": "^6.4.6",
65
+ "@mui/system": "^6.4.6",
66
+ "@mui/icons-material": "^6.4.6",
67
+ "@mui/x-date-pickers": "^7.27.1",
68
+ "@emotion/react": "^11.14.0",
69
+ "@emotion/styled": "^11.14.0",
67
70
  "@vitejs/plugin-react": "^4.3.4",
71
+ "vite": "^6.2.0",
72
+ "vite-plugin-dts": "^4.5.3",
68
73
  "eslint": "^9.21.0",
74
+ "@eslint/js": "^9.39.2",
75
+ "@typescript-eslint/eslint-plugin": "^8.25.0",
76
+ "@typescript-eslint/parser": "^8.25.0",
69
77
  "eslint-plugin-react-hooks": "^5.2.0",
70
78
  "eslint-plugin-react-refresh": "^0.4.19",
71
- "glob": "^11.0.1",
72
- "globals": "^16.0.0",
73
- "typescript": "^5.8.2",
74
- "vite": "^6.2.0",
75
- "vite-plugin-dts": "^4.5.3",
76
79
  "workbox-build": "^7.3.0",
77
- "workbox-webpack-plugin": "^7.3.0"
78
- },
79
- "resolutions": {
80
- "glob": "^10.0.0",
81
- "inflight": "^1.0.7",
82
- "@jridgewell/sourcemap-codec": "^1.5.0",
83
- "sourcemap-codec": "npm:@jridgewell/sourcemap-codec@^1.5.0"
80
+ "workbox-webpack-plugin": "^7.3.0",
81
+ "glob": "^11.0.1",
82
+ "globals": "^16.0.0"
84
83
  },
85
84
  "scripts": {
86
85
  "dev": "vite",