codenotch-react 1.0.15 → 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.
- package/index.d.ts +1 -3
- package/index.js +1 -13
- 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 class CodenotchApp<T, TState> extends React.Component<(ICodenotchEnv & T), TState> {}
|
|
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
|
-
|
|
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 };
|