This repository was archived by the owner on Jan 30, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @matrix-org/react-sdk-module-api" ,
3
- "version" : " 0 .0.5 " ,
3
+ "version" : " 1 .0.0 " ,
4
4
"description" : " Module API surface for matrix-react-sdk" ,
5
5
"main" : " lib/index.js" ,
6
6
"types" : " lib/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ limitations under the License.
17
17
import React from "react" ;
18
18
19
19
import { PlainSubstitution , TranslationStringsObject } from "./types/translations" ;
20
- import { DialogProps } from "./components/DialogContent" ;
20
+ import { DialogContent , DialogProps } from "./components/DialogContent" ;
21
21
import { AccountAuthInfo } from "./types/AccountAuthInfo" ;
22
22
23
23
/**
@@ -52,7 +52,7 @@ export interface ModuleApi {
52
52
* @returns Whether the user submitted the dialog or closed it, and the model returned by the
53
53
* dialog component if submitted.
54
54
*/
55
- openDialog < M extends object , P extends DialogProps = DialogProps , C extends React . Component = React . Component > (
55
+ openDialog < M extends object , P extends DialogProps = DialogProps , C extends DialogContent < P > = DialogContent < P > > (
56
56
title : string ,
57
57
body : ( props : P , ref : React . RefObject < C > ) => React . ReactNode ,
58
58
props ?: Omit < P , keyof DialogProps > ,
You can’t perform that action at this time.
0 commit comments