@atlaskit/editor-plugin-block-type 16.1.3 → 16.1.5
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
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-type
|
|
2
2
|
|
|
3
|
+
## 16.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`73743eb8b36e6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/73743eb8b36e6) -
|
|
8
|
+
CLeanup prefer static regex violations
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 16.1.4
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 16.1.3
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -13,6 +13,10 @@ var _utils = require("@atlaskit/editor-common/utils");
|
|
|
13
13
|
var _prosemirrorInputRules = require("@atlaskit/prosemirror-input-rules");
|
|
14
14
|
var _utils2 = require("./utils");
|
|
15
15
|
var MAX_HEADING_LEVEL = 6;
|
|
16
|
+
|
|
17
|
+
// Ignored via go/ees005
|
|
18
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
19
|
+
var BLOCK_QUOTE_REGEX = /^\s*>\s$/;
|
|
16
20
|
function getHeadingLevel(match) {
|
|
17
21
|
return {
|
|
18
22
|
level: match[1].length
|
|
@@ -28,9 +32,7 @@ function headingRule(nodeType, maxLevel) {
|
|
|
28
32
|
});
|
|
29
33
|
}
|
|
30
34
|
function blockQuoteRule(nodeType) {
|
|
31
|
-
|
|
32
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
33
|
-
return (0, _utils2.createJoinNodesRule)(/^\s*>\s$/, nodeType);
|
|
35
|
+
return (0, _utils2.createJoinNodesRule)(BLOCK_QUOTE_REGEX, nodeType);
|
|
34
36
|
}
|
|
35
37
|
|
|
36
38
|
/**
|
|
@@ -5,6 +5,10 @@ import { createRule, inputRuleWithAnalytics } from '@atlaskit/editor-common/util
|
|
|
5
5
|
import { createPlugin, leafNodeReplacementCharacter } from '@atlaskit/prosemirror-input-rules';
|
|
6
6
|
import { createJoinNodesRule, createWrappingTextBlockRule } from './utils';
|
|
7
7
|
const MAX_HEADING_LEVEL = 6;
|
|
8
|
+
|
|
9
|
+
// Ignored via go/ees005
|
|
10
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
11
|
+
const BLOCK_QUOTE_REGEX = /^\s*>\s$/;
|
|
8
12
|
function getHeadingLevel(match) {
|
|
9
13
|
return {
|
|
10
14
|
level: match[1].length
|
|
@@ -20,9 +24,7 @@ function headingRule(nodeType, maxLevel) {
|
|
|
20
24
|
});
|
|
21
25
|
}
|
|
22
26
|
function blockQuoteRule(nodeType) {
|
|
23
|
-
|
|
24
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
25
|
-
return createJoinNodesRule(/^\s*>\s$/, nodeType);
|
|
27
|
+
return createJoinNodesRule(BLOCK_QUOTE_REGEX, nodeType);
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
/**
|
|
@@ -6,6 +6,10 @@ import { createRule, inputRuleWithAnalytics } from '@atlaskit/editor-common/util
|
|
|
6
6
|
import { createPlugin, leafNodeReplacementCharacter } from '@atlaskit/prosemirror-input-rules';
|
|
7
7
|
import { createJoinNodesRule, createWrappingTextBlockRule } from './utils';
|
|
8
8
|
var MAX_HEADING_LEVEL = 6;
|
|
9
|
+
|
|
10
|
+
// Ignored via go/ees005
|
|
11
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
12
|
+
var BLOCK_QUOTE_REGEX = /^\s*>\s$/;
|
|
9
13
|
function getHeadingLevel(match) {
|
|
10
14
|
return {
|
|
11
15
|
level: match[1].length
|
|
@@ -21,9 +25,7 @@ function headingRule(nodeType, maxLevel) {
|
|
|
21
25
|
});
|
|
22
26
|
}
|
|
23
27
|
function blockQuoteRule(nodeType) {
|
|
24
|
-
|
|
25
|
-
// eslint-disable-next-line require-unicode-regexp
|
|
26
|
-
return createJoinNodesRule(/^\s*>\s$/, nodeType);
|
|
28
|
+
return createJoinNodesRule(BLOCK_QUOTE_REGEX, nodeType);
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-type",
|
|
3
|
-
"version": "16.1.
|
|
3
|
+
"version": "16.1.5",
|
|
4
4
|
"description": "BlockType plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,22 +34,22 @@
|
|
|
34
34
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
35
35
|
"@atlaskit/editor-shared-styles": "^4.0.0",
|
|
36
36
|
"@atlaskit/editor-tables": "^3.0.0",
|
|
37
|
-
"@atlaskit/editor-toolbar": "^2.
|
|
38
|
-
"@atlaskit/editor-toolbar-model": "^1.
|
|
39
|
-
"@atlaskit/icon": "^36.
|
|
40
|
-
"@atlaskit/icon-lab": "^7.
|
|
37
|
+
"@atlaskit/editor-toolbar": "^2.1.0",
|
|
38
|
+
"@atlaskit/editor-toolbar-model": "^1.1.0",
|
|
39
|
+
"@atlaskit/icon": "^36.1.0",
|
|
40
|
+
"@atlaskit/icon-lab": "^7.2.0",
|
|
41
41
|
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
42
|
-
"@atlaskit/primitives": "^20.
|
|
42
|
+
"@atlaskit/primitives": "^20.2.0",
|
|
43
43
|
"@atlaskit/prosemirror-history": "^1.0.0",
|
|
44
44
|
"@atlaskit/prosemirror-input-rules": "^4.0.0",
|
|
45
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
46
|
-
"@atlaskit/tokens": "^15.
|
|
45
|
+
"@atlaskit/tmp-editor-statsig": "^114.5.0",
|
|
46
|
+
"@atlaskit/tokens": "^15.2.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"@compiled/react": "^0.20.0",
|
|
49
49
|
"@emotion/react": "^11.7.1"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
|
-
"@atlaskit/editor-common": "^116.
|
|
52
|
+
"@atlaskit/editor-common": "^116.17.0",
|
|
53
53
|
"react": "^18.2.0",
|
|
54
54
|
"react-dom": "^18.2.0",
|
|
55
55
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|