@atlaskit/editor-plugin-primary-toolbar 3.0.0 → 3.0.2
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-primary-toolbar
|
|
2
2
|
|
|
3
|
+
## 3.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 3.0.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#120931](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120931)
|
|
14
|
+
[`624b97c021fea`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/624b97c021fea) -
|
|
15
|
+
[ux] ED-26676 revert to existing primary toolbar components
|
|
16
|
+
|
|
3
17
|
## 3.0.0
|
|
4
18
|
|
|
5
19
|
### Major Changes
|
|
@@ -72,17 +72,7 @@ var textColorGroup = [{
|
|
|
72
72
|
return componentRegistry.has('textColor') || componentRegistry.has('highlight');
|
|
73
73
|
}
|
|
74
74
|
}];
|
|
75
|
-
var
|
|
76
|
-
name: 'alignment'
|
|
77
|
-
}, {
|
|
78
|
-
name: 'toolbarListsIndentation'
|
|
79
|
-
}, {
|
|
80
|
-
name: 'separator',
|
|
81
|
-
enabled: function enabled(componentRegistry) {
|
|
82
|
-
return componentRegistry.has('toolbarListsIndentation') || componentRegistry.has('alignment');
|
|
83
|
-
}
|
|
84
|
-
}];
|
|
85
|
-
var listFormatting = [{
|
|
75
|
+
var listFormattingGroup = [{
|
|
86
76
|
name: 'toolbarListsIndentation'
|
|
87
77
|
}, {
|
|
88
78
|
name: 'separator',
|
|
@@ -113,8 +103,8 @@ var others = [{
|
|
|
113
103
|
}, {
|
|
114
104
|
name: 'loom'
|
|
115
105
|
}];
|
|
116
|
-
var toolbarConfiguration = [].concat(undoRedoGroup, spellCheckGroup, blockTypeGroup, textFormattingGroup, alignmentGroup, textColorGroup,
|
|
117
|
-
var toolbarConfigurationV2 = [].concat(blockTypeGroup, textFormattingGroup, textColorGroup,
|
|
106
|
+
var toolbarConfiguration = [].concat(undoRedoGroup, spellCheckGroup, blockTypeGroup, textFormattingGroup, alignmentGroup, textColorGroup, listFormattingGroup, insertBlockGroup, others);
|
|
107
|
+
var toolbarConfigurationV2 = [].concat(blockTypeGroup, textFormattingGroup, textColorGroup, alignmentGroup, listFormattingGroup, hyperlinkGroup, [{
|
|
118
108
|
name: 'overflowMenu'
|
|
119
109
|
}, {
|
|
120
110
|
name: 'beforePrimaryToolbar'
|
|
@@ -52,15 +52,7 @@ const textColorGroup = [{
|
|
|
52
52
|
name: 'separator',
|
|
53
53
|
enabled: componentRegistry => componentRegistry.has('textColor') || componentRegistry.has('highlight')
|
|
54
54
|
}];
|
|
55
|
-
const
|
|
56
|
-
name: 'alignment'
|
|
57
|
-
}, {
|
|
58
|
-
name: 'toolbarListsIndentation'
|
|
59
|
-
}, {
|
|
60
|
-
name: 'separator',
|
|
61
|
-
enabled: componentRegistry => componentRegistry.has('toolbarListsIndentation') || componentRegistry.has('alignment')
|
|
62
|
-
}];
|
|
63
|
-
const listFormatting = [{
|
|
55
|
+
const listFormattingGroup = [{
|
|
64
56
|
name: 'toolbarListsIndentation'
|
|
65
57
|
}, {
|
|
66
58
|
name: 'separator',
|
|
@@ -87,8 +79,8 @@ const others = [{
|
|
|
87
79
|
}, {
|
|
88
80
|
name: 'loom'
|
|
89
81
|
}];
|
|
90
|
-
const toolbarConfiguration = [...undoRedoGroup, ...spellCheckGroup, ...blockTypeGroup, ...textFormattingGroup, ...alignmentGroup, ...textColorGroup, ...
|
|
91
|
-
const toolbarConfigurationV2 = [...blockTypeGroup, ...textFormattingGroup, ...textColorGroup, ...
|
|
82
|
+
const toolbarConfiguration = [...undoRedoGroup, ...spellCheckGroup, ...blockTypeGroup, ...textFormattingGroup, ...alignmentGroup, ...textColorGroup, ...listFormattingGroup, ...insertBlockGroup, ...others];
|
|
83
|
+
const toolbarConfigurationV2 = [...blockTypeGroup, ...textFormattingGroup, ...textColorGroup, ...alignmentGroup, ...listFormattingGroup, ...hyperlinkGroup, {
|
|
92
84
|
name: 'overflowMenu'
|
|
93
85
|
}, {
|
|
94
86
|
name: 'beforePrimaryToolbar'
|
|
@@ -66,17 +66,7 @@ var textColorGroup = [{
|
|
|
66
66
|
return componentRegistry.has('textColor') || componentRegistry.has('highlight');
|
|
67
67
|
}
|
|
68
68
|
}];
|
|
69
|
-
var
|
|
70
|
-
name: 'alignment'
|
|
71
|
-
}, {
|
|
72
|
-
name: 'toolbarListsIndentation'
|
|
73
|
-
}, {
|
|
74
|
-
name: 'separator',
|
|
75
|
-
enabled: function enabled(componentRegistry) {
|
|
76
|
-
return componentRegistry.has('toolbarListsIndentation') || componentRegistry.has('alignment');
|
|
77
|
-
}
|
|
78
|
-
}];
|
|
79
|
-
var listFormatting = [{
|
|
69
|
+
var listFormattingGroup = [{
|
|
80
70
|
name: 'toolbarListsIndentation'
|
|
81
71
|
}, {
|
|
82
72
|
name: 'separator',
|
|
@@ -107,8 +97,8 @@ var others = [{
|
|
|
107
97
|
}, {
|
|
108
98
|
name: 'loom'
|
|
109
99
|
}];
|
|
110
|
-
var toolbarConfiguration = [].concat(undoRedoGroup, spellCheckGroup, blockTypeGroup, textFormattingGroup, alignmentGroup, textColorGroup,
|
|
111
|
-
var toolbarConfigurationV2 = [].concat(blockTypeGroup, textFormattingGroup, textColorGroup,
|
|
100
|
+
var toolbarConfiguration = [].concat(undoRedoGroup, spellCheckGroup, blockTypeGroup, textFormattingGroup, alignmentGroup, textColorGroup, listFormattingGroup, insertBlockGroup, others);
|
|
101
|
+
var toolbarConfigurationV2 = [].concat(blockTypeGroup, textFormattingGroup, textColorGroup, alignmentGroup, listFormattingGroup, hyperlinkGroup, [{
|
|
112
102
|
name: 'overflowMenu'
|
|
113
103
|
}, {
|
|
114
104
|
name: 'beforePrimaryToolbar'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-primary-toolbar",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"description": "Primary toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
".": "./src/index.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@atlaskit/editor-common": "^
|
|
39
|
+
"@atlaskit/editor-common": "^101.0.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
41
41
|
"@babel/runtime": "^7.0.0",
|
|
42
42
|
"@emotion/react": "^11.7.1"
|