wargerm 0.6.24 → 0.7.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.
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ export declare const registerModel: (model: any) => void;
3
+ declare const _default: ({ children }: any) => JSX.Element;
4
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import React from 'react';
2
+ export declare function composeRootApp(container: boolean | React.ReactChild | React.ReactFragment | React.ReactPortal | null | undefined): React.FunctionComponentElement<{}>;
@@ -0,0 +1,5 @@
1
+ export default class Dispatcher {
2
+ callbacks: any;
3
+ data: any;
4
+ update: (namespace: string) => void;
5
+ }
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ declare const _default: (props: {
3
+ hook: any;
4
+ onUpdate: any;
5
+ namespace: any;
6
+ }) => JSX.Element;
7
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: React.Context<{}>;
3
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { useModel } from './useModel';
2
+ import { composeRootApp } from './composeRootApp';
3
+ import { registerModel } from './Provider';
4
+ export default composeRootApp;
5
+ export { useModel, registerModel };
@@ -0,0 +1 @@
1
+ export declare function useModel(namespace: string | number, updater: any): void;
package/package.json CHANGED
@@ -1,92 +1,91 @@
1
- {
2
- "private": false,
3
- "name": "wargerm",
4
- "version": "0.6.24",
5
- "scripts": {
6
- "dev": "dumi dev",
7
- "docs:build": "dumi build",
8
- "docs:deploy": "gh-pages -d docs-dist",
9
- "build": "father-build",
10
- "deploy": "npm run docs:build && npm run docs:deploy",
11
- "release": "npm run build && npm publish",
12
- "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
13
- "test": "umi-test",
14
- "test:coverage": "umi-test --coverage"
15
- },
16
- "main": "dist/index.js",
17
- "module": "dist/index.esm.js",
18
- "unpkg": "dist/index.umd.min.js",
19
- "typings": "dist/index.d.ts",
20
- "author": "jinly2",
21
- "license": "MIT",
22
- "keywords": [
23
- "React",
24
- "Component"
25
- ],
26
- "gitHooks": {
27
- "pre-commit": "lint-staged"
28
- },
29
- "repository": {
30
- "type": "git",
31
- "url": "http://code.eblssmart.com/platform/web/wargerm-components.git",
32
- "branch": "main"
33
- },
34
- "files": [
35
- "dist",
36
- "es",
37
- "lib",
38
- "index.css"
39
- ],
40
- "lint-staged": {
41
- "*.{js,jsx,less,md,json}": [
42
- "prettier --write"
43
- ],
44
- "*.ts?(x)": [
45
- "prettier --parser=typescript --write"
46
- ]
47
- },
48
- "dependencies": {
49
- "@ant-design/pro-table": "2.80.2",
50
- "animate.css": "^4.1.1",
51
- "echarts": "^5.2.2",
52
- "echarts-for-react": "^3.0.2",
53
- "lodash-es": "^4.17.21",
54
- "moment": "^2.29.4",
55
- "react-countup": "^6.0.0",
56
- "react-dom": "^17.0.2",
57
- "react-file-viewer": "^1.2.1",
58
- "swiper": "^6.7.0",
59
- "use-sync-external-store": "^1.2.0",
60
- "xgplayer": "^2.31.6",
61
- "xgplayer-flv": "^2.5.1",
62
- "xgplayer-flv.js": "^2.3.0",
63
- "xgplayer-hls": "^2.5.2",
64
- "xgplayer-hls.js": "^2.6.1"
65
- },
66
- "peerDependencies": {
67
- "@ant-design/icons": ">=4.2.0",
68
- "antd": ">=4.7.0",
69
- "classnames": ">=2.2.0",
70
- "echarts": "^5.2.2",
71
- "echarts-for-react": "^3.0.2",
72
- "lodash-es": ">=4.17.21",
73
- "react": ">=17.0.0"
74
- },
75
- "devDependencies": {
76
- "@ant-design/icons": "^4.6.4",
77
- "@types/lodash-es": "^4.17.6",
78
- "@types/react-dom": "^17.0.11",
79
- "@types/use-sync-external-store": "^0.0.3",
80
- "@umijs/test": "^3.0.5",
81
- "antd": "^4.16.13",
82
- "babel-plugin-import": "^1.13.3",
83
- "classnames": "^2.3.1",
84
- "dumi": "^1.1.31",
85
- "father-build": "^1.19.1",
86
- "gh-pages": "^3.0.0",
87
- "lint-staged": "^10.0.7",
88
- "prettier": "^1.19.1",
89
- "react": "^16.12.0",
90
- "yorkie": "^2.0.0"
91
- }
1
+ {
2
+ "private": false,
3
+ "name": "wargerm",
4
+ "version": "0.7.1",
5
+ "scripts": {
6
+ "dev": "dumi dev",
7
+ "docs:build": "dumi build",
8
+ "docs:deploy": "gh-pages -d docs-dist",
9
+ "build": "father-build",
10
+ "deploy": "npm run docs:build && npm run docs:deploy",
11
+ "release": "npm run build && npm publish",
12
+ "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
13
+ "test": "umi-test",
14
+ "test:coverage": "umi-test --coverage"
15
+ },
16
+ "main": "dist/index.js",
17
+ "module": "dist/index.esm.js",
18
+ "unpkg": "dist/index.umd.min.js",
19
+ "typings": "dist/index.d.ts",
20
+ "author": "jinly2",
21
+ "license": "MIT",
22
+ "keywords": [
23
+ "React",
24
+ "Component"
25
+ ],
26
+ "gitHooks": {
27
+ "pre-commit": "lint-staged"
28
+ },
29
+ "repository": {
30
+ "type": "git",
31
+ "url": "http://code.eblssmart.com/platform/web/wargerm-components.git",
32
+ "branch": "main"
33
+ },
34
+ "files": [
35
+ "dist",
36
+ "es",
37
+ "lib",
38
+ "index.css"
39
+ ],
40
+ "lint-staged": {
41
+ "*.{js,jsx,less,md,json}": [
42
+ "prettier --write"
43
+ ],
44
+ "*.ts?(x)": [
45
+ "prettier --parser=typescript --write"
46
+ ]
47
+ },
48
+ "dependencies": {
49
+ "@ant-design/pro-table": "^3.3.1",
50
+ "animate.css": "^4.1.1",
51
+ "dayjs": "^1.11.7",
52
+ "echarts": "^5.2.2",
53
+ "echarts-for-react": "^3.0.2",
54
+ "lodash-es": "^4.17.21",
55
+ "react-countup": "^6.0.0",
56
+ "react-dom": "^17.0.2",
57
+ "react-file-viewer": "^1.2.1",
58
+ "swiper": "^6.7.0",
59
+ "use-sync-external-store": "^1.2.0",
60
+ "xgplayer": "^2.31.6",
61
+ "xgplayer-flv": "^2.5.1",
62
+ "xgplayer-flv.js": "^2.3.0",
63
+ "xgplayer-hls": "^2.5.2",
64
+ "xgplayer-hls.js": "^2.6.1"
65
+ },
66
+ "peerDependencies": {
67
+ "@ant-design/icons": ">=4.2.0",
68
+ "antd": ">=4.7.0",
69
+ "classnames": ">=2.2.0",
70
+ "echarts": "^5.2.2",
71
+ "echarts-for-react": "^3.0.2",
72
+ "lodash-es": ">=4.17.21",
73
+ "react": ">=17.0.0"
74
+ },
75
+ "devDependencies": {
76
+ "@ant-design/icons": "^4.6.4",
77
+ "@types/lodash-es": "^4.17.6",
78
+ "@types/react-dom": "^17.0.11",
79
+ "@types/use-sync-external-store": "^0.0.3",
80
+ "@umijs/test": "^3.0.5",
81
+ "antd": "^5.2.2",
82
+ "classnames": "^2.3.1",
83
+ "dumi": "^1.1.31",
84
+ "father-build": "^1.19.1",
85
+ "gh-pages": "^3.0.0",
86
+ "lint-staged": "^10.0.7",
87
+ "prettier": "^1.19.1",
88
+ "react": "^16.12.0",
89
+ "yorkie": "^2.0.0"
90
+ }
92
91
  }