@bigbinary/neeto-fields-frontend 1.3.21 → 1.3.23

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-fields-frontend",
3
- "version": "1.3.21",
3
+ "version": "1.3.23",
4
4
  "description": "A repo acts as the source of truth for the new nano's structure, configs, data etc.",
5
5
  "license": "UNLICENSED",
6
6
  "homepage": "https://github.com/bigbinary/neeto-fields-nano",
@@ -19,11 +19,14 @@
19
19
  "types": "types.d.ts",
20
20
  "scripts": {
21
21
  "build": "NODE_ENV=production rollup -c --environment production",
22
+ "build-preview": "NODE_ENV=production webpack",
22
23
  "prepare": "husky install",
23
- "release": "yarn build && yalc push --sig",
24
- "build-preview": "NODE_ENV=production webpack"
24
+ "release": "yarn build && yalc push --sig"
25
25
  },
26
26
  "lint-staged": {
27
+ "./**/*.rb": [
28
+ "bundle exec rubocop -a --force-exclusion"
29
+ ],
27
30
  "./**/app/javascript/**/*.{js,jsx,json}": [
28
31
  "prettier --write",
29
32
  "eslint --fix"
@@ -32,46 +35,44 @@
32
35
  "prettier --write",
33
36
  "eslint --fix"
34
37
  ],
35
- "./**/*.rb": [
36
- "bundle exec rubocop -a --force-exclusion"
37
- ],
38
38
  "{Gemfile,Rakefile,config.ru}": [
39
39
  "bundle exec rubocop -a --force-exclusion"
40
40
  ]
41
41
  },
