codenotch-react 1.0.14 → 1.0.16

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.
Files changed (3) hide show
  1. package/index.d.ts +1 -3
  2. package/index.js +1 -13
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -16,6 +16,4 @@ export interface ICodenotchEnv {
16
16
  baseUrl?: string;
17
17
  }
18
18
 
19
- export type CodenotchAppFC<T> = React.FC<(ICodenotchEnv & T)>;
20
-
21
- export type CodenotchApp<T> = React.ComponentType<(ICodenotchEnv & T)>;
19
+ export type CodenotchAppFC<T> = React.FC<(ICodenotchEnv & T)>;
package/index.js CHANGED
@@ -93,16 +93,4 @@ function useCodenotchApp(props) {
93
93
  return useCodenotch();
94
94
  }
95
95
 
96
- class CodenotchApp extends React.Component {
97
- constructor(props) {
98
- super(props);
99
- this.codenotch = useCodenotchApp(props);
100
- }
101
-
102
- render() {
103
- return this.props.children(this.codenotch);
104
- }
105
- }
106
-
107
-
108
- module.exports = { useCodenotch, useCodenotchApp, CODENOTCH_ENV, CodenotchApp };
96
+ module.exports = { useCodenotch, useCodenotchApp, CODENOTCH_ENV };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codenotch-react",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "main": "index.js",
5
5
  "types": "index.d.ts",
6
6
  "type": "module",