@atlaskit/editor-core 167.0.0 → 167.0.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 +6 -0
- package/dist/cjs/plugins/insert-block/index.js +1 -1
- package/dist/cjs/plugins/text-formatting/pm-plugins/input-rule.js +1 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/plugins/insert-block/index.js +1 -1
- package/dist/es2019/plugins/text-formatting/pm-plugins/input-rule.js +1 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/plugins/insert-block/index.js +1 -1
- package/dist/esm/plugins/text-formatting/pm-plugins/input-rule.js +1 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/esm/version.json +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @atlaskit/editor-core
|
|
2
2
|
|
|
3
|
+
## 167.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`39937036dc5`](https://bitbucket.org/atlassian/atlassian-frontend/commits/39937036dc5) - [RM-77] Change the tableSupported check for ToolbarInsertBlock to account for forks of the table plugin.
|
|
8
|
+
|
|
3
9
|
## 167.0.0
|
|
4
10
|
|
|
5
11
|
### Major Changes
|
|
@@ -124,7 +124,7 @@ var insertBlockPlugin = function insertBlockPlugin() {
|
|
|
124
124
|
isDisabled: disabled,
|
|
125
125
|
isTypeAheadAllowed: (0, _utils.isTypeAheadAllowed)(editorView.state),
|
|
126
126
|
editorView: editorView,
|
|
127
|
-
tableSupported:
|
|
127
|
+
tableSupported: !!editorView.state.schema.nodes.table,
|
|
128
128
|
actionSupported: !!editorView.state.schema.nodes.taskItem,
|
|
129
129
|
mentionsSupported: !!(mentionState && mentionState.mentionProvider),
|
|
130
130
|
decisionSupported: !!editorView.state.schema.nodes.decisionItem,
|
|
@@ -197,7 +197,7 @@ var buildRegex = function buildRegex(char) {
|
|
|
197
197
|
// Double X - https://regex101.com/r/pQUgjx/1/
|
|
198
198
|
|
|
199
199
|
var baseRegex = '^X(?=[^X\\s]).*?[^\\sX]X(?=[\\sOBJECT_REPLACEMENT_CHARACTER]COMBINATIONS|$)'.replace('OBJECT_REPLACEMENT_CHARACTER', _prosemirrorInputRules.leafNodeReplacementCharacter).replace('COMBINATIONS', combinations ? "|".concat(combinations) : '');
|
|
200
|
-
var replacedRegex =
|
|
200
|
+
var replacedRegex = String.prototype.hasOwnProperty('replaceAll') ? baseRegex.replaceAll('X', escapedChar) : baseRegex.replace(/X/g, escapedChar);
|
|
201
201
|
return new ReverseRegexExp(replacedRegex);
|
|
202
202
|
};
|
|
203
203
|
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.version = exports.nextMajorVersion = exports.name = void 0;
|
|
7
7
|
var name = "@atlaskit/editor-core";
|
|
8
8
|
exports.name = name;
|
|
9
|
-
var version = "167.0.
|
|
9
|
+
var version = "167.0.1";
|
|
10
10
|
exports.version = version;
|
|
11
11
|
|
|
12
12
|
var nextMajorVersion = function nextMajorVersion() {
|
package/dist/cjs/version.json
CHANGED
|
@@ -94,7 +94,7 @@ const insertBlockPlugin = (options = {}) => ({
|
|
|
94
94
|
isDisabled: disabled,
|
|
95
95
|
isTypeAheadAllowed: isTypeAheadAllowed(editorView.state),
|
|
96
96
|
editorView: editorView,
|
|
97
|
-
tableSupported:
|
|
97
|
+
tableSupported: !!editorView.state.schema.nodes.table,
|
|
98
98
|
actionSupported: !!editorView.state.schema.nodes.taskItem,
|
|
99
99
|
mentionsSupported: !!(mentionState && mentionState.mentionProvider),
|
|
100
100
|
decisionSupported: !!editorView.state.schema.nodes.decisionItem,
|
|
@@ -152,7 +152,7 @@ const buildRegex = char => {
|
|
|
152
152
|
// Double X - https://regex101.com/r/pQUgjx/1/
|
|
153
153
|
|
|
154
154
|
const baseRegex = '^X(?=[^X\\s]).*?[^\\sX]X(?=[\\sOBJECT_REPLACEMENT_CHARACTER]COMBINATIONS|$)'.replace('OBJECT_REPLACEMENT_CHARACTER', leafNodeReplacementCharacter).replace('COMBINATIONS', combinations ? `|${combinations}` : '');
|
|
155
|
-
const replacedRegex =
|
|
155
|
+
const replacedRegex = String.prototype.hasOwnProperty('replaceAll') ? baseRegex.replaceAll('X', escapedChar) : baseRegex.replace(/X/g, escapedChar);
|
|
156
156
|
return new ReverseRegexExp(replacedRegex);
|
|
157
157
|
};
|
|
158
158
|
|
package/dist/es2019/version.json
CHANGED
|
@@ -95,7 +95,7 @@ var insertBlockPlugin = function insertBlockPlugin() {
|
|
|
95
95
|
isDisabled: disabled,
|
|
96
96
|
isTypeAheadAllowed: isTypeAheadAllowed(editorView.state),
|
|
97
97
|
editorView: editorView,
|
|
98
|
-
tableSupported:
|
|
98
|
+
tableSupported: !!editorView.state.schema.nodes.table,
|
|
99
99
|
actionSupported: !!editorView.state.schema.nodes.taskItem,
|
|
100
100
|
mentionsSupported: !!(mentionState && mentionState.mentionProvider),
|
|
101
101
|
decisionSupported: !!editorView.state.schema.nodes.decisionItem,
|
|
@@ -175,7 +175,7 @@ var buildRegex = function buildRegex(char) {
|
|
|
175
175
|
// Double X - https://regex101.com/r/pQUgjx/1/
|
|
176
176
|
|
|
177
177
|
var baseRegex = '^X(?=[^X\\s]).*?[^\\sX]X(?=[\\sOBJECT_REPLACEMENT_CHARACTER]COMBINATIONS|$)'.replace('OBJECT_REPLACEMENT_CHARACTER', leafNodeReplacementCharacter).replace('COMBINATIONS', combinations ? "|".concat(combinations) : '');
|
|
178
|
-
var replacedRegex =
|
|
178
|
+
var replacedRegex = String.prototype.hasOwnProperty('replaceAll') ? baseRegex.replaceAll('X', escapedChar) : baseRegex.replace(/X/g, escapedChar);
|
|
179
179
|
return new ReverseRegexExp(replacedRegex);
|
|
180
180
|
};
|
|
181
181
|
|
package/dist/esm/version.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-core",
|
|
3
|
-
"version": "167.0.
|
|
3
|
+
"version": "167.0.1",
|
|
4
4
|
"description": "A package contains Atlassian editor core functionality",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
"@atlaskit/atlassian-navigation": "^2.2.0",
|
|
139
139
|
"@atlaskit/breadcrumbs": "11.6.1",
|
|
140
140
|
"@atlaskit/code": "^14.3.0",
|
|
141
|
-
"@atlaskit/collab-provider": "7.4.
|
|
141
|
+
"@atlaskit/collab-provider": "7.4.2",
|
|
142
142
|
"@atlaskit/docs": "*",
|
|
143
143
|
"@atlaskit/drawer": "^7.1.0",
|
|
144
144
|
"@atlaskit/dropdown-menu": "^11.2.0",
|
|
@@ -153,7 +153,7 @@
|
|
|
153
153
|
"@atlaskit/media-test-helpers": "^30.0.0",
|
|
154
154
|
"@atlaskit/menu": "^1.3.0",
|
|
155
155
|
"@atlaskit/page-layout": "^1.2.0",
|
|
156
|
-
"@atlaskit/profilecard": "^16.
|
|
156
|
+
"@atlaskit/profilecard": "^16.5.0",
|
|
157
157
|
"@atlaskit/pubsub": "^6.0.0",
|
|
158
158
|
"@atlaskit/renderer": "^96.0.0",
|
|
159
159
|
"@atlaskit/section-message": "^6.1.0",
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
"@atlaskit/textarea": "^4.3.0",
|
|
165
165
|
"@atlaskit/toggle": "^12.4.0",
|
|
166
166
|
"@atlaskit/ufo": "^0.1.0",
|
|
167
|
-
"@atlaskit/util-data-test": "^17.
|
|
167
|
+
"@atlaskit/util-data-test": "^17.3.0",
|
|
168
168
|
"@atlaskit/visual-regression": "*",
|
|
169
169
|
"@atlaskit/webdriver-runner": "*",
|
|
170
170
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|