react-mentions 4.3.2 → 4.4.2
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 +2 -6
- package/package.json +7 -7
package/README.md
CHANGED
@@ -65,6 +65,7 @@ The `MentionsInput` supports the following props for configuring the widget:
|
|
65
65
|
| inputRef | React ref | undefined | Accepts a React ref to forward to the underlying input element |
|
66
66
|
| allowSuggestionsAboveCursor | boolean | false | Renders the SuggestionList above the cursor if there is not enough space below |
|
67
67
|
| a11ySuggestionsListLabel | string | `''` | This label would be exposed to screen readers when suggestion popup appears |
|
68
|
+
| customSuggestionsContainer | function(children) | empty function | Allows customizing the container of the suggestions |
|
68
69
|
|
69
70
|
Each data source is configured using a `Mention` component, which has the following props:
|
70
71
|
|
@@ -101,13 +102,8 @@ We recommend using [@testing-library/user-event](https://github.com/testing-libr
|
|
101
102
|
Spawn a development server with an example page and module hot loading all set up:
|
102
103
|
|
103
104
|
```
|
104
|
-
|
105
|
-
```
|
106
|
-
|
107
|
-
Update the examples page on Github Pages:
|
105
|
+
yarn start
|
108
106
|
|
109
|
-
```
|
110
|
-
npm run pages-publish
|
111
107
|
```
|
112
108
|
|
113
109
|
[build-badge]: https://circleci.com/gh/signavio/react-mentions/tree/master.svg?style=shield&circle-token=:circle-token
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "react-mentions",
|
3
|
-
"version": "4.
|
3
|
+
"version": "4.4.2",
|
4
4
|
"description": "React mentions input",
|
5
5
|
"main": "dist/react-mentions.cjs.js",
|
6
6
|
"module": "dist/react-mentions.esm.js",
|
@@ -11,7 +11,7 @@
|
|
11
11
|
"build": "preconstruct build",
|
12
12
|
"format": "prettier --write --no-semi --single-quote --trailing-comma es5 \"{src,test,demo/src}/**/*.js\"",
|
13
13
|
"lint": "eslint --max-warnings=0 --ext .js src test demo",
|
14
|
-
"start": "cross-env NODE_ENV=development webpack-dev-server --config demo/webpack.config.js",
|
14
|
+
"start": "cross-env NODE_OPTIONS=--openssl-legacy-provider NODE_ENV=development webpack-dev-server --config demo/webpack.config.js",
|
15
15
|
"semantic-release": "semantic-release",
|
16
16
|
"test": "jest",
|
17
17
|
"now-build": "webpack --config demo/webpack.config.js"
|
@@ -47,10 +47,13 @@
|
|
47
47
|
"@babel/preset-env": "^7.4.5",
|
48
48
|
"@babel/preset-flow": "^7.0.0",
|
49
49
|
"@babel/preset-react": "^7.0.0",
|
50
|
+
"@testing-library/dom": "^8.13.0",
|
51
|
+
"@testing-library/jest-dom": "^5.16.4",
|
52
|
+
"@testing-library/react": "^13.2.0",
|
50
53
|
"babel-eslint": "^7.2.3",
|
51
54
|
"babel-loader": "^8.0.6",
|
52
55
|
"case-sensitive-paths-webpack-plugin": "^2.2.0",
|
53
|
-
"condition-circle": "^2.0.
|
56
|
+
"condition-circle": "^2.0.2",
|
54
57
|
"core-js": "^3.1.4",
|
55
58
|
"cross-env": "^5.2.1",
|
56
59
|
"css-loader": "^3.0.0",
|
@@ -74,7 +77,7 @@
|
|
74
77
|
"react-dom": "16.8.6",
|
75
78
|
"recompose": "^0.30.0",
|
76
79
|
"regenerator-runtime": "^0.13.2",
|
77
|
-
"semantic-release": "^
|
80
|
+
"semantic-release": "^19.0.2",
|
78
81
|
"style-loader": "^0.23.1",
|
79
82
|
"substyle-jss": "^4.0.1",
|
80
83
|
"webpack": "^4.35.2",
|
@@ -90,8 +93,5 @@
|
|
90
93
|
"peerDependencies": {
|
91
94
|
"react": ">=16.8.3",
|
92
95
|
"react-dom": ">=16.8.3"
|
93
|
-
},
|
94
|
-
"release": {
|
95
|
-
"verifyConditions": "condition-circle"
|
96
96
|
}
|
97
97
|
}
|