@dashadmin/dash-admin-state 1.0.0 → 1.3.17

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 CHANGED
@@ -1,37 +1,56 @@
1
1
  {
2
2
  "name": "@dashadmin/dash-admin-state",
3
- "version": "1.0.0",
4
- "description": "dash-admin-state — DASH framework package",
3
+ "version": "1.3.17",
4
+ "private": false,
5
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
- }
6
+ "main": "src/index.tsx",
7
+ "devDependencies": {
8
+ "@commitlint/cli": "latest",
9
+ "@commitlint/config-conventional": "latest",
10
+ "@types/jest": "latest",
11
+ "@types/node": "latest",
12
+ "@types/react": "latest",
13
+ "@types/react-dom": "latest",
14
+ "@typescript-eslint/eslint-plugin": "latest",
15
+ "@typescript-eslint/parser": "latest",
16
+ "eslint-config-airbnb-typescript": "latest",
17
+ "eslint-config-prettier": "latest",
18
+ "eslint-plugin-html": "latest",
19
+ "eslint-plugin-import": "latest",
20
+ "eslint-plugin-jsdoc": "latest",
21
+ "eslint-plugin-json": "latest",
22
+ "eslint-plugin-prettier": "latest",
23
+ "ts-jest": "latest",
24
+ "ts-loader": "latest",
25
+ "tsconfig-paths": "latest",
26
+ "typescript": "latest",
27
+ "vite": "^5.2.0",
28
+ "rollup": "^4.0.0"
16
29
  },
17
- "files": [
18
- "**/*"
19
- ],
20
- "sideEffects": false,
21
30
  "dependencies": {
22
31
  "connected-react-router": "latest",
23
- "@dashadmin/dash-auto-admin": "^1.0.0",
24
- "@dashadmin/dash-constants": "^1.0.0",
25
- "@dashadmin/dash-utils": "^1.0.0",
32
+ "@dashadmin/dash-auto-admin": "workspace:*",
33
+ "@dashadmin/dash-constants": "workspace:*",
34
+ "@dashadmin/dash-utils": "workspace:*",
26
35
  "history": "latest",
27
36
  "react-redux": "latest",
28
37
  "redux-saga": "latest",
29
38
  "redux-thunk": "^3.1.0"
30
39
  },
31
40
  "publishConfig": {
32
- "access": "public"
41
+ "name": "@dashadmin/dash-admin-state",
42
+ "access": "public",
43
+ "main": "dist/index.js",
44
+ "exports": {
45
+ ".": {
46
+ "import": "./dist/index.js"
47
+ }
48
+ }
33
49
  },
34
- "engines": {
35
- "node": ">=18"
36
- }
50
+ "scripts": {
51
+ "build": "vite build"
52
+ },
53
+ "files": [
54
+ "dist"
55
+ ]
37
56
  }
package/src/index.tsx ADDED
@@ -0,0 +1,34 @@
1
+ export { default as DASHStoreConfig } from './redux/store/index';
2
+ export { createRootReducer as DASHCreateRootReducer } from './redux/reducers/index';
3
+
4
+ export { default as DASH_THEME_SETTINGS } from './DefaultThemeSettings';
5
+
6
+ export type { default as IAuthState } from './redux/interfaces/IAuthState';
7
+ export type { default as ICommonState } from './redux/interfaces/ICommonState';
8
+ export type { default as ISettingsState } from './redux/interfaces/ISettings';
9
+ export type { default as IPageState, IBreadcrumbItem } from './redux/interfaces/IPage';
10
+ export type { default as IDASHAppState } from './redux/interfaces/IDASHAppState';
11
+ export type { default as IComponentDataState } from './redux/interfaces/IComponentData'; // Add this line
12
+
13
+ export { default as defaultAuth } from './defaults/defaultAuth';
14
+ export { default as defaultCommon } from './defaults/defaultCommon';
15
+ export { default as defaultFormState } from './defaults/defaultFormState';
16
+ export { default as defaultPageSettings } from './defaults/defaultPage';
17
+ export { default as defaultSettings } from './defaults/defaultSettings';
18
+
19
+ // Export all optimized hooks
20
+ export {
21
+ useLayoutState,
22
+ useAuthState,
23
+ useSettingsState,
24
+ useCommonState,
25
+ usePageState,
26
+ useResourcesState,
27
+ useLogoSettings,
28
+ usePanelSettings,
29
+ useThemeState,
30
+ useNavigationState
31
+ } from './hooks/DashAdminStateSelectors';
32
+
33
+ export * as DASH_REDUX_ACTIONS from './redux/actions';
34
+ export * from './redux/ReduxStoreAccesor';
package/index.d.ts DELETED
@@ -1,3 +0,0 @@
1
- // Auto-generated permissive types for @dashadmin/dash-admin-state.
2
- // Full typings can be regenerated with a tolerant tsc emit.
3
- export {};
File without changes