@atlaskit/prosemirror-input-rules 3.4.2 → 3.5.0
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 +11 -0
- package/dist/cjs/utils.js +2 -2
- package/dist/es2019/utils.js +1 -1
- package/dist/esm/utils.js +1 -1
- package/package.json +3 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @atlaskit/prosemirror-input-rules
|
|
2
2
|
|
|
3
|
+
## 3.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`0ac75e0d28c72`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0ac75e0d28c72) -
|
|
8
|
+
Migrate @atlaskit/editor-prosemirror/history to @atlaskit/prosemirror-history package
|
|
9
|
+
|
|
10
|
+
### Patch Changes
|
|
11
|
+
|
|
12
|
+
- Updated dependencies
|
|
13
|
+
|
|
3
14
|
## 3.4.2
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
package/dist/cjs/utils.js
CHANGED
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.createPlugin = void 0;
|
|
7
|
-
var _history = require("@atlaskit/editor-prosemirror/history");
|
|
8
7
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
8
|
+
var _prosemirrorHistory = require("@atlaskit/prosemirror-history");
|
|
9
9
|
var _editorCommon = require("./editor-common");
|
|
10
10
|
var _plugin = require("./plugin");
|
|
11
11
|
var hasUnsupportedMarks = function hasUnsupportedMarks(state, start, end, marksNameUnsupported) {
|
|
@@ -53,7 +53,7 @@ var createPlugin = exports.createPlugin = function createPlugin(pluginName, rule
|
|
|
53
53
|
allowInsertTextOnDocument: allowInsertTextOnDocument,
|
|
54
54
|
onInputEvent: onInputEvent,
|
|
55
55
|
onBeforeRegexMatch: function onBeforeRegexMatch(tr) {
|
|
56
|
-
(0,
|
|
56
|
+
(0, _prosemirrorHistory.closeHistory)(tr);
|
|
57
57
|
},
|
|
58
58
|
checkOnBlur: checkOnBlur,
|
|
59
59
|
appendTextOnBlur: appendTextOnBlur
|
package/dist/es2019/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { closeHistory } from '@atlaskit/editor-prosemirror/history';
|
|
2
1
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
+
import { closeHistory } from '@atlaskit/prosemirror-history';
|
|
3
3
|
import { isGapCursorSelection } from './editor-common';
|
|
4
4
|
import { createInputRulePlugin } from './plugin';
|
|
5
5
|
const hasUnsupportedMarks = (state, start, end, marksNameUnsupported) => {
|
package/dist/esm/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { closeHistory } from '@atlaskit/editor-prosemirror/history';
|
|
2
1
|
import { NodeSelection, TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
+
import { closeHistory } from '@atlaskit/prosemirror-history';
|
|
3
3
|
import { isGapCursorSelection } from './editor-common';
|
|
4
4
|
import { createInputRulePlugin } from './plugin';
|
|
5
5
|
var hasUnsupportedMarks = function hasUnsupportedMarks(state, start, end, marksNameUnsupported) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/prosemirror-input-rules",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "A package that contains helpers to create autoformatting rules for ProseMirror",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -28,10 +28,11 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
31
|
+
"@atlaskit/prosemirror-history": "^0.2.0",
|
|
31
32
|
"@babel/runtime": "^7.0.0"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
34
|
-
"@atlaskit/editor-common": "^
|
|
35
|
+
"@atlaskit/editor-common": "^110.10.0"
|
|
35
36
|
},
|
|
36
37
|
"techstack": {
|
|
37
38
|
"@atlassian/frontend": {
|
|
@@ -46,8 +47,5 @@
|
|
|
46
47
|
"emotion"
|
|
47
48
|
]
|
|
48
49
|
}
|
|
49
|
-
},
|
|
50
|
-
"af:exports": {
|
|
51
|
-
".": "./src/index.ts"
|
|
52
50
|
}
|
|
53
51
|
}
|