@atlaskit/editor-plugin-primary-toolbar 2.4.0 → 3.0.1
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,31 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-primary-toolbar
|
|
2
2
|
|
|
3
|
+
## 3.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#120931](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120931)
|
|
8
|
+
[`624b97c021fea`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/624b97c021fea) -
|
|
9
|
+
[ux] ED-26676 revert to existing primary toolbar components
|
|
10
|
+
|
|
11
|
+
## 3.0.0
|
|
12
|
+
|
|
13
|
+
### Major Changes
|
|
14
|
+
|
|
15
|
+
- [#117363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/117363)
|
|
16
|
+
[`10a0f7f6c2027`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/10a0f7f6c2027) -
|
|
17
|
+
This package's `peerDependencies` have been adjusted for `react` and/or `react-dom` to reflect the
|
|
18
|
+
status of only supporting React 18 going forward. No explicit breaking change to React support has
|
|
19
|
+
been made in this release, but this is to signify going forward, breaking changes for React 16 or
|
|
20
|
+
React 17 may come via non-major semver releases.
|
|
21
|
+
|
|
22
|
+
Please refer this community post for more details:
|
|
23
|
+
https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies
|
|
28
|
+
|
|
3
29
|
## 2.4.0
|
|
4
30
|
|
|
5
31
|
### Minor 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
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "Primary toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
".": "./src/index.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@atlaskit/editor-common": "^
|
|
39
|
+
"@atlaskit/editor-common": "^100.4.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
41
41
|
"@babel/runtime": "^7.0.0",
|
|
42
42
|
"@emotion/react": "^11.7.1"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"react": "^
|
|
45
|
+
"react": "^18.2.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"typescript": "~5.4.2"
|