@viasoftbr/shared-ui 0.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.
package/dist/types.js ADDED
@@ -0,0 +1,11 @@
1
+ // src/types/auth.ts
2
+ var Role = /* @__PURE__ */ ((Role2) => {
3
+ Role2["Admin"] = "admin";
4
+ Role2["Operator"] = "operator";
5
+ Role2["SuperAdmin"] = "superadmin";
6
+ Role2["ReadOnly"] = "readonly";
7
+ return Role2;
8
+ })(Role || {});
9
+ export {
10
+ Role
11
+ };
package/package.json ADDED
@@ -0,0 +1,80 @@
1
+ {
2
+ "name": "@viasoftbr/shared-ui",
3
+ "version": "0.0.1",
4
+ "description": "Shared frontend utilities, components and i18n for Viasoft plugins and micro-frontends",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.js",
11
+ "types": "./dist/index.d.ts"
12
+ },
13
+ "./i18n": {
14
+ "import": "./dist/i18n.js",
15
+ "types": "./dist/i18n.d.ts"
16
+ },
17
+ "./jsmpeg": {
18
+ "default": "./dist/jsmpeg.vu.min.js"
19
+ },
20
+ "./locales/*": {
21
+ "default": "./dist/locales/*"
22
+ }
23
+ },
24
+ "scripts": {
25
+ "build": "node scripts/build.js",
26
+ "dev": "node scripts/build.js --watch",
27
+ "typecheck": "tsc --noEmit"
28
+ },
29
+ "peerDependencies": {
30
+ "react": "^19.0.0"
31
+ },
32
+ "devDependencies": {
33
+ "@types/react": "^19.2.13",
34
+ "esbuild": "^0.20.0",
35
+ "typescript": "^5.0.0"
36
+ },
37
+ "files": [
38
+ "dist"
39
+ ],
40
+ "keywords": [
41
+ "viasoft",
42
+ "shared",
43
+ "utils",
44
+ "components",
45
+ "i18n",
46
+ "microfrontend"
47
+ ],
48
+ "author": "Viasoft",
49
+ "license": "MIT",
50
+ "publishConfig": {
51
+ "access": "public"
52
+ },
53
+ "dependencies": {
54
+ "@headlessui/react": "^2.2.9",
55
+ "@reduxjs/toolkit": "^2.10.1",
56
+ "@tanstack/react-query": "^5.90.10",
57
+ "@types/react-dom": "^19.2.3",
58
+ "@viasoftbr/shared-utils": "^0.0.1",
59
+ "axios": "^1.13.2",
60
+ "i18next": "^25.7.3",
61
+ "json-server": "1.0.0-beta.3",
62
+ "lucide-react": "^0.460.0",
63
+ "react": "^19.2.4",
64
+ "react-dom": "^19.2.4",
65
+ "react-i18next": "^16.5.0",
66
+ "react-redux": "^9.2.0",
67
+ "react-router-dom": "^6.20.1",
68
+ "react-tooltip": "^5.30.0",
69
+ "redux-batch-middleware": "^0.2.0",
70
+ "tailwind-scrollbar": "^4.0.2"
71
+ },
72
+ "repository": {
73
+ "type": "git",
74
+ "url": "git+https://github.com/viasoftbr/shared-ui.git"
75
+ },
76
+ "bugs": {
77
+ "url": "https://github.com/viasoftbr/shared-ui/issues"
78
+ },
79
+ "homepage": "https://github.com/viasoftbr/shared-ui#readme"
80
+ }