@atlaskit/prosemirror-input-rules 3.6.0 → 3.6.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 +8 -0
- package/dist/cjs/plugin.js +1 -1
- package/dist/es2019/plugin.js +1 -1
- package/dist/esm/plugin.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/prosemirror-input-rules
|
|
2
2
|
|
|
3
|
+
## 3.6.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`483638368fadb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/483638368fadb) -
|
|
8
|
+
[ux] [EDITOR-2675] add test coverage and prevent range selections after inline formatting
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 3.6.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -62,7 +62,7 @@ function createInputRulePlugin(pluginName, rules) {
|
|
|
62
62
|
// else, we set the selection at the end of the inline code which doesn't make sense if we are closing the inline code from R to L
|
|
63
63
|
if (isBackwardMatch && (0, _expValEquals.expValEquals)('platform_editor_lovability_inline_code', 'isEnabled', true)) {
|
|
64
64
|
var prevSelection = oldState.selection.map(tr.doc, tr.mapping);
|
|
65
|
-
tr.setSelection(prevSelection);
|
|
65
|
+
tr.setSelection(new _state.TextSelection(prevSelection.$from));
|
|
66
66
|
}
|
|
67
67
|
return tr;
|
|
68
68
|
},
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -57,7 +57,7 @@ export function createInputRulePlugin(pluginName, rules, options = {}) {
|
|
|
57
57
|
// else, we set the selection at the end of the inline code which doesn't make sense if we are closing the inline code from R to L
|
|
58
58
|
if (isBackwardMatch && expValEquals('platform_editor_lovability_inline_code', 'isEnabled', true)) {
|
|
59
59
|
const prevSelection = oldState.selection.map(tr.doc, tr.mapping);
|
|
60
|
-
tr.setSelection(prevSelection);
|
|
60
|
+
tr.setSelection(new TextSelection(prevSelection.$from));
|
|
61
61
|
}
|
|
62
62
|
return tr;
|
|
63
63
|
},
|
package/dist/esm/plugin.js
CHANGED
|
@@ -56,7 +56,7 @@ export function createInputRulePlugin(pluginName, rules) {
|
|
|
56
56
|
// else, we set the selection at the end of the inline code which doesn't make sense if we are closing the inline code from R to L
|
|
57
57
|
if (isBackwardMatch && expValEquals('platform_editor_lovability_inline_code', 'isEnabled', true)) {
|
|
58
58
|
var prevSelection = oldState.selection.map(tr.doc, tr.mapping);
|
|
59
|
-
tr.setSelection(prevSelection);
|
|
59
|
+
tr.setSelection(new TextSelection(prevSelection.$from));
|
|
60
60
|
}
|
|
61
61
|
return tr;
|
|
62
62
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/prosemirror-input-rules",
|
|
3
|
-
"version": "3.6.
|
|
3
|
+
"version": "3.6.1",
|
|
4
4
|
"description": "A package that contains helpers to create autoformatting rules for ProseMirror",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
31
31
|
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
32
|
-
"@atlaskit/tmp-editor-statsig": "^13.
|
|
32
|
+
"@atlaskit/tmp-editor-statsig": "^13.37.0",
|
|
33
33
|
"@babel/runtime": "^7.0.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@atlaskit/editor-common": "^110.
|
|
36
|
+
"@atlaskit/editor-common": "^110.27.0"
|
|
37
37
|
},
|
|
38
38
|
"techstack": {
|
|
39
39
|
"@atlassian/frontend": {
|