@atlaskit/editor-plugin-text-formatting 1.13.0 → 1.13.2
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,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-text-formatting
|
|
2
2
|
|
|
3
|
+
## 1.13.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 1.13.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#129365](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/129365)
|
|
14
|
+
[`ccb6fdd9283db`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ccb6fdd9283db) -
|
|
15
|
+
remove editor simplify inline cards ff
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 1.13.0
|
|
4
19
|
|
|
5
20
|
### Minor Changes
|
|
@@ -20,7 +20,6 @@ var _analytics = require("@atlaskit/editor-common/analytics");
|
|
|
20
20
|
var _mark = require("@atlaskit/editor-common/mark");
|
|
21
21
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
22
22
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
23
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
24
23
|
var _prosemirrorInputRules = require("@atlaskit/prosemirror-input-rules");
|
|
25
24
|
var _ValidCombinations;
|
|
26
25
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
@@ -96,7 +95,7 @@ function addMark(markType, schema, char) {
|
|
|
96
95
|
return null;
|
|
97
96
|
}
|
|
98
97
|
if (markType.name === 'code') {
|
|
99
|
-
(0,
|
|
98
|
+
(0, _mark.transformNonTextNodesToText)(tr.mapping.map(start), tr.mapping.map(end), tr);
|
|
100
99
|
}
|
|
101
100
|
var mappedStart = tr.mapping.map(start);
|
|
102
101
|
var mappedEnd = tr.mapping.map(end);
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import { transformNonTextNodesToText
|
|
2
|
+
import { transformNonTextNodesToText } from '@atlaskit/editor-common/mark';
|
|
3
3
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
4
|
import { createRule, inputRuleWithAnalytics } from '@atlaskit/editor-common/utils';
|
|
5
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
6
5
|
import { createPlugin, leafNodeReplacementCharacter } from '@atlaskit/prosemirror-input-rules';
|
|
7
6
|
var ValidAutoformatChars = /*#__PURE__*/function (ValidAutoformatChars) {
|
|
8
7
|
ValidAutoformatChars["STRONG"] = "__";
|
|
@@ -84,7 +83,7 @@ function addMark(markType, schema, char) {
|
|
|
84
83
|
return null;
|
|
85
84
|
}
|
|
86
85
|
if (markType.name === 'code') {
|
|
87
|
-
|
|
86
|
+
transformNonTextNodesToText(tr.mapping.map(start), tr.mapping.map(end), tr);
|
|
88
87
|
}
|
|
89
88
|
const mappedStart = tr.mapping.map(start);
|
|
90
89
|
const mappedEnd = tr.mapping.map(end);
|
|
@@ -11,10 +11,9 @@ var _ValidCombinations;
|
|
|
11
11
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
12
12
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
13
13
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
14
|
-
import { transformNonTextNodesToText
|
|
14
|
+
import { transformNonTextNodesToText } from '@atlaskit/editor-common/mark';
|
|
15
15
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
16
16
|
import { createRule, inputRuleWithAnalytics } from '@atlaskit/editor-common/utils';
|
|
17
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
18
17
|
import { createPlugin, leafNodeReplacementCharacter } from '@atlaskit/prosemirror-input-rules';
|
|
19
18
|
var ValidAutoformatChars = /*#__PURE__*/function (ValidAutoformatChars) {
|
|
20
19
|
ValidAutoformatChars["STRONG"] = "__";
|
|
@@ -87,7 +86,7 @@ function addMark(markType, schema, char) {
|
|
|
87
86
|
return null;
|
|
88
87
|
}
|
|
89
88
|
if (markType.name === 'code') {
|
|
90
|
-
|
|
89
|
+
transformNonTextNodesToText(tr.mapping.map(start), tr.mapping.map(end), tr);
|
|
91
90
|
}
|
|
92
91
|
var mappedStart = tr.mapping.map(start);
|
|
93
92
|
var mappedEnd = tr.mapping.map(end);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-formatting",
|
|
3
|
-
"version": "1.13.
|
|
3
|
+
"version": "1.13.2",
|
|
4
4
|
"description": "Text-formatting plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/adf-schema": "^40.8.1",
|
|
36
|
-
"@atlaskit/editor-common": "^
|
|
37
|
-
"@atlaskit/editor-plugin-analytics": "^1.
|
|
36
|
+
"@atlaskit/editor-common": "^88.0.0",
|
|
37
|
+
"@atlaskit/editor-plugin-analytics": "^1.8.0",
|
|
38
38
|
"@atlaskit/editor-plugin-primary-toolbar": "^2.0.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "5.0.1",
|
|
40
40
|
"@atlaskit/editor-shared-styles": "^2.13.0",
|
|
41
41
|
"@atlaskit/editor-tables": "^2.8.0",
|
|
42
|
-
"@atlaskit/icon": "^22.
|
|
42
|
+
"@atlaskit/icon": "^22.14.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
44
44
|
"@atlaskit/prosemirror-input-rules": "^3.2.0",
|
|
45
45
|
"@babel/runtime": "^7.0.0",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@atlaskit/editor-plugin-composition": "^1.2.0",
|
|
54
|
-
"@atlaskit/editor-plugin-decorations": "^1.
|
|
54
|
+
"@atlaskit/editor-plugin-decorations": "^1.3.0",
|
|
55
55
|
"@atlaskit/editor-plugin-feature-flags": "^1.2.0",
|
|
56
56
|
"@testing-library/react": "^12.1.5",
|
|
57
57
|
"typescript": "~5.4.2"
|
|
@@ -90,9 +90,6 @@
|
|
|
90
90
|
}
|
|
91
91
|
},
|
|
92
92
|
"platform-feature-flags": {
|
|
93
|
-
"platform.editor.simplify-inline-cards-in-code-blocks_jw6t1": {
|
|
94
|
-
"type": "boolean"
|
|
95
|
-
},
|
|
96
93
|
"platform_editor_migration_icon_and_typography": {
|
|
97
94
|
"type": "boolean"
|
|
98
95
|
}
|