@umijs/plugins 4.0.52 → 4.0.53

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
@@ -318,7 +318,7 @@ const { formatMessage } = useIntl();
318
318
  unAccessible?: JSX.Element;
319
319
  noFound?: JSX.Element;
320
320
  logout?: (initialState: InitDataType['initialState']) => Promise<void> | void;
321
- rightContentRender?: (
321
+ rightContentRender?: ((
322
322
  headerProps: HeaderProps,
323
323
  dom: JSX.Element,
324
324
  props: {
@@ -328,7 +328,7 @@ const { formatMessage } = useIntl();
328
328
  initialState: InitDataType['initialState'];
329
329
  setInitialState: InitDataType['setInitialState'];
330
330
  },
331
- ) => JSX.Element;
331
+ ) => JSX.Element) | false;
332
332
  rightRender?: (
333
333
  initialState: InitDataType['initialState'],
334
334
  setInitialState: InitDataType['setInitialState'],
@@ -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 '@ant-design/icons';
402
+ import { LogoutOutlined } from '${antIconsPath}';
403
403
  {{#Locale}}
404
404
  import { SelectLang } from '@@/plugin-locale';
405
405
  {{/Locale}}
@@ -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.52",
3
+ "version": "4.0.53",
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",
@@ -29,7 +29,7 @@
29
29
  "@ant-design/pro-components": "^2.0.1",
30
30
  "@tanstack/react-query": "^4.22.0",
31
31
  "@tanstack/react-query-devtools": "^4.22.0",
32
- "@umijs/bundler-utils": "4.0.52",
32
+ "@umijs/bundler-utils": "4.0.53",
33
33
  "@umijs/valtio": "^1.0.3",
34
34
  "antd-dayjs-webpack-plugin": "^1.0.6",
35
35
  "axios": "^0.27.2",
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "devDependencies": {
55
55
  "antd": "^4.24.1",
56
- "umi": "4.0.52"
56
+ "umi": "4.0.53"
57
57
  },
58
58
  "publishConfig": {
59
59
  "access": "public"