@atlaskit/editor-plugin-toolbar 1.1.2 → 1.2.0
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 +21 -0
- package/dist/cjs/toolbarPlugin.js +2 -1
- package/dist/cjs/ui/toolbar-components.js +0 -4
- package/dist/es2019/toolbarPlugin.js +2 -1
- package/dist/es2019/ui/toolbar-components.js +0 -4
- package/dist/esm/toolbarPlugin.js +2 -1
- package/dist/esm/ui/toolbar-components.js +0 -4
- package/dist/types/types/index.d.ts +6 -0
- package/dist/types-ts4.5/types/index.d.ts +6 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-toolbar
|
|
2
2
|
|
|
3
|
+
## 1.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`c0113eeccb2df`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c0113eeccb2df) -
|
|
8
|
+
[ux] ED-29120 add a new config option for default editor preset
|
|
9
|
+
(`toolbar.enableNewToolbarExperience`) which allows the new toolbar to be disabled. This is needed
|
|
10
|
+
for editors that can't be excluded at the experiment level.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 1.1.3
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- [`a628d848005b7`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/a628d848005b7) -
|
|
21
|
+
[ED-29180] Remove duplicative text style button from inline text toolbar
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 1.1.2
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -22,7 +22,8 @@ var toolbarPlugin = exports.toolbarPlugin = function toolbarPlugin(_ref) {
|
|
|
22
22
|
_ref$config = _ref.config,
|
|
23
23
|
config = _ref$config === void 0 ? {
|
|
24
24
|
disableSelectionToolbar: false,
|
|
25
|
-
disableSelectionToolbarWhenPinned: false
|
|
25
|
+
disableSelectionToolbarWhenPinned: false,
|
|
26
|
+
enableNewToolbarExperience: true
|
|
26
27
|
} : _ref$config;
|
|
27
28
|
var disableSelectionToolbar = config.disableSelectionToolbar,
|
|
28
29
|
disableSelectionToolbarWhenPinned = config.disableSelectionToolbarWhenPinned;
|
|
@@ -71,10 +71,6 @@ var getToolbarComponents = exports.getToolbarComponents = function getToolbarCom
|
|
|
71
71
|
type: _toolbar.TEXT_SECTION_COLLAPSED.type,
|
|
72
72
|
key: _toolbar.TEXT_SECTION_COLLAPSED.key,
|
|
73
73
|
parents: [{
|
|
74
|
-
type: 'toolbar',
|
|
75
|
-
key: _toolbar.TOOLBARS.INLINE_TEXT_TOOLBAR,
|
|
76
|
-
rank: _toolbar.TOOLBAR_RANK[_toolbar.TEXT_SECTION_COLLAPSED.key]
|
|
77
|
-
}, {
|
|
78
74
|
type: 'toolbar',
|
|
79
75
|
key: _toolbar.TOOLBARS.PRIMARY_TOOLBAR,
|
|
80
76
|
rank: _toolbar.TOOLBAR_RANK[_toolbar.TEXT_SECTION_COLLAPSED.key]
|
|
@@ -64,10 +64,6 @@ export const getToolbarComponents = (api, disableSelectionToolbar) => {
|
|
|
64
64
|
type: TEXT_SECTION_COLLAPSED.type,
|
|
65
65
|
key: TEXT_SECTION_COLLAPSED.key,
|
|
66
66
|
parents: [{
|
|
67
|
-
type: 'toolbar',
|
|
68
|
-
key: TOOLBARS.INLINE_TEXT_TOOLBAR,
|
|
69
|
-
rank: TOOLBAR_RANK[TEXT_SECTION_COLLAPSED.key]
|
|
70
|
-
}, {
|
|
71
67
|
type: 'toolbar',
|
|
72
68
|
key: TOOLBARS.PRIMARY_TOOLBAR,
|
|
73
69
|
rank: TOOLBAR_RANK[TEXT_SECTION_COLLAPSED.key]
|
|
@@ -15,7 +15,8 @@ export var toolbarPlugin = function toolbarPlugin(_ref) {
|
|
|
15
15
|
_ref$config = _ref.config,
|
|
16
16
|
config = _ref$config === void 0 ? {
|
|
17
17
|
disableSelectionToolbar: false,
|
|
18
|
-
disableSelectionToolbarWhenPinned: false
|
|
18
|
+
disableSelectionToolbarWhenPinned: false,
|
|
19
|
+
enableNewToolbarExperience: true
|
|
19
20
|
} : _ref$config;
|
|
20
21
|
var disableSelectionToolbar = config.disableSelectionToolbar,
|
|
21
22
|
disableSelectionToolbarWhenPinned = config.disableSelectionToolbarWhenPinned;
|
|
@@ -64,10 +64,6 @@ export var getToolbarComponents = function getToolbarComponents(api, disableSele
|
|
|
64
64
|
type: TEXT_SECTION_COLLAPSED.type,
|
|
65
65
|
key: TEXT_SECTION_COLLAPSED.key,
|
|
66
66
|
parents: [{
|
|
67
|
-
type: 'toolbar',
|
|
68
|
-
key: TOOLBARS.INLINE_TEXT_TOOLBAR,
|
|
69
|
-
rank: TOOLBAR_RANK[TEXT_SECTION_COLLAPSED.key]
|
|
70
|
-
}, {
|
|
71
67
|
type: 'toolbar',
|
|
72
68
|
key: TOOLBARS.PRIMARY_TOOLBAR,
|
|
73
69
|
rank: TOOLBAR_RANK[TEXT_SECTION_COLLAPSED.key]
|
|
@@ -2,5 +2,11 @@ import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
|
2
2
|
export type ToolbarPluginOptions = {
|
|
3
3
|
disableSelectionToolbar?: boolean;
|
|
4
4
|
disableSelectionToolbarWhenPinned?: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Option to enable new toolbar designs - use this to disable the entire toolbar experience where it can't be disabled via the experiment
|
|
7
|
+
*
|
|
8
|
+
* Default: `true`
|
|
9
|
+
*/
|
|
10
|
+
enableNewToolbarExperience?: boolean;
|
|
5
11
|
};
|
|
6
12
|
export type RegisterComponentsAction = (toolbarComponents: Array<RegisterComponent>, replaceItems?: boolean) => void;
|
|
@@ -2,5 +2,11 @@ import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
|
|
|
2
2
|
export type ToolbarPluginOptions = {
|
|
3
3
|
disableSelectionToolbar?: boolean;
|
|
4
4
|
disableSelectionToolbarWhenPinned?: boolean;
|
|
5
|
+
/**
|
|
6
|
+
* Option to enable new toolbar designs - use this to disable the entire toolbar experience where it can't be disabled via the experiment
|
|
7
|
+
*
|
|
8
|
+
* Default: `true`
|
|
9
|
+
*/
|
|
10
|
+
enableNewToolbarExperience?: boolean;
|
|
5
11
|
};
|
|
6
12
|
export type RegisterComponentsAction = (toolbarComponents: Array<RegisterComponent>, replaceItems?: boolean) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-toolbar",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
37
37
|
"@atlaskit/editor-toolbar": "^0.8.0",
|
|
38
38
|
"@atlaskit/editor-toolbar-model": "^0.2.0",
|
|
39
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
39
|
+
"@atlaskit/tmp-editor-statsig": "^12.8.0",
|
|
40
40
|
"@babel/runtime": "^7.0.0",
|
|
41
41
|
"bind-event-listener": "^3.0.0",
|
|
42
42
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@atlaskit/editor-common": "^108.
|
|
45
|
+
"@atlaskit/editor-common": "^108.6.0",
|
|
46
46
|
"react": "^18.2.0"
|
|
47
47
|
},
|
|
48
48
|
"techstack": {
|