@atlaskit/editor-plugin-text-formatting 8.1.5 → 8.1.7
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-text-formatting
|
|
2
2
|
|
|
3
|
+
## 8.1.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 8.1.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`0f4a08b633f6e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0f4a08b633f6e) -
|
|
14
|
+
Internal changes to remove unnecessary token fallbacks and imports from `@atlaskit/theme`
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 8.1.5
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -69,12 +69,12 @@ var FormattingTextDropdownMenu = exports.FormattingTextDropdownMenu = /*#__PURE_
|
|
|
69
69
|
fitHeight: 188,
|
|
70
70
|
fitWidth: (0, _experiments.editorExperiment)('platform_editor_controls', 'control') ? 136 : 230,
|
|
71
71
|
shouldUseDefaultRole: true
|
|
72
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
72
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
73
73
|
,
|
|
74
74
|
section: {
|
|
75
75
|
hasSeparator: true
|
|
76
76
|
}
|
|
77
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
77
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
78
78
|
,
|
|
79
79
|
shouldFocusFirstItem: function shouldFocusFirstItem() {
|
|
80
80
|
if (isOpenedByKeyboard) {
|
|
@@ -87,13 +87,13 @@ var FormattingTextDropdownMenu = exports.FormattingTextDropdownMenu = /*#__PURE_
|
|
|
87
87
|
label: moreButtonLabel,
|
|
88
88
|
isReducedSpacing: isReducedSpacing,
|
|
89
89
|
isDisabled: false
|
|
90
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
90
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
91
91
|
,
|
|
92
92
|
onClick: function onClick() {
|
|
93
93
|
toggleMenu();
|
|
94
94
|
setIsOpenedByKeyboard(false);
|
|
95
95
|
}
|
|
96
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
96
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
97
97
|
,
|
|
98
98
|
onKeyDown: function onKeyDown(event) {
|
|
99
99
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
@@ -110,13 +110,13 @@ var FormattingTextDropdownMenu = exports.FormattingTextDropdownMenu = /*#__PURE_
|
|
|
110
110
|
label: intl.formatMessage(_messages.toolbarMessages.textFormat),
|
|
111
111
|
"aria-expanded": isMenuOpen,
|
|
112
112
|
"aria-haspopup": true
|
|
113
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
113
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
114
114
|
,
|
|
115
115
|
onClick: function onClick() {
|
|
116
116
|
toggleMenu();
|
|
117
117
|
setIsOpenedByKeyboard(false);
|
|
118
118
|
}
|
|
119
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
119
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
120
120
|
,
|
|
121
121
|
onKeyDown: function onKeyDown(event) {
|
|
122
122
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
@@ -51,12 +51,12 @@ export const FormattingTextDropdownMenu = /*#__PURE__*/React.memo(({
|
|
|
51
51
|
fitHeight: 188,
|
|
52
52
|
fitWidth: editorExperiment('platform_editor_controls', 'control') ? 136 : 230,
|
|
53
53
|
shouldUseDefaultRole: true
|
|
54
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
54
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
55
55
|
,
|
|
56
56
|
section: {
|
|
57
57
|
hasSeparator: true
|
|
58
58
|
}
|
|
59
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
59
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
60
60
|
,
|
|
61
61
|
shouldFocusFirstItem: () => {
|
|
62
62
|
if (isOpenedByKeyboard) {
|
|
@@ -69,13 +69,13 @@ export const FormattingTextDropdownMenu = /*#__PURE__*/React.memo(({
|
|
|
69
69
|
label: moreButtonLabel,
|
|
70
70
|
isReducedSpacing: isReducedSpacing,
|
|
71
71
|
isDisabled: false
|
|
72
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
72
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
73
73
|
,
|
|
74
74
|
onClick: () => {
|
|
75
75
|
toggleMenu();
|
|
76
76
|
setIsOpenedByKeyboard(false);
|
|
77
77
|
}
|
|
78
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
78
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
79
79
|
,
|
|
80
80
|
onKeyDown: event => {
|
|
81
81
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
@@ -92,13 +92,13 @@ export const FormattingTextDropdownMenu = /*#__PURE__*/React.memo(({
|
|
|
92
92
|
label: intl.formatMessage(toolbarMessages.textFormat),
|
|
93
93
|
"aria-expanded": isMenuOpen,
|
|
94
94
|
"aria-haspopup": true
|
|
95
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
95
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
96
96
|
,
|
|
97
97
|
onClick: () => {
|
|
98
98
|
toggleMenu();
|
|
99
99
|
setIsOpenedByKeyboard(false);
|
|
100
100
|
}
|
|
101
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
101
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
102
102
|
,
|
|
103
103
|
onKeyDown: event => {
|
|
104
104
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
@@ -60,12 +60,12 @@ export var FormattingTextDropdownMenu = /*#__PURE__*/React.memo(function (_ref)
|
|
|
60
60
|
fitHeight: 188,
|
|
61
61
|
fitWidth: editorExperiment('platform_editor_controls', 'control') ? 136 : 230,
|
|
62
62
|
shouldUseDefaultRole: true
|
|
63
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
63
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
64
64
|
,
|
|
65
65
|
section: {
|
|
66
66
|
hasSeparator: true
|
|
67
67
|
}
|
|
68
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
68
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
69
69
|
,
|
|
70
70
|
shouldFocusFirstItem: function shouldFocusFirstItem() {
|
|
71
71
|
if (isOpenedByKeyboard) {
|
|
@@ -78,13 +78,13 @@ export var FormattingTextDropdownMenu = /*#__PURE__*/React.memo(function (_ref)
|
|
|
78
78
|
label: moreButtonLabel,
|
|
79
79
|
isReducedSpacing: isReducedSpacing,
|
|
80
80
|
isDisabled: false
|
|
81
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
81
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
82
82
|
,
|
|
83
83
|
onClick: function onClick() {
|
|
84
84
|
toggleMenu();
|
|
85
85
|
setIsOpenedByKeyboard(false);
|
|
86
86
|
}
|
|
87
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
87
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
88
88
|
,
|
|
89
89
|
onKeyDown: function onKeyDown(event) {
|
|
90
90
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
@@ -101,13 +101,13 @@ export var FormattingTextDropdownMenu = /*#__PURE__*/React.memo(function (_ref)
|
|
|
101
101
|
label: intl.formatMessage(toolbarMessages.textFormat),
|
|
102
102
|
"aria-expanded": isMenuOpen,
|
|
103
103
|
"aria-haspopup": true
|
|
104
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
104
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
105
105
|
,
|
|
106
106
|
onClick: function onClick() {
|
|
107
107
|
toggleMenu();
|
|
108
108
|
setIsOpenedByKeyboard(false);
|
|
109
109
|
}
|
|
110
|
-
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
110
|
+
// eslint-disable-next-line @atlassian/perf-linting/no-unstable-inline-props -- Ignored via go/ees017 (to be fixed)
|
|
111
111
|
,
|
|
112
112
|
onKeyDown: function onKeyDown(event) {
|
|
113
113
|
if (event.key === 'Enter' || event.key === ' ') {
|
package/docs/0-intro.tsx
CHANGED
|
@@ -16,7 +16,7 @@ ${createEditorUseOnlyNotice('Editor Plugin Text Formatting', [
|
|
|
16
16
|
${
|
|
17
17
|
(
|
|
18
18
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/enforce-style-prop -- Ignored via go/DSP-18766
|
|
19
|
-
<div style={{ marginTop: token('space.100'
|
|
19
|
+
<div style={{ marginTop: token('space.100') }}>
|
|
20
20
|
<AtlassianInternalWarning />
|
|
21
21
|
</div>
|
|
22
22
|
)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-text-formatting",
|
|
3
|
-
"version": "8.1.
|
|
3
|
+
"version": "8.1.7",
|
|
4
4
|
"description": "Text-formatting plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
"@atlaskit/icon": "^33.0.0",
|
|
47
47
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
48
48
|
"@atlaskit/prosemirror-input-rules": "^3.6.0",
|
|
49
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
49
|
+
"@atlaskit/tmp-editor-statsig": "^45.0.0",
|
|
50
50
|
"@atlaskit/tokens": "^11.1.0",
|
|
51
51
|
"@babel/runtime": "^7.0.0",
|
|
52
52
|
"@emotion/react": "^11.7.1",
|
|
53
53
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@atlaskit/editor-common": "^112.
|
|
56
|
+
"@atlaskit/editor-common": "^112.8.0",
|
|
57
57
|
"react": "^18.2.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|