@dashadmin/dash-admin 1.0.0 → 1.3.16

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,4 +1,4 @@
1
- import { A as t, d as o, e as n, f as i, g as u, h as c, i as l, j as d, B as m, B as p, k as C, k as h, l as g, m as A, n as D, D as R, o as S, p as v, q as x, r as L, s as y, t as B, v as M, w as P, x as T, y as H, z as b, E, G as F, H as W, F as k, I, J as f, K as w, L as N, M as V, N as q, O as G, P as Q, Q as j, R as z, S as U, T as _, V as J, W as K, X as O, Y as X, Z as Y, _ as Z, $, a0 as aa, a1 as ea, a2 as sa, a3 as ra, a4 as ta, U as oa, a5 as na, a6 as ia, c as ua, a7 as ca, a8 as la, a9 as da, aa as ma, ab as pa, ac as Ca, ad as ha, ae as ga, af as Aa, ag as Da, ah as Ra, ai as Sa, aj as va, ak as xa, al as La, am as ya, an as Ba, ao as Ma, u as Pa, ap as Ta, aq as Ha, ar as ba, as as Ea, at as Fa, au as Wa, av as ka, aw as Ia, ax as fa, ay as wa, az as Na, aA as Va, aB as qa, aC as Ga, aD as Qa, aE as ja } from "./index-U84xs0Dc.js";
1
+ import { A as t, d as o, e as n, f as i, g as u, h as c, i as l, j as d, B as m, B as p, k as C, k as h, l as g, m as A, n as D, D as R, o as S, p as v, q as x, r as L, s as y, t as B, v as M, w as P, x as T, y as H, z as b, E, G as F, H as W, F as k, I, J as f, K as w, L as N, M as V, N as q, O as G, P as Q, Q as j, R as z, S as U, T as _, V as J, W as K, X as O, Y as X, Z as Y, _ as Z, $, a0 as aa, a1 as ea, a2 as sa, a3 as ra, a4 as ta, U as oa, a5 as na, a6 as ia, c as ua, a7 as ca, a8 as la, a9 as da, aa as ma, ab as pa, ac as Ca, ad as ha, ae as ga, af as Aa, ag as Da, ah as Ra, ai as Sa, aj as va, ak as xa, al as La, am as ya, an as Ba, ao as Ma, u as Pa, ap as Ta, aq as Ha, ar as ba, as as Ea, at as Fa, au as Wa, av as ka, aw as Ia, ax as fa, ay as wa, az as Na, aA as Va, aB as qa, aC as Ga, aD as Qa, aE as ja } from "./index-gfebuoyf.js";
2
2
  import "@dashadmin/dash-utils";
3
3
  import "react";
