@bigbinary/neeto-slack-frontend 2.1.1 → 2.1.3

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 (2) hide show
  1. package/package.json +7 -3
  2. package/types.d.ts +17 -15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-slack-frontend",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "Slack integration step UI",
5
5
  "author": "Bonnie Simon",
6
6
  "license": "UNLICENSED",
@@ -46,6 +46,7 @@
46
46
  "@babel/runtime": "^7.19.0",
47
47
  "@bigbinary/babel-preset-neeto": "^1.0.3",
48
48
  "@bigbinary/eslint-plugin-neeto": "^1.0.54",
49
+ "@bigbinary/neeto-audit-frontend": "1.0.7",
49
50
  "@bigbinary/neeto-commons-frontend": "^2.0.74",
50
51
  "@bigbinary/neeto-icons": "1.9.12",
51
52
  "@bigbinary/neeto-molecules": "^1.0.19",
@@ -100,8 +101,8 @@
100
101
  "prettier": "2.6.2",
101
102
  "prettier-plugin-tailwindcss": "0.1.10",
102
103
  "ramda": "0.29.0",
103
- "react": "17.0.2",
104
- "react-dom": "17.0.2",
104
+ "react": "^18.2.0",
105
+ "react-dom": "^18.2.0",
105
106
  "react-helmet": "^6.1.0",
106
107
  "react-i18next": "11.16.8",
107
108
  "react-query": "3.39.2",
@@ -145,5 +146,8 @@
145
146
  "react-router-dom": "5.3.1",
146
147
  "react-toastify": "8.0.2",
147
148
  "yup": "0.32.11"
149
+ },
150
+ "dependencies": {
151
+ "react_ujs": "^3.1.1"
148
152
  }
149
153
  }
package/types.d.ts CHANGED
@@ -6,12 +6,17 @@ 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;
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
- }): JSX.Element;
30
+ }
26
31
 
27
- export function Finish(props: {
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: Fn;
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
  };