@alicloud/alfa-react 2.0.5 → 2.0.6

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/version.js CHANGED
@@ -1 +1 @@
1
- export var version = '2.0.5';
1
+ export var version = '2.0.6';
package/lib/version.js CHANGED
@@ -4,4 +4,4 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.version = void 0;
7
- var version = exports.version = '2.0.5';
7
+ var version = exports.version = '2.0.6';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/alfa-react",
3
- "version": "2.0.5",
3
+ "version": "2.0.6",
4
4
  "description": "Alfa Framework (React Version)",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -52,8 +52,8 @@
52
52
  "lodash-es": "^4.17.21",
53
53
  "prop-types": "^15.8.1",
54
54
  "react-lazyload": "^3.2.1",
55
- "@alicloud/console-os-loader": "^1.4.45",
56
- "@alicloud/alfa-core": "^1.5.8"
55
+ "@alicloud/alfa-core": "^1.5.8",
56
+ "@alicloud/console-os-loader": "^1.4.45"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "react": ">=16.0.0",
@@ -1,6 +1,9 @@
1
1
  import React from 'react';
2
2
  import { AlfaFactoryOption } from './types';
3
- declare function createAlfaApp<P = any>(option: AlfaFactoryOption): React.FC<any>;
3
+ import type { IApplicationProps, IApplicationCustomProps } from './createApplication';
4
+ interface IProps extends IApplicationProps, IApplicationCustomProps {
5
+ }
6
+ declare function createAlfaApp<P = any>(option: AlfaFactoryOption): React.FC<P & IProps>;
4
7
  /**
5
8
  * create memorized app in react function component,
6
9
  * it will update when name or version changed as default
@@ -8,5 +11,5 @@ declare function createAlfaApp<P = any>(option: AlfaFactoryOption): React.FC<any
8
11
  * @param dep custom useMemo deps
9
12
  * @returns
10
13
  */
11
- export declare function useAlfaApp<P = any>(option: AlfaFactoryOption, deps?: any[]): React.FC<any>;
14
+ export declare function useAlfaApp<P = any>(option: AlfaFactoryOption, deps?: any[]): React.FC<P & IProps>;
12
15
  export default createAlfaApp;
@@ -1,11 +1,13 @@
1
1
  import React from 'react';
2
2
  import { AlfaFactoryOption } from './types';
3
- declare function createAlfaWidget<P = any>(option: AlfaFactoryOption): React.FC<any>;
3
+ import type { IApplicationCustomProps } from './createApplication';
4
+ type IProps = Omit<IApplicationCustomProps, 'consoleBase' | 'path' | 'appConfig'>;
5
+ declare function createAlfaWidget<P = any>(option: AlfaFactoryOption): React.FC<P & IProps>;
4
6
  export declare function createAlfaWidgetSingleton(option: AlfaFactoryOption): React.FC<any>;
5
7
  /**
6
8
  * create memorized app in react function component, just create App after first mounted
7
9
  * @param option
8
10
  * @returns
9
11
  */
10
- export declare function useAlfaWidget<P = any>(option: AlfaFactoryOption, deps?: any[]): React.FC<any>;
12
+ export declare function useAlfaWidget<P = any>(option: AlfaFactoryOption, deps?: any[]): React.FC<P & IProps>;
11
13
  export default createAlfaWidget;
@@ -1 +1 @@
1
- export declare const version = "2.0.5";
1
+ export declare const version = "2.0.6";