@atlaskit/editor-plugin-text-formatting 1.16.6 → 1.16.8
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 +16 -0
- package/dist/cjs/editor-commands/clear-formatting.js +2 -1
- package/dist/cjs/ui/Toolbar/bold-button.js +5 -2
- package/dist/es2019/editor-commands/clear-formatting.js +3 -2
- package/dist/es2019/ui/Toolbar/bold-button.js +6 -3
- package/dist/esm/editor-commands/clear-formatting.js +3 -2
- package/dist/esm/ui/Toolbar/bold-button.js +6 -3
- package/dist/types/editor-commands/clear-formatting.d.ts +2 -1
- package/dist/types-ts4.5/editor-commands/clear-formatting.d.ts +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-text-formatting
|
|
2
2
|
|
|
3
|
+
## 1.16.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#99274](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99274)
|
|
8
|
+
[`b4dd134e0caaa`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b4dd134e0caaa) -
|
|
9
|
+
ED-25961 Add analytics for clear formatting and adding blockquote from text styles menu
|
|
10
|
+
|
|
11
|
+
## 1.16.7
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#99080](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/99080)
|
|
16
|
+
[`8b2f0af25c400`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8b2f0af25c400) -
|
|
17
|
+
[ux] ED-26062: Removed icon blue borders when selected
|
|
18
|
+
|
|
3
19
|
## 1.16.6
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -103,7 +103,8 @@ function clearFormatting(inputMethod, editorAnalyticsAPI) {
|
|
|
103
103
|
actionSubjectId: _analytics.ACTION_SUBJECT_ID.FORMAT_CLEAR,
|
|
104
104
|
attributes: {
|
|
105
105
|
inputMethod: inputMethod,
|
|
106
|
-
formattingCleared: formattingCleared
|
|
106
|
+
formattingCleared: formattingCleared,
|
|
107
|
+
dropdownMenu: inputMethod === _analytics.INPUT_METHOD.TOOLBAR || inputMethod === _analytics.INPUT_METHOD.FLOATING_TB ? 'textFormatting' : undefined
|
|
107
108
|
}
|
|
108
109
|
})(tr);
|
|
109
110
|
}
|
|
@@ -30,7 +30,10 @@ var BoldToolbarButton = exports.BoldToolbarButton = function BoldToolbarButton(_
|
|
|
30
30
|
onKeyDown = _ref.onKeyDown,
|
|
31
31
|
toolbarType = _ref.toolbarType;
|
|
32
32
|
var reducedSpacing = toolbarType === _types.ToolbarType.FLOATING ? 'compact' : 'none';
|
|
33
|
-
return (0, _react2.jsx)(_uiMenu.ToolbarButton
|
|
33
|
+
return (0, _react2.jsx)(_uiMenu.ToolbarButton
|
|
34
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
35
|
+
, {
|
|
36
|
+
css: _styles.disableBlueBorderStyles,
|
|
34
37
|
testId: 'ak-editor-selection-toolbar-format-text-button',
|
|
35
38
|
spacing: isReducedSpacing ? reducedSpacing : 'default',
|
|
36
39
|
disabled: isDisabled,
|
|
@@ -43,7 +46,7 @@ var BoldToolbarButton = exports.BoldToolbarButton = function BoldToolbarButton(_
|
|
|
43
46
|
onKeyDown: onKeyDown,
|
|
44
47
|
iconBefore: (0, _react2.jsx)("div", {
|
|
45
48
|
css:
|
|
46
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-
|
|
49
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
47
50
|
(0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ?
|
|
48
51
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
49
52
|
_styles.triggerWrapperStylesWithPadding :
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import { INPUT_METHOD, ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import { liftTarget } from '@atlaskit/editor-prosemirror/transform';
|
|
3
3
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
4
4
|
import { cellSelectionNodesBetween } from './utils/cell-selection';
|
|
@@ -99,7 +99,8 @@ export function clearFormatting(inputMethod, editorAnalyticsAPI) {
|
|
|
99
99
|
actionSubjectId: ACTION_SUBJECT_ID.FORMAT_CLEAR,
|
|
100
100
|
attributes: {
|
|
101
101
|
inputMethod,
|
|
102
|
-
formattingCleared
|
|
102
|
+
formattingCleared,
|
|
103
|
+
dropdownMenu: inputMethod === INPUT_METHOD.TOOLBAR || inputMethod === INPUT_METHOD.FLOATING_TB ? 'textFormatting' : undefined
|
|
103
104
|
}
|
|
104
105
|
})(tr);
|
|
105
106
|
}
|
|
@@ -6,7 +6,7 @@ import React from 'react';
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
|
-
import { expandIconContainerStyle, triggerWrapperStyles, triggerWrapperStylesWithPadding } from '@atlaskit/editor-common/styles';
|
|
9
|
+
import { expandIconContainerStyle, triggerWrapperStyles, triggerWrapperStylesWithPadding, disableBlueBorderStyles } from '@atlaskit/editor-common/styles';
|
|
10
10
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
11
11
|
import BoldIcon from '@atlaskit/icon/core/migration/text-bold--editor-bold';
|
|
12
12
|
import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down';
|
|
@@ -23,7 +23,10 @@ export const BoldToolbarButton = ({
|
|
|
23
23
|
toolbarType
|
|
24
24
|
}) => {
|
|
25
25
|
const reducedSpacing = toolbarType === ToolbarType.FLOATING ? 'compact' : 'none';
|
|
26
|
-
return jsx(ToolbarButton
|
|
26
|
+
return jsx(ToolbarButton
|
|
27
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
28
|
+
, {
|
|
29
|
+
css: disableBlueBorderStyles,
|
|
27
30
|
testId: 'ak-editor-selection-toolbar-format-text-button',
|
|
28
31
|
spacing: isReducedSpacing ? reducedSpacing : 'default',
|
|
29
32
|
disabled: isDisabled,
|
|
@@ -36,7 +39,7 @@ export const BoldToolbarButton = ({
|
|
|
36
39
|
onKeyDown: onKeyDown,
|
|
37
40
|
iconBefore: jsx("div", {
|
|
38
41
|
css:
|
|
39
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-
|
|
42
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
40
43
|
fg('platform-visual-refresh-icons') ?
|
|
41
44
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
42
45
|
triggerWrapperStylesWithPadding :
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
1
|
+
import { INPUT_METHOD, ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE } from '@atlaskit/editor-common/analytics';
|
|
2
2
|
import { liftTarget } from '@atlaskit/editor-prosemirror/transform';
|
|
3
3
|
import { CellSelection } from '@atlaskit/editor-tables/cell-selection';
|
|
4
4
|
import { cellSelectionNodesBetween } from './utils/cell-selection';
|
|
@@ -95,7 +95,8 @@ export function clearFormatting(inputMethod, editorAnalyticsAPI) {
|
|
|
95
95
|
actionSubjectId: ACTION_SUBJECT_ID.FORMAT_CLEAR,
|
|
96
96
|
attributes: {
|
|
97
97
|
inputMethod: inputMethod,
|
|
98
|
-
formattingCleared: formattingCleared
|
|
98
|
+
formattingCleared: formattingCleared,
|
|
99
|
+
dropdownMenu: inputMethod === INPUT_METHOD.TOOLBAR || inputMethod === INPUT_METHOD.FLOATING_TB ? 'textFormatting' : undefined
|
|
99
100
|
}
|
|
100
101
|
})(tr);
|
|
101
102
|
}
|
|
@@ -6,7 +6,7 @@ import React from 'react';
|
|
|
6
6
|
|
|
7
7
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
8
8
|
import { jsx } from '@emotion/react';
|
|
9
|
-
import { expandIconContainerStyle, triggerWrapperStyles, triggerWrapperStylesWithPadding } from '@atlaskit/editor-common/styles';
|
|
9
|
+
import { expandIconContainerStyle, triggerWrapperStyles, triggerWrapperStylesWithPadding, disableBlueBorderStyles } from '@atlaskit/editor-common/styles';
|
|
10
10
|
import { ToolbarButton } from '@atlaskit/editor-common/ui-menu';
|
|
11
11
|
import BoldIcon from '@atlaskit/icon/core/migration/text-bold--editor-bold';
|
|
12
12
|
import ChevronDownIcon from '@atlaskit/icon/utility/migration/chevron-down';
|
|
@@ -22,7 +22,10 @@ export var BoldToolbarButton = function BoldToolbarButton(_ref) {
|
|
|
22
22
|
onKeyDown = _ref.onKeyDown,
|
|
23
23
|
toolbarType = _ref.toolbarType;
|
|
24
24
|
var reducedSpacing = toolbarType === ToolbarType.FLOATING ? 'compact' : 'none';
|
|
25
|
-
return jsx(ToolbarButton
|
|
25
|
+
return jsx(ToolbarButton
|
|
26
|
+
// eslint-disable-next-line @atlaskit/design-system/no-unsafe-style-overrides, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
27
|
+
, {
|
|
28
|
+
css: disableBlueBorderStyles,
|
|
26
29
|
testId: 'ak-editor-selection-toolbar-format-text-button',
|
|
27
30
|
spacing: isReducedSpacing ? reducedSpacing : 'default',
|
|
28
31
|
disabled: isDisabled,
|
|
@@ -35,7 +38,7 @@ export var BoldToolbarButton = function BoldToolbarButton(_ref) {
|
|
|
35
38
|
onKeyDown: onKeyDown,
|
|
36
39
|
iconBefore: jsx("div", {
|
|
37
40
|
css:
|
|
38
|
-
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-
|
|
41
|
+
// eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
|
|
39
42
|
fg('platform-visual-refresh-icons') ?
|
|
40
43
|
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values
|
|
41
44
|
triggerWrapperStylesWithPadding :
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
3
|
import type { Command } from '@atlaskit/editor-common/types';
|
|
3
4
|
export declare const FORMATTING_NODE_TYPES: string[];
|
|
4
5
|
export declare const FORMATTING_MARK_TYPES: string[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
+
import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
|
|
2
3
|
import type { Command } from '@atlaskit/editor-common/types';
|
|
3
4
|
export declare const FORMATTING_NODE_TYPES: string[];
|
|
4
5
|
export declare const FORMATTING_MARK_TYPES: string[];
|