42
42
  "devDependencies": {
43
- "@babel/core": "7.21.5",
44
- "@babel/eslint-parser": "7.21.3",
45
- "@babel/plugin-transform-runtime": "7.21.4",
46
- "@babel/preset-env": "7.21.5",
47
- "@babel/preset-react": "7.18.6",
48
- "@babel/preset-typescript": "7.21.5",
49
- "@babel/runtime": "7.21.5",
50
- "@bigbinary/babel-preset-neeto": "^1.0.4",
51
- "@bigbinary/eslint-plugin-neeto": "1.1.37",
52
- "@bigbinary/neeto-audit-frontend": "1.0.8",
53
- "@bigbinary/neeto-cist": "1.0.6",
54
- "@bigbinary/neeto-commons-frontend": "3.0.16",
55
- "@bigbinary/neeto-filters-frontend": "^3.0.12",
56
- "@bigbinary/neeto-icons": "^1.14.0",
57
- "@bigbinary/neeto-molecules": "1.3.6",
58
- "@bigbinary/neetoui": "^5.1.12",
43
+ "@babel/core": "7.23.2",
44
+ "@babel/eslint-parser": "7.22.15",
45
+ "@babel/plugin-transform-runtime": "7.23.2",
46
+ "@babel/preset-env": "7.23.2",
47
+ "@babel/preset-react": "7.22.15",
48
+ "@babel/preset-typescript": "7.23.2",
49
+ "@babel/runtime": "7.23.2",
50
+ "@bigbinary/babel-preset-neeto": "1.0.6",
51
+ "@bigbinary/eslint-plugin-neeto": "1.1.41",
52
+ "@bigbinary/neeto-audit-frontend": "2.0.9",
53
+ "@bigbinary/neeto-cist": "1.0.8",
54
+ "@bigbinary/neeto-commons-frontend": "3.1.10",
55
+ "@bigbinary/neeto-filters-frontend": "3.0.15",
56
+ "@bigbinary/neeto-icons": "1.17.11",
57
+ "@bigbinary/neeto-molecules": "1.3.15",
58
+ "@bigbinary/neetoui": "6.1.2",
59
59
  "@dnd-kit/core": "^6.0.8",
60
60
  "@dnd-kit/sortable": "^7.0.2",
61
61
  "@emotion/is-prop-valid": "1.2.0",
62
- "@faker-js/faker": "7.6.0",
63
- "@honeybadger-io/react": "2.0.1",
64
- "@rollup/plugin-alias": "5.0.0",
65
- "@rollup/plugin-babel": "6.0.3",
66
- "@rollup/plugin-commonjs": "24.1.0",
67
- "@rollup/plugin-json": "6.0.0",
68
- "@rollup/plugin-node-resolve": "^15.0.2",
69
- "@rollup/plugin-replace": "5.0.2",
70
- "@svgr/rollup": "7.0.0",
71
- "antd": "5.9.2",
72
- "autoprefixer": "10.4.14",
73
- "axios": "0.27.2",
74
- "babel-loader": "9.1.2",
62
+ "@faker-js/faker": "8.2.0",
63
+ "@honeybadger-io/js": "6.5.3",
64
+ "@honeybadger-io/react": "6.1.9",
65
+ "@rollup/plugin-alias": "5.0.1",
66
+ "@rollup/plugin-babel": "6.0.4",
67
+ "@rollup/plugin-commonjs": "25.0.7",
68
+ "@rollup/plugin-json": "6.0.1",
69
+ "@rollup/plugin-node-resolve": "15.2.3",
70
+ "@rollup/plugin-replace": "5.0.4",
71
+ "@svgr/rollup": "8.1.0",
72
+ "antd": "5.10.2",
73
+ "autoprefixer": "10.4.16",
74
+ "axios": "1.6.0",
75
+ "babel-loader": "9.1.3",
75
76
  "babel-plugin-istanbul": "6.1.1",
76
77
  "babel-plugin-js-logger": "1.0.17",
77
78
  "babel-plugin-macros": "3.1.0",
@@ -86,28 +87,28 @@
86
87
  "css-loader": "^6.7.1",
87
88
  "dompurify": "3.0.2",
88
89
  "dotenv-webpack": "^8.0.1",
89
- "eslint": "8.39.0",
90
- "eslint-config-prettier": "8.8.0",
91
- "eslint-plugin-cypress": "2.13.3",
92
- "eslint-plugin-import": "2.27.5",
90
+ "eslint": "8.52.0",
91
+ "eslint-config-prettier": "8.5.0",
92
+ "eslint-plugin-cypress": "2.15.1",
93
+ "eslint-plugin-import": "2.29.0",
93
94
  "eslint-plugin-jam3": "0.2.3",
94
95
  "eslint-plugin-json": "3.1.0",
95
- "eslint-plugin-prettier": "4.2.1",
96
+ "eslint-plugin-prettier": "4.0.0",
96
97
  "eslint-plugin-promise": "6.1.1",
97
- "eslint-plugin-react": "7.32.2",
98
+ "eslint-plugin-react": "7.33.2",
98
99
  "eslint-plugin-react-hooks": "4.6.0",
99
100
  "eslint-plugin-security": "1.7.1",
100
101
  "eslint-plugin-sonarjs": "0.23.0",
101
- "eslint-plugin-unused-imports": "2.0.0",
102
+ "eslint-plugin-unused-imports": "3.0.0",
102
103
  "eslint-plugin-xss": "0.1.12",
103
- "formik": "2.2.9",
104
+ "formik": "2.4.5",
104
105
  "html-webpack-plugin": "5.5.0",
105
106
  "https-browserify": "^1.0.0",
106
107
  "husky": "8.0.3",
107
- "i18next": "22.4.10",
108
+ "i18next": "23.6.0",
108
109
  "i18next-browser-languagedetector": "7.0.1",
109
110
  "js-logger": "1.6.1",
110
- "lint-staged": "13.2.2",
111
+ "lint-staged": "15.0.2",
111
112
  "mini-css-extract-plugin": "^2.6.1",
112
113
  "mixpanel-browser": "2.46.0",
113
114
  "os-browserify": "^0.3.0",
@@ -115,35 +116,36 @@
115
116
  "pluralize": "^8.0.0",
116
117
  "postcss": "8.4.31",
117
118
  "postcss-import": "15.1.0",
118
- "postcss-loader": "7.3.0",
119
- "postcss-preset-env": "8.3.2",
120
- "prettier": "2.8.8",
121
- "prettier-plugin-tailwindcss": "0.2.8",
119
+ "postcss-loader": "7.3.3",
120
+ "postcss-preset-env": "9.2.0",
121
+ "prettier": "2.6.2",
122
+ "prettier-plugin-tailwindcss": "0.1.10",
122
123
  "process": "^0.11.10",
123
- "qs": "^6.11.2",
124
- "ramda": "0.29.0",
125
- "react": "^18.2.0",
126
- "react-dom": "^18.2.0",
124
+ "qs": "6.11.2",
125
+ "ramda": "0.29.1",
126
+ "react": "18.2.0",
127
+ "react-dom": "18.2.0",
127
128
  "react-helmet": "6.1.0",
128
- "react-i18next": "11.16.8",
129
+ "react-i18next": "13.3.1",
129
130
  "react-query": "3.39.3",
130
- "react-router-dom": "5.3.3",
131
+ "react-router-dom": "5.3.4",
131
132
  "react-router-nav-prompt": "0.4.1",
132
- "react-toastify": "8.0.2",
133
+ "react-toastify": "8.2.0",
133
134
  "react_ujs": "^3.1.1",
134
135
  "rollup": "2.79.1",
135
136
  "rollup-plugin-analyzer": "4.0.0",
136
137
  "rollup-plugin-cleaner": "1.0.0",
138
+ "rollup-plugin-copy": "^3.5.0",
137
139
  "rollup-plugin-peer-deps-external": "2.2.4",
138
140
  "rollup-plugin-styles": "4.0.0",
139
- "sass": "1.62.1",
141
+ "sass": "1.69.5",
140
142
  "sass-loader": "^13.0.2",
141
143
  "shakapacker": "^6.6.0",
142
144
  "source-map-loader": "^4.0.1",
143
145
  "stream-browserify": "^3.0.0",
144
146
  "stream-http": "^3.2.0",
145
147
  "style-loader": "^3.3.1",
146
- "tailwindcss": "npm:@tailwindcss/postcss7-compat",
148
+ "tailwindcss": "3.4.1",
147
149
  "tty-browserify": "^0.0.1",
148
150
  "url": "^0.11.0",
149
151
  "util": "0.12.5",
@@ -152,31 +154,33 @@
152
154
  "webpack-assets-manifest": "^5.1.0",
153
155
  "webpack-cli": "4.10.0",
154
156
  "webpack-dev-server": "^4.15.0",
155
- "yup": "0.32.11",
157
+ "yup": "1.3.2",
156
158
  "zustand": "4.3.2"
157
159
  },
