@bigbinary/neeto-filters-frontend 3.0.4 → 3.0.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/package.json CHANGED
@@ -1,151 +1,187 @@
1
1
  {
2
2
  "name": "@bigbinary/neeto-filters-frontend",
3
- "version": "3.0.4",
3
+ "version": "3.0.6",
4
4
  "description": "Manage filters across neeto products.",
5
- "author": "BigBinary",
6
- "license": "MIT",
7
- "repository": "https://github.com/bigbinary/neeto-filters-frontend",
8
- "main": "dist/index.cjs.js",
9
- "module": "dist/index.js",
10
- "types": "types.d.ts",
11
- "engines": {
12
- "node": ">=18.12",
13
- "npm": ">=9",
14
- "yarn": ">=1.22"
5
+ "license": "UNLICENSED",
6
+ "homepage": "https://github.com/bigbinary/neeto-filters-nano",
7
+ "bugs": {
8
+ "url": "https://github.com/bigbinary/neeto-filters-nano/issues"
15
9
  },
10
+ "repository": "neeto-filters-nano",
11
+ "author": "BigBinary",
16
12
  "files": [
17
- "dist/*",
13
+ "dist",
18
14
  "types.d.ts",
19
- "src/translations"
15
+ "app/javascript/src/translations"
20
16
  ],
17
+ "main": "dist/index.cjs.js",
18
+ "module": "dist/index.js",
19
+ "types": "types.d.ts",
21
20
  "scripts": {
21
+ "build": "NODE_ENV=production rollup -c --environment production",
22
22
  "prepare": "husky install",
23
- "start": "NODE_ENV=development rm -rf dist && webpack-dev-server --open --mode development",
24
- "build": "NODE_ENV=production rollup -c rollup.config.js",
23
+ "release": "yarn build && yalc push --sig",
25
24
  "build-preview": "NODE_ENV=production webpack"
26
25
  },
27
26
  "lint-staged": {
28
- "{src,example}/**/*.{js,jsx,json}": [
27
+ "./**/app/javascript/**/*.{js,jsx,json}": [
29
28
  "prettier --write",
30
29
  "eslint --fix"
31
30
  ],
32
- "{package.json,.eslintrc.js,.prettierrc.js}": [
31
+ "./test/dummy/**/app/javascript/**/*.{js,jsx,json}": [
33
32
  "prettier --write",
34
33
  "eslint --fix"
35
34
  ],
36
- ".eslint-rules/**/*": [
37
- "prettier --write",
38
- "eslint --fix"
35
+ "./**/*.rb": [
36
+ "bundle exec rubocop -a --force-exclusion"
37
+ ],
38
+ "{Gemfile,Rakefile,config.ru}": [
39
+ "bundle exec rubocop -a --force-exclusion"
39
40
  ]
40
41
  },
41
42
  "devDependencies": {
42
- "@babel/core": "^7.19.1",
43
- "@babel/eslint-parser": "7.17.0",
44
- "@babel/plugin-transform-runtime": "^7.19.1",
45
- "@babel/preset-env": "7.17.10",
46
- "@babel/preset-react": "7.16.7",
47
- "@babel/preset-typescript": "^7.18.6",
48
- "@babel/runtime": "^7.19.0",
43
+ "@babel/core": "7.22.6",
44
+ "@babel/eslint-parser": "7.22.6",
45
+ "@babel/plugin-transform-runtime": "7.22.6",
46
+ "@babel/preset-env": "7.22.6",
47
+ "@babel/preset-react": "7.22.5",
48
+ "@babel/preset-typescript": "7.22.5",
49
+ "@babel/runtime": "7.22.6",
49
50
  "@bigbinary/babel-preset-neeto": "1.0.3",
50
- "@bigbinary/eslint-plugin-neeto": "1.1.24",
51
- "@bigbinary/neeto-audit-frontend": "1.0.7",
52
- "@bigbinary/neeto-cist": "^1.0.2",
53
- "@bigbinary/neeto-commons-frontend": "2.1.28",
54
- "@bigbinary/neeto-icons": "^1.11.0",
51
+ "@bigbinary/eslint-plugin-neeto": "1.1.27",
52
+ "@bigbinary/neeto-audit-frontend": "1.0.8",
53
+ "@bigbinary/neeto-cist": "1.0.2",
54
+ "@bigbinary/neeto-commons-frontend": "2.1.29",
55
+ "@bigbinary/neeto-icons": "1.12.3",
55
56
  "@bigbinary/neeto-molecules": "1.1.45",
56
57
  "@bigbinary/neetoui": "5.0.2",
57
58
  "@emotion/is-prop-valid": "1.2.0",
59
+ "@faker-js/faker": "8.0.2",
58
60
  "@honeybadger-io/react": "2.0.1",
59
- "@rollup/plugin-alias": "3.1.9",
60
- "@rollup/plugin-babel": "5.3.1",
61
- "@rollup/plugin-commonjs": "22.0.2",
62
- "@rollup/plugin-json": "4.1.0",
63
- "@rollup/plugin-node-resolve": "14.1.0",
64
- "@rollup/plugin-replace": "4.0.0",
65
- "antd": "4.24.3",
66
- "autoprefixer": "^10.4.5",
67
- "axios": "1.6.0",
68
- "babel-loader": "^8.2.5",
69
- "babel-plugin-istanbul": "^6.1.1",
61
+ "@rollup/plugin-alias": "5.0.0",
62
+ "@rollup/plugin-babel": "6.0.3",
63
+ "@rollup/plugin-commonjs": "25.0.2",
64
+ "@rollup/plugin-json": "6.0.0",
65
+ "@rollup/plugin-node-resolve": "15.1.0",
66
+ "@rollup/plugin-replace": "5.0.2",
67
+ "@svgr/rollup": "8.0.1",
68
+ "antd": "4.24.12",
69
+ "autoprefixer": "10.4.14",
70
+ "axios": "1.4.0",
71
+ "babel-loader": "9.1.2",
72
+ "babel-plugin-istanbul": "6.1.1",
70
73
  "babel-plugin-js-logger": "1.0.17",
71
74
  "babel-plugin-macros": "3.1.0",
72
75
  "babel-plugin-preval": "^5.1.0",
73
76
  "babel-plugin-transform-react-remove-prop-types": "0.4.24",
74
77
  "babel-preset-react": "6.24.1",
75
- "babel-preset-typescript": "^7.0.0-alpha.19",
76
- "classnames": "2.3.1",
77
- "css-loader": "6.7.1",
78
- "dayjs": "1.11.1",
79
- "eslint": "8.14.0",
80
- "eslint-config-prettier": "8.5.0",
81
- "eslint-plugin-cypress": "2.12.1",
82
- "eslint-plugin-import": "2.26.0",
78
+ "babel-preset-typescript": "7.0.0-alpha.19",
79
+ "browserify-zlib": "0.2.0",
80
+ "buffer": "6.0.3",
81
+ "classnames": "2.3.2",
82
+ "crypto-browserify": "3.12.0",
83
+ "css-loader": "6.8.1",
84
+ "dompurify": "3.0.2",
85
+ "dotenv-webpack": "^8.0.1",
86
+ "eslint": "8.44.0",
87
+ "eslint-config-prettier": "8.8.0",
88
+ "eslint-plugin-cypress": "2.13.3",
89
+ "eslint-plugin-import": "2.27.5",
83
90
  "eslint-plugin-jam3": "0.2.3",
84
91
  "eslint-plugin-json": "3.1.0",
85
- "eslint-plugin-prettier": "4.0.0",
86
- "eslint-plugin-promise": "6.0.0",
87
- "eslint-plugin-react": "7.29.4",
88
- "eslint-plugin-react-hooks": "4.5.0",
92
+ "eslint-plugin-prettier": "4.2.1",
93
+ "eslint-plugin-promise": "6.1.1",
94
+ "eslint-plugin-react": "7.32.2",
95
+ "eslint-plugin-react-hooks": "4.6.0",
96
+ "eslint-plugin-security": "^1.7.1",
97
+ "eslint-plugin-sonarjs": "^0.21.0",
89
98
  "eslint-plugin-unused-imports": "2.0.0",
90
- "formik": "2.2.9",
91
- "html-loader": "4.2.0",
92
- "html-webpack-plugin": "5.5.0",
93
- "husky": "7.0.4",
94
- "i18next": "^23.2.11",
95
- "js-logger": "^1.6.1",
96
- "lint-staged": "12.4.1",
97
- "mixpanel-browser": "^2.47.0",
98
- "postcss": "^8.4.17",
99
- "postcss-import": "^15.0.0",
100
- "postcss-loader": "^7.0.1",
101
- "postcss-preset-env": "7.8.2",
102
- "prettier": "2.6.2",
103
- "prettier-plugin-tailwindcss": "0.1.10",
104
- "prop-types": "15.8.1",
99
+ "eslint-plugin-xss": "^0.1.12",
100
+ "formik": "2.4.2",
101
+ "html-webpack-plugin": "5.5.3",
102
+ "https-browserify": "1.0.0",
103
+ "husky": "8.0.3",
104
+ "i18next": "23.2.7",
105
+ "i18next-browser-languagedetector": "7.0.1",
106
+ "js-logger": "1.6.1",
107
+ "lint-staged": "13.2.3",
108
+ "mini-css-extract-plugin": "2.7.6",
109
+ "mixpanel-browser": "2.47.0",
110
+ "os-browserify": "0.3.0",
111
+ "path-browserify": "1.0.1",
112
+ "postcss": "8.4.31",
113
+ "postcss-import": "15.1.0",
114
+ "postcss-loader": "7.3.3",
115
+ "postcss-preset-env": "9.0.0",
116
+ "prettier": "2.8.8",
117
+ "prettier-plugin-tailwindcss": "0.3.0",
118
+ "process": "0.11.10",
105
119
  "ramda": "0.29.0",
106
120
  "react": "^18.2.0",
107
121
  "react-dom": "^18.2.0",
108
- "react-helmet": "^6.1.0",
109
- "react-i18next": "^13.0.2",
110
- "react-query": "3.39.2",
122
+ "react-helmet": "6.1.0",
123
+ "react-i18next": "13.0.1",
124
+ "react-query": "3.39.3",
111
125
  "react-router-dom": "5.3.3",
112
126
  "react-toastify": "8.0.2",
113
- "react-transition-group": "4.4.5",
127
+ "react_ujs": "^3.1.1",
114
128
  "rollup": "2.79.1",
129
+ "rollup-plugin-analyzer": "4.0.0",
130
+ "rollup-plugin-cleaner": "1.0.0",
115
131
  "rollup-plugin-peer-deps-external": "2.2.4",
116
132
  "rollup-plugin-styles": "4.0.0",
117
- "sass": "^1.54.9",
118
- "sass-loader": "^13.0.2",
119
- "style-loader": "3.3.1",
133
+ "sass": "1.63.6",
134
+ "sass-loader": "13.3.2",
135
+ "shakapacker": "6.6.0",
136
+ "stream-browserify": "3.0.0",
137
+ "stream-http": "3.2.0",
138
+ "style-loader": "3.3.3",
120
139
  "tailwindcss": "npm:@tailwindcss/postcss7-compat",
121
- "util": "^0.12.5",
122
- "webpack": "5.76.0",
123
- "webpack-cli": "4.10.0",
124
- "webpack-dev-server": "4.11.1",
125
- "yup": "0.32.11",
126
- "zustand": "^4.4.6"
140
+ "tty-browserify": "0.0.1",
141
+ "url": "0.11.1",
142
+ "util": "0.12.5",
143
+ "vm-browserify": "1.1.2",
144
+ "webpack": "5.88.1",
145
+ "webpack-assets-manifest": "5.1.0",
146
+ "webpack-cli": "5.1.4",
147
+ "webpack-dev-server": "4.15.1",
148
+ "yup": "0.32.11"
127
149
  },
128
150
  "peerDependencies": {
151
+ "@bigbinary/neeto-cist": "latest",
129
152
  "@bigbinary/neeto-commons-frontend": "latest",
130
153
  "@bigbinary/neeto-icons": "latest",
131
154
  "@bigbinary/neeto-molecules": "latest",
132
155
  "@bigbinary/neetoui": "latest",
133
- "@honeybadger-io/react": "2.0.1",
134
- "antd": "4.24.3",
135
- "axios": "1.6.0",
136
- "classnames": "2.3.1",
137
- "dayjs": "1.11.1",
138
- "formik": "2.2.9",
139
- "i18next": "^23.2.11",
140
- "ramda": "0.29.0",
156
+ "@honeybadger-io/react": "^2.0.1",
157
+ "axios": "^0.27.2",
158
+ "classnames": "^2.3.2",
159
+ "formik": "^2.2.9",
160
+ "i18next": "23.2.7",
161
+ "js-logger": "^1.6.1",
162
+ "mixpanel-browser": "^2.45.0",
163
+ "ramda": "^0.29.0",
141
164
  "react": "18.2.0",
142
165
  "react-dom": "18.2.0",
143
166
  "react-helmet": "^6.1.0",
144
- "react-i18next": "^13.0.2",
167
+ "react-i18next": "13.0.1",
145
168
  "react-query": "3.39.2",
146
169
  "react-router-dom": "5.3.3",
147
- "react-toastify": "8.0.2",
148
- "yup": "0.32.11",
149
- "zustand": "^4.4.6"
170
+ "react-toastify": "8.2.0",
171
+ "yup": "^0.32.11",
172
+ "zustand": "4.3.2"
173
+ },
174
+ "resolutions": {
175
+ "postcss": "^8"
176
+ },
177
+ "engines": {
178
+ "node": ">=18.12",
179
+ "npm": ">=9",
180
+ "yarn": ">=1.22"
181
+ },
182
+ "dependencies": {
183
+ "react-router-nav-prompt": "0.4.1",
184
+ "source-map-loader": "^4.0.1",
185
+ "zustand": "4.3.2"
150
186
  }
151
187
  }
package/types.d.ts CHANGED
@@ -98,6 +98,7 @@ export function Bar(props: {
98
98
  onChange: (filters: filters) => void;
99
99
  onSelectorsChange?: (selectors: selectors) => void;
100
100
  childrenKeys?: string[];
101
+ defaultSegmentName?: string;
101
102
  [otherProps: string]: any;
102
103
  }): JSX.Element;
103
104
 
@@ -105,6 +106,7 @@ export function Segments(props: {
105
106
  entity: string;
106
107
  columns: ColumnType[];
107
108
  setIsFilterPaneOpen: (boolean) => void;
109
+ defaultSegmentName?: string;
108
110
  }): JSX.Element;
109
111
 
110
112
  export function buildFiltersFromURL(