easy-soft-dva 3.6.161 → 3.6.162
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/es/dva-core/checkModel.d.ts +1 -1
- package/es/dva-core/constants.d.ts +1 -1
- package/es/dva-core/createPromiseMiddleware.d.ts +1 -1
- package/es/dva-core/createStore.d.ts +10 -10
- package/es/dva-core/getReducer.d.ts +1 -1
- package/es/dva-core/getSaga.d.ts +2 -2
- package/es/dva-core/handleActions.d.ts +2 -2
- package/es/dva-core/index.d.ts +17 -17
- package/es/dva-core/plugin.d.ts +8 -8
- package/es/dva-core/prefixNamespace.d.ts +1 -1
- package/es/dva-core/prefixType.d.ts +1 -1
- package/es/dva-core/prefixedDispatch.d.ts +1 -1
- package/es/dva-core/subscription.d.ts +5 -5
- package/es/dva-core/utils.d.ts +6 -6
- package/es/dva-loading/index.d.ts +23 -23
- package/es/index.d.ts +1 -1
- package/es/utils/definition.d.ts +4 -4
- package/es/utils/dvaAssist.d.ts +78 -78
- package/package.json +12 -12
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function checkModel(model: any, existModels: any): void;
|
|
1
|
+
export default function checkModel(model: any, existModels: any): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const NAMESPACE_SEP: "/";
|
|
1
|
+
export const NAMESPACE_SEP: "/";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function createPromiseMiddleware(app: any): () => (next: any) => (action: any) => any;
|
|
1
|
+
export default function createPromiseMiddleware(app: any): () => (next: any) => (action: any) => any;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export default function _default({ reducers, initialState, plugin, sagaMiddleware, promiseMiddleware, createOpts: { setupMiddleWares }, }: {
|
|
2
|
-
reducers: any;
|
|
3
|
-
initialState: any;
|
|
4
|
-
plugin: any;
|
|
5
|
-
sagaMiddleware: any;
|
|
6
|
-
promiseMiddleware: any;
|
|
7
|
-
createOpts: {
|
|
8
|
-
setupMiddleWares?: ((m: any) => any) | undefined;
|
|
9
|
-
};
|
|
10
|
-
}): import("@reduxjs/toolkit/dist/configureStore").ToolkitStore<any, import("redux").AnyAction, any>;
|
|
1
|
+
export default function _default({ reducers, initialState, plugin, sagaMiddleware, promiseMiddleware, createOpts: { setupMiddleWares }, }: {
|
|
2
|
+
reducers: any;
|
|
3
|
+
initialState: any;
|
|
4
|
+
plugin: any;
|
|
5
|
+
sagaMiddleware: any;
|
|
6
|
+
promiseMiddleware: any;
|
|
7
|
+
createOpts: {
|
|
8
|
+
setupMiddleWares?: ((m: any) => any) | undefined;
|
|
9
|
+
};
|
|
10
|
+
}): import("@reduxjs/toolkit/dist/configureStore").ToolkitStore<any, import("redux").AnyAction, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function getReducer(reducers: any, state: any, handleActions: any, namespace: any): any;
|
|
1
|
+
export default function getReducer(reducers: any, state: any, handleActions: any, namespace: any): any;
|
package/es/dva-core/getSaga.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default function getSaga(effects: any, model: any, onError: any, onEffect: any, options?: {}): () => Generator<sagaEffects.ForkEffect<void>, void, unknown>;
|
|
2
|
-
import * as sagaEffects from "redux-saga/effects";
|
|
1
|
+
export default function getSaga(effects: any, model: any, onError: any, onEffect: any, options?: {}): () => Generator<sagaEffects.ForkEffect<void>, void, unknown>;
|
|
2
|
+
import * as sagaEffects from "redux-saga/effects";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export default handleActions;
|
|
2
|
-
declare function handleActions(handlers: any, defaultState: any, namespace: any): (state: any, action: any) => any;
|
|
1
|
+
export default handleActions;
|
|
2
|
+
declare function handleActions(handlers: any, defaultState: any, namespace: any): (state: any, action: any) => any;
|
package/es/dva-core/index.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Create dva-core instance.
|
|
3
|
-
* @param {Object} hooksAndOptions
|
|
4
|
-
* @param {Object} createOptions
|
|
5
|
-
*/
|
|
6
|
-
export function create(hooksAndOptions?: Object, createOptions?: Object): {
|
|
7
|
-
_models: any[];
|
|
8
|
-
_store: null;
|
|
9
|
-
_plugin: Plugin;
|
|
10
|
-
use: (plugin: any) => void;
|
|
11
|
-
model: (m: Object) => any;
|
|
12
|
-
start: () => void;
|
|
13
|
-
};
|
|
14
|
-
export * as utils from "./utils";
|
|
15
|
-
export * as saga from "redux-saga";
|
|
16
|
-
import Plugin from "./plugin";
|
|
17
|
-
export { connect, Provider } from "react-redux";
|
|
1
|
+
/**
|
|
2
|
+
* Create dva-core instance.
|
|
3
|
+
* @param {Object} hooksAndOptions
|
|
4
|
+
* @param {Object} createOptions
|
|
5
|
+
*/
|
|
6
|
+
export function create(hooksAndOptions?: Object, createOptions?: Object): {
|
|
7
|
+
_models: any[];
|
|
8
|
+
_store: null;
|
|
9
|
+
_plugin: Plugin;
|
|
10
|
+
use: (plugin: any) => void;
|
|
11
|
+
model: (m: Object) => any;
|
|
12
|
+
start: () => void;
|
|
13
|
+
};
|
|
14
|
+
export * as utils from "./utils";
|
|
15
|
+
export * as saga from "redux-saga";
|
|
16
|
+
import Plugin from "./plugin";
|
|
17
|
+
export { connect, Provider } from "react-redux";
|
package/es/dva-core/plugin.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export function filterHooks(object: any): {};
|
|
2
|
-
export default class Plugin {
|
|
3
|
-
_handleActions: any;
|
|
4
|
-
hooks: {};
|
|
5
|
-
use(plugin: any): void;
|
|
6
|
-
apply(key: any, defaultHandler: any): (...arguments_: any[]) => void;
|
|
7
|
-
get(key: any): any;
|
|
8
|
-
}
|
|
1
|
+
export function filterHooks(object: any): {};
|
|
2
|
+
export default class Plugin {
|
|
3
|
+
_handleActions: any;
|
|
4
|
+
hooks: {};
|
|
5
|
+
use(plugin: any): void;
|
|
6
|
+
apply(key: any, defaultHandler: any): (...arguments_: any[]) => void;
|
|
7
|
+
get(key: any): any;
|
|
8
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function prefixNamespace(model: any): any;
|
|
1
|
+
export default function prefixNamespace(model: any): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function prefixType(type: any, model: any): any;
|
|
1
|
+
export default function prefixType(type: any, model: any): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function prefixedDispatch(dispatch: any, model: any): (action: any) => any;
|
|
1
|
+
export default function prefixedDispatch(dispatch: any, model: any): (action: any) => any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export function run(subs: any, model: any, app: any, onError: any): {
|
|
2
|
-
funcs: any[];
|
|
3
|
-
nonFuncs: string[];
|
|
4
|
-
};
|
|
5
|
-
export function unListen(unListeners: any, namespace: any): void;
|
|
1
|
+
export function run(subs: any, model: any, app: any, onError: any): {
|
|
2
|
+
funcs: any[];
|
|
3
|
+
nonFuncs: string[];
|
|
4
|
+
};
|
|
5
|
+
export function unListen(unListeners: any, namespace: any): void;
|
package/es/dva-core/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export const isArray: (arg: any) => arg is any[];
|
|
2
|
-
export function isFunction(o: any): boolean;
|
|
3
|
-
export function returnSelf(m: any): any;
|
|
4
|
-
export function noop(): void;
|
|
5
|
-
export function findIndex(array: any, predicate: any): number;
|
|
6
|
-
export { isPlainObject } from "is-plain-object";
|
|
1
|
+
export const isArray: (arg: any) => arg is any[];
|
|
2
|
+
export function isFunction(o: any): boolean;
|
|
3
|
+
export function returnSelf(m: any): any;
|
|
4
|
+
export function noop(): void;
|
|
5
|
+
export function findIndex(array: any, predicate: any): number;
|
|
6
|
+
export { isPlainObject } from "is-plain-object";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
export function createLoading(options?: {}): {
|
|
2
|
-
extraReducers: {
|
|
3
|
-
[x: number]: (state: {
|
|
4
|
-
global: boolean;
|
|
5
|
-
models: {};
|
|
6
|
-
effects: {};
|
|
7
|
-
} | undefined, { type, payload }: {
|
|
8
|
-
type: any;
|
|
9
|
-
payload: any;
|
|
10
|
-
}) => {
|
|
11
|
-
global: boolean;
|
|
12
|
-
models: {};
|
|
13
|
-
effects: {};
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
onEffect: (effect: any, { put }: {
|
|
17
|
-
put: any;
|
|
18
|
-
}, model: any, actionType: any) => any;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* placeholder function
|
|
22
|
-
*/
|
|
23
|
-
export function empty(): Promise<{}>;
|
|
1
|
+
export function createLoading(options?: {}): {
|
|
2
|
+
extraReducers: {
|
|
3
|
+
[x: number]: (state: {
|
|
4
|
+
global: boolean;
|
|
5
|
+
models: {};
|
|
6
|
+
effects: {};
|
|
7
|
+
} | undefined, { type, payload }: {
|
|
8
|
+
type: any;
|
|
9
|
+
payload: any;
|
|
10
|
+
}) => {
|
|
11
|
+
global: boolean;
|
|
12
|
+
models: {};
|
|
13
|
+
effects: {};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
onEffect: (effect: any, { put }: {
|
|
17
|
+
put: any;
|
|
18
|
+
}, model: any, actionType: any) => any;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* placeholder function
|
|
22
|
+
*/
|
|
23
|
+
export function empty(): Promise<{}>;
|
package/es/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./utils/dvaAssist";
|
|
1
|
+
export * from "./utils/dvaAssist";
|
package/es/utils/definition.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Module Package Name
|
|
3
|
-
*/
|
|
4
|
-
export const modulePackageName: "easy-soft-dva";
|
|
1
|
+
/**
|
|
2
|
+
* Module Package Name
|
|
3
|
+
*/
|
|
4
|
+
export const modulePackageName: "easy-soft-dva";
|
package/es/utils/dvaAssist.d.ts
CHANGED
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Set application external config list
|
|
3
|
-
* @param {Object|Array} initialConfig application initial config
|
|
4
|
-
*/
|
|
5
|
-
export function setApplicationInitialOption(initialConfig?: Object | any[]): void;
|
|
6
|
-
/**
|
|
7
|
-
* Initialize application
|
|
8
|
-
*/
|
|
9
|
-
export function initializeApplication(): void;
|
|
10
|
-
export function getDvaApplication(): null;
|
|
11
|
-
/**
|
|
12
|
-
* Get store
|
|
13
|
-
*/
|
|
14
|
-
export function getStore(): any;
|
|
15
|
-
/**
|
|
16
|
-
* Get dispatch
|
|
17
|
-
*/
|
|
18
|
-
export function getDispatch(): any;
|
|
19
|
-
/**
|
|
20
|
-
* Dispatch model effect with payload and alias
|
|
21
|
-
* @param {Object} option dispatch option
|
|
22
|
-
* @param {string} option.type type
|
|
23
|
-
* @param {Object} option.payload payload params
|
|
24
|
-
* @param {string} option.alias data mount to state with alias key
|
|
25
|
-
*/
|
|
26
|
-
export function dispatch({ type, payload, alias }: {
|
|
27
|
-
type: string;
|
|
28
|
-
payload: Object;
|
|
29
|
-
alias: string;
|
|
30
|
-
}): any;
|
|
31
|
-
/**
|
|
32
|
-
* Dispatch model effect with payload and alias
|
|
33
|
-
* @param {Object} option dispatch option
|
|
34
|
-
* @param {string} option.model model name
|
|
35
|
-
* @param {string} option.effect model effect name
|
|
36
|
-
* @param {Object} option.payload payload params
|
|
37
|
-
* @param {string} option.alias data mount to state with alias key
|
|
38
|
-
*/
|
|
39
|
-
export function dispatchModel({ model, effect, payload, alias }: {
|
|
40
|
-
model: string;
|
|
41
|
-
effect: string;
|
|
42
|
-
payload: Object;
|
|
43
|
-
alias: string;
|
|
44
|
-
}): any;
|
|
45
|
-
/**
|
|
46
|
-
* Get all models
|
|
47
|
-
*/
|
|
48
|
-
export function getAllModel(): any;
|
|
49
|
-
/**
|
|
50
|
-
* Get the special model
|
|
51
|
-
* @param {string} name model name
|
|
52
|
-
*/
|
|
53
|
-
export function getModel(name: string): any;
|
|
54
|
-
/**
|
|
55
|
-
* Get the special model state
|
|
56
|
-
* @param {string} name model name
|
|
57
|
-
*/
|
|
58
|
-
export function getModelState(name: string): any;
|
|
59
|
-
/**
|
|
60
|
-
* Get the special model state date, eg "model.state.data" value
|
|
61
|
-
* @param {string} name model name
|
|
62
|
-
*/
|
|
63
|
-
export function getModelRemoteData(name: string): any;
|
|
64
|
-
export namespace applicationAssist {
|
|
65
|
-
const application: null;
|
|
66
|
-
namespace initialOption {
|
|
67
|
-
const initialState: {};
|
|
68
|
-
const models: never[];
|
|
69
|
-
}
|
|
70
|
-
const initialOptionSetComplete: boolean;
|
|
71
|
-
const applicationInitializeComplete: boolean;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Encapsulation dva Provider with store
|
|
75
|
-
* @param {Object} properties properties
|
|
76
|
-
*/
|
|
77
|
-
export function ApplicationProvider(properties: Object): import(".pnpm/@types+react@18.2.
|
|
78
|
-
export { connect, Provider } from "../dva-core";
|
|
1
|
+
/**
|
|
2
|
+
* Set application external config list
|
|
3
|
+
* @param {Object|Array} initialConfig application initial config
|
|
4
|
+
*/
|
|
5
|
+
export function setApplicationInitialOption(initialConfig?: Object | any[]): void;
|
|
6
|
+
/**
|
|
7
|
+
* Initialize application
|
|
8
|
+
*/
|
|
9
|
+
export function initializeApplication(): void;
|
|
10
|
+
export function getDvaApplication(): null;
|
|
11
|
+
/**
|
|
12
|
+
* Get store
|
|
13
|
+
*/
|
|
14
|
+
export function getStore(): any;
|
|
15
|
+
/**
|
|
16
|
+
* Get dispatch
|
|
17
|
+
*/
|
|
18
|
+
export function getDispatch(): any;
|
|
19
|
+
/**
|
|
20
|
+
* Dispatch model effect with payload and alias
|
|
21
|
+
* @param {Object} option dispatch option
|
|
22
|
+
* @param {string} option.type type
|
|
23
|
+
* @param {Object} option.payload payload params
|
|
24
|
+
* @param {string} option.alias data mount to state with alias key
|
|
25
|
+
*/
|
|
26
|
+
export function dispatch({ type, payload, alias }: {
|
|
27
|
+
type: string;
|
|
28
|
+
payload: Object;
|
|
29
|
+
alias: string;
|
|
30
|
+
}): any;
|
|
31
|
+
/**
|
|
32
|
+
* Dispatch model effect with payload and alias
|
|
33
|
+
* @param {Object} option dispatch option
|
|
34
|
+
* @param {string} option.model model name
|
|
35
|
+
* @param {string} option.effect model effect name
|
|
36
|
+
* @param {Object} option.payload payload params
|
|
37
|
+
* @param {string} option.alias data mount to state with alias key
|
|
38
|
+
*/
|
|
39
|
+
export function dispatchModel({ model, effect, payload, alias }: {
|
|
40
|
+
model: string;
|
|
41
|
+
effect: string;
|
|
42
|
+
payload: Object;
|
|
43
|
+
alias: string;
|
|
44
|
+
}): any;
|
|
45
|
+
/**
|
|
46
|
+
* Get all models
|
|
47
|
+
*/
|
|
48
|
+
export function getAllModel(): any;
|
|
49
|
+
/**
|
|
50
|
+
* Get the special model
|
|
51
|
+
* @param {string} name model name
|
|
52
|
+
*/
|
|
53
|
+
export function getModel(name: string): any;
|
|
54
|
+
/**
|
|
55
|
+
* Get the special model state
|
|
56
|
+
* @param {string} name model name
|
|
57
|
+
*/
|
|
58
|
+
export function getModelState(name: string): any;
|
|
59
|
+
/**
|
|
60
|
+
* Get the special model state date, eg "model.state.data" value
|
|
61
|
+
* @param {string} name model name
|
|
62
|
+
*/
|
|
63
|
+
export function getModelRemoteData(name: string): any;
|
|
64
|
+
export namespace applicationAssist {
|
|
65
|
+
const application: null;
|
|
66
|
+
namespace initialOption {
|
|
67
|
+
const initialState: {};
|
|
68
|
+
const models: never[];
|
|
69
|
+
}
|
|
70
|
+
const initialOptionSetComplete: boolean;
|
|
71
|
+
const applicationInitializeComplete: boolean;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Encapsulation dva Provider with store
|
|
75
|
+
* @param {Object} properties properties
|
|
76
|
+
*/
|
|
77
|
+
export function ApplicationProvider(properties: Object): import(".pnpm/@types+react@18.2.7/node_modules/@types/react").JSX.Element;
|
|
78
|
+
export { connect, Provider } from "../dva-core";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "easy-soft-dva",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.162",
|
|
4
4
|
"description": "The core lightweight library for dva, based on redux and redux-saga.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@babel/runtime": "^7.21.5",
|
|
51
51
|
"@reduxjs/toolkit": "^1.9.5",
|
|
52
|
-
"easy-soft-utility": "^2.4.
|
|
52
|
+
"easy-soft-utility": "^2.4.133",
|
|
53
53
|
"flatten": "^1.0.3",
|
|
54
54
|
"global": "^4.4.0",
|
|
55
55
|
"invariant": "^2.2.4",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"@rollup/plugin-alias": "^5.0.0",
|
|
78
78
|
"@rollup/plugin-babel": "6.0.3",
|
|
79
79
|
"@rollup/plugin-buble": "^1.0.2",
|
|
80
|
-
"@rollup/plugin-commonjs": "^
|
|
80
|
+
"@rollup/plugin-commonjs": "^25.0.0",
|
|
81
81
|
"@rollup/plugin-json": "^6.0.0",
|
|
82
82
|
"@rollup/plugin-node-resolve": "^15.0.2",
|
|
83
83
|
"@rollup/plugin-replace": "^5.0.2",
|
|
@@ -85,17 +85,17 @@
|
|
|
85
85
|
"@svgr/rollup": "^8.0.1",
|
|
86
86
|
"@types/fs-extra": "^11.0.1",
|
|
87
87
|
"@types/jest": "^29.5.1",
|
|
88
|
-
"@types/node": "^20.
|
|
88
|
+
"@types/node": "^20.2.3",
|
|
89
89
|
"@types/shelljs": "^0.8.12",
|
|
90
|
-
"@typescript-eslint/parser": "^5.59.
|
|
90
|
+
"@typescript-eslint/parser": "^5.59.7",
|
|
91
91
|
"autoprefixer": "^10.4.14",
|
|
92
92
|
"commitizen": "^4.3.0",
|
|
93
93
|
"conventional-changelog-conventionalcommits": "^5.0.0",
|
|
94
94
|
"cross-env": "^7.0.3",
|
|
95
95
|
"cssnano": "^6.0.1",
|
|
96
|
-
"documentation": "^14.0.
|
|
97
|
-
"easy-soft-develop": "^2.
|
|
98
|
-
"eslint": "^8.
|
|
96
|
+
"documentation": "^14.0.2",
|
|
97
|
+
"easy-soft-develop": "^2.1.4",
|
|
98
|
+
"eslint": "^8.41.0",
|
|
99
99
|
"eslint-config-airbnb": "^19.0.4",
|
|
100
100
|
"eslint-config-airbnb-typescript": "^17.0.0",
|
|
101
101
|
"eslint-config-prettier": "^8.8.0",
|
|
@@ -114,12 +114,12 @@
|
|
|
114
114
|
"husky": "^8.0.3",
|
|
115
115
|
"jest": "^29.5.0",
|
|
116
116
|
"lint-staged": "^13.2.2",
|
|
117
|
-
"mm": "^3.
|
|
117
|
+
"mm": "^3.3.0",
|
|
118
118
|
"prettier": "^2.8.8",
|
|
119
119
|
"prettier-plugin-organize-imports": "^3.2.2",
|
|
120
120
|
"prettier-plugin-packagejson": "^2.4.3",
|
|
121
|
-
"rimraf": "^5.0.
|
|
122
|
-
"rollup": "^3.
|
|
121
|
+
"rimraf": "^5.0.1",
|
|
122
|
+
"rollup": "^3.23.0",
|
|
123
123
|
"rollup-plugin-copy": "^3.4.0",
|
|
124
124
|
"rollup-plugin-livereload": "^2.0.5",
|
|
125
125
|
"rollup-plugin-postcss": "^4.0.2",
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
"rollup-plugin-terser": "^7.0.2",
|
|
128
128
|
"rollup-plugin-typescript2": "^0.34.1",
|
|
129
129
|
"shelljs": "^0.8.5",
|
|
130
|
-
"stylelint": "^15.6.
|
|
130
|
+
"stylelint": "^15.6.2",
|
|
131
131
|
"stylelint-config-prettier": "^9.0.5",
|
|
132
132
|
"stylelint-config-standard": "^33.0.0",
|
|
133
133
|
"terminal-kit": "^3.0.0"
|