@atlaskit/prosemirror-input-rules 3.2.3 → 3.3.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 +8 -0
- package/afm-post-office/tsconfig.json +20 -0
- package/package.json +3 -3
- package/src/__tests__/unit/handler.ts +4 -0
- package/src/__tests__/unit/plugin.ts +4 -0
- package/tsconfig.app.json +0 -1
- package/tsconfig.dev.json +0 -1
- package/tsconfig.json +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/prosemirror-input-rules
|
|
2
2
|
|
|
3
|
+
## 3.3.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#105322](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/105322)
|
|
8
|
+
[`8876083532adc`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8876083532adc) -
|
|
9
|
+
Bumped editor-prosemirror version to 7.0.0
|
|
10
|
+
|
|
3
11
|
## 3.2.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.entry-points.post-office.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": true,
|
|
5
|
+
"target": "es5",
|
|
6
|
+
"outDir": "../../../../../post-office/tsDist/@atlaskit__prosemirror-input-rules/app",
|
|
7
|
+
"rootDir": "../",
|
|
8
|
+
"composite": true
|
|
9
|
+
},
|
|
10
|
+
"include": [
|
|
11
|
+
"../src/**/*.ts",
|
|
12
|
+
"../src/**/*.tsx"
|
|
13
|
+
],
|
|
14
|
+
"exclude": [
|
|
15
|
+
"../src/**/__tests__/*",
|
|
16
|
+
"../src/**/*.test.*",
|
|
17
|
+
"../src/**/test.*"
|
|
18
|
+
],
|
|
19
|
+
"references": []
|
|
20
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/prosemirror-input-rules",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.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/"
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"singleton": true
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@atlaskit/editor-prosemirror": "
|
|
30
|
+
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
31
31
|
"@babel/runtime": "^7.0.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@atlaskit/editor-common": "^
|
|
34
|
+
"@atlaskit/editor-common": "^99.10.0"
|
|
35
35
|
},
|
|
36
36
|
"techstack": {
|
|
37
37
|
"@atlassian/frontend": {
|
|
@@ -41,6 +41,8 @@ describe('input-tule/handles/createInputEventHandler', () => {
|
|
|
41
41
|
});
|
|
42
42
|
|
|
43
43
|
RULE_BEFORE = {
|
|
44
|
+
// Ignored via go/ees005
|
|
45
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
44
46
|
match: /^(before).*/,
|
|
45
47
|
handler: ruleHandlerMock,
|
|
46
48
|
};
|
|
@@ -92,6 +94,8 @@ describe('input-tule/handles/createInputEventHandler', () => {
|
|
|
92
94
|
let inputHandleResult: boolean;
|
|
93
95
|
beforeEach(() => {
|
|
94
96
|
const RULE_AFTER = {
|
|
97
|
+
// Ignored via go/ees005
|
|
98
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
95
99
|
match: /^(after).*/,
|
|
96
100
|
handler: jest.fn().mockImplementation((state) => {
|
|
97
101
|
return state.tr;
|
|
@@ -40,6 +40,8 @@ describe('input-tule/plugin/createInputRulePlugin', () => {
|
|
|
40
40
|
return state.tr;
|
|
41
41
|
});
|
|
42
42
|
|
|
43
|
+
// Ignored via go/ees005
|
|
44
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
43
45
|
const INLINE_CODE_REGEX = /(\S*)(`[^\s][^`]*`)$/;
|
|
44
46
|
const myCustomInputRule = new SafePlugin(
|
|
45
47
|
createInputRulePlugin(
|
|
@@ -106,6 +108,8 @@ describe('input-tule/plugin/createInputRulePlugin', () => {
|
|
|
106
108
|
return state.tr;
|
|
107
109
|
});
|
|
108
110
|
|
|
111
|
+
// Ignored via go/ees005
|
|
112
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
109
113
|
const CODE_BLOCK_REGEX = /(?!\s)(`{3,})/;
|
|
110
114
|
const myCustomInputRule = new SafePlugin(
|
|
111
115
|
createInputRulePlugin(
|
package/tsconfig.app.json
CHANGED
package/tsconfig.dev.json
CHANGED