@atlaskit/editor-plugin-toolbar 3.4.8 → 3.4.9
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-toolbar
|
|
2
2
|
|
|
3
|
+
## 3.4.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`fd59b4b1d712d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fd59b4b1d712d) -
|
|
8
|
+
[ux] ED-29573 Improve JSM comment responsiveness
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 3.4.8
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -99,6 +99,9 @@ var toolbarPlugin = exports.toolbarPlugin = function toolbarPlugin(_ref) {
|
|
|
99
99
|
},
|
|
100
100
|
contextualFormattingMode: function contextualFormattingMode() {
|
|
101
101
|
return contextualFormattingEnabled;
|
|
102
|
+
},
|
|
103
|
+
getBreakpointPreset: function getBreakpointPreset() {
|
|
104
|
+
return (0, _platformFeatureFlags.fg)('platform_editor_toolbar_aifc_responsive_improve') ? breakpointPreset : undefined;
|
|
102
105
|
}
|
|
103
106
|
},
|
|
104
107
|
getSharedState: function getSharedState(editorState) {
|
|
@@ -84,6 +84,9 @@ export const toolbarPlugin = ({
|
|
|
84
84
|
},
|
|
85
85
|
contextualFormattingMode: () => {
|
|
86
86
|
return contextualFormattingEnabled;
|
|
87
|
+
},
|
|
88
|
+
getBreakpointPreset: () => {
|
|
89
|
+
return fg('platform_editor_toolbar_aifc_responsive_improve') ? breakpointPreset : undefined;
|
|
87
90
|
}
|
|
88
91
|
},
|
|
89
92
|
getSharedState(editorState) {
|
|
@@ -92,6 +92,9 @@ export var toolbarPlugin = function toolbarPlugin(_ref) {
|
|
|
92
92
|
},
|
|
93
93
|
contextualFormattingMode: function contextualFormattingMode() {
|
|
94
94
|
return contextualFormattingEnabled;
|
|
95
|
+
},
|
|
96
|
+
getBreakpointPreset: function getBreakpointPreset() {
|
|
97
|
+
return fg('platform_editor_toolbar_aifc_responsive_improve') ? breakpointPreset : undefined;
|
|
95
98
|
}
|
|
96
99
|
},
|
|
97
100
|
getSharedState: function getSharedState(editorState) {
|
|
@@ -7,6 +7,7 @@ import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
|
|
|
7
7
|
import type { UserIntentPlugin } from '@atlaskit/editor-plugin-user-intent';
|
|
8
8
|
import type { UserPreferencesPlugin } from '@atlaskit/editor-plugin-user-preferences';
|
|
9
9
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
10
|
+
import type { BreakpointPreset } from '@atlaskit/editor-toolbar';
|
|
10
11
|
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
11
12
|
import type { RegisterComponentsAction, ToolbarPluginOptions } from './types';
|
|
12
13
|
export type EditorToolbarPluginState = {
|
|
@@ -32,6 +33,15 @@ export type ToolbarPlugin = NextEditorPlugin<'toolbar', {
|
|
|
32
33
|
* - `controlled`: Both inline and primary toolbars are available
|
|
33
34
|
*/
|
|
34
35
|
contextualFormattingMode: () => ContextualFormattingEnabledOptions;
|
|
36
|
+
/**
|
|
37
|
+
* Returns the breakpoint preset configuration for the toolbar.
|
|
38
|
+
*
|
|
39
|
+
* This method retrieves the breakpoint preset that determines how the toolbar
|
|
40
|
+
* responds to different viewport sizes and layouts.
|
|
41
|
+
*
|
|
42
|
+
* @returns The configured breakpoint preset, or `undefined` if not set.
|
|
43
|
+
*/
|
|
44
|
+
getBreakpointPreset: () => BreakpointPreset | undefined;
|
|
35
45
|
getComponents: () => Array<RegisterComponent>;
|
|
36
46
|
registerComponents: RegisterComponentsAction;
|
|
37
47
|
};
|
|
@@ -7,6 +7,7 @@ import type { SelectionPlugin } from '@atlaskit/editor-plugin-selection';
|
|
|
7
7
|
import type { UserIntentPlugin } from '@atlaskit/editor-plugin-user-intent';
|
|
8
8
|
import type { UserPreferencesPlugin } from '@atlaskit/editor-plugin-user-preferences';
|
|
9
9
|
import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
|
|
10
|
+
import type { BreakpointPreset } from '@atlaskit/editor-toolbar';
|
|
10
11
|
import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
11
12
|
import type { RegisterComponentsAction, ToolbarPluginOptions } from './types';
|
|
12
13
|
export type EditorToolbarPluginState = {
|
|
@@ -32,6 +33,15 @@ export type ToolbarPlugin = NextEditorPlugin<'toolbar', {
|
|
|
32
33
|
* - `controlled`: Both inline and primary toolbars are available
|
|
33
34
|
*/
|
|
34
35
|
contextualFormattingMode: () => ContextualFormattingEnabledOptions;
|
|
36
|
+
/**
|
|
37
|
+
* Returns the breakpoint preset configuration for the toolbar.
|
|
38
|
+
*
|
|
39
|
+
* This method retrieves the breakpoint preset that determines how the toolbar
|
|
40
|
+
* responds to different viewport sizes and layouts.
|
|
41
|
+
*
|
|
42
|
+
* @returns The configured breakpoint preset, or `undefined` if not set.
|
|
43
|
+
*/
|
|
44
|
+
getBreakpointPreset: () => BreakpointPreset | undefined;
|
|
35
45
|
getComponents: () => Array<RegisterComponent>;
|
|
36
46
|
registerComponents: RegisterComponentsAction;
|
|
37
47
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-toolbar",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.9",
|
|
4
4
|
"description": "Toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@atlaskit/editor-common": "^110.
|
|
49
|
+
"@atlaskit/editor-common": "^110.32.0",
|
|
50
50
|
"react": "^18.2.0"
|
|
51
51
|
},
|
|
52
52
|
"platform-feature-flags": {
|
|
@@ -58,6 +58,9 @@
|
|
|
58
58
|
},
|
|
59
59
|
"platform_editor_toolbar_aifc_placement_config": {
|
|
60
60
|
"type": "boolean"
|
|
61
|
+
},
|
|
62
|
+
"platform_editor_toolbar_aifc_responsive_improve": {
|
|
63
|
+
"type": "boolean"
|
|
61
64
|
}
|
|
62
65
|
},
|
|
63
66
|
"techstack": {
|