prosemirror-view 1.41.7 → 1.41.9
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 +18 -2
- package/CONTRIBUTING.md +19 -19
- package/README.md +3 -3
- package/dist/index.cjs +164 -96
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +105 -64
- package/package.json +3 -3
- package/src/domchange.ts +3 -13
- package/src/domobserver.ts +4 -1
- package/src/index.ts +4 -3
- package/src/input.ts +94 -39
- package/src/selection.ts +6 -6
- package/src/viewdesc.ts +8 -8
- package/style/prosemirror.css +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
## 1.41.9 (2026-06-10)
|
|
2
|
+
|
|
3
|
+
### Bug fixes
|
|
4
|
+
|
|
5
|
+
Allow triple-click drag selection.
|
|
6
|
+
|
|
7
|
+
Adjust an existing workaround to work around the fact that Chrome no longer fires key events for backspace during composition.
|
|
8
|
+
|
|
9
|
+
## 1.41.8 (2026-04-02)
|
|
10
|
+
|
|
11
|
+
### Bug fixes
|
|
12
|
+
|
|
13
|
+
Make the types reflect that mark and node views should render elements, not any DOM node.
|
|
14
|
+
|
|
15
|
+
Fix a bug causing `dragCopies` to be ignored when it returned false.
|
|
16
|
+
|
|
1
17
|
## 1.41.7 (2026-03-18)
|
|
2
18
|
|
|
3
19
|
### Bug fixes
|
|
@@ -2076,7 +2092,7 @@ Fixes a problem where triple-clicking the editor would sometimes cause the scrol
|
|
|
2076
2092
|
|
|
2077
2093
|
The `inclusiveLeft` and `inclusiveRight` options to inline decorations were renamed to [`inclusiveStart`](https://prosemirror.net/docs/ref/version/0.20.0.html#view.Decoration^inline^spec.inclusiveStart) and [`inclusiveEnd`](https://prosemirror.net/docs/ref/version/0.20.0.html#view.Decoration^inline^spec.inclusiveEnd) so that they also make sense in right-to-left text. The old names work with a warning until the next release.
|
|
2078
2094
|
|
|
2079
|
-
The default styling for lists and blockquotes was removed from `prosemirror.css`. (They were moved to the [`example-setup`](https://
|
|
2095
|
+
The default styling for lists and blockquotes was removed from `prosemirror.css`. (They were moved to the [`example-setup`](https://code.haverbeke.berlin/prosemirror/prosemirror-example-setup) module.)
|
|
2080
2096
|
|
|
2081
2097
|
### Bug fixes
|
|
2082
2098
|
|
|
@@ -2250,7 +2266,7 @@ Fix DOM parsing for decorated text nodes.
|
|
|
2250
2266
|
|
|
2251
2267
|
The editor view no longer wraps its editable DOM element in a wrapper element. The `ProseMirror` CSS class now applies directly to the editable element. The `ProseMirror-content` CSS class is still present for ease of upgrading but will be dropped in the next release.
|
|
2252
2268
|
|
|
2253
|
-
The editor view no longer draws a drop cursor when dragging content over the editor. The new [`prosemirror-dropcursor`](https://
|
|
2269
|
+
The editor view no longer draws a drop cursor when dragging content over the editor. The new [`prosemirror-dropcursor`](https://code.haverbeke.berlin/prosemirror/prosemirror-dropcursor) module implements this as a plugin.
|
|
2254
2270
|
|
|
2255
2271
|
### Bug fixes
|
|
2256
2272
|
|
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,25 +34,28 @@ Before reporting a bug, please read these pointers.
|
|
|
34
34
|
|
|
35
35
|
## Contributing code
|
|
36
36
|
|
|
37
|
+
Code generated by a language model is not welcome in this project.
|
|
38
|
+
Please don't waste my time with it.
|
|
39
|
+
|
|
37
40
|
If you want to make a change that involves a significant overhaul of
|
|
38
41
|
the code or introduces a user-visible new feature, create an
|
|
39
|
-
[
|
|
42
|
+
[issue](https://code.haverbeke.berlin/prosemirror/prosemirror/issues/)
|
|
43
|
+
first with your proposal.
|
|
40
44
|
|
|
41
|
-
- Make sure you have a [
|
|
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).
|
|
42
50
|
|
|
43
|
-
- Fork the relevant repository
|
|
44
|
-
([how to fork a repo](https://help.github.com/articles/fork-a-repo))
|
|
51
|
+
- Fork the relevant repository.
|
|
45
52
|
|
|
46
53
|
- Create a local checkout of the code. You can use the
|
|
47
|
-
[main repository](https://
|
|
54
|
+
[main repository](https://code.haverbeke.berlin/prosemirror/prosemirror) to
|
|
48
55
|
easily check out all core modules.
|
|
49
56
|
|
|
50
57
|
- Make your changes, and commit them
|
|
51
58
|
|
|
52
|
-
- Follow the code style of the rest of the project (see below). Run
|
|
53
|
-
`npm run lint` (in the main repository checkout) to make sure that
|
|
54
|
-
the linter is happy.
|
|
55
|
-
|
|
56
59
|
- If your changes are easy to test or likely to regress, add tests in
|
|
57
60
|
the relevant `test/` directory. Either put them in an existing
|
|
58
61
|
`test-*.js` file, if they fit there, or add a new file.
|
|
@@ -60,13 +63,13 @@ the code or introduces a user-visible new feature, create an
|
|
|
60
63
|
- Make sure all tests pass. Run `npm run test` to verify tests pass
|
|
61
64
|
(you will need Node.js v6+).
|
|
62
65
|
|
|
63
|
-
- Submit a pull request
|
|
64
|
-
|
|
66
|
+
- Submit a pull request. Don't put more than one feature/fix in a
|
|
67
|
+
single pull request.
|
|
65
68
|
|
|
66
69
|
By contributing code to ProseMirror you
|
|
67
70
|
|
|
68
71
|
- Agree to license the contributed code under the project's [MIT
|
|
69
|
-
license](https://
|
|
72
|
+
license](https://code.haverbeke.berlin/prosemirror/prosemirror/blob/main/LICENSE).
|
|
70
73
|
|
|
71
74
|
- Confirm that you have the right to contribute and license the code
|
|
72
75
|
in question. (Either you hold all rights on the code, or the rights
|
|
@@ -86,19 +89,16 @@ By contributing code to ProseMirror you
|
|
|
86
89
|
- Follow the surrounding code when it comes to spacing, brace
|
|
87
90
|
placement, etc.
|
|
88
91
|
|
|
89
|
-
- Brace-less single-statement bodies are encouraged
|
|
90
|
-
don't impact readability
|
|
92
|
+
- Brace-less single-statement bodies are encouraged whenever they
|
|
93
|
+
don't impact readability.
|
|
91
94
|
|
|
92
|
-
- [getdocs](https://
|
|
95
|
+
- [getdocs-ts](https://code.haverbeke.berlin/marijn/getdocs-ts)-style doc comments
|
|
93
96
|
above items that are part of the public API.
|
|
94
97
|
|
|
95
98
|
- When documenting non-public items, you can put the type after a
|
|
96
99
|
single colon, so that getdocs doesn't pick it up and add it to the
|
|
97
100
|
API reference.
|
|
98
101
|
|
|
99
|
-
- The linter (`npm run lint`) complains about unused variables and
|
|
100
|
-
functions. Prefix their names with an underscore to muffle it.
|
|
101
|
-
|
|
102
102
|
- ProseMirror does *not* follow JSHint or JSLint prescribed style.
|
|
103
103
|
Patches that try to 'fix' code to pass one of these linters will not
|
|
104
104
|
be accepted.
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# prosemirror-view
|
|
2
2
|
|
|
3
|
-
[ [**WEBSITE**](https://prosemirror.net) | [**ISSUES**](https://
|
|
3
|
+
[ [**WEBSITE**](https://prosemirror.net) | [**ISSUES**](https://code.haverbeke.berlin/prosemirror/prosemirror/issues) | [**FORUM**](https://discuss.prosemirror.net) | [**CHANGELOG**](https://code.haverbeke.berlin/prosemirror/prosemirror-view/src/branch/main/CHANGELOG.md) ]
|
|
4
4
|
|
|
5
5
|
This is a [core module](https://prosemirror.net/docs/ref/#view) of [ProseMirror](https://prosemirror.net).
|
|
6
6
|
ProseMirror is a well-behaved rich semantic content editor based on
|
|
@@ -16,10 +16,10 @@ number of [examples](https://prosemirror.net/examples/) and the
|
|
|
16
16
|
[documentation](https://prosemirror.net/docs/).
|
|
17
17
|
|
|
18
18
|
This code is released under an
|
|
19
|
-
[MIT license](https://
|
|
19
|
+
[MIT license](https://code.haverbeke.berlin/prosemirror/prosemirror/src/branch/main/LICENSE).
|
|
20
20
|
There's a [forum](http://discuss.prosemirror.net) for general
|
|
21
21
|
discussion and support requests, and the
|
|
22
|
-
[
|
|
22
|
+
[bug tracker](https://code.haverbeke.berlin/prosemirror/prosemirror/issues)
|
|
23
23
|
is the place to report issues.
|
|
24
24
|
|
|
25
25
|
We aim to be an inclusive, welcoming community. To make that explicit,
|