prosemirror-menu 1.3.0 → 1.3.1
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/CHANGELOG.md +6 -0
- package/CONTRIBUTING.md +22 -18
- package/README.md +4 -4
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/src/README.md +4 -4
- package/src/menu.ts +1 -1
package/CHANGELOG.md
CHANGED
package/CONTRIBUTING.md
CHANGED
|
@@ -12,7 +12,7 @@ Community discussion, questions, and informal bug reporting is done on the
|
|
|
12
12
|
## Submitting bug reports
|
|
13
13
|
|
|
14
14
|
Report bugs on the
|
|
15
|
-
[
|
|
15
|
+
[issue tracker](https://code.haverbeke.berlin/prosemirror/prosemirror/issues).
|
|
16
16
|
Before reporting a bug, please read these pointers.
|
|
17
17
|
|
|
18
18
|
- The issue tracker is for *bugs*, not requests for help. Questions
|
|
@@ -34,21 +34,28 @@ Before reporting a bug, please read these pointers.
|
|
|
34
34
|
|
|
35
35
|
## Contributing code
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
Code generated by a language model is not welcome in this project.
|
|
38
|
+
Please don't waste my time with it.
|
|
38
39
|
|
|
39
|
-
|
|
40
|
-
|
|
40
|
+
If you want to make a change that involves a significant overhaul of
|
|
41
|
+
the code or introduces a user-visible new feature, create an
|
|
42
|
+
[issue](https://code.haverbeke.berlin/prosemirror/prosemirror/issues/)
|
|
43
|
+
first with your proposal.
|
|
44
|
+
|
|
45
|
+
- Make sure you have a [Codeberg](https://codeberg.org/user/sign_up)
|
|
46
|
+
or [GitHub](https://github.com/signup/free) account.
|
|
47
|
+
|
|
48
|
+
- Use that to create a [code.haverbeke.berlin
|
|
49
|
+
account](https://code.haverbeke.berlin/user/login).
|
|
50
|
+
|
|
51
|
+
- Fork the relevant repository.
|
|
41
52
|
|
|
42
53
|
- Create a local checkout of the code. You can use the
|
|
43
|
-
[main repository](https://
|
|
54
|
+
[main repository](https://code.haverbeke.berlin/prosemirror/prosemirror) to
|
|
44
55
|
easily check out all core modules.
|
|
45
56
|
|
|
46
57
|
- Make your changes, and commit them
|
|
47
58
|
|
|
48
|
-
- Follow the code style of the rest of the project (see below). Run
|
|
49
|
-
`npm run lint` (in the main repository checkout) to make sure that
|
|
50
|
-
the linter is happy.
|
|
51
|
-
|
|
52
59
|
- If your changes are easy to test or likely to regress, add tests in
|
|
53
60
|
the relevant `test/` directory. Either put them in an existing
|
|
54
61
|
`test-*.js` file, if they fit there, or add a new file.
|
|
@@ -56,13 +63,13 @@ Before reporting a bug, please read these pointers.
|
|
|
56
63
|
- Make sure all tests pass. Run `npm run test` to verify tests pass
|
|
57
64
|
(you will need Node.js v6+).
|
|
58
65
|
|
|
59
|
-
- Submit a pull request
|
|
60
|
-
|
|
66
|
+
- Submit a pull request. Don't put more than one feature/fix in a
|
|
67
|
+
single pull request.
|
|
61
68
|
|
|
62
69
|
By contributing code to ProseMirror you
|
|
63
70
|
|
|
64
71
|
- Agree to license the contributed code under the project's [MIT
|
|
65
|
-
license](https://
|
|
72
|
+
license](https://code.haverbeke.berlin/prosemirror/prosemirror/blob/main/LICENSE).
|
|
66
73
|
|
|
67
74
|
- Confirm that you have the right to contribute and license the code
|
|
68
75
|
in question. (Either you hold all rights on the code, or the rights
|
|
@@ -82,19 +89,16 @@ By contributing code to ProseMirror you
|
|
|
82
89
|
- Follow the surrounding code when it comes to spacing, brace
|
|
83
90
|
placement, etc.
|
|
84
91
|
|
|
85
|
-
- Brace-less single-statement bodies are encouraged
|
|
86
|
-
don't impact readability
|
|
92
|
+
- Brace-less single-statement bodies are encouraged whenever they
|
|
93
|
+
don't impact readability.
|
|
87
94
|
|
|
88
|
-
- [getdocs](https://
|
|
95
|
+
- [getdocs-ts](https://code.haverbeke.berlin/marijn/getdocs-ts)-style doc comments
|
|
89
96
|
above items that are part of the public API.
|
|
90
97
|
|
|
91
98
|
- When documenting non-public items, you can put the type after a
|
|
92
99
|
single colon, so that getdocs doesn't pick it up and add it to the
|
|
93
100
|
API reference.
|
|
94
101
|
|
|
95
|
-
- The linter (`npm run lint`) complains about unused variables and
|
|
96
|
-
functions. Prefix their names with an underscore to muffle it.
|
|
97
|
-
|
|
98
102
|
- ProseMirror does *not* follow JSHint or JSLint prescribed style.
|
|
99
103
|
Patches that try to 'fix' code to pass one of these linters will not
|
|
100
104
|
be accepted.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# prosemirror-menu
|
|
2
2
|
|
|
3
|
-
[ [**WEBSITE**](https://prosemirror.net) | [**ISSUES**](https://
|
|
3
|
+
[ [**WEBSITE**](https://prosemirror.net) | [**ISSUES**](https://code.haverbeke.berlin/prosemirror/prosemirror-menu/issues) | [**FORUM**](https://discuss.prosemirror.net) | [**GITTER**](https://gitter.im/ProseMirror/prosemirror) ]
|
|
4
4
|
|
|
5
5
|
This is a non-core example module for [ProseMirror](https://prosemirror.net).
|
|
6
6
|
ProseMirror is a well-behaved rich semantic content editor based on
|
|
@@ -19,10 +19,10 @@ ProseMirror, publish your fork, and if it works for me, I'll gladly
|
|
|
19
19
|
deprecate this in favor of your module.
|
|
20
20
|
|
|
21
21
|
This code is released under an
|
|
22
|
-
[MIT license](https://
|
|
22
|
+
[MIT license](https://code.haverbeke.berlin/prosemirror/prosemirror/src/branch/main/LICENSE).
|
|
23
23
|
There's a [forum](http://discuss.prosemirror.net) for general
|
|
24
24
|
discussion and support requests, and the
|
|
25
|
-
[
|
|
25
|
+
[bug tracker](https://code.haverbeke.berlin/prosemirror/prosemirror-menu/issues)
|
|
26
26
|
is the place to report issues.
|
|
27
27
|
|
|
28
28
|
## Documentation
|
|
@@ -31,7 +31,7 @@ This module defines a number of building blocks for ProseMirror menus,
|
|
|
31
31
|
along with a [menu bar](#menu.menuBar) implementation.
|
|
32
32
|
|
|
33
33
|
When using this module, you should make sure its
|
|
34
|
-
[`style/menu.css`](https://
|
|
34
|
+
[`style/menu.css`](https://code.haverbeke.berlin/prosemirror/prosemirror-menu/src/branch/main/style/menu.css)
|
|
35
35
|
file is loaded into your page.
|
|
36
36
|
|
|
37
37
|
### interface MenuElement
|
package/dist/index.cjs
CHANGED
|
@@ -190,8 +190,8 @@ var Dropdown = function () {
|
|
|
190
190
|
if (keyboardMoveFocus(_this, event, "vertical")) ;else if (event.key === "Escape") {
|
|
191
191
|
event.preventDefault();
|
|
192
192
|
event.stopPropagation();
|
|
193
|
-
close();
|
|
194
193
|
btn.focus();
|
|
194
|
+
close();
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
197
|
open.node.addEventListener("focusout", function () {
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "prosemirror-menu",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Simple menu elements for ProseMirror",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
],
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|
|
28
|
-
"url": "git://
|
|
28
|
+
"url": "git+https://code.haverbeke.berlin/prosemirror/prosemirror-menu.git"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"crelt": "^1.0.0",
|
package/src/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# prosemirror-menu
|
|
2
2
|
|
|
3
|
-
[ [**WEBSITE**](https://prosemirror.net) | [**ISSUES**](https://
|
|
3
|
+
[ [**WEBSITE**](https://prosemirror.net) | [**ISSUES**](https://code.haverbeke.berlin/prosemirror/prosemirror-menu/issues) | [**FORUM**](https://discuss.prosemirror.net) | [**GITTER**](https://gitter.im/ProseMirror/prosemirror) ]
|
|
4
4
|
|
|
5
5
|
This is a non-core example module for [ProseMirror](https://prosemirror.net).
|
|
6
6
|
ProseMirror is a well-behaved rich semantic content editor based on
|
|
@@ -19,10 +19,10 @@ ProseMirror, publish your fork, and if it works for me, I'll gladly
|
|
|
19
19
|
deprecate this in favor of your module.
|
|
20
20
|
|
|
21
21
|
This code is released under an
|
|
22
|
-
[MIT license](https://
|
|
22
|
+
[MIT license](https://code.haverbeke.berlin/prosemirror/prosemirror/src/branch/main/LICENSE).
|
|
23
23
|
There's a [forum](http://discuss.prosemirror.net) for general
|
|
24
24
|
discussion and support requests, and the
|
|
25
|
-
[
|
|
25
|
+
[bug tracker](https://code.haverbeke.berlin/prosemirror/prosemirror-menu/issues)
|
|
26
26
|
is the place to report issues.
|
|
27
27
|
|
|
28
28
|
## Documentation
|
|
@@ -31,7 +31,7 @@ This module defines a number of building blocks for ProseMirror menus,
|
|
|
31
31
|
along with a [menu bar](#menu.menuBar) implementation.
|
|
32
32
|
|
|
33
33
|
When using this module, you should make sure its
|
|
34
|
-
[`style/menu.css`](https://
|
|
34
|
+
[`style/menu.css`](https://code.haverbeke.berlin/prosemirror/prosemirror-menu/src/branch/main/style/menu.css)
|
|
35
35
|
file is loaded into your page.
|
|
36
36
|
|
|
37
37
|
@MenuElement
|
package/src/menu.ts
CHANGED