@atlaskit/editor-plugin-text-formatting 6.1.14 → 6.1.16
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 +14 -0
- package/dist/cjs/editor-commands/utils/marks.js +2 -6
- package/dist/cjs/pm-plugins/input-rule.js +2 -8
- package/dist/cjs/ui/Toolbar/dropdown-toolbar-button.js +2 -2
- package/dist/cjs/ui/Toolbar/hooks/formatting-icons.js +8 -8
- package/dist/cjs/ui/Toolbar/more-button.js +2 -2
- package/dist/es2019/editor-commands/utils/marks.js +3 -7
- package/dist/es2019/pm-plugins/input-rule.js +2 -8
- package/dist/es2019/ui/Toolbar/dropdown-toolbar-button.js +1 -1
- package/dist/es2019/ui/Toolbar/hooks/formatting-icons.js +3 -3
- package/dist/es2019/ui/Toolbar/more-button.js +1 -1
- package/dist/esm/editor-commands/utils/marks.js +3 -7
- package/dist/esm/pm-plugins/input-rule.js +2 -8
- package/dist/esm/ui/Toolbar/dropdown-toolbar-button.js +1 -1
- package/dist/esm/ui/Toolbar/hooks/formatting-icons.js +3 -3
- package/dist/esm/ui/Toolbar/more-button.js +1 -1
- package/package.json +8 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-text-formatting
|
|
2
2
|
|
|
3
|
+
## 6.1.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`90abe9b926a6f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/90abe9b926a6f) -
|
|
8
|
+
Icon entrypoint migration
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 6.1.15
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 6.1.14
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -76,12 +76,8 @@ var nextApplyMarkOnRange = exports.nextApplyMarkOnRange = function nextApplyMark
|
|
|
76
76
|
var schema = tr.doc.type.schema;
|
|
77
77
|
var code = schema.marks.code;
|
|
78
78
|
if (mark.type === code) {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
api === null || api === void 0 || (_api$base = api.base) === null || _api$base === void 0 || _api$base.actions.resolveMarks(from, to, tr);
|
|
82
|
-
} else {
|
|
83
|
-
(0, _mark.transformNonTextNodesToText)(from, to, tr);
|
|
84
|
-
}
|
|
79
|
+
var _api$base;
|
|
80
|
+
api === null || api === void 0 || (_api$base = api.base) === null || _api$base === void 0 || (_api$base = _api$base.actions) === null || _api$base === void 0 || _api$base.resolveMarks(from, to, tr);
|
|
85
81
|
}
|
|
86
82
|
|
|
87
83
|
/**
|
|
@@ -17,10 +17,8 @@ var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits
|
|
|
17
17
|
var _wrapNativeSuper2 = _interopRequireDefault(require("@babel/runtime/helpers/wrapNativeSuper"));
|
|
18
18
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
19
19
|
var _analytics = require("@atlaskit/editor-common/analytics");
|
|
20
|
-
var _mark = require("@atlaskit/editor-common/mark");
|
|
21
20
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
22
21
|
var _utils = require("@atlaskit/editor-common/utils");
|
|
23
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
24
22
|
var _prosemirrorInputRules = require("@atlaskit/prosemirror-input-rules");
|
|
25
23
|
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
26
24
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
@@ -104,12 +102,8 @@ function addMark(markType, _schema, char, api) {
|
|
|
104
102
|
return null;
|
|
105
103
|
}
|
|
106
104
|
if (markType.name === 'code') {
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
api === null || api === void 0 || (_api$base = api.base) === null || _api$base === void 0 || (_api$base = _api$base.actions) === null || _api$base === void 0 || _api$base.resolveMarks(tr.mapping.map(start), tr.mapping.map(end), tr);
|
|
110
|
-
} else {
|
|
111
|
-
(0, _mark.transformNonTextNodesToText)(tr.mapping.map(start), tr.mapping.map(end), tr);
|
|
112
|
-
}
|
|
105
|
+
var _api$base;
|
|
106
|
+
api === null || api === void 0 || (_api$base = api.base) === null || _api$base === void 0 || (_api$base = _api$base.actions) === null || _api$base === void 0 || _api$base.resolveMarks(tr.mapping.map(start), tr.mapping.map(end), tr);
|
|
113
107
|
}
|
|
114
108
|
var mappedStart = tr.mapping.map(start);
|
|
115
109
|
var mappedEnd = tr.mapping.map(end);
|
|
@@ -10,7 +10,7 @@ var _react2 = require("@emotion/react");
|
|
|
10
10
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
11
11
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
12
12
|
var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/core/migration/chevron-down"));
|
|
13
|
-
var
|
|
13
|
+
var _textItalic = _interopRequireDefault(require("@atlaskit/icon/core/text-italic"));
|
|
14
14
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
15
|
var _types = require("./types");
|
|
16
16
|
/**
|
|
@@ -53,7 +53,7 @@ var DropdownToolbarButton = exports.DropdownToolbarButton = function DropdownToo
|
|
|
53
53
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
54
54
|
_styles.triggerWrapperStyles,
|
|
55
55
|
"data-testid": activeIconName ? "editor-toolbar__".concat(activeIconName) : undefined
|
|
56
|
-
}, iconBefore ? iconBefore : (0, _react2.jsx)(
|
|
56
|
+
}, iconBefore ? iconBefore : (0, _react2.jsx)(_textItalic.default, {
|
|
57
57
|
color: "currentColor",
|
|
58
58
|
spacing: "spacious",
|
|
59
59
|
label: ""
|
|
@@ -13,9 +13,9 @@ var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
|
13
13
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
14
14
|
var _preset = require("@atlaskit/editor-common/preset");
|
|
15
15
|
var _shortcut = require("@atlaskit/editor-shared-styles/shortcut");
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var
|
|
16
|
+
var _angleBrackets = _interopRequireDefault(require("@atlaskit/icon/core/angle-brackets"));
|
|
17
|
+
var _textBold = _interopRequireDefault(require("@atlaskit/icon/core/text-bold"));
|
|
18
|
+
var _textItalic = _interopRequireDefault(require("@atlaskit/icon/core/text-italic"));
|
|
19
19
|
var _textStrikethrough = _interopRequireDefault(require("@atlaskit/icon/core/text-strikethrough"));
|
|
20
20
|
var _textUnderline = _interopRequireDefault(require("@atlaskit/icon/core/text-underline"));
|
|
21
21
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
@@ -41,7 +41,7 @@ var IconButtons = function IconButtons(editorAnalyticsAPI, toolbarType) {
|
|
|
41
41
|
message: _messages.toolbarMessages.bold,
|
|
42
42
|
tooltipKeymap: _keymaps.toggleBold,
|
|
43
43
|
component: function component() {
|
|
44
|
-
return (0, _react2.jsx)(
|
|
44
|
+
return (0, _react2.jsx)(_textBold.default, {
|
|
45
45
|
color: "currentColor",
|
|
46
46
|
spacing: "spacious",
|
|
47
47
|
label: ""
|
|
@@ -54,7 +54,7 @@ var IconButtons = function IconButtons(editorAnalyticsAPI, toolbarType) {
|
|
|
54
54
|
message: _messages.toolbarMessages.italic,
|
|
55
55
|
tooltipKeymap: _keymaps.toggleItalic,
|
|
56
56
|
component: function component() {
|
|
57
|
-
return (0, _react2.jsx)(
|
|
57
|
+
return (0, _react2.jsx)(_textItalic.default, {
|
|
58
58
|
color: "currentColor",
|
|
59
59
|
spacing: "spacious",
|
|
60
60
|
label: ""
|
|
@@ -98,14 +98,14 @@ var IconButtons = function IconButtons(editorAnalyticsAPI, toolbarType) {
|
|
|
98
98
|
};
|
|
99
99
|
var IconBefore = {
|
|
100
100
|
strong: {
|
|
101
|
-
icon: (0, _react2.jsx)(
|
|
101
|
+
icon: (0, _react2.jsx)(_textBold.default, {
|
|
102
102
|
color: "currentColor",
|
|
103
103
|
spacing: "spacious",
|
|
104
104
|
label: ""
|
|
105
105
|
})
|
|
106
106
|
},
|
|
107
107
|
em: {
|
|
108
|
-
icon: (0, _react2.jsx)(
|
|
108
|
+
icon: (0, _react2.jsx)(_textItalic.default, {
|
|
109
109
|
color: "currentColor",
|
|
110
110
|
spacing: "spacious",
|
|
111
111
|
label: ""
|
|
@@ -124,7 +124,7 @@ var IconBefore = {
|
|
|
124
124
|
})
|
|
125
125
|
},
|
|
126
126
|
code: {
|
|
127
|
-
icon: (0, _react2.jsx)(
|
|
127
|
+
icon: (0, _react2.jsx)(_angleBrackets.default, {
|
|
128
128
|
color: "currentColor",
|
|
129
129
|
spacing: "spacious",
|
|
130
130
|
label: ""
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var _react2 = require("@emotion/react");
|
|
10
10
|
var _styles = require("@atlaskit/editor-common/styles");
|
|
11
11
|
var _uiMenu = require("@atlaskit/editor-common/ui-menu");
|
|
12
|
-
var
|
|
12
|
+
var _showMoreHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/show-more-horizontal"));
|
|
13
13
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
14
14
|
/**
|
|
15
15
|
* @jsxRuntime classic
|
|
@@ -42,7 +42,7 @@ var MoreButton = exports.MoreButton = /*#__PURE__*/_react.default.memo(function
|
|
|
42
42
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
43
43
|
(0, _react2.jsx)("div", {
|
|
44
44
|
css: (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? MoreIconStyle : _styles.triggerWrapperStyles
|
|
45
|
-
}, (0, _react2.jsx)(
|
|
45
|
+
}, (0, _react2.jsx)(_showMoreHorizontal.default, {
|
|
46
46
|
label: "",
|
|
47
47
|
color: "currentColor",
|
|
48
48
|
spacing: "spacious",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { entireSelectionContainsMark
|
|
1
|
+
import { entireSelectionContainsMark } from '@atlaskit/editor-common/mark';
|
|
2
2
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
4
4
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -73,12 +73,8 @@ export const nextApplyMarkOnRange = (from, to, removeMark, mark, tr, api) => {
|
|
|
73
73
|
code
|
|
74
74
|
} = schema.marks;
|
|
75
75
|
if (mark.type === code) {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
api === null || api === void 0 ? void 0 : (_api$base = api.base) === null || _api$base === void 0 ? void 0 : _api$base.actions.resolveMarks(from, to, tr);
|
|
79
|
-
} else {
|
|
80
|
-
transformNonTextNodesToText(from, to, tr);
|
|
81
|
-
}
|
|
76
|
+
var _api$base, _api$base$actions;
|
|
77
|
+
api === null || api === void 0 ? void 0 : (_api$base = api.base) === null || _api$base === void 0 ? void 0 : (_api$base$actions = _api$base.actions) === null || _api$base$actions === void 0 ? void 0 : _api$base$actions.resolveMarks(from, to, tr);
|
|
82
78
|
}
|
|
83
79
|
|
|
84
80
|
/**
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import { transformNonTextNodesToText } from '@atlaskit/editor-common/mark';
|
|
3
2
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
4
3
|
import { createRule, inputRuleWithAnalytics } from '@atlaskit/editor-common/utils';
|
|
5
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
4
|
import { createPlugin, leafNodeReplacementCharacter } from '@atlaskit/prosemirror-input-rules';
|
|
7
5
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
8
6
|
var ValidAutoformatChars = /*#__PURE__*/function (ValidAutoformatChars) {
|
|
@@ -92,12 +90,8 @@ function addMark(markType, _schema, char, api) {
|
|
|
92
90
|
return null;
|
|
93
91
|
}
|
|
94
92
|
if (markType.name === 'code') {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
api === null || api === void 0 ? void 0 : (_api$base = api.base) === null || _api$base === void 0 ? void 0 : (_api$base$actions = _api$base.actions) === null || _api$base$actions === void 0 ? void 0 : _api$base$actions.resolveMarks(tr.mapping.map(start), tr.mapping.map(end), tr);
|
|
98
|
-
} else {
|
|
99
|
-
transformNonTextNodesToText(tr.mapping.map(start), tr.mapping.map(end), tr);
|
|
100
|
-
}
|
|
93
|
+
var _api$base, _api$base$actions;
|
|
94
|
+
api === null || api === void 0 ? void 0 : (_api$base = api.base) === null || _api$base === void 0 ? void 0 : (_api$base$actions = _api$base.actions) === null || _api$base$actions === void 0 ? void 0 : _api$base$actions.resolveMarks(tr.mapping.map(start), tr.mapping.map(end), tr);
|
|
101
95
|
}
|
|
102
96
|
const mappedStart = tr.mapping.map(start);
|
|
103
97
|
const mappedEnd = tr.mapping.map(end);
|
|
@@ -9,7 +9,7 @@ import { jsx } from '@emotion/react';
|
|
|
9
9
|
import { expandIconContainerStyle, triggerWrapperStyles, triggerWrapperStylesWithPadding, disableBlueBorderStyles } from '@atlaskit/editor-common/styles';
|
|
10
10
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
11
11
|
import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down';
|
|
12
|
-
import ItalicIcon from '@atlaskit/icon/core/
|
|
12
|
+
import ItalicIcon from '@atlaskit/icon/core/text-italic';
|
|
13
13
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
14
|
import { ToolbarType } from './types';
|
|
15
15
|
export const DropdownToolbarButton = ({
|
|
@@ -11,9 +11,9 @@ import { getAriaKeyshortcuts, toggleBold, toggleCode, toggleItalic, toggleStrike
|
|
|
11
11
|
import { toolbarMessages } from '@atlaskit/editor-common/messages';
|
|
12
12
|
import { editorCommandToPMCommand } from '@atlaskit/editor-common/preset';
|
|
13
13
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
14
|
-
import AngleBracketsIcon from '@atlaskit/icon/core/
|
|
15
|
-
import BoldIcon from '@atlaskit/icon/core/
|
|
16
|
-
import ItalicIcon from '@atlaskit/icon/core/
|
|
14
|
+
import AngleBracketsIcon from '@atlaskit/icon/core/angle-brackets';
|
|
15
|
+
import BoldIcon from '@atlaskit/icon/core/text-bold';
|
|
16
|
+
import ItalicIcon from '@atlaskit/icon/core/text-italic';
|
|
17
17
|
import TextStrikethroughIcon from '@atlaskit/icon/core/text-strikethrough';
|
|
18
18
|
import UnderlineIcon from '@atlaskit/icon/core/text-underline';
|
|
19
19
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
@@ -8,7 +8,7 @@ import React from 'react';
|
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { triggerWrapperStyles } from '@atlaskit/editor-common/styles';
|
|
10
10
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
11
|
-
import ShowMoreHorizontalIcon from '@atlaskit/icon/core/
|
|
11
|
+
import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
12
12
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
13
|
const MoreIconStyle = css({
|
|
14
14
|
display: 'flex',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { entireSelectionContainsMark
|
|
1
|
+
import { entireSelectionContainsMark } from '@atlaskit/editor-common/mark';
|
|
2
2
|
import { TextSelection } from '@atlaskit/editor-prosemirror/state';
|
|
3
3
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
4
4
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
@@ -70,12 +70,8 @@ export var nextApplyMarkOnRange = function nextApplyMarkOnRange(from, to, remove
|
|
|
70
70
|
var schema = tr.doc.type.schema;
|
|
71
71
|
var code = schema.marks.code;
|
|
72
72
|
if (mark.type === code) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
api === null || api === void 0 || (_api$base = api.base) === null || _api$base === void 0 || _api$base.actions.resolveMarks(from, to, tr);
|
|
76
|
-
} else {
|
|
77
|
-
transformNonTextNodesToText(from, to, tr);
|
|
78
|
-
}
|
|
73
|
+
var _api$base;
|
|
74
|
+
api === null || api === void 0 || (_api$base = api.base) === null || _api$base === void 0 || (_api$base = _api$base.actions) === null || _api$base === void 0 || _api$base.resolveMarks(from, to, tr);
|
|
79
75
|
}
|
|
80
76
|
|
|
81
77
|
/**
|
|
@@ -11,10 +11,8 @@ function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstruct
|
|
|
11
11
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
12
12
|
function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
|
|
13
13
|
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
14
|
-
import { transformNonTextNodesToText } from '@atlaskit/editor-common/mark';
|
|
15
14
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
16
15
|
import { createRule, inputRuleWithAnalytics } from '@atlaskit/editor-common/utils';
|
|
17
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
18
16
|
import { createPlugin, leafNodeReplacementCharacter } from '@atlaskit/prosemirror-input-rules';
|
|
19
17
|
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
20
18
|
var ValidAutoformatChars = /*#__PURE__*/function (ValidAutoformatChars) {
|
|
@@ -95,12 +93,8 @@ function addMark(markType, _schema, char, api) {
|
|
|
95
93
|
return null;
|
|
96
94
|
}
|
|
97
95
|
if (markType.name === 'code') {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
api === null || api === void 0 || (_api$base = api.base) === null || _api$base === void 0 || (_api$base = _api$base.actions) === null || _api$base === void 0 || _api$base.resolveMarks(tr.mapping.map(start), tr.mapping.map(end), tr);
|
|
101
|
-
} else {
|
|
102
|
-
transformNonTextNodesToText(tr.mapping.map(start), tr.mapping.map(end), tr);
|
|
103
|
-
}
|
|
96
|
+
var _api$base;
|
|
97
|
+
api === null || api === void 0 || (_api$base = api.base) === null || _api$base === void 0 || (_api$base = _api$base.actions) === null || _api$base === void 0 || _api$base.resolveMarks(tr.mapping.map(start), tr.mapping.map(end), tr);
|
|
104
98
|
}
|
|
105
99
|
var mappedStart = tr.mapping.map(start);
|
|
106
100
|
var mappedEnd = tr.mapping.map(end);
|
|
@@ -9,7 +9,7 @@ import { jsx } from '@emotion/react';
|
|
|
9
9
|
import { expandIconContainerStyle, triggerWrapperStyles, triggerWrapperStylesWithPadding, disableBlueBorderStyles } from '@atlaskit/editor-common/styles';
|
|
10
10
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
11
11
|
import ChevronDownIcon from '@atlaskit/icon/core/migration/chevron-down';
|
|
12
|
-
import ItalicIcon from '@atlaskit/icon/core/
|
|
12
|
+
import ItalicIcon from '@atlaskit/icon/core/text-italic';
|
|
13
13
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
14
14
|
import { ToolbarType } from './types';
|
|
15
15
|
export var DropdownToolbarButton = function DropdownToolbarButton(_ref) {
|
|
@@ -12,9 +12,9 @@ import { getAriaKeyshortcuts, toggleBold, toggleCode, toggleItalic, toggleStrike
|
|
|
12
12
|
import { toolbarMessages } from '@atlaskit/editor-common/messages';
|
|
13
13
|
import { editorCommandToPMCommand } from '@atlaskit/editor-common/preset';
|
|
14
14
|
import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
|
|
15
|
-
import AngleBracketsIcon from '@atlaskit/icon/core/
|
|
16
|
-
import BoldIcon from '@atlaskit/icon/core/
|
|
17
|
-
import ItalicIcon from '@atlaskit/icon/core/
|
|
15
|
+
import AngleBracketsIcon from '@atlaskit/icon/core/angle-brackets';
|
|
16
|
+
import BoldIcon from '@atlaskit/icon/core/text-bold';
|
|
17
|
+
import ItalicIcon from '@atlaskit/icon/core/text-italic';
|
|
18
18
|
import TextStrikethroughIcon from '@atlaskit/icon/core/text-strikethrough';
|
|
19
19
|
import UnderlineIcon from '@atlaskit/icon/core/text-underline';
|
|
20
20
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
@@ -8,7 +8,7 @@ import React from 'react';
|
|
|
8
8
|
import { css, jsx } from '@emotion/react';
|
|
9
9
|
import { triggerWrapperStyles } from '@atlaskit/editor-common/styles';
|
|
10
10
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
11
|
-
import ShowMoreHorizontalIcon from '@atlaskit/icon/core/
|
|
11
|
+
import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
|
|
12
12
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
13
13
|
var MoreIconStyle = css({
|
|
14
14
|
display: 'flex',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-formatting",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.16",
|
|
4
4
|
"description": "Text-formatting plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -29,32 +29,32 @@
|
|
|
29
29
|
],
|
|
30
30
|
"atlaskit:src": "src/index.ts",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@atlaskit/adf-schema": "^51.5.
|
|
32
|
+
"@atlaskit/adf-schema": "^51.5.0",
|
|
33
33
|
"@atlaskit/editor-plugin-analytics": "^6.2.0",
|
|
34
34
|
"@atlaskit/editor-plugin-base": "^7.2.0",
|
|
35
35
|
"@atlaskit/editor-plugin-primary-toolbar": "^7.0.0",
|
|
36
36
|
"@atlaskit/editor-plugin-selection-toolbar": "^7.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-toolbar": "^3.4.0",
|
|
38
|
-
"@atlaskit/editor-prosemirror": "7.
|
|
38
|
+
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
39
39
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
40
40
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
41
41
|
"@atlaskit/editor-toolbar": "^0.18.0",
|
|
42
42
|
"@atlaskit/editor-toolbar-model": "^0.2.0",
|
|
43
|
-
"@atlaskit/icon": "^29.
|
|
43
|
+
"@atlaskit/icon": "^29.1.0",
|
|
44
44
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
45
45
|
"@atlaskit/prosemirror-input-rules": "^3.6.0",
|
|
46
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
47
|
-
"@atlaskit/tokens": "^8.
|
|
46
|
+
"@atlaskit/tmp-editor-statsig": "^15.12.0",
|
|
47
|
+
"@atlaskit/tokens": "^8.5.0",
|
|
48
48
|
"@babel/runtime": "^7.0.0",
|
|
49
49
|
"@emotion/react": "^11.7.1",
|
|
50
50
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@atlaskit/editor-common": "^110.
|
|
53
|
+
"@atlaskit/editor-common": "^110.44.0",
|
|
54
54
|
"react": "^18.2.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@testing-library/react": "^
|
|
57
|
+
"@testing-library/react": "^16.3.0"
|
|
58
58
|
},
|
|
59
59
|
"techstack": {
|
|
60
60
|
"@atlassian/frontend": {
|
|
@@ -99,9 +99,6 @@
|
|
|
99
99
|
"platform-visual-refresh-icons": {
|
|
100
100
|
"type": "boolean"
|
|
101
101
|
},
|
|
102
|
-
"platform_editor_resolve_marks": {
|
|
103
|
-
"type": "boolean"
|
|
104
|
-
},
|
|
105
102
|
"editor_inline_comments_on_inline_nodes": {
|
|
106
103
|
"type": "boolean"
|
|
107
104
|
},
|