@atlaskit/editor-plugin-text-formatting 1.16.7 → 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 CHANGED
@@ -1,5 +1,13 @@
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
+
3
11
  ## 1.16.7
4
12
 
5
13
  ### 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
  }
@@ -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
  }
@@ -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
  }
@@ -1,4 +1,5 @@
1
- import type { EditorAnalyticsAPI, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
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 type { EditorAnalyticsAPI, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
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[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-text-formatting",
3
- "version": "1.16.7",
3
+ "version": "1.16.8",
4
4
  "description": "Text-formatting plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",