@dashadmin/dash-utils 1.3.19 → 1.3.22
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/package.json +10 -19
- package/src/index.ts +0 -199
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dashadmin/dash-utils",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.22",
|
|
4
4
|
"private": false,
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"main": "
|
|
6
|
+
"main": "dist/index.js",
|
|
7
7
|
"devDependencies": {
|
|
8
8
|
"@commitlint/cli": "latest",
|
|
9
9
|
"@commitlint/config-conventional": "latest",
|
|
@@ -29,33 +29,24 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@mui/material": "^7.3.10",
|
|
32
|
-
"@dashadmin/dash-constants": "
|
|
32
|
+
"@dashadmin/dash-constants": "1.3.22"
|
|
33
33
|
},
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"name": "@dashadmin/dash-utils",
|
|
36
|
-
"access": "public"
|
|
37
|
-
"main": "dist/index.js",
|
|
38
|
-
"exports": {
|
|
39
|
-
".": {
|
|
40
|
-
"import": "./dist/index.js"
|
|
41
|
-
},
|
|
42
|
-
"./src/*": {
|
|
43
|
-
"import": "./dist/*.js"
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
"scripts": {
|
|
48
|
-
"build": "rm -rf dist && node ../dash-build/compile.mjs && vite build"
|
|
36
|
+
"access": "public"
|
|
49
37
|
},
|
|
50
38
|
"files": [
|
|
51
39
|
"dist"
|
|
52
40
|
],
|
|
53
41
|
"exports": {
|
|
54
42
|
".": {
|
|
55
|
-
"import": "./
|
|
43
|
+
"import": "./dist/index.js"
|
|
56
44
|
},
|
|
57
45
|
"./src/*": {
|
|
58
|
-
"import": "./
|
|
46
|
+
"import": "./dist/*.js"
|
|
59
47
|
}
|
|
48
|
+
},
|
|
49
|
+
"scripts": {
|
|
50
|
+
"build": "rm -rf dist && node ../dash-build/compile.mjs && vite build"
|
|
60
51
|
}
|
|
61
|
-
}
|
|
52
|
+
}
|
package/src/index.ts
DELETED
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
// Hooks
|
|
2
|
-
export { useWindowSize } from './hooks/useWindowSize';
|
|
3
|
-
export { useCapacitorAppStateRefresh } from './hooks/useCapacitorAppStateRefresh';
|
|
4
|
-
export { useDeviceStorageSync } from './hooks/useDeviceStorageSync';
|
|
5
|
-
export {
|
|
6
|
-
useCapacitorKeyboard,
|
|
7
|
-
isCapacitorKeyboardAvailable,
|
|
8
|
-
getCapacitorKeyboard,
|
|
9
|
-
type KeyboardState,
|
|
10
|
-
type UseCapacitorKeyboardOptions
|
|
11
|
-
} from './hooks/useCapacitorKeyboard';
|
|
12
|
-
export {
|
|
13
|
-
useMobileDetection,
|
|
14
|
-
checkMobileDevice,
|
|
15
|
-
isWebView,
|
|
16
|
-
isAndroid,
|
|
17
|
-
isIOS,
|
|
18
|
-
isWindows,
|
|
19
|
-
isMacOS,
|
|
20
|
-
isLinux,
|
|
21
|
-
type MobileDetectionState,
|
|
22
|
-
type UseMobileDetectionOptions
|
|
23
|
-
} from './hooks/useMobileDetection';
|
|
24
|
-
export {
|
|
25
|
-
useDraggable,
|
|
26
|
-
type DraggablePosition,
|
|
27
|
-
type UseDraggableOptions,
|
|
28
|
-
type UseDraggableReturn
|
|
29
|
-
} from './hooks/useDraggable';
|
|
30
|
-
export {
|
|
31
|
-
useNotifications,
|
|
32
|
-
type ProcessedNotification,
|
|
33
|
-
type ToastNotification,
|
|
34
|
-
type DialogNotification,
|
|
35
|
-
type UseNotificationsOptions,
|
|
36
|
-
type UseNotificationsReturn
|
|
37
|
-
} from './hooks/useNotifications';
|
|
38
|
-
export {
|
|
39
|
-
useQuickSearch,
|
|
40
|
-
type UseQuickSearchReturn
|
|
41
|
-
} from './hooks/useQuickSearch';
|
|
42
|
-
export {
|
|
43
|
-
useMenuStateInit,
|
|
44
|
-
getInitialMenuState,
|
|
45
|
-
getInitialNavSize,
|
|
46
|
-
type UseMenuStateInitOptions
|
|
47
|
-
} from './hooks/useMenuStateInit';
|
|
48
|
-
|
|
49
|
-
// Utils
|
|
50
|
-
export { updateDomCssVariables } from './utils/updateDomCssVariables';
|
|
51
|
-
export { getEnv } from './utils/envUtils';
|
|
52
|
-
export { dashStorage } from './utils/dashDtorage';
|
|
53
|
-
export {
|
|
54
|
-
EMAIL_REGEX,
|
|
55
|
-
PHONE_REGEX,
|
|
56
|
-
URL_REGEX,
|
|
57
|
-
validateEmail,
|
|
58
|
-
validatePhone,
|
|
59
|
-
validateUrl,
|
|
60
|
-
validateRequired,
|
|
61
|
-
validateMinLength,
|
|
62
|
-
validateMaxLength,
|
|
63
|
-
validateRut,
|
|
64
|
-
checkPasswordStrength,
|
|
65
|
-
type PasswordStrength
|
|
66
|
-
} from './utils/validation';
|
|
67
|
-
|
|
68
|
-
// IPC Service for Electron
|
|
69
|
-
export {
|
|
70
|
-
isDashIPCServiceAvailable,
|
|
71
|
-
isElectron,
|
|
72
|
-
getDashIPCService,
|
|
73
|
-
windowControl,
|
|
74
|
-
startWindowDrag,
|
|
75
|
-
executeIPCAction,
|
|
76
|
-
onIPCStdout,
|
|
77
|
-
useDashIPCService,
|
|
78
|
-
type DashIPCServiceType
|
|
79
|
-
} from './utils/dashIPCService';
|
|
80
|
-
|
|
81
|
-
// Stored Theme
|
|
82
|
-
export {
|
|
83
|
-
getStoredTheme,
|
|
84
|
-
setStoredTheme,
|
|
85
|
-
initializeStoredTheme,
|
|
86
|
-
clearStoredTheme
|
|
87
|
-
} from './utils/storedTheme';
|
|
88
|
-
|
|
89
|
-
// Development Environment Detection
|
|
90
|
-
export {
|
|
91
|
-
isDev,
|
|
92
|
-
isProd,
|
|
93
|
-
isTest,
|
|
94
|
-
getEnvironment
|
|
95
|
-
} from './utils/isDev';
|
|
96
|
-
|
|
97
|
-
// Environment Body Classes
|
|
98
|
-
export {
|
|
99
|
-
setupEnvironmentBodyClasses,
|
|
100
|
-
useEnvironmentBodyClasses,
|
|
101
|
-
type EnvironmentVars
|
|
102
|
-
} from './utils/environmentBodyClasses';
|
|
103
|
-
|
|
104
|
-
// Platform Detection
|
|
105
|
-
export {
|
|
106
|
-
isWebView as isWebViewPlatform,
|
|
107
|
-
isAndroid as isAndroidPlatform,
|
|
108
|
-
isIOS as isIOSPlatform,
|
|
109
|
-
isWindows as isWindowsPlatform,
|
|
110
|
-
applyPlatformBodyClasses
|
|
111
|
-
} from './utils/platformDetection';
|
|
112
|
-
|
|
113
|
-
// Electron Store Sync
|
|
114
|
-
export {
|
|
115
|
-
syncElectronStore,
|
|
116
|
-
hasElectronStore
|
|
117
|
-
} from './utils/electronStoreSync';
|
|
118
|
-
|
|
119
|
-
// Notification Permission
|
|
120
|
-
export {
|
|
121
|
-
requestNotificationPermission,
|
|
122
|
-
isNotificationSupported,
|
|
123
|
-
hasNotificationPermission,
|
|
124
|
-
isNotificationDenied,
|
|
125
|
-
getNotificationPermission
|
|
126
|
-
} from './utils/notificationPermission';
|
|
127
|
-
|
|
128
|
-
// Dash Bootstrap App
|
|
129
|
-
export {
|
|
130
|
-
dashInitializeApp,
|
|
131
|
-
dashBootstrapApp,
|
|
132
|
-
type DashInitializeAppConfig
|
|
133
|
-
} from './utils/dashBootstrapApp';
|
|
134
|
-
|
|
135
|
-
// Resource Loader
|
|
136
|
-
export {
|
|
137
|
-
createResourceLoader,
|
|
138
|
-
createSimpleResourceLoader
|
|
139
|
-
} from './utils/resourceLoader';
|
|
140
|
-
|
|
141
|
-
// Auth Provider Utils
|
|
142
|
-
export {
|
|
143
|
-
createLogoutFromStorage,
|
|
144
|
-
isUserAuthenticated,
|
|
145
|
-
getCurrentUser,
|
|
146
|
-
getAuthToken,
|
|
147
|
-
getTenantId,
|
|
148
|
-
getUserRoles,
|
|
149
|
-
setAuthData,
|
|
150
|
-
type LogoutConfig
|
|
151
|
-
} from './utils/authProviderUtils';
|
|
152
|
-
|
|
153
|
-
// Data Provider Utils
|
|
154
|
-
export {
|
|
155
|
-
getResourceConfigManager,
|
|
156
|
-
setResourceConfigs,
|
|
157
|
-
getResourceConfig,
|
|
158
|
-
processPostData,
|
|
159
|
-
processFormData,
|
|
160
|
-
buildQueryString,
|
|
161
|
-
isFormDataResource,
|
|
162
|
-
type IResourceConfig
|
|
163
|
-
} from './utils/dataProviderUtils';
|
|
164
|
-
|
|
165
|
-
// Components
|
|
166
|
-
export {
|
|
167
|
-
MinimalLayout,
|
|
168
|
-
type MinimalLayoutProps
|
|
169
|
-
} from './components/MinimalLayout';
|
|
170
|
-
|
|
171
|
-
export {
|
|
172
|
-
DashRouterComponent,
|
|
173
|
-
RouterComponent, // Backward compatibility alias
|
|
174
|
-
shouldUseHashRouter,
|
|
175
|
-
createRouterComponent,
|
|
176
|
-
type DashRouterComponentProps,
|
|
177
|
-
type RouterComponentProps // Backward compatibility alias
|
|
178
|
-
} from './components/RouterComponent';
|
|
179
|
-
|
|
180
|
-
// IPC Message Broker Context (Electron)
|
|
181
|
-
export {
|
|
182
|
-
IPCMessageBrokerContext,
|
|
183
|
-
IPCMessageBrokerProvider,
|
|
184
|
-
useIPCMessageBroker,
|
|
185
|
-
type LogMessage,
|
|
186
|
-
type SubprocessOutput,
|
|
187
|
-
type IPCMessageBrokerContextType,
|
|
188
|
-
type IPCMessageBrokerConfig
|
|
189
|
-
} from './contexts/IPCMessageBrokerContext';
|
|
190
|
-
|
|
191
|
-
// Lazy App Loader
|
|
192
|
-
export {
|
|
193
|
-
createLazyAppComponent,
|
|
194
|
-
createSimpleLazyApp,
|
|
195
|
-
DefaultLoadFailedComponent,
|
|
196
|
-
type LazyAppLoaderConfig
|
|
197
|
-
} from './components/LazyAppLoader';
|
|
198
|
-
|
|
199
|
-
export { priceFormatter } from "./utils/priceFormatter";
|