piral-core 0.14.4-beta.3313 → 0.14.5-beta.3336

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.
@@ -1,3 +1,3 @@
1
1
  import * as React from 'react';
2
- import { ExtensionComponentProps } from '../types';
3
- export declare function toExtension<T>(Component: React.ComponentType<T>): React.ComponentType<ExtensionComponentProps<T>>;
2
+ import { ExtensionComponentProps, WrappedComponent } from '../types';
3
+ export declare function toExtension<T>(Component: React.ComponentType<T>): WrappedComponent<ExtensionComponentProps<T>>;
@@ -1,3 +1,3 @@
1
1
  import * as React from 'react';
2
- import { ExtensionComponentProps } from '../types';
3
- export declare function toExtension<T>(Component: React.ComponentType<T>): React.ComponentType<ExtensionComponentProps<T>>;
2
+ import { ExtensionComponentProps, WrappedComponent } from '../types';
3
+ export declare function toExtension<T>(Component: React.ComponentType<T>): WrappedComponent<ExtensionComponentProps<T>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "piral-core",
3
- "version": "0.14.4-beta.3313",
3
+ "version": "0.14.5-beta.3336",
4
4
  "description": "The core library for creating a Piral instance.",
5
5
  "keywords": [
6
6
  "portal",
@@ -50,8 +50,8 @@
50
50
  },
51
51
  "dependencies": {
52
52
  "@dbeining/react-atom": "^4.0.0",
53
- "piral-base": "0.14.4-beta.3313",
54
- "piral-debug-utils": "0.14.4-beta.3313"
53
+ "piral-base": "0.14.5-beta.3336",
54
+ "piral-debug-utils": "0.14.5-beta.3336"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "react": ">=16.8.0",
@@ -78,5 +78,5 @@
78
78
  "@libre/atom",
79
79
  "@dbeining/react-atom"
80
80
  ],
81
- "gitHead": "ab1a8f12eecbe2824fc7fe9b7a9acae33a91c0fd"
81
+ "gitHead": "db950799d09a66f20f356adc35d3d6907630986e"
82
82
  }
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
- import { ExtensionComponentProps } from '../types';
2
+ import { ExtensionComponentProps, WrappedComponent } from '../types';
3
3
 
4
- export function toExtension<T>(Component: React.ComponentType<T>): React.ComponentType<ExtensionComponentProps<T>> {
4
+ export function toExtension<T>(Component: React.ComponentType<T>): WrappedComponent<ExtensionComponentProps<T>> {
5
5
  return (props) => <Component {...props.params} />;
6
6
  }