@umijs/plugins 4.0.52 → 4.0.54
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/dist/layout.js
CHANGED
|
@@ -52,7 +52,6 @@ var getAllIcons = () => {
|
|
|
52
52
|
{}
|
|
53
53
|
);
|
|
54
54
|
};
|
|
55
|
-
var allIcons = getAllIcons();
|
|
56
55
|
var layout_default = (api) => {
|
|
57
56
|
let antdVersion = "4.0.0";
|
|
58
57
|
try {
|
|
@@ -318,7 +317,7 @@ const { formatMessage } = useIntl();
|
|
|
318
317
|
unAccessible?: JSX.Element;
|
|
319
318
|
noFound?: JSX.Element;
|
|
320
319
|
logout?: (initialState: InitDataType['initialState']) => Promise<void> | void;
|
|
321
|
-
rightContentRender?: (
|
|
320
|
+
rightContentRender?: ((
|
|
322
321
|
headerProps: HeaderProps,
|
|
323
322
|
dom: JSX.Element,
|
|
324
323
|
props: {
|
|
@@ -328,7 +327,7 @@ const { formatMessage } = useIntl();
|
|
|
328
327
|
initialState: InitDataType['initialState'];
|
|
329
328
|
setInitialState: InitDataType['setInitialState'];
|
|
330
329
|
},
|
|
331
|
-
) => JSX.Element;
|
|
330
|
+
) => JSX.Element) | false;
|
|
332
331
|
rightRender?: (
|
|
333
332
|
initialState: InitDataType['initialState'],
|
|
334
333
|
setInitialState: InitDataType['setInitialState'],
|
|
@@ -346,6 +345,7 @@ export interface IRuntimeConfig {
|
|
|
346
345
|
}
|
|
347
346
|
`
|
|
348
347
|
});
|
|
348
|
+
const allIcons = getAllIcons();
|
|
349
349
|
const iconsMap = Object.keys(api.appData.routes).reduce((memo, id) => {
|
|
350
350
|
const { icon } = api.appData.routes[id];
|
|
351
351
|
if (icon) {
|
|
@@ -399,7 +399,7 @@ export function patchRoutes({ routes }) {
|
|
|
399
399
|
const rightRenderContent = `
|
|
400
400
|
import React from 'react';
|
|
401
401
|
import { Avatar, version, Dropdown, Menu, Spin } from 'antd';
|
|
402
|
-
import { LogoutOutlined } from '
|
|
402
|
+
import { LogoutOutlined } from '${antIconsPath}';
|
|
403
403
|
{{#Locale}}
|
|
404
404
|
import { SelectLang } from '@@/plugin-locale';
|
|
405
405
|
{{/Locale}}
|
package/dist/tailwindcss.js
CHANGED
|
@@ -43,10 +43,7 @@ var tailwindcss_default = (api) => {
|
|
|
43
43
|
const inputPath = (0, import_path.join)(api.cwd, "tailwind.css");
|
|
44
44
|
const generatedPath = (0, import_path.join)(api.paths.absTmpPath, outputPath);
|
|
45
45
|
const binPath = getTailwindBinPath({ cwd: api.cwd });
|
|
46
|
-
const configPath = (0, import_path.join)(
|
|
47
|
-
process.env.APP_ROOT || api.cwd,
|
|
48
|
-
"tailwind.config.js"
|
|
49
|
-
);
|
|
46
|
+
const configPath = (0, import_path.join)(api.cwd, "tailwind.config.js");
|
|
50
47
|
if (process.env.IS_UMI_BUILD_WORKER) {
|
|
51
48
|
return;
|
|
52
49
|
}
|
|
@@ -144,7 +144,7 @@ export const MicroApp = forwardRef(
|
|
|
144
144
|
const stateForSlave = (useModel || noop)(
|
|
145
145
|
qiankunStateForSlaveModelNamespace,
|
|
146
146
|
);
|
|
147
|
-
const { entry, props: propsFromConfig = {} } = appConfig || {};
|
|
147
|
+
const { entry, props: { settings: settingsFromConfig = {}, ...propsFromConfig } = {} } = appConfig || {};
|
|
148
148
|
|
|
149
149
|
useEffect(() => {
|
|
150
150
|
setComponentError(null);
|
|
@@ -152,6 +152,7 @@ export const MicroApp = forwardRef(
|
|
|
152
152
|
const configuration = {
|
|
153
153
|
globalContext: window,
|
|
154
154
|
...globalSettings,
|
|
155
|
+
...settingsFromConfig,
|
|
155
156
|
...settingsFromProps,
|
|
156
157
|
};
|
|
157
158
|
microAppRef.current = loadMicroApp(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/plugins",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.54",
|
|
4
4
|
"description": "@umijs/plugins",
|
|
5
5
|
"homepage": "https://github.com/umijs/umi/tree/master/packages/plugins#readme",
|
|
6
6
|
"bugs": "https://github.com/umijs/umi/issues",
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
"@ant-design/antd-theme-variable": "^1.0.0",
|
|
28
28
|
"@ant-design/icons": "^4.7.0",
|
|
29
29
|
"@ant-design/pro-components": "^2.0.1",
|
|
30
|
-
"@tanstack/react-query": "^4.
|
|
31
|
-
"@tanstack/react-query-devtools": "^4.
|
|
32
|
-
"@umijs/bundler-utils": "4.0.
|
|
30
|
+
"@tanstack/react-query": "^4.24.10",
|
|
31
|
+
"@tanstack/react-query-devtools": "^4.24.10",
|
|
32
|
+
"@umijs/bundler-utils": "4.0.54",
|
|
33
33
|
"@umijs/valtio": "^1.0.3",
|
|
34
34
|
"antd-dayjs-webpack-plugin": "^1.0.6",
|
|
35
35
|
"axios": "^0.27.2",
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
"intl": "1.2.5",
|
|
44
44
|
"lodash": "^4.17.21",
|
|
45
45
|
"moment": "^2.29.4",
|
|
46
|
-
"qiankun": "^2.
|
|
46
|
+
"qiankun": "^2.10.1",
|
|
47
47
|
"react-intl": "3.12.1",
|
|
48
48
|
"react-redux": "^8.0.5",
|
|
49
|
-
"redux": "^4.2.
|
|
49
|
+
"redux": "^4.2.1",
|
|
50
50
|
"styled-components": "6.0.0-beta.9",
|
|
51
51
|
"tslib": "^2",
|
|
52
52
|
"warning": "^4.0.3"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"antd": "^4.24.1",
|
|
56
|
-
"umi": "4.0.
|
|
56
|
+
"umi": "4.0.54"
|
|
57
57
|
},
|
|
58
58
|
"publishConfig": {
|
|
59
59
|
"access": "public"
|