@bigbinary/neeto-slack-frontend 2.1.1 → 2.1.2
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/package.json +1 -1
- package/types.d.ts +17 -15
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -6,12 +6,17 @@ declare global {
|
|
|
6
6
|
declare module "assets/*"
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
interface Field {
|
|
10
|
+
name: string;
|
|
11
|
+
value: string;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface ConnectProps {
|
|
10
15
|
handleRedirectToSlack: Fn;
|
|
11
16
|
isAuthorizeUrlFetching: boolean;
|
|
12
|
-
}
|
|
17
|
+
}
|
|
13
18
|
|
|
14
|
-
|
|
19
|
+
interface ConfigureProps {
|
|
15
20
|
children?: Fn | React.ReactNode;
|
|
16
21
|
teamName: string;
|
|
17
22
|
slackUrl: string;
|
|
@@ -22,25 +27,18 @@ export function Configure(props: {
|
|
|
22
27
|
validationSchema?: object;
|
|
23
28
|
channelRefreshHandler?: Fn;
|
|
24
29
|
channelSelectLabel?: string;
|
|
25
|
-
}
|
|
30
|
+
}
|
|
26
31
|
|
|
27
|
-
|
|
32
|
+
interface FinishProps {
|
|
28
33
|
children?: React.ReactNode;
|
|
29
34
|
teamName: string;
|
|
30
|
-
fields?:
|
|
31
|
-
name: string;
|
|
32
|
-
value: string;
|
|
33
|
-
}[];
|
|
35
|
+
fields?: Field[];
|
|
34
36
|
buttonProps?: Partial<ButtonProps>;
|
|
35
37
|
secondaryButtonProps?: Partial<ButtonProps>;
|
|
36
38
|
onSuccess: Fn;
|
|
37
|
-
onBack
|
|
38
|
-
}): JSX.Element;
|
|
39
|
-
|
|
40
|
-
interface Field {
|
|
41
|
-
name: string;
|
|
42
|
-
value: string;
|
|
39
|
+
onBack?: Fn;
|
|
43
40
|
}
|
|
41
|
+
|
|
44
42
|
interface SettingsProps {
|
|
45
43
|
children?: Fn | React.ReactNode;
|
|
46
44
|
teamName: string;
|
|
@@ -62,6 +60,10 @@ interface SettingsPaneProps {
|
|
|
62
60
|
paneProps?: Partial<PaneProps>;
|
|
63
61
|
}
|
|
64
62
|
|
|
63
|
+
export const Connect: React.FC<ConnectProps>;
|
|
64
|
+
export const Configure: React.FC<ConfigureProps>;
|
|
65
|
+
export const Finish: React.FC<FinishProps>;
|
|
66
|
+
|
|
65
67
|
export const Settings: React.FC<SettingsProps> & {
|
|
66
68
|
EditPane: React.FC<SettingsPaneProps>;
|
|
67
69
|
};
|