@bigbinary/neeto-integrations-frontend 2.1.1 → 2.2.0-beta1

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,19 +1,19 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-integrations-frontend",
3
- "version": "2.1.1",
3
+ "version": "2.2.0-beta1",
4
4
  "description": "UI for integrations in neeto products",
5
- "author": "Abhijith Sheheer",
6
5
  "license": "UNLICENSED",
7
- "repository": "",
8
- "types": "types.d.ts",
9
- "engines": {
10
- "node": ">=18.12"
6
+ "homepage": "https://github.com/bigbinary/neeto-integrations-nano",
7
+ "bugs": {
8
+ "url": "https://github.com/bigbinary/neeto-integrations-nano/issues"
11
9
  },
10
+ "repository": "neeto-integrations-nano",
11
+ "author": "BigBinary",
12
12
  "files": [
13
13
  "dist",
14
14
  "types.d.ts",
15
15
  "types",
16
- "src/translations"
16
+ "app/javascript/src/translations"
17
17
  ],
18
18
  "exports": {
19
19
  ".": {
@@ -28,134 +28,178 @@
28
28
  }
29
29
  },
30
30
  "scripts": {
31
- "prepare": "husky install",
32
- "start": "NODE_ENV=development rm -rf dist && webpack-dev-server --mode development",
33
- "build": "NODE_ENV=production rollup -c rollup.config.js",
31
+ "build": "NODE_ENV=production rollup -c --environment production",
34
32
  "build-preview": "NODE_ENV=production webpack",
33
+ "prepare": "husky install",
35
34
  "release": "yarn build && yalc push --sig"
36
35
  },
37
36
  "lint-staged": {
38
- "{src,example}/**/*.{js,jsx,json}": [
39
- "prettier --write",
40
- "eslint --fix"
37
+ "./**/*.rb": [
38
+ "bundle exec rubocop -a --force-exclusion"
41
39
  ],
42
- "{package.json,.eslintrc.js,.prettierrc.js}": [
40
+ "./**/app/javascript/**/*.{js,jsx,json}": [
43
41
  "prettier --write",
44
42
  "eslint --fix"
45
43
  ],
46
- ".eslint-rules/**/*": [
44
+ "./test/dummy/**/app/javascript/**/*.{js,jsx,json}": [
47
45
  "prettier --write",
48
46
  "eslint --fix"
47
+ ],
48
+ "{Gemfile,Rakefile,config.ru}": [
49
+ "bundle exec rubocop -a --force-exclusion"
49
50
  ]
50
51
  },
51
52
  "devDependencies": {
52
- "@babel/core": "^7.19.1",
53
- "@babel/eslint-parser": "7.17.0",
54
- "@babel/plugin-transform-runtime": "^7.19.1",
55
- "@babel/preset-env": "7.17.10",
56
- "@babel/preset-react": "7.16.7",
57
- "@babel/preset-typescript": "^7.18.6",
58
- "@babel/runtime": "^7.19.0",
59
- "@bigbinary/babel-preset-neeto": "^1.0.3",
60
- "@bigbinary/eslint-plugin-neeto": "^1.0.54",
61
- "@bigbinary/neeto-commons-frontend": "^2.0.74",
62
- "@bigbinary/neeto-icons": "1.9.12",
63
- "@bigbinary/neeto-molecules": "^1.0.52",
64
- "@bigbinary/neetoui": "5.0.13",
53
+ "@babel/core": "7.23.2",
54
+ "@babel/eslint-parser": "7.22.15",
55
+ "@babel/plugin-transform-runtime": "7.23.2",
56
+ "@babel/preset-env": "7.23.2",
57
+ "@babel/preset-react": "7.22.15",
58
+ "@babel/preset-typescript": "7.23.2",
59
+ "@babel/runtime": "7.23.2",
60
+ "@bigbinary/babel-preset-neeto": "1.0.6",
61
+ "@bigbinary/eslint-plugin-neeto": "1.5.1",
62
+ "@bigbinary/neeto-audit-frontend": "2.0.11",
63
+ "@bigbinary/neeto-cist": "1.0.9",
64
+ "@bigbinary/neeto-commons-frontend": "3.5.3",
65
+ "@bigbinary/neeto-filters-frontend": "3.3.4",
66
+ "@bigbinary/neeto-icons": "1.18.9",
67
+ "@bigbinary/neeto-molecules": "1.17.7",
68
+ "@bigbinary/neetoui": "6.5.13",
65
69
  "@emotion/is-prop-valid": "1.2.0",
66
- "@honeybadger-io/js": "^5.1.5-alpha-3",
67
- "@honeybadger-io/react": "^5.1.3",
68
- "@rollup/plugin-alias": "3.1.9",
69
- "@rollup/plugin-babel": "5.3.1",
70
- "@rollup/plugin-commonjs": "22.0.2",
71
- "@rollup/plugin-html": "0.2.4",
72
- "@rollup/plugin-json": "4.1.0",
73
- "@rollup/plugin-node-resolve": "14.1.0",
74
- "@rollup/plugin-replace": "4.0.0",
75
- "@svgr/rollup": "^6.5.1",
76
- "@svgr/webpack": "^6.5.1",
77
- "antd": "4.24.3",
78
- "autoprefixer": "^10.4.5",
79
- "axios": "0.27.2",
80
- "babel-loader": "^8.2.5",
81
- "babel-plugin-istanbul": "^6.1.1",
70
+ "@faker-js/faker": "8.2.0",
71
+ "@honeybadger-io/js": "6.5.3",
72
+ "@honeybadger-io/react": "6.1.9",
73
+ "@rollup/plugin-alias": "5.0.1",
74
+ "@rollup/plugin-babel": "6.0.4",
75
+ "@rollup/plugin-commonjs": "25.0.7",
76
+ "@rollup/plugin-json": "6.0.1",
77
+ "@rollup/plugin-node-resolve": "15.2.3",
78
+ "@rollup/plugin-replace": "5.0.4",
79
+ "@svgr/rollup": "8.1.0",
80
+ "@tanstack/react-query": "5.40.0",
81
+ "antd": "5.10.2",
82
+ "autoprefixer": "10.4.16",
83
+ "axios": "1.6.0",
84
+ "babel-loader": "9.1.3",
85
+ "babel-plugin-istanbul": "6.1.1",
82
86
  "babel-plugin-js-logger": "1.0.17",
83
87
  "babel-plugin-macros": "3.1.0",
88
+ "babel-plugin-preval": "^5.1.0",
84
89
  "babel-plugin-transform-react-remove-prop-types": "0.4.24",
85
90
  "babel-preset-react": "6.24.1",
86
- "babel-preset-typescript": "^7.0.0-alpha.19",
87
- "classnames": "^2.3.2",
88
- "css-loader": "6.7.1",
89
- "eslint": "8.14.0",
91
+ "babel-preset-typescript": "7.0.0-alpha.19",
92
+ "browserify-zlib": "0.2.0",
93
+ "buffer": "6.0.3",
94
+ "classnames": "2.3.2",
95
+ "crypto-browserify": "3.12.0",
96
+ "css-loader": "6.8.1",
97
+ "dompurify": "3.0.2",
98
+ "dotenv-webpack": "^8.0.1",
99
+ "eslint": "8.52.0",
90
100
  "eslint-config-prettier": "8.5.0",
91
- "eslint-plugin-cypress": "2.12.1",
92
- "eslint-plugin-import": "2.26.0",
101
+ "eslint-plugin-cypress": "2.15.1",
102
+ "eslint-plugin-import": "2.29.0",
93
103
  "eslint-plugin-jam3": "0.2.3",
94
104
  "eslint-plugin-json": "3.1.0",
95
105
  "eslint-plugin-prettier": "4.0.0",
96
- "eslint-plugin-promise": "6.0.0",
97
- "eslint-plugin-react": "7.29.4",
98
- "eslint-plugin-react-hooks": "4.5.0",
99
- "eslint-plugin-unused-imports": "2.0.0",
100
- "file-loader": "^6.2.0",
101
- "formik": "^2.4.2",
102
- "html-loader": "4.2.0",
103
- "html-webpack-plugin": "5.5.0",
104
- "husky": "7.0.4",
105
- "i18next": "21.7.0",
106
- "lint-staged": "12.4.1",
107
- "postcss": "^8.4.17",
108
- "postcss-import": "^15.0.0",
109
- "postcss-loader": "^7.0.1",
110
- "postcss-preset-env": "7.8.2",
106
+ "eslint-plugin-promise": "6.1.1",
107
+ "eslint-plugin-react": "7.33.2",
108
+ "eslint-plugin-react-hooks": "4.6.0",
109
+ "eslint-plugin-security": "^1.7.1",
110
+ "eslint-plugin-sonarjs": "^0.21.0",
111
+ "eslint-plugin-unused-imports": "3.0.0",
112
+ "eslint-plugin-xss": "^0.1.12",
113
+ "formik": "2.4.5",
114
+ "html-webpack-plugin": "5.5.3",
115
+ "https-browserify": "1.0.0",
116
+ "husky": "8.0.3",
117
+ "i18next": "23.6.0",
118
+ "i18next-browser-languagedetector": "7.0.1",
119
+ "js-logger": "1.6.1",
120
+ "lint-staged": "15.0.2",
121
+ "mini-css-extract-plugin": "2.7.6",
122
+ "mixpanel-browser": "2.47.0",
123
+ "os-browserify": "0.3.0",
124
+ "path-browserify": "1.0.1",
125
+ "postcss": "8.4.31",
126
+ "postcss-import": "15.1.0",
127
+ "postcss-loader": "7.3.3",
128
+ "postcss-preset-env": "9.2.0",
111
129
  "prettier": "2.6.2",
112
130
  "prettier-plugin-tailwindcss": "0.1.10",
113
- "ramda": "0.29.0",
114
- "react": "17.0.2",
115
- "react-dom": "17.0.2",
116
- "react-helmet": "^6.1.0",
117
- "react-i18next": "11.16.8",
118
- "react-query": "3.39.2",
119
- "react-router-dom": "5.3.1",
120
- "react-toastify": "8.0.2",
131
+ "process": "0.11.10",
132
+ "qs": "6.11.2",
133
+ "ramda": "0.29.1",
134
+ "react": "18.2.0",
135
+ "react-dom": "18.2.0",
136
+ "react-helmet": "6.1.0",
137
+ "react-i18next": "13.3.1",
138
+ "react-router-dom": "5.3.4",
139
+ "react-toastify": "8.2.0",
121
140
  "react-transition-group": "4.4.5",
141
+ "react_ujs": "^3.1.1",
122
142
  "rollup": "2.79.1",
123
143
  "rollup-plugin-analyzer": "4.0.0",
124
- "rollup-plugin-bundle-html": "0.2.2",
125
144
  "rollup-plugin-cleaner": "1.0.0",
126
- "rollup-plugin-generate-html-template": "1.7.0",
127
- "rollup-plugin-livereload": "2.0.5",
145
+ "rollup-plugin-copy": "^3.5.0",
128
146
  "rollup-plugin-peer-deps-external": "2.2.4",
129
- "rollup-plugin-polyfill-node": "0.10.2",
130
- "rollup-plugin-serve": "2.0.1",
131
147
  "rollup-plugin-styles": "4.0.0",
132
- "sass": "1.55.0",
133
- "sass-loader": "13.0.2",
134
- "style-loader": "3.3.1",
135
- "tailwindcss": "npm:@tailwindcss/postcss7-compat",
136
- "util": "^0.12.5",
137
- "webpack": "5.76.0",
138
- "webpack-cli": "4.10.0",
139
- "webpack-dev-server": "4.11.1",
140
- "yup": "0.32.11",
141
- "zustand": "^4.3.6"
148
+ "sass": "1.69.5",
149
+ "sass-loader": "13.3.2",
150
+ "shakapacker": "6.6.0",
151
+ "stream-browserify": "3.0.0",
152
+ "stream-http": "3.2.0",
153
+ "style-loader": "3.3.3",
154
+ "tailwindcss": "3.4.1",
155
+ "tty-browserify": "0.0.1",
156
+ "url": "0.11.1",
157
+ "util": "0.12.5",
158
+ "vm-browserify": "1.1.2",
159
+ "webpack": "5.88.1",
160
+ "webpack-assets-manifest": "5.1.0",
161
+ "webpack-cli": "5.1.4",
162
+ "webpack-dev-server": "4.15.1",
163
+ "yup": "1.3.2"
142
164
  },
143
165
  "peerDependencies": {
144
- "@bigbinary/neeto-commons-frontend": "latest",
145
- "@bigbinary/neeto-icons": "latest",
146
- "@bigbinary/neeto-molecules": "latest",
147
- "@bigbinary/neetoui": "latest",
148
- "antd": "4.24.3",
149
- "axios": "0.27.2",
150
- "classnames": "2.3.1",
151
- "i18next": "21.7.0",
152
- "ramda": "0.29.0",
153
- "react": "17.0.2",
154
- "react-dom": "17.0.2",
155
- "react-i18next": "11.16.8",
156
- "react-query": "3.39.2",
157
- "react-router-dom": "5.3.1",
158
- "react-toastify": "8.0.2",
159
- "yup": "0.32.11"
166
+ "@bigbinary/neeto-cist": "latest",
167
+ "@bigbinary/neeto-commons-frontend": "3.5.3",
168
+ "@bigbinary/neeto-filters-frontend": "3.3.4",
169
+ "@bigbinary/neeto-icons": "1.18.9",
170
+ "@bigbinary/neeto-molecules": "1.17.7",
171
+ "@bigbinary/neetoui": "6.5.13",
172
+ "@honeybadger-io/js": "^6.5.3",
173
+ "@honeybadger-io/react": "^6.1.9",
174
+ "@tanstack/react-query": "5.40.0",
175
+ "axios": "^1.6.0",
176
+ "classnames": "^2.3.2",
177
+ "formik": "^2.4.5",
178
+ "i18next": "^23.6.0",
179
+ "js-logger": "^1.6.1",
180
+ "mixpanel-browser": "^2.45.0",
181
+ "ramda": "^0.29.1",
182
+ "react": "^18.2.0",
183
+ "react-dom": "^18.2.0",
184
+ "react-helmet": "^6.1.0",
185
+ "react-i18next": "^13.3.1",
186
+ "react-router-dom": "^5.3.4",
187
+ "react-toastify": "^8.2.0",
188
+ "yup": "^0.32.11",
189
+ "zustand": "4.3.2"
190
+ },
191
+ "resolutions": {
192
+ "postcss": "^8"
193
+ },
194
+ "engines": {
195
+ "node": ">=18.12",
196
+ "npm": ">=9",
197
+ "yarn": ">=1.22"
198
+ },
199
+ "dependencies": {
200
+ "babel-plugin-transform-imports": "^2.0.0",
201
+ "react-router-nav-prompt": "0.4.1",
202
+ "source-map-loader": "^4.0.1",
203
+ "zustand": "4.3.2"
160
204
  }
161
205
  }
package/types.d.ts CHANGED
@@ -3,7 +3,7 @@ import { ButtonProps, TooltipProps } from "neetoui";
3
3
  import React from "react";
4
4
 
5
5
  declare global {
6
- declare module "assets/*"
6
+ declare module "assets/*";
7
7
  }
8
8
 
9
9
  interface CardProps {
@@ -26,7 +26,7 @@ interface CardProps {
26
26
  tooltipProps?: Partial<TooltipProps>;
27
27
  customDropDown?: React.ReactNode;
28
28
  children?: React.ReactNode;
29
- };
29
+ }
30
30
 
31
31
  interface ModalProps {
32
32
  isOpen: (...args: any[]) => any;
@@ -46,10 +46,11 @@ interface ConnectProps {
46
46
  description: string;
47
47
  onConnect: () => void;
48
48
  buttonProps?: Partial<ButtonProps>;
49
+ secondaryButtonProps?: Partial<ButtonProps>;
49
50
  children?: React.ReactNode;
50
51
  }
51
52
 
52
- interface FinishProps {
53
+ interface FinishProps {
53
54
  onClick: () => void;
54
55
  title: string;
55
56
  buttonProps?: Partial<ButtonProps>;
@@ -58,6 +59,9 @@ interface FinishProps {
58
59
  }
59
60
 
60
61
  interface DemoProps {
62
+ title?: string;
63
+ subtitle?: string;
64
+ iframeTitle?: string;
61
65
  onClose: () => void;
62
66
  videoUrl: string;
63
67
  children?: React.ReactNode;
@@ -78,6 +82,36 @@ interface DisconnectAlertProps {
78
82
  onClose: (...args: any[]) => any;
79
83
  onDisconnect: (...args: any[]) => any;
80
84
  }
85
+ interface TwilioProps {
86
+ integrable?: {
87
+ integrableId: string;
88
+ integrableType: string;
89
+ } | null;
90
+ onClose: (...args: any[]) => any;
91
+ onConnect: (...args: any[]) => any;
92
+ }
93
+
94
+ interface DailyProps {
95
+ isOnboarding?: boolean;
96
+ helpDocUrl: string;
97
+ videoUrl?: string;
98
+ description?: string;
99
+ onConnect: (...args: any[]) => any;
100
+ onDisconnect: (...args: any[]) => any;
101
+ }
102
+
103
+ interface ZoomProps {
104
+ connectUrl?: string;
105
+ description?: string;
106
+ onDisconnect: (...args: any[]) => any;
107
+ }
108
+
109
+ interface GoogleCalenderProps {
110
+ permissionImage?: any;
111
+ fetchAuthorizationUrl: (...args: any[]) => any;
112
+ handleClose: (...args: any[]) => any;
113
+ handleRedirect: (...args: any[]) => any;
114
+ }
81
115
 
82
116
  export const Card: React.FC<CardProps>;
83
117
  export const Modal: React.FC<ModalProps>;
@@ -86,3 +120,7 @@ export const Finish: React.FC<FinishProps>;
86
120
  export const Demo: React.FC<DemoProps>;
87
121
  export const WalkthroughModal: React.FC<WalkthroughModalProps>;
88
122
  export const DisconnectAlert: React.FC<DisconnectAlertProps>;
123
+ export const Twilio: React.FC<TwilioProps>;
124
+ export const Daily: React.FC<DailyProps>;
125
+ export const Zoom: React.FC<ZoomProps>;
126
+ export const GoogleCalender: React.FC<GoogleCalenderProps>;
@@ -1,50 +0,0 @@
1
- {
2
- "neetoIntegrations": {
3
- "common": {
4
- "continue": "Continue",
5
- "connect": "Connect",
6
- "connected": "Connected",
7
- "manage": "Manage",
8
- "disconnect": "Disconnect",
9
- "finish": "Finish",
10
- "required": "Required",
11
- "delete": "Delete",
12
- "tryAgain": "Try Again"
13
- },
14
- "tags": {
15
- "connected": "Connected",
16
- "expired": "Expired"
17
- },
18
- "tooltip": {
19
- "integrationNotAvailable": "This integration is not available right now."
20
- },
21
- "demo": {
22
- "title": "Check how it behaves",
23
- "subtitle": "Watch the following video to understand how you can utilize this integration:",
24
- "iFrameTitle": "Watch this video to utilize the integration"
25
- },
26
- "walkthroughModal": {
27
- "header": "Check how it behaves",
28
- "continue": "Continue"
29
- },
30
- "zapier": {
31
- "apiKeys": "API Keys",
32
- "copyApiKey": "Copy API Key to Clipboard",
33
- "emptyText": "Generate an API Key to connect to the Zapier platform",
34
- "generateApiKey": "Generate API Key",
35
- "labelInputPlaceholder": "Enter a Label for the new API Key",
36
- "tableColumns": {
37
- "createdAt": "Created At",
38
- "label": "Label"
39
- },
40
- "newApiKeyInstruction": "Here is your Zapier API Key. Make sure to copy the API Key now. It will not be made visible again.",
41
- "tableTitle": "Previously Generated API Keys",
42
- "deleteApiKey": {
43
- "title": "Delete API Key?",
44
- "message": "You are permanently deleting the API Key <strong>{{key}}</strong>. This can't be undone."
45
- },
46
- "walkthroughText": "Check how it behaves",
47
- "helpDoc": "Help document"
48
- }
49
- }
50
- }