@crystaltech/hsms-shared-ui 0.7.1-alpha.0 → 0.7.3-alpha-0.1

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 d=e||("document"in self?document.currentScript.src:"")||location.href;if(s[d])return;let o={};const f=e=>i(e,d),t={module:{uri:d},exports:o,require:f};s[d]=Promise.all(r.map(e=>t[e]||f(e))).then(e=>(n(...e),o))}}define(["./workbox-3105ea8d"],function(e){"use strict";self.skipWaiting(),e.clientsClaim(),e.precacheAndRoute([{url:"registerSW.js",revision:"1872c500de691dce40960bb85481de07"},{url:"preMountSplash.js",revision:"f6620017be33fd3f4b55b9e9cec8fdec"},{url:"preMountSplash.es.js",revision:"3459d5cb51f394b5786c9349b9ce83f3"},{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,n)=>{const d=e||("document"in self?document.currentScript.src:"")||location.href;if(s[d])return;let o={};const t=e=>i(e,d),c={module:{uri:d},exports:o,require:t};s[d]=Promise.all(r.map(e=>c[e]||t(e))).then(e=>(n(...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:"4c739e15b60ea6371a728ae0f6f01dce"},{url:"index.es.js",revision:"941632de6a00398f3beedf77e22b5ec7"},{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,6 +1,6 @@
1
1
  {
2
2
  "name": "@crystaltech/hsms-shared-ui",
3
- "version": "0.7.1-alpha.0",
3
+ "version": "0.7.3-alpha-0.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -71,6 +71,7 @@
71
71
  "vite": "^6.2.0",
72
72
  "vite-plugin-dts": "^4.5.3",
73
73
  "eslint": "^9.21.0",
74
+ "@eslint/js": "^9.39.2",
74
75
  "@typescript-eslint/eslint-plugin": "^8.25.0",
75
76
  "@typescript-eslint/parser": "^8.25.0",
76
77
  "eslint-plugin-react-hooks": "^5.2.0",
@@ -80,12 +81,6 @@
80
81
  "glob": "^11.0.1",
81
82
  "globals": "^16.0.0"
82
83
  },
83
- "resolutions": {
84
- "glob": "^10.0.0",
85
- "inflight": "^1.0.7",
86
- "@jridgewell/sourcemap-codec": "^1.5.0",
87
- "sourcemap-codec": "npm:@jridgewell/sourcemap-codec@^1.5.0"
88
- },
89
84
  "scripts": {
90
85
  "dev": "vite",
91
86
  "build": "tsc && vite build && vite build -c vite.iife.config.ts",