@nocobase/client-v2 2.1.0-alpha.27 → 2.1.0-alpha.29
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/index.mjs +20 -20
- package/lib/index.js +21 -21
- package/package.json +6 -5
- package/src/__tests__/globalDeps.test.ts +1 -0
- package/src/utils/globalDeps.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/client-v2",
|
|
3
|
-
"version": "2.1.0-alpha.
|
|
3
|
+
"version": "2.1.0-alpha.29",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -24,9 +24,10 @@
|
|
|
24
24
|
"@formily/antd-v5": "1.2.3",
|
|
25
25
|
"@formily/react": "^2.2.27",
|
|
26
26
|
"@formily/shared": "^2.2.27",
|
|
27
|
-
"@nocobase/flow-engine": "2.1.0-alpha.
|
|
28
|
-
"@nocobase/sdk": "2.1.0-alpha.
|
|
29
|
-
"@nocobase/shared": "2.1.0-alpha.
|
|
27
|
+
"@nocobase/flow-engine": "2.1.0-alpha.29",
|
|
28
|
+
"@nocobase/sdk": "2.1.0-alpha.29",
|
|
29
|
+
"@nocobase/shared": "2.1.0-alpha.29",
|
|
30
|
+
"ahooks": "^3.7.2",
|
|
30
31
|
"antd": "5.24.2",
|
|
31
32
|
"classnames": "^2.3.1",
|
|
32
33
|
"dayjs": "^1.11.10",
|
|
@@ -35,5 +36,5 @@
|
|
|
35
36
|
"react-i18next": "^11.15.1",
|
|
36
37
|
"react-router-dom": "^6.30.1"
|
|
37
38
|
},
|
|
38
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "526e36e399a570755286f9a0d34fa202b4a58a03"
|
|
39
40
|
}
|
|
@@ -23,5 +23,6 @@ describe('client-v2 defineGlobalDeps', () => {
|
|
|
23
23
|
expect(define).toHaveBeenCalledWith('@nocobase/utils/client', expect.any(Function));
|
|
24
24
|
expect(define).toHaveBeenCalledWith('@nocobase/client-v2', expect.any(Function));
|
|
25
25
|
expect(define).toHaveBeenCalledWith('@nocobase/flow-engine', expect.any(Function));
|
|
26
|
+
expect(define).toHaveBeenCalledWith('ahooks', expect.any(Function));
|
|
26
27
|
});
|
|
27
28
|
});
|
package/src/utils/globalDeps.ts
CHANGED
|
@@ -15,6 +15,7 @@ import * as formilyReactive from '@formily/reactive';
|
|
|
15
15
|
import * as formilyShared from '@formily/shared';
|
|
16
16
|
import * as nocobaseClientUtils from '@nocobase/utils/client';
|
|
17
17
|
import * as nocobaseFlowEngine from '@nocobase/flow-engine';
|
|
18
|
+
import * as ahooks from 'ahooks';
|
|
18
19
|
import * as antd from 'antd';
|
|
19
20
|
import * as i18next from 'i18next';
|
|
20
21
|
import React from 'react';
|
|
@@ -61,4 +62,7 @@ export function defineGlobalDeps(requirejs: RequireJS) {
|
|
|
61
62
|
requirejs.define('@nocobase/client-v2', () => nocobaseClientV2);
|
|
62
63
|
requirejs.define('@nocobase/client-v2/client-v2', () => nocobaseClientV2);
|
|
63
64
|
requirejs.define('@nocobase/flow-engine', () => nocobaseFlowEngine);
|
|
65
|
+
|
|
66
|
+
// utils
|
|
67
|
+
requirejs.define('ahooks', () => ahooks);
|
|
64
68
|
}
|