@bigbinary/neeto-slack-frontend 3.1.2 → 3.1.6
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/dist/Configure.js +61 -59
- package/dist/Configure.js.map +1 -1
- package/dist/Connect.js +24 -17
- package/dist/Connect.js.map +1 -1
- package/dist/{Field-3be7830d.js → Field-MJ5P1zqe.js} +3 -7
- package/dist/Field-MJ5P1zqe.js.map +1 -0
- package/dist/{Field-07124b6f.js → Field-Zwd77qIZ.js} +1 -1
- package/dist/{Field-07124b6f.js.map → Field-Zwd77qIZ.js.map} +1 -1
- package/dist/Finish.js +34 -29
- package/dist/Finish.js.map +1 -1
- package/dist/Settings.js +43 -46
- package/dist/Settings.js.map +1 -1
- package/dist/{SlackRefreshChannelListButton-3f5c9dc9.js → SlackRefreshChannelListButton-BRJetmGQ.js} +10 -16
- package/dist/{SlackRefreshChannelListButton-3f5c9dc9.js.map → SlackRefreshChannelListButton-BRJetmGQ.js.map} +1 -1
- package/dist/{SlackRefreshChannelListButton-e7658d2a.js → SlackRefreshChannelListButton-BYsCwLY9.js} +3 -3
- package/dist/{SlackRefreshChannelListButton-e7658d2a.js.map → SlackRefreshChannelListButton-BYsCwLY9.js.map} +1 -1
- package/dist/cjs/Configure.js +60 -66
- package/dist/cjs/Configure.js.map +1 -1
- package/dist/cjs/Connect.js +23 -22
- package/dist/cjs/Connect.js.map +1 -1
- package/dist/cjs/Finish.js +39 -40
- package/dist/cjs/Finish.js.map +1 -1
- package/dist/cjs/Settings.js +54 -69
- package/dist/cjs/Settings.js.map +1 -1
- package/dist/cjs/hooks.js +3 -4
- package/dist/cjs/hooks.js.map +1 -1
- package/dist/cjs/index.js +7 -7
- package/dist/hooks.js +3 -2
- package/dist/hooks.js.map +1 -1
- package/dist/index.js +7 -5
- package/dist/index.js.map +1 -1
- package/dist/{inject-css-c86de496.js → inject-css-DmrvuTKK.js} +1 -1
- package/dist/{inject-css-c86de496.js.map → inject-css-DmrvuTKK.js.map} +1 -1
- package/dist/{inject-css-80a5faa3.js → inject-css-vQvjPR2x.js} +1 -1
- package/dist/{inject-css-80a5faa3.js.map → inject-css-vQvjPR2x.js.map} +1 -1
- package/dist/{useSlackStatusApi-c2dfe381.js → useSlackStatusApi-C1OcuKey.js} +3 -31
- package/dist/useSlackStatusApi-C1OcuKey.js.map +1 -0
- package/dist/{useSlackStatusApi-24367316.js → useSlackStatusApi-C6uWECRn.js} +5 -37
- package/dist/useSlackStatusApi-C6uWECRn.js.map +1 -0
- package/package.json +114 -94
- package/dist/Field-3be7830d.js.map +0 -1
- package/dist/defineProperty-e90a259c.js +0 -43
- package/dist/defineProperty-e90a259c.js.map +0 -1
- package/dist/defineProperty-f3094d6c.js +0 -45
- package/dist/defineProperty-f3094d6c.js.map +0 -1
- package/dist/useSlackStatusApi-24367316.js.map +0 -1
- package/dist/useSlackStatusApi-c2dfe381.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigbinary/neeto-slack-frontend",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.6",
|
|
4
4
|
"description": "Slack integration step UI",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://github.com/bigbinary/neeto-slack-nano",
|
|
@@ -18,8 +18,7 @@
|
|
|
18
18
|
"module": "dist/index.js",
|
|
19
19
|
"types": "types.d.ts",
|
|
20
20
|
"scripts": {
|
|
21
|
-
"build": "NODE_ENV=production rollup -c --environment production",
|
|
22
|
-
"build-preview": "NODE_ENV=production webpack",
|
|
21
|
+
"build": "NODE_ENV=production rollup --bundleConfigAsCjs -c --environment production",
|
|
23
22
|
"prepare": "husky install",
|
|
24
23
|
"release": "yarn build && yalc push --sig"
|
|
25
24
|
},
|
|
@@ -52,156 +51,177 @@
|
|
|
52
51
|
}
|
|
53
52
|
},
|
|
54
53
|
"devDependencies": {
|
|
55
|
-
"@babel/core": "7.
|
|
56
|
-
"@babel/eslint-parser": "7.
|
|
57
|
-
"@babel/plugin-transform-runtime": "7.
|
|
58
|
-
"@babel/preset-env": "7.
|
|
59
|
-
"@babel/preset-react": "7.
|
|
60
|
-
"@babel/preset-typescript": "7.
|
|
61
|
-
"@babel/runtime": "7.
|
|
62
|
-
"@bigbinary/babel-preset-neeto": "1.0.
|
|
63
|
-
"@bigbinary/eslint-plugin-neeto": "1.5.
|
|
64
|
-
"@bigbinary/neeto-
|
|
65
|
-
"@bigbinary/neeto-
|
|
66
|
-
"@bigbinary/neeto-
|
|
67
|
-
"@bigbinary/neeto-
|
|
68
|
-
"@bigbinary/neeto-
|
|
69
|
-
"@bigbinary/
|
|
70
|
-
"@bigbinary/neetoui": "8.2.14",
|
|
54
|
+
"@babel/core": "7.26.0",
|
|
55
|
+
"@babel/eslint-parser": "7.25.9",
|
|
56
|
+
"@babel/plugin-transform-runtime": "7.25.9",
|
|
57
|
+
"@babel/preset-env": "7.26.0",
|
|
58
|
+
"@babel/preset-react": "7.25.9",
|
|
59
|
+
"@babel/preset-typescript": "7.26.0",
|
|
60
|
+
"@babel/runtime": "7.26.0",
|
|
61
|
+
"@bigbinary/babel-preset-neeto": "^1.0.3",
|
|
62
|
+
"@bigbinary/eslint-plugin-neeto": "1.5.7",
|
|
63
|
+
"@bigbinary/neeto-cist": "1.0.15",
|
|
64
|
+
"@bigbinary/neeto-commons-frontend": "4.13.22",
|
|
65
|
+
"@bigbinary/neeto-filters-frontend": "4.3.14",
|
|
66
|
+
"@bigbinary/neeto-icons": "1.20.26",
|
|
67
|
+
"@bigbinary/neeto-molecules": "3.15.22",
|
|
68
|
+
"@bigbinary/neetoui": "8.2.62",
|
|
71
69
|
"@emotion/is-prop-valid": "1.2.0",
|
|
72
70
|
"@faker-js/faker": "8.2.0",
|
|
73
|
-
"@honeybadger-io/js": "6.
|
|
74
|
-
"@honeybadger-io/react": "6.1.
|
|
75
|
-
"@rollup/plugin-alias": "5.
|
|
71
|
+
"@honeybadger-io/js": "6.10.1",
|
|
72
|
+
"@honeybadger-io/react": "6.1.25",
|
|
73
|
+
"@rollup/plugin-alias": "5.1.1",
|
|
76
74
|
"@rollup/plugin-babel": "6.0.4",
|
|
77
75
|
"@rollup/plugin-commonjs": "25.0.7",
|
|
78
|
-
"@rollup/plugin-json": "6.0
|
|
79
|
-
"@rollup/plugin-node-resolve": "15.
|
|
76
|
+
"@rollup/plugin-json": "6.1.0",
|
|
77
|
+
"@rollup/plugin-node-resolve": "15.3.0",
|
|
80
78
|
"@rollup/plugin-replace": "5.0.4",
|
|
81
79
|
"@svgr/rollup": "8.1.0",
|
|
82
|
-
"@
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"babel-
|
|
80
|
+
"@tailwindcss/container-queries": "^0.1.1",
|
|
81
|
+
"@tanstack/react-query": "5.59.20",
|
|
82
|
+
"antd": "5.22.0",
|
|
83
|
+
"autoprefixer": "^10.4.5",
|
|
84
|
+
"axios": "1.7.7",
|
|
85
|
+
"babel-loader": "^8.2.5",
|
|
86
|
+
"babel-plugin-istanbul": "^6.1.1",
|
|
88
87
|
"babel-plugin-js-logger": "1.0.17",
|
|
89
88
|
"babel-plugin-macros": "3.1.0",
|
|
89
|
+
"babel-plugin-module-resolver": "^5.0.0",
|
|
90
90
|
"babel-plugin-preval": "^5.1.0",
|
|
91
91
|
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
|
|
92
92
|
"babel-preset-react": "6.24.1",
|
|
93
|
-
"babel-preset-typescript": "7.0.0-alpha.19",
|
|
93
|
+
"babel-preset-typescript": "^7.0.0-alpha.19",
|
|
94
94
|
"browserify-zlib": "0.2.0",
|
|
95
|
-
"buffer": "6.0.3",
|
|
96
|
-
"classnames": "2.
|
|
97
|
-
"crypto-browserify": "3.12.
|
|
95
|
+
"buffer": "^6.0.3",
|
|
96
|
+
"classnames": "2.5.1",
|
|
97
|
+
"crypto-browserify": "3.12.1",
|
|
98
98
|
"css-loader": "6.8.1",
|
|
99
|
-
"dompurify": "
|
|
99
|
+
"dompurify": "^2.4.0",
|
|
100
100
|
"dotenv-webpack": "^8.0.1",
|
|
101
|
-
"eslint": "8.
|
|
101
|
+
"eslint": "8.14.0",
|
|
102
102
|
"eslint-config-prettier": "8.5.0",
|
|
103
|
-
"eslint-plugin-cypress": "2.
|
|
104
|
-
"eslint-plugin-import": "2.
|
|
103
|
+
"eslint-plugin-cypress": "2.12.1",
|
|
104
|
+
"eslint-plugin-import": "2.31.0",
|
|
105
105
|
"eslint-plugin-jam3": "0.2.3",
|
|
106
106
|
"eslint-plugin-json": "3.1.0",
|
|
107
107
|
"eslint-plugin-prettier": "4.0.0",
|
|
108
|
-
"eslint-plugin-promise": "6.
|
|
109
|
-
"eslint-plugin-react": "7.
|
|
110
|
-
"eslint-plugin-react-hooks": "4.
|
|
108
|
+
"eslint-plugin-promise": "6.0.0",
|
|
109
|
+
"eslint-plugin-react": "7.37.2",
|
|
110
|
+
"eslint-plugin-react-hooks": "4.5.0",
|
|
111
111
|
"eslint-plugin-security": "^1.7.1",
|
|
112
112
|
"eslint-plugin-sonarjs": "^0.21.0",
|
|
113
|
-
"eslint-plugin-unused-imports": "
|
|
113
|
+
"eslint-plugin-unused-imports": "2.0.0",
|
|
114
114
|
"eslint-plugin-xss": "^0.1.12",
|
|
115
|
-
"formik": "2.4.
|
|
115
|
+
"formik": "2.4.6",
|
|
116
116
|
"html-webpack-plugin": "5.5.3",
|
|
117
117
|
"https-browserify": "1.0.0",
|
|
118
|
-
"husky": "
|
|
119
|
-
"i18next": "
|
|
118
|
+
"husky": "7.0.4",
|
|
119
|
+
"i18next": "22.5.1",
|
|
120
120
|
"i18next-browser-languagedetector": "7.0.1",
|
|
121
121
|
"js-logger": "1.6.1",
|
|
122
|
-
"lint-staged": "
|
|
122
|
+
"lint-staged": "12.4.1",
|
|
123
123
|
"mini-css-extract-plugin": "2.7.6",
|
|
124
124
|
"mixpanel-browser": "2.47.0",
|
|
125
125
|
"os-browserify": "0.3.0",
|
|
126
|
-
"path-browserify": "1.0.1",
|
|
127
|
-
"postcss": "8.4.
|
|
128
|
-
"postcss-import": "15.
|
|
129
|
-
"postcss-loader": "7.
|
|
130
|
-
"postcss-preset-env": "
|
|
126
|
+
"path-browserify": "^1.0.1",
|
|
127
|
+
"postcss": "8.4.49",
|
|
128
|
+
"postcss-import": "^15.0.0",
|
|
129
|
+
"postcss-loader": "^7.0.1",
|
|
130
|
+
"postcss-preset-env": "7.8.2",
|
|
131
131
|
"prettier": "2.6.2",
|
|
132
132
|
"prettier-plugin-tailwindcss": "0.1.10",
|
|
133
133
|
"process": "0.11.10",
|
|
134
|
-
"qs": "6.11.2",
|
|
135
|
-
"ramda": "0.29.
|
|
134
|
+
"qs": "^6.11.2",
|
|
135
|
+
"ramda": "0.29.0",
|
|
136
136
|
"react": "18.2.0",
|
|
137
137
|
"react-dom": "18.2.0",
|
|
138
|
-
"react-helmet": "6.1.0",
|
|
139
|
-
"react-i18next": "
|
|
140
|
-
"react-router-dom": "5.3.
|
|
141
|
-
"react-toastify": "8.2
|
|
138
|
+
"react-helmet": "^6.1.0",
|
|
139
|
+
"react-i18next": "12.3.1",
|
|
140
|
+
"react-router-dom": "5.3.3",
|
|
141
|
+
"react-toastify": "8.0.2",
|
|
142
142
|
"react_ujs": "^3.1.1",
|
|
143
|
-
"rollup": "
|
|
143
|
+
"rollup": "4.25.0",
|
|
144
144
|
"rollup-plugin-analyzer": "4.0.0",
|
|
145
145
|
"rollup-plugin-cleaner": "1.0.0",
|
|
146
|
-
"rollup-plugin-copy": "
|
|
146
|
+
"rollup-plugin-copy": "3.5.0",
|
|
147
147
|
"rollup-plugin-peer-deps-external": "2.2.4",
|
|
148
148
|
"rollup-plugin-styles": "4.0.0",
|
|
149
|
-
"sass": "1.
|
|
150
|
-
"sass-loader": "13.
|
|
149
|
+
"sass": "^1.54.9",
|
|
150
|
+
"sass-loader": "^13.0.2",
|
|
151
151
|
"shakapacker": "6.6.0",
|
|
152
|
-
"
|
|
152
|
+
"source-map-loader": "4.0.1",
|
|
153
|
+
"stream-browserify": "^3.0.0",
|
|
153
154
|
"stream-http": "3.2.0",
|
|
154
|
-
"style-loader": "3.3.
|
|
155
|
-
"tailwindcss": "3.4.
|
|
155
|
+
"style-loader": "^3.3.1",
|
|
156
|
+
"tailwindcss": "3.4.14",
|
|
156
157
|
"tty-browserify": "0.0.1",
|
|
157
|
-
"url": "0.11.
|
|
158
|
-
"util": "0.12.5",
|
|
158
|
+
"url": "^0.11.0",
|
|
159
|
+
"util": "^0.12.5",
|
|
159
160
|
"vm-browserify": "1.1.2",
|
|
160
161
|
"webpack": "5.88.1",
|
|
161
162
|
"webpack-assets-manifest": "5.1.0",
|
|
162
163
|
"webpack-cli": "5.1.4",
|
|
163
164
|
"webpack-dev-server": "4.15.1",
|
|
164
|
-
"yup": "
|
|
165
|
+
"yup": "0.32.11",
|
|
166
|
+
"zustand": "4.3.2"
|
|
165
167
|
},
|
|
166
168
|
"peerDependencies": {
|
|
167
|
-
"@
|
|
168
|
-
"@bigbinary/neeto-
|
|
169
|
-
"@bigbinary/neeto-
|
|
170
|
-
"@bigbinary/neeto-filters-frontend": "4.3.
|
|
171
|
-
"@bigbinary/neeto-icons": "1.20.
|
|
172
|
-
"@bigbinary/neeto-molecules": "3.
|
|
173
|
-
"@bigbinary/neetoui": "8.2.
|
|
174
|
-
"@honeybadger-io/js": "
|
|
175
|
-
"@honeybadger-io/react": "
|
|
176
|
-
"@
|
|
177
|
-
"
|
|
178
|
-
"
|
|
179
|
-
"
|
|
180
|
-
"
|
|
181
|
-
"
|
|
169
|
+
"@babel/runtime": "7.26.0",
|
|
170
|
+
"@bigbinary/neeto-cist": "1.0.15",
|
|
171
|
+
"@bigbinary/neeto-commons-frontend": "4.13.22",
|
|
172
|
+
"@bigbinary/neeto-filters-frontend": "4.3.14",
|
|
173
|
+
"@bigbinary/neeto-icons": "1.20.26",
|
|
174
|
+
"@bigbinary/neeto-molecules": "3.15.22",
|
|
175
|
+
"@bigbinary/neetoui": "8.2.62",
|
|
176
|
+
"@honeybadger-io/js": "6.10.1",
|
|
177
|
+
"@honeybadger-io/react": "6.1.25",
|
|
178
|
+
"@tailwindcss/container-queries": "^0.1.1",
|
|
179
|
+
"@tanstack/react-query": "5.59.20",
|
|
180
|
+
"antd": "5.22.0",
|
|
181
|
+
"axios": "1.7.7",
|
|
182
|
+
"buffer": "^6.0.3",
|
|
183
|
+
"classnames": "2.5.1",
|
|
184
|
+
"crypto-browserify": "3.12.1",
|
|
185
|
+
"dompurify": "^2.4.0",
|
|
186
|
+
"formik": "2.4.6",
|
|
187
|
+
"https-browserify": "1.0.0",
|
|
188
|
+
"i18next": "22.5.1",
|
|
189
|
+
"js-logger": "1.6.1",
|
|
182
190
|
"mixpanel-browser": "^2.45.0",
|
|
183
|
-
"
|
|
184
|
-
"
|
|
185
|
-
"
|
|
191
|
+
"os-browserify": "0.3.0",
|
|
192
|
+
"path-browserify": "^1.0.1",
|
|
193
|
+
"qs": "^6.11.2",
|
|
194
|
+
"ramda": "0.29.0",
|
|
195
|
+
"react": "18.2.0",
|
|
196
|
+
"react-dom": "18.2.0",
|
|
186
197
|
"react-helmet": "^6.1.0",
|
|
187
|
-
"react-i18next": "
|
|
188
|
-
"react-router-dom": "
|
|
189
|
-
"react-toastify": "
|
|
190
|
-
"
|
|
198
|
+
"react-i18next": "12.3.1",
|
|
199
|
+
"react-router-dom": "5.3.3",
|
|
200
|
+
"react-toastify": "8.0.2",
|
|
201
|
+
"source-map-loader": "4.0.1",
|
|
202
|
+
"stream-browserify": "^3.0.0",
|
|
203
|
+
"stream-http": "3.2.0",
|
|
204
|
+
"tailwindcss": "3.4.14",
|
|
205
|
+
"tty-browserify": "0.0.1",
|
|
206
|
+
"url": "^0.11.0",
|
|
207
|
+
"util": "^0.12.5",
|
|
208
|
+
"vm-browserify": "1.1.2",
|
|
209
|
+
"yup": "0.32.11",
|
|
191
210
|
"zustand": "4.3.2"
|
|
192
211
|
},
|
|
193
212
|
"resolutions": {
|
|
194
|
-
"postcss": "^8"
|
|
213
|
+
"postcss": "^8",
|
|
214
|
+
"wrap-ansi": "7.0.0",
|
|
215
|
+
"string-width": "4.1.0"
|
|
195
216
|
},
|
|
196
217
|
"engines": {
|
|
197
|
-
"node": ">=
|
|
218
|
+
"node": ">=22.13",
|
|
198
219
|
"npm": ">=9",
|
|
199
220
|
"yarn": ">=1.22"
|
|
200
221
|
},
|
|
201
222
|
"dependencies": {
|
|
223
|
+
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
202
224
|
"babel-plugin-transform-imports": "^2.0.0",
|
|
203
|
-
"react-router-nav-prompt": "0.4.1"
|
|
204
|
-
"source-map-loader": "^4.0.1",
|
|
205
|
-
"zustand": "4.3.2"
|
|
225
|
+
"react-router-nav-prompt": "0.4.1"
|
|
206
226
|
}
|
|
207
227
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Field-3be7830d.js","sources":["../app/javascript/src/components/common/Field.jsx"],"sourcesContent":["import { Typography } from \"neetoui\";\n\nconst Field = ({ name, value, className = \"\" }) => (\n <div className={`neeto-ui-mb-3 neeto-ui-w-full ${className}`}>\n <Typography\n className=\"neeto-ui-text-gray-800 neeto-ui-mb-1\"\n style=\"h5\"\n weight=\"semibold\"\n >\n {name}\n </Typography>\n <Typography\n className=\"neeto-ui-text-gray-700\"\n style=\"body2\"\n weight=\"normal\"\n >\n {value}\n </Typography>\n </div>\n);\n\nexport default Field;\n"],"names":["Field","_ref","name","value","_ref$className","className","_jsxs","concat","children","_jsx","Typography","style","weight"],"mappings":";;;;;;;;;AAEA,IAAMA,KAAK,GAAG,SAARA,KAAKA,CAAAC,IAAA,EAAA;AAAA,EAAA,IAAMC,IAAI,GAAAD,IAAA,CAAJC,IAAI;IAAEC,KAAK,GAAAF,IAAA,CAALE,KAAK;IAAAC,cAAA,GAAAH,IAAA,CAAEI,SAAS;AAATA,IAAAA,SAAS,GAAAD,cAAA,KAAG,KAAA,CAAA,GAAA,EAAE,GAAAA,cAAA,CAAA;AAAA,EAAA,oBAC1CE,eAAA,CAAA,KAAA,EAAA;AAAKD,IAAAA,SAAS,EAAAE,gCAAAA,CAAAA,MAAA,CAAmCF,SAAS,CAAG;IAAAG,QAAA,EAAA,cAC3DC,cAAA,CAACC,8BAAU,EAAA;AACTL,MAAAA,SAAS,EAAC,sCAAsC;AAChDM,MAAAA,KAAK,EAAC,IAAI;AACVC,MAAAA,MAAM,EAAC,UAAU;AAAAJ,MAAAA,QAAA,EAEhBN,IAAAA;AAAI,KACK,CAAC,eACbO,cAAA,CAACC,8BAAU,EAAA;AACTL,MAAAA,SAAS,EAAC,wBAAwB;AAClCM,MAAAA,KAAK,EAAC,OAAO;AACbC,MAAAA,MAAM,EAAC,QAAQ;AAAAJ,MAAAA,QAAA,EAEdL,KAAAA;AAAK,KACI,CAAC,CAAA;AAAA,GACV,CAAC,CAAA;AAAA;;;;"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
function _typeof(o) {
|
|
2
|
-
"@babel/helpers - typeof";
|
|
3
|
-
|
|
4
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
5
|
-
return typeof o;
|
|
6
|
-
} : function (o) {
|
|
7
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
8
|
-
}, _typeof(o);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
function _toPrimitive(input, hint) {
|
|
12
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
13
|
-
var prim = input[Symbol.toPrimitive];
|
|
14
|
-
if (prim !== undefined) {
|
|
15
|
-
var res = prim.call(input, hint || "default");
|
|
16
|
-
if (_typeof(res) !== "object") return res;
|
|
17
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
18
|
-
}
|
|
19
|
-
return (hint === "string" ? String : Number)(input);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function _toPropertyKey(arg) {
|
|
23
|
-
var key = _toPrimitive(arg, "string");
|
|
24
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
function _defineProperty(obj, key, value) {
|
|
28
|
-
key = _toPropertyKey(key);
|
|
29
|
-
if (key in obj) {
|
|
30
|
-
Object.defineProperty(obj, key, {
|
|
31
|
-
value: value,
|
|
32
|
-
enumerable: true,
|
|
33
|
-
configurable: true,
|
|
34
|
-
writable: true
|
|
35
|
-
});
|
|
36
|
-
} else {
|
|
37
|
-
obj[key] = value;
|
|
38
|
-
}
|
|
39
|
-
return obj;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export { _defineProperty as _ };
|
|
43
|
-
//# sourceMappingURL=defineProperty-e90a259c.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defineProperty-e90a259c.js","sources":["../node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@babel/runtime/helpers/esm/defineProperty.js"],"sourcesContent":["export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}"],"names":["toPrimitive","toPropertyKey"],"mappings":"AAAe,SAAS,OAAO,CAAC,CAAC,EAAE;AACnC,EAAE,yBAAyB,CAAC;AAC5B;AACA,EAAE,OAAO,OAAO,GAAG,UAAU,IAAI,OAAO,MAAM,IAAI,QAAQ,IAAI,OAAO,MAAM,CAAC,QAAQ,GAAG,UAAU,CAAC,EAAE;AACpG,IAAI,OAAO,OAAO,CAAC,CAAC;AACpB,GAAG,GAAG,UAAU,CAAC,EAAE;AACnB,IAAI,OAAO,CAAC,IAAI,UAAU,IAAI,OAAO,MAAM,IAAI,CAAC,CAAC,WAAW,KAAK,MAAM,IAAI,CAAC,KAAK,MAAM,CAAC,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC,CAAC;AACxH,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AAChB;;ACPe,SAAS,YAAY,CAAC,KAAK,EAAE,IAAI,EAAE;AAClD,EAAE,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE,OAAO,KAAK,CAAC;AAClE,EAAE,IAAI,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AACvC,EAAE,IAAI,IAAI,KAAK,SAAS,EAAE;AAC1B,IAAI,IAAI,GAAG,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,IAAI,SAAS,CAAC,CAAC;AAClD,IAAI,IAAI,OAAO,CAAC,GAAG,CAAC,KAAK,QAAQ,EAAE,OAAO,GAAG,CAAC;AAC9C,IAAI,MAAM,IAAI,SAAS,CAAC,8CAA8C,CAAC,CAAC;AACxE,GAAG;AACH,EAAE,OAAO,CAAC,IAAI,KAAK,QAAQ,GAAG,MAAM,GAAG,MAAM,EAAE,KAAK,CAAC,CAAC;AACtD;;ACRe,SAAS,cAAc,CAAC,GAAG,EAAE;AAC5C,EAAE,IAAI,GAAG,GAAGA,YAAW,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;AACvC,EAAE,OAAO,OAAO,CAAC,GAAG,CAAC,KAAK,QAAQ,GAAG,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AACvD;;ACJe,SAAS,eAAe,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE;AACzD,EAAE,GAAG,GAAGC,cAAa,CAAC,GAAG,CAAC,CAAC;AAC3B,EAAE,IAAI,GAAG,IAAI,GAAG,EAAE;AAClB,IAAI,MAAM,CAAC,cAAc,CAAC,GAAG,EAAE,GAAG,EAAE;AACpC,MAAM,KAAK,EAAE,KAAK;AAClB,MAAM,UAAU,EAAE,IAAI;AACtB,MAAM,YAAY,EAAE,IAAI;AACxB,MAAM,QAAQ,EAAE,IAAI;AACpB,KAAK,CAAC,CAAC;AACP,GAAG,MAAM;AACT,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AACrB,GAAG;AACH,EAAE,OAAO,GAAG,CAAC;AACb;;;;"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
function _typeof(o) {
|
|
4
|
-
"@babel/helpers - typeof";
|
|
5
|
-
|
|
6
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
7
|
-
return typeof o;
|
|
8
|
-
} : function (o) {
|
|
9
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
10
|
-
}, _typeof(o);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
function _toPrimitive(input, hint) {
|
|
14
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
15
|
-
var prim = input[Symbol.toPrimitive];
|
|
16
|
-
if (prim !== undefined) {
|
|
17
|
-
var res = prim.call(input, hint || "default");
|
|
18
|
-
if (_typeof(res) !== "object") return res;
|
|
19
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
20
|
-
}
|
|
21
|
-
return (hint === "string" ? String : Number)(input);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
function _toPropertyKey(arg) {
|
|
25
|
-
var key = _toPrimitive(arg, "string");
|
|
26
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function _defineProperty(obj, key, value) {
|
|
30
|
-
key = _toPropertyKey(key);
|
|
31
|
-
if (key in obj) {
|
|
32
|
-
Object.defineProperty(obj, key, {
|
|
33
|
-
value: value,
|
|
34
|
-
enumerable: true,
|
|
35
|
-
configurable: true,
|
|
36
|
-
writable: true
|
|
37
|
-
});
|
|
38
|
-
} else {
|
|
39
|
-
obj[key] = value;
|
|
40
|
-
}
|
|
41
|
-
return obj;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
exports._defineProperty = _defineProperty;
|
|
45
|
-
//# sourceMappingURL=defineProperty-f3094d6c.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defineProperty-f3094d6c.js","sources":["../node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@babel/runtime/helpers/esm/defineProperty.js"],"sourcesContent":["export default function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}","import _typeof from \"./typeof.js\";\nexport default function _toPrimitive(input, hint) {\n if (_typeof(input) !== \"object\" || input === null) return input;\n var prim = input[Symbol.toPrimitive];\n if (prim !== undefined) {\n var res = prim.call(input, hint || \"default\");\n if (_typeof(res) !== \"object\") return res;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (hint === \"string\" ? String : Number)(input);\n}","import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nexport default function _toPropertyKey(arg) {\n var key = toPrimitive(arg, \"string\");\n return _typeof(key) === \"symbol\" ? key : String(key);\n}","import toPropertyKey from \"./toPropertyKey.js\";\nexport default function _defineProperty(obj, key, value) {\n key = toPropertyKey(key);\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n return obj;\n}"],"names":["toPrimitive","toPropertyKey"],"mappings":";;AAAe,SAAS,OAAO,CAAC,CAAC,EAAE;AACnC,EAAE,yBAAyB,CAAC;AAC5B;AACA,EAAE,OAAO,OAAO,GAAG,UAAU,IAAI,OAAO,MAAM,IAAI,QAAQ,IAAI,OAAO,MAAM,CAAC,QAAQ,GAAG,UAAU,CAAC,EAAE;AACpG,IAAI,OAAO,OAAO,CAAC,CAAC;AACpB,GAAG,GAAG,UAAU,CAAC,EAAE;AACnB,IAAI,OAAO,CAAC,IAAI,UAAU,IAAI,OAAO,MAAM,IAAI,CAAC,CAAC,WAAW,KAAK,MAAM,IAAI,CAAC,KAAK,MAAM,CAAC,SAAS,GAAG,QAAQ,GAAG,OAAO,CAAC,CAAC;AACxH,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AAChB;;ACPe,SAAS,YAAY,CAAC,KAAK,EAAE,IAAI,EAAE;AAClD,EAAE,IAAI,OAAO,CAAC,KAAK,CAAC,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,EAAE,OAAO,KAAK,CAAC;AAClE,EAAE,IAAI,IAAI,G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helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../app/javascript/src/constants/index.js","../app/javascript/src/apis/slack.js","../app/javascript/src/constants/query.js","../app/javascript/src/hooks/useSlackStatusApi.js"],"sourcesContent":["export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}","export const SLACK_ENGINE_BASE_URL = \"/integrations-slack/api/v1/slack\";\n\nexport const DEFAULT_SLACK_SETTINGS_STALE_TIME = 120_000; // 2 minutes\n","import axios from \"axios\";\n\nimport { SLACK_ENGINE_BASE_URL } from \"src/constants\";\n\nconst slackApi = {\n fetchSlackStatus: payload =>\n axios.get(`${SLACK_ENGINE_BASE_URL}/integration_status`, {\n params: payload,\n }),\n};\n\nexport default slackApi;\n","export const QUERY_KEYS = {\n SLACK_INTEGRATIONS_STATUS: \"slack-integrations-status\",\n};\n","import { useQuery } from \"@tanstack/react-query\";\n\nimport slackApi from \"src/apis/slack\";\nimport { DEFAULT_SLACK_SETTINGS_STALE_TIME } from \"src/constants\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nconst useFetchSlackIntegrationsStatus = ({\n integrableId = \"\",\n integrableType = \"\",\n ...options\n}) =>\n useQuery({\n queryKey: [QUERY_KEYS.SLACK_INTEGRATIONS_STATUS],\n queryFn: () =>\n slackApi.fetchSlackStatus({\n ...(integrableId && { integrableId }),\n ...(integrableType && { integrableType }),\n }),\n staleTime: DEFAULT_SLACK_SETTINGS_STALE_TIME,\n select: data => ({\n isSlackIntegrated: data?.integrationStatus?.integrated,\n notificationChannel: data?.integrationStatus?.notificationChannel ?? \"\",\n }),\n ...options,\n });\n\nexport { useFetchSlackIntegrationsStatus };\n"],"names":["objectWithoutPropertiesLoose","SLACK_ENGINE_BASE_URL","DEFAULT_SLACK_SETTINGS_STALE_TIME","slackApi","fetchSlackStatus","payload","axios","get","concat","params","QUERY_KEYS","SLACK_INTEGRATIONS_STATUS","useFetchSlackIntegrationsStatus","_ref","_ref$integrableId","integrableId","_ref$integrableType","integrableType","options","_objectWithoutProperties","_excluded","useQuery","_objectSpread","queryKey","queryFn","staleTime","select","data","_data$integrationStat","_data$integrationStat2","_data$integrationStat3","isSlackIntegrated","integrationStatus","integrated","notificationChannel"],"mappings":";;;;;;;;;;AAAe,SAAS,6BAA6B,CAAC,MAAM,EAAE,QAAQ,EAAE;AACxE,EAAE,IAAI,MAAM,IAAI,IAAI,EAAE,OAAO,EAAE,CAAC;AAChC,EAAE,IAAI,MAAM,GAAG,EAAE,CAAC;AAClB,EAAE,IAAI,UAAU,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACvC,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC;AACb,EAAE,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC1C,IAAI,GAAG,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC;AACxB,IAAI,IAAI,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,SAAS;AAC7C,IAAI,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AAC9B,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,CAAAL,sBAAA,GAAEF,IAAI,aAAJA,IAAI,KAAA,KAAA,CAAA,IAAA,CAAAG,sBAAA,GAAJH,IAAI,CAAEK,iBAAiB,MAAAF,IAAAA,IAAAA,sBAAA,uBAAvBA,sBAAA,CAAyBI,mBAAmB,MAAAL,IAAAA,IAAAA,sBAAA,KAAAA,KAAAA,CAAAA,GAAAA,sBAAA,GAAI,EAAA;OACtE,CAAA;AAAA,KAAA;GACEX,EAAAA,OAAO,CACX,CAAC,CAAA;AAAA;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSlackStatusApi-c2dfe381.js","sources":["../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../app/javascript/src/constants/index.js","../app/javascript/src/apis/slack.js","../app/javascript/src/constants/query.js","../app/javascript/src/hooks/useSlackStatusApi.js"],"sourcesContent":["export default function _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for (i = 0; i < sourceKeys.length; i++) {\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nexport default function _objectWithoutProperties(source, excluded) {\n if (source == null) return {};\n var target = objectWithoutPropertiesLoose(source, excluded);\n var key, i;\n if (Object.getOwnPropertySymbols) {\n var sourceSymbolKeys = Object.getOwnPropertySymbols(source);\n for (i = 0; i < sourceSymbolKeys.length; i++) {\n key = sourceSymbolKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;\n target[key] = source[key];\n }\n }\n return target;\n}","export const SLACK_ENGINE_BASE_URL = \"/integrations-slack/api/v1/slack\";\n\nexport const DEFAULT_SLACK_SETTINGS_STALE_TIME = 120_000; // 2 minutes\n","import axios from \"axios\";\n\nimport { SLACK_ENGINE_BASE_URL } from \"src/constants\";\n\nconst slackApi = {\n fetchSlackStatus: payload =>\n axios.get(`${SLACK_ENGINE_BASE_URL}/integration_status`, {\n params: payload,\n }),\n};\n\nexport default slackApi;\n","export const QUERY_KEYS = {\n SLACK_INTEGRATIONS_STATUS: \"slack-integrations-status\",\n};\n","import { useQuery } from \"@tanstack/react-query\";\n\nimport slackApi from \"src/apis/slack\";\nimport { DEFAULT_SLACK_SETTINGS_STALE_TIME } from \"src/constants\";\nimport { QUERY_KEYS } from \"src/constants/query\";\n\nconst useFetchSlackIntegrationsStatus = ({\n integrableId = \"\",\n integrableType = \"\",\n ...options\n}) =>\n useQuery({\n queryKey: [QUERY_KEYS.SLACK_INTEGRATIONS_STATUS],\n queryFn: () =>\n slackApi.fetchSlackStatus({\n ...(integrableId && { integrableId }),\n ...(integrableType && { integrableType }),\n }),\n staleTime: DEFAULT_SLACK_SETTINGS_STALE_TIME,\n select: data => ({\n isSlackIntegrated: data?.integrationStatus?.integrated,\n notificationChannel: data?.integrationStatus?.notificationChannel ?? \"\",\n }),\n ...options,\n });\n\nexport { useFetchSlackIntegrationsStatus };\n"],"names":["objectWithoutPropertiesLoose","SLACK_ENGINE_BASE_URL","DEFAULT_SLACK_SETTINGS_STALE_TIME","slackApi","fetchSlackStatus","payload","axios","get","concat","params","QUERY_KEYS","SLACK_INTEGRATIONS_STATUS","useFetchSlackIntegrationsStatus","_ref","_ref$integrableId","integrableId","_ref$integrableType","integrableType","options","_objectWithoutProperties","_excluded","useQuery","_objectSpread","queryKey","queryFn","staleTime","select","data","_data$integrationStat","_data$integrationStat2","_data$integrationStat3","isSlackIntegrated","integrationStatus","integrated","notificationChannel"],"mappings":";;;;AAAe,SAAS,6BAA6B,CAAC,MAAM,EAAE,QAAQ,EAAE;AACxE,EAAE,IAAI,MAAM,IAAI,IAAI,EAAE,OAAO,EAAE,CAAC;AAChC,EAAE,IAAI,MAAM,GAAG,EAAE,CAAC;AAClB,EAAE,IAAI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