@bigbinary/neeto-slack-frontend 2.2.3 → 2.2.5
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/README.md +197 -37
- package/dist/index.cjs.js +54 -41
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +46 -33
- package/dist/index.js.map +1 -1
- package/package.json +139 -110
- package/types.d.ts +1 -77
- /package/{src → app/javascript/src}/translations/en.json +0 -0
- /package/{src → app/javascript/src}/translations/index.js +0 -0
package/package.json
CHANGED
|
@@ -1,162 +1,191 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-slack-frontend",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.5",
|
|
4
4
|
"description": "Slack integration step UI",
|
|
5
|
-
"author": "Bonnie Simon",
|
|
6
5
|
"license": "UNLICENSED",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
"typings": "types.d.ts",
|
|
11
|
-
"engines": {
|
|
12
|
-
"node": ">=18.12"
|
|
6
|
+
"homepage": "https://github.com/bigbinary/neeto-slack-nano",
|
|
7
|
+
"bugs": {
|
|
8
|
+
"url": "https://github.com/bigbinary/neeto-slack-nano/issues"
|
|
13
9
|
},
|
|
10
|
+
"repository": "neeto-slack-nano",
|
|
11
|
+
"author": "BigBinary",
|
|
14
12
|
"files": [
|
|
15
13
|
"dist",
|
|
16
14
|
"types.d.ts",
|
|
17
|
-
"src/translations"
|
|
15
|
+
"app/javascript/src/translations"
|
|
18
16
|
],
|
|
17
|
+
"main": "dist/index.cjs.js",
|
|
18
|
+
"module": "dist/index.js",
|
|
19
|
+
"types": "types.d.ts",
|
|
19
20
|
"scripts": {
|
|
20
|
-
"
|
|
21
|
-
"start": "NODE_ENV=development rm -rf dist && webpack-dev-server --mode development",
|
|
22
|
-
"build": "NODE_ENV=production rollup -c rollup.config.js",
|
|
21
|
+
"build": "NODE_ENV=production rollup -c --environment production",
|
|
23
22
|
"build-preview": "NODE_ENV=production webpack",
|
|
23
|
+
"prepare": "husky install",
|
|
24
24
|
"release": "yarn build && yalc push --sig"
|
|
25
25
|
},
|
|
26
26
|
"lint-staged": {
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"eslint --fix"
|
|
27
|
+
"./**/*.rb": [
|
|
28
|
+
"bundle exec rubocop -a --force-exclusion"
|
|
30
29
|
],
|
|
31
|
-
"{
|
|
30
|
+
"./**/app/javascript/**/*.{js,jsx,json}": [
|
|
32
31
|
"prettier --write",
|
|
33
32
|
"eslint --fix"
|
|
34
33
|
],
|
|
35
|
-
"
|
|
34
|
+
"./test/dummy/**/app/javascript/**/*.{js,jsx,json}": [
|
|
36
35
|
"prettier --write",
|
|
37
36
|
"eslint --fix"
|
|
37
|
+
],
|
|
38
|
+
"{Gemfile,Rakefile,config.ru}": [
|
|
39
|
+
"bundle exec rubocop -a --force-exclusion"
|
|
38
40
|
]
|
|
39
41
|
},
|
|
40
42
|
"devDependencies": {
|
|
41
|
-
"@babel/core": "
|
|
42
|
-
"@babel/eslint-parser": "7.
|
|
43
|
-
"@babel/plugin-transform-runtime": "
|
|
44
|
-
"@babel/preset-env": "7.
|
|
45
|
-
"@babel/preset-react": "7.
|
|
46
|
-
"@babel/preset-typescript": "
|
|
47
|
-
"@babel/runtime": "
|
|
48
|
-
"@bigbinary/babel-preset-neeto": "
|
|
49
|
-
"@bigbinary/eslint-plugin-neeto": "1.1.
|
|
43
|
+
"@babel/core": "7.22.9",
|
|
44
|
+
"@babel/eslint-parser": "7.22.9",
|
|
45
|
+
"@babel/plugin-transform-runtime": "7.22.9",
|
|
46
|
+
"@babel/preset-env": "7.22.9",
|
|
47
|
+
"@babel/preset-react": "7.22.5",
|
|
48
|
+
"@babel/preset-typescript": "7.22.5",
|
|
49
|
+
"@babel/runtime": "7.22.6",
|
|
50
|
+
"@bigbinary/babel-preset-neeto": "1.0.3",
|
|
51
|
+
"@bigbinary/eslint-plugin-neeto": "1.1.2",
|
|
50
52
|
"@bigbinary/neeto-audit-frontend": "1.0.7",
|
|
51
53
|
"@bigbinary/neeto-cist": "^1.0.3",
|
|
52
|
-
"@bigbinary/neeto-commons-frontend": "
|
|
53
|
-
"@bigbinary/neeto-
|
|
54
|
-
"@bigbinary/neeto-
|
|
55
|
-
"@bigbinary/
|
|
54
|
+
"@bigbinary/neeto-commons-frontend": "2.0.99",
|
|
55
|
+
"@bigbinary/neeto-filters-frontend": "2.12.1",
|
|
56
|
+
"@bigbinary/neeto-icons": "1.13.0",
|
|
57
|
+
"@bigbinary/neeto-molecules": "1.0.34",
|
|
58
|
+
"@bigbinary/neetoui": "5.0.15",
|
|
56
59
|
"@emotion/is-prop-valid": "1.2.0",
|
|
57
|
-
"@
|
|
58
|
-
"@honeybadger-io/react": "
|
|
59
|
-
"@rollup/plugin-alias": "
|
|
60
|
-
"@rollup/plugin-babel": "
|
|
61
|
-
"@rollup/plugin-commonjs": "
|
|
62
|
-
"@rollup/plugin-
|
|
63
|
-
"@rollup/plugin-
|
|
64
|
-
"@rollup/plugin-
|
|
65
|
-
"@rollup
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"babel-loader": "^8.2.5",
|
|
72
|
-
"babel-plugin-istanbul": "^6.1.1",
|
|
60
|
+
"@faker-js/faker": "8.0.2",
|
|
61
|
+
"@honeybadger-io/react": "2.0.1",
|
|
62
|
+
"@rollup/plugin-alias": "5.0.0",
|
|
63
|
+
"@rollup/plugin-babel": "6.0.3",
|
|
64
|
+
"@rollup/plugin-commonjs": "25.0.3",
|
|
65
|
+
"@rollup/plugin-json": "6.0.0",
|
|
66
|
+
"@rollup/plugin-node-resolve": "15.1.0",
|
|
67
|
+
"@rollup/plugin-replace": "5.0.2",
|
|
68
|
+
"@svgr/rollup": "8.0.1",
|
|
69
|
+
"antd": "4.24.10",
|
|
70
|
+
"autoprefixer": "10.4.14",
|
|
71
|
+
"axios": "1.4.0",
|
|
72
|
+
"babel-loader": "9.1.3",
|
|
73
|
+
"babel-plugin-istanbul": "6.1.1",
|
|
73
74
|
"babel-plugin-js-logger": "1.0.17",
|
|
74
75
|
"babel-plugin-macros": "3.1.0",
|
|
75
76
|
"babel-plugin-preval": "^5.1.0",
|
|
76
77
|
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
|
|
77
78
|
"babel-preset-react": "6.24.1",
|
|
78
|
-
"babel-preset-typescript": "
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
79
|
+
"babel-preset-typescript": "7.0.0-alpha.19",
|
|
80
|
+
"browserify-zlib": "0.2.0",
|
|
81
|
+
"buffer": "6.0.3",
|
|
82
|
+
"classnames": "2.3.2",
|
|
83
|
+
"crypto-browserify": "3.12.0",
|
|
84
|
+
"css-loader": "6.8.1",
|
|
85
|
+
"dompurify": "3.0.2",
|
|
86
|
+
"dotenv-webpack": "^8.0.1",
|
|
87
|
+
"eslint": "8.45.0",
|
|
88
|
+
"eslint-config-prettier": "8.8.0",
|
|
89
|
+
"eslint-plugin-cypress": "2.13.3",
|
|
90
|
+
"eslint-plugin-import": "2.27.5",
|
|
86
91
|
"eslint-plugin-jam3": "0.2.3",
|
|
87
92
|
"eslint-plugin-json": "3.1.0",
|
|
88
|
-
"eslint-plugin-prettier": "
|
|
89
|
-
"eslint-plugin-promise": "6.
|
|
90
|
-
"eslint-plugin-react": "7.
|
|
91
|
-
"eslint-plugin-react-hooks": "4.
|
|
92
|
-
"eslint-plugin-
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
93
|
+
"eslint-plugin-prettier": "5.0.0",
|
|
94
|
+
"eslint-plugin-promise": "6.1.1",
|
|
95
|
+
"eslint-plugin-react": "7.32.2",
|
|
96
|
+
"eslint-plugin-react-hooks": "4.6.0",
|
|
97
|
+
"eslint-plugin-security": "^1.7.1",
|
|
98
|
+
"eslint-plugin-sonarjs": "^0.21.0",
|
|
99
|
+
"eslint-plugin-unused-imports": "3.0.0",
|
|
100
|
+
"eslint-plugin-xss": "^0.1.12",
|
|
101
|
+
"formik": "2.4.2",
|
|
102
|
+
"html-webpack-plugin": "5.5.3",
|
|
103
|
+
"https-browserify": "1.0.0",
|
|
104
|
+
"husky": "8.0.3",
|
|
105
|
+
"i18next": "23.2.11",
|
|
106
|
+
"i18next-browser-languagedetector": "7.0.1",
|
|
107
|
+
"js-logger": "1.6.1",
|
|
108
|
+
"lint-staged": "13.2.3",
|
|
109
|
+
"mini-css-extract-plugin": "2.7.6",
|
|
110
|
+
"mixpanel-browser": "2.47.0",
|
|
111
|
+
"os-browserify": "0.3.0",
|
|
112
|
+
"path-browserify": "1.0.1",
|
|
113
|
+
"postcss": "8.4.26",
|
|
114
|
+
"postcss-import": "15.1.0",
|
|
115
|
+
"postcss-loader": "7.3.3",
|
|
116
|
+
"postcss-preset-env": "9.0.0",
|
|
117
|
+
"prettier": "2.8.8",
|
|
118
|
+
"prettier-plugin-tailwindcss": "0.4.1",
|
|
119
|
+
"process": "0.11.10",
|
|
120
|
+
"qs": "6.11.2",
|
|
107
121
|
"ramda": "0.29.0",
|
|
108
|
-
"react": "
|
|
109
|
-
"react-dom": "
|
|
110
|
-
"react-helmet": "
|
|
111
|
-
"react-i18next": "13.0.
|
|
112
|
-
"react-query": "3.39.
|
|
113
|
-
"react-router-dom": "5.3.
|
|
114
|
-
"react-toastify": "8.0
|
|
115
|
-
"
|
|
122
|
+
"react": "17.0.2",
|
|
123
|
+
"react-dom": "17.0.2",
|
|
124
|
+
"react-helmet": "6.1.0",
|
|
125
|
+
"react-i18next": "13.0.2",
|
|
126
|
+
"react-query": "3.39.3",
|
|
127
|
+
"react-router-dom": "5.3.4",
|
|
128
|
+
"react-toastify": "8.2.0",
|
|
129
|
+
"react_ujs": "^3.1.1",
|
|
116
130
|
"rollup": "2.79.1",
|
|
117
131
|
"rollup-plugin-analyzer": "4.0.0",
|
|
118
|
-
"rollup-plugin-bundle-html": "0.2.2",
|
|
119
132
|
"rollup-plugin-cleaner": "1.0.0",
|
|
120
|
-
"rollup-plugin-generate-html-template": "1.7.0",
|
|
121
|
-
"rollup-plugin-livereload": "2.0.5",
|
|
122
133
|
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
123
|
-
"rollup-plugin-polyfill-node": "0.10.2",
|
|
124
|
-
"rollup-plugin-serve": "2.0.1",
|
|
125
134
|
"rollup-plugin-styles": "4.0.0",
|
|
126
|
-
"sass": "1.
|
|
127
|
-
"sass-loader": "13.
|
|
128
|
-
"
|
|
135
|
+
"sass": "1.64.0",
|
|
136
|
+
"sass-loader": "13.3.2",
|
|
137
|
+
"shakapacker": "6.6.0",
|
|
138
|
+
"stream-browserify": "3.0.0",
|
|
139
|
+
"stream-http": "3.2.0",
|
|
140
|
+
"style-loader": "3.3.3",
|
|
129
141
|
"tailwindcss": "npm:@tailwindcss/postcss7-compat",
|
|
142
|
+
"tty-browserify": "0.0.1",
|
|
143
|
+
"url": "0.11.1",
|
|
130
144
|
"util": "0.12.5",
|
|
131
|
-
"
|
|
132
|
-
"webpack
|
|
133
|
-
"webpack-
|
|
134
|
-
"
|
|
135
|
-
"
|
|
145
|
+
"vm-browserify": "1.1.2",
|
|
146
|
+
"webpack": "5.88.1",
|
|
147
|
+
"webpack-assets-manifest": "5.1.0",
|
|
148
|
+
"webpack-cli": "5.1.4",
|
|
149
|
+
"webpack-dev-server": "4.15.1",
|
|
150
|
+
"yup": "1.2.0"
|
|
136
151
|
},
|
|
137
152
|
"peerDependencies": {
|
|
138
153
|
"@bigbinary/neeto-cist": "latest",
|
|
139
|
-
"@bigbinary/neeto-commons-frontend": "
|
|
140
|
-
"@bigbinary/neeto-
|
|
141
|
-
"@bigbinary/neeto-
|
|
142
|
-
"@bigbinary/
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
154
|
+
"@bigbinary/neeto-commons-frontend": "^2.0.54",
|
|
155
|
+
"@bigbinary/neeto-editor": "^1.26.3",
|
|
156
|
+
"@bigbinary/neeto-filters-frontend": "^2.8.1",
|
|
157
|
+
"@bigbinary/neeto-icons": "^1.9.22",
|
|
158
|
+
"@bigbinary/neeto-molecules": "^1.0.9",
|
|
159
|
+
"@bigbinary/neetoui": "^5.0.4",
|
|
160
|
+
"@honeybadger-io/react": "^2.0.1",
|
|
161
|
+
"axios": "^0.27.2",
|
|
162
|
+
"classnames": "^2.3.2",
|
|
163
|
+
"formik": "^2.2.9",
|
|
164
|
+
"i18next": "^22.5.1",
|
|
149
165
|
"js-logger": "^1.6.1",
|
|
150
|
-
"
|
|
166
|
+
"mixpanel-browser": "^2.45.0",
|
|
167
|
+
"ramda": "^0.29.0",
|
|
151
168
|
"react": "17.0.2",
|
|
152
169
|
"react-dom": "17.0.2",
|
|
153
|
-
"react-
|
|
170
|
+
"react-helmet": "^6.1.0",
|
|
171
|
+
"react-i18next": "^12.3.1",
|
|
154
172
|
"react-query": "3.39.2",
|
|
155
|
-
"react-router-dom": "5.3.
|
|
156
|
-
"react-toastify": "8.0
|
|
157
|
-
"yup": "0.32.11"
|
|
173
|
+
"react-router-dom": "5.3.0",
|
|
174
|
+
"react-toastify": "8.2.0",
|
|
175
|
+
"yup": "^0.32.11",
|
|
176
|
+
"zustand": "4.3.2"
|
|
177
|
+
},
|
|
178
|
+
"resolutions": {
|
|
179
|
+
"postcss": "^8"
|
|
180
|
+
},
|
|
181
|
+
"engines": {
|
|
182
|
+
"node": ">=18.12",
|
|
183
|
+
"npm": ">=9",
|
|
184
|
+
"yarn": ">=1.22"
|
|
158
185
|
},
|
|
159
186
|
"dependencies": {
|
|
160
|
-
"
|
|
187
|
+
"react-router-nav-prompt": "0.4.1",
|
|
188
|
+
"source-map-loader": "^4.0.1",
|
|
189
|
+
"zustand": "4.3.2"
|
|
161
190
|
}
|
|
162
191
|
}
|
package/types.d.ts
CHANGED
|
@@ -1,79 +1,3 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { Fn } from "ramda";
|
|
3
|
-
import { ButtonProps, PaneProps } from "neetoui";
|
|
4
|
-
import {
|
|
5
|
-
UseQueryResult,
|
|
6
|
-
UseQueryOptions,
|
|
7
|
-
} from "react-query";
|
|
8
2
|
|
|
9
|
-
|
|
10
|
-
declare module "assets/*"
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
interface Field {
|
|
14
|
-
name: string;
|
|
15
|
-
value: string;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
interface ConnectProps {
|
|
19
|
-
handleRedirectToSlack: Fn;
|
|
20
|
-
isAuthorizeUrlFetching: boolean;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
interface ConfigureProps {
|
|
24
|
-
children?: Fn | React.ReactNode;
|
|
25
|
-
teamName: string;
|
|
26
|
-
slackUrl: string;
|
|
27
|
-
initialFormValues: object;
|
|
28
|
-
handleSubmit: Fn;
|
|
29
|
-
isSubmitting: boolean;
|
|
30
|
-
className?: string;
|
|
31
|
-
validationSchema?: object;
|
|
32
|
-
channelRefreshHandler?: Fn;
|
|
33
|
-
channelSelectLabel?: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
interface FinishProps {
|
|
37
|
-
children?: React.ReactNode;
|
|
38
|
-
teamName: string;
|
|
39
|
-
fields?: Field[];
|
|
40
|
-
buttonProps?: Partial<ButtonProps>;
|
|
41
|
-
secondaryButtonProps?: Partial<ButtonProps>;
|
|
42
|
-
onSuccess: Fn;
|
|
43
|
-
onBack?: Fn;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
interface SettingsProps {
|
|
47
|
-
children?: Fn | React.ReactNode;
|
|
48
|
-
teamName: string;
|
|
49
|
-
fields: Field[];
|
|
50
|
-
className?: string;
|
|
51
|
-
onEdit: Fn;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
interface SettingsPaneProps {
|
|
55
|
-
initialFormValues: object;
|
|
56
|
-
handleSubmit: Fn;
|
|
57
|
-
isSubmitting?: boolean;
|
|
58
|
-
validationSchema?: object;
|
|
59
|
-
channelRefreshHandler?: Fn;
|
|
60
|
-
title?: string;
|
|
61
|
-
isPaneOpen: boolean;
|
|
62
|
-
children?: Fn | React.ReactNode;
|
|
63
|
-
onClose: Fn;
|
|
64
|
-
paneProps?: Partial<PaneProps>;
|
|
65
|
-
}
|
|
66
|
-
interface SlackStatusHookOptions extends UseQueryOptions {
|
|
67
|
-
integrableId: string;
|
|
68
|
-
integrableType: string;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export const Connect: React.FC<ConnectProps>;
|
|
72
|
-
export const Configure: React.FC<ConfigureProps>;
|
|
73
|
-
export const Finish: React.FC<FinishProps>;
|
|
74
|
-
|
|
75
|
-
export const Settings: React.FC<SettingsProps> & {
|
|
76
|
-
EditPane: React.FC<SettingsPaneProps>;
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
export const useFetchSlackIntegrationsStatus: (options?: SlackStatusHookOptions) => UseQueryResult;
|
|
3
|
+
export const WelcomeScreen = React.FC<{}>;
|
|
File without changes
|
|
File without changes
|