158
160
  "peerDependencies": {
159
161
  "@bigbinary/neeto-cist": "latest",
160
- "@bigbinary/neeto-commons-frontend": "^2.1.29",
162
+ "@bigbinary/neeto-commons-frontend": "3.1.10",
161
163
  "@bigbinary/neeto-editor": "^1.26.3",
162
- "@bigbinary/neeto-icons": "^1.9.22",
163
- "@bigbinary/neeto-molecules": "^1.0.9",
164
- "@bigbinary/neetoui": "5.0.4",
165
- "@honeybadger-io/react": "^2.0.1",
166
- "axios": "^0.27.2",
164
+ "@bigbinary/neeto-filters-frontend": "3.0.15",
165
+ "@bigbinary/neeto-icons": "1.17.11",
166
+ "@bigbinary/neeto-molecules": "1.3.15",
167
+ "@bigbinary/neetoui": "6.1.2",
168
+ "@honeybadger-io/js": "^6.5.3",
169
+ "@honeybadger-io/react": "^6.1.9",
170
+ "axios": "^1.6.0",
167
171
  "classnames": "^2.3.2",
168
- "formik": "^2.2.9",
169
- "i18next": "23.2.7",
172
+ "formik": "^2.4.5",
173
+ "i18next": "^23.6.0",
170
174
  "js-logger": "^1.6.1",
171
175
  "mixpanel-browser": "^2.45.0",
172
- "ramda": "^0.29.0",
173
- "react": "18.2.0",
174
- "react-dom": "18.2.0",
176
+ "ramda": "^0.29.1",
177
+ "react": "^18.2.0",
178
+ "react-dom": "^18.2.0",
175
179
  "react-helmet": "^6.1.0",
176
- "react-i18next": "13.0.1",
177
- "react-query": "3.39.2",
178
- "react-router-dom": "5.3.3",
179
- "react-toastify": "8.2.0",
180
+ "react-i18next": "^13.3.1",
181
+ "react-query": "^3.39.3",
182
+ "react-router-dom": "^5.3.4",
183
+ "react-toastify": "^8.2.0",
180
184
  "uuid": "9.0.1",
181
185
  "yup": "^0.32.11",
182
186
  "zustand": "4.3.2"
@@ -188,6 +192,5 @@
188
192
  "node": ">=18.12",
189
193
  "npm": ">=9",
190
194
  "yarn": ">=1.22"
191
- },
192
- "dependencies": {}
195
+ }
193
196
  }
package/types.d.ts CHANGED
@@ -135,6 +135,16 @@ interface InlineFieldValueInputProps {
135
135
  onMutate?: (...args: any[]) => void;
136
136
  }
137
137
 
138
+ interface FieldDeleteAlertProps {
139
+ selectedField: KeyValuePair;
140
+ ownerId: string;
141
+ resourceTypeName: string;
142
+ isDeleteAlertOpen: boolean;
143
+ isDeleting: boolean;
144
+ handleDelete: () => void;
145
+ handleAlertClose: () => void;
146
+ }
147
+
138
148
  type FieldsParams = {
139
149
  resourceType?: string;
140
150
  ownerId?: string;
@@ -156,6 +166,7 @@ export const FieldsPane: React.FC<FieldsPaneProps>;
156
166
  export const FieldValuesContainer: React.FC<FieldValuesContainerProps>;
157
167
  export const FieldInputs: React.FC<FieldInputsProps>;
158
168
  export const InlineFieldValueInput: React.FC<InlineFieldValueInputProps>;
169
+ export const FieldDeleteAlert: React.FC<FieldDeleteAlertProps>;
159
170
 
160
171
  export const useFetchFields: (
161
172
  params: FieldsParams,