4
4
  export {
package/package.json CHANGED
@@ -1,39 +1,66 @@
1
1
  {
2
2
  "name": "@dashadmin/dash-admin",
3
- "version": "1.0.0",
4
- "description": "dash-admin — DASH framework package",
5
- "license": "MIT",
6
- "author": "Francisco Aranda <farandal@gmail.com>",
7
- "type": "module",
8
- "main": "index.js",
9
- "module": "index.js",
10
- "types": "index.d.ts",
11
- "exports": {
12
- ".": {
13
- "types": "./index.d.ts",
14
- "import": "./index.js"
15
- }
16
- },
3
+ "version": "1.3.16",
4
+ "private": false,
5
+ "main": "src/index.tsx",
6
+ "types": "src/index.tsx",
17
7
  "files": [
18
- "**/*"
8
+ "dist"
19
9
  ],
20
- "sideEffects": false,
21
- "dependencies": {
22
- "framer-motion": "^11.0.0",
23
- "query-string": "^8.1.0",
24
- "react-hook-form": "^7.54.0",
25
- "react-toastify": "^10.0.0"
10
+ "type": "module",
11
+ "scripts": {
12
+ "build": "vite build",
13
+ "typecheck": "tsc --noEmit --skipLibCheck",
14
+ "lint": "eslint --ext .ts,.tsx src",
15
+ "format": "prettier --write src"
26
16
  },
27
17
  "peerDependencies": {
28
18
  "@mui/icons-material": "^7.3.10",
29
19
  "@mui/material": "^7.3.10",
30
20
  "react": "^18.0.0",
31
- "react-admin": "^4.0.0 || ^5.0.0",
21
+ "react-admin": "5.14.7",
32
22
  "react-dom": "^18.0.0",
33
23
  "socket.io-client": "^4.7.0"
34
24
  },
25
+ "dependencies": {
26
+ "@dashadmin/dash-admin-state": "workspace:*",
27
+ "@dashadmin/dash-auth": "workspace:*",
28
+ "@dashadmin/dash-auto-admin": "workspace:*",
29
+ "@dashadmin/dash-axios-hook": "workspace:*",
30
+ "@dashadmin/dash-components": "workspace:*",
31
+ "@dashadmin/dash-dialog": "workspace:*",
32
+ "@dashadmin/dash-modal": "workspace:*",
33
+ "@dashadmin/dash-styles": "workspace:*",
34
+ "@dashadmin/dash-utils": "workspace:*",
35
+ "@dashadmin/dash-constants": "workspace:*",
36
+ "framer-motion": "^11.0.0",
37
+ "query-string": "^8.1.0",
38
+ "react-hook-form": "^7.78.0",
39
+ "ra-input-rich-text": "5.14.7",
40
+ "react-toastify": "^10.0.0",
41
+ "@tanstack/react-query-persist-client": "^5.84.2"
42
+ },
43
+ "devDependencies": {
44
+ "@types/node": "^20.19.42",
45
+ "@types/web": "^0.0.350",
46
+ "eslint": "^9.0.0",
47
+ "laravel-echo": "^2.3.7",
48
+ "prettier": "^3.2.0",
49
+ "pusher-js": "^8.5.0",
50
+ "rollup": "^4.0.0",
51
+ "socket.io-client": "^4.8.3",
52
+ "typescript": "^5.5.0",
53
+ "vite": "^5.2.0"
54
+ },
35
55
  "publishConfig": {
36
- "access": "public"
56
+ "access": "public",
57
+ "name": "@dashadmin/dash-admin",
58
+ "main": "dist/index.js",
59
+ "exports": {
60
+ ".": {
61
+ "import": "./dist/index.js"
62
+ }
63
+ }
37
64
  },
38
65
  "engines": {
39
66
  "node": ">=18"
package/src/index.tsx ADDED
@@ -0,0 +1,110 @@
1
+ import SystemRequestsCache from './contexts/SystemRequestsCache';
2
+
3
+ /** INTERFACES */
4
+ export type { IAuthContext } from './contexts/auth'
5
+ export type { ILaravelEchoManager } from './contexts/com/LaravelEchoMgr'
6
+
7
+ /** Global Loader */
8
+ export { default as useGlobalLoaderMgr } from './hooks/useGlobalLoaderMgr';
9
+ export { default as GlobalLoader } from './components/loader/GlobalLoader';
10
+ /** App Wrapper Uses suspense to load the Domain App, contains Global Loader and Global Error Boundary. */
11
+ export { default as AppAsyncWrapper } from './AppAsyncWrapper';
12
+ export { default as AppWrapper } from './AppWrapper';
13
+ export { default as DASHAdmin } from './DASHAdmin';
14
+ export { default as systemResources } from './systemResources';
15
+ export { default as tenantResources } from './tenantResources';
16
+ export { default as CustomImageInput } from './components/misc/CustomImageInput';
17
+
18
+ export { default as ResourceTemplate } from './templates/ResourceTemplate';
19
+ export { default as ResourceTemplateFull } from './templates/ResourceTemplateFull';
20
+ //export { default as ResourceTemplateOld } from './templates/ResourceTemplateOld';
21
+ export { useDashResource } from './contexts/DashResourceContext';
22
+ export { default as TrashTemplate } from './templates/TrashTemplate';
23
+ export { default as MotionWrapper } from './layout/MotionWrapper';
24
+ //export { default as TransitionWrapper } from './layout/TransitionWrapper';
25
+ export { default as useWindowSize } from './hooks/window/useWindowSize';
26
+ export { CacheInvalidatorContext } from './utils/cache/CacheInvalidatorContext';
27
+ export { default as CacheInvalidatorListenerComponent } from './utils/cache/CacheInvalidatorListenerComponent';
28
+ //export { default as useCacheInvalidatorListener } from './utils/cache/useCacheInvalidatorListener';
29
+ //export { default as useAxiosGetWithStore } from './hooks/data/useAxiosGetWithStore';
30
+ //export { default as resolveObjectPath } from './utils/resolveObjectPath';
31
+ //export * as Utils from "./utils"
32
+ export { AuthContext } from './contexts/auth';
33
+ export { NotificationComponent } from './contexts/com/components/NotificationRenderer'
34
+ export { NotificationWrapper } from './contexts/com/components/NotificationsWidget'
35
+
36
+ export { default as useLaravelEcho } from './contexts/com/useLaravelEcho';
37
+ export { default as WSMessagesManager } from './hooks/notifications/WSMessagesManager';
38
+
39
+ export { default as FCMContext, FCMProvider } from './contexts/com/FCMContext';
40
+
41
+ export { default as Redirect } from './components/custom/Redirect';
42
+ //export { default as getEnv } from "./config/DASHAdminSystemConstants";
43
+
44
+ export { default as RoutingWrapper, AnimatedRoutesWrapper } from './RoutingWrapper';
45
+ export type { IDASHRoutingWrapper } from './RoutingWrapper';
46
+
47
+ export { useAuthContext } from "./contexts/auth/AuthContext";
48
+
49
+ export {default as LaravelEchoContext} from "./contexts/com/LaravelEchoContext"
50
+ export {default as DashQueryClientContext, useDashQueryClient, useDashQueryPersister, useIsCachePersisted} from "./contexts/DashQueryClientContext"
51
+ export { default as SystemRequestsCache, useSystemRequestsCache } from './contexts/SystemRequestsCache';
52
+ export { SubscriptionPlanFormatsProvider, useSubscriptionPlanFormats } from './contexts/SubscriptionPlanFormatsProvider';
53
+ export type {ILaravelEchoContext} from "./contexts/com/LaravelEchoContext"
54
+
55
+ export {default as DASHGlobalErrorHandler} from "./components/misc/DASHGlobalErrorHandler"
56
+ export type {
57
+ //NotificationPayloadBase,
58
+ //INotificationPayload,
59
+ //DefaultSystemNotification,
60
+ //IFormattedNotification,
61
+ INotificationFormat
62
+ } from "./contexts/com/components/notificationFormats"
63
+
64
+ // This is a React-Admin hacked component to overwrite some native features.
65
+ export * from './react-admin-dash/Resource';
66
+
67
+ export {default as LogFileById} from "./components/logs/LogFileById"
68
+ export {default as LogFile} from "./components/logs/LogFile"
69
+
70
+ export { default as DASHAuthenticationService } from "./contexts/auth/DASHAuthenticationService"
71
+
72
+ export * from "./contexts/auth"
73
+
74
+ export * from "./utils"
75
+
76
+ export * from "./default-theme";
77
+
78
+ export * from "./providers/i18n/languages"
79
+
80
+ export { default as DarkToggleMode } from "./components/menu/DarkToggleMode"
81
+
82
+ export { default as useFormPersistence } from "./hooks/useFormPersistance";
83
+
84
+ export { default as AvatarComponent } from './components/user/AvatarComponent';
85
+ export { default as TenantAvatarComponent } from './components/user/TenantAvatarComponent';
86
+ export { default as UserPreferences } from './components/user/UserPreferences';
87
+ export { default as LanguageSwitcher } from './components/misc/LanguageSwitcher';
88
+ export { default as DarkModeSwitcher } from './components/misc/DarkModeSwitcher';
89
+
90
+ // Navigation Components
91
+ export { Breadcrumbs, BreadcrumbsComponent, BreadcrumbsManager, BreadcrumbsManagerComponent } from './components/navigation';
92
+ export type { BreadcrumbsProps, BreadcrumbsManagerProps } from './components/navigation';
93
+
94
+ // Navigation Hooks
95
+ export { useBreadcrumbs } from './hooks/useBreadcrumbs';
96
+ export type { UseBreadcrumbsOptions, UseBreadcrumbsResult } from './hooks/useBreadcrumbs';
97
+
98
+ // Resource Loader
99
+ export {
100
+ createDASHResourceLoader,
101
+ getDASHResources,
102
+ loadResourcesFromManifest,
103
+ loadManifest,
104
+ clearResourceCache,
105
+ getCachedResources,
106
+ type IResourceManifestEntry,
107
+ type IDASHResourceLoaderConfig
108
+ } from './resources/DASHResourceLoader';
109
+
110
+ export { default as I18nBridgeContext, I18nBridgeProvider, useI18nBridge, useBridgedLocales, useBridgedChangeLocale, useBridgedLocale } from './contexts/I18nBridgeContext';
package/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- // Auto-generated permissive types for @dashadmin/dash-admin.
2
- // Full typings can be regenerated with a tolerant tsc emit.
3
- export {};