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