@atlaskit/editor-plugin-undo-redo 4.0.4 → 4.0.5
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,15 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-undo-redo
|
|
2
2
|
|
|
3
|
+
## 4.0.5
|
|
4
|
+
|
|
5
|
+
### Patch 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
|
+
- Updated dependencies
|
|
12
|
+
|
|
3
13
|
## 4.0.4
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -25,7 +25,7 @@ var undoRedoPlugin = exports.undoRedoPlugin = function undoRedoPlugin(_ref) {
|
|
|
25
25
|
var editorViewRef = {
|
|
26
26
|
current: null
|
|
27
27
|
};
|
|
28
|
-
var isToolbarAIFCEnabled = (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true, {
|
|
28
|
+
var isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true, {
|
|
29
29
|
exposure: true
|
|
30
30
|
});
|
|
31
31
|
var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
|
|
@@ -18,7 +18,7 @@ export const undoRedoPlugin = ({
|
|
|
18
18
|
const editorViewRef = {
|
|
19
19
|
current: null
|
|
20
20
|
};
|
|
21
|
-
const isToolbarAIFCEnabled = editorExperiment('platform_editor_toolbar_aifc', true, {
|
|
21
|
+
const isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true, {
|
|
22
22
|
exposure: true
|
|
23
23
|
});
|
|
24
24
|
const primaryToolbarComponent = ({
|
|
@@ -17,7 +17,7 @@ export var undoRedoPlugin = function undoRedoPlugin(_ref) {
|
|
|
17
17
|
var editorViewRef = {
|
|
18
18
|
current: null
|
|
19
19
|
};
|
|
20
|
-
var isToolbarAIFCEnabled = editorExperiment('platform_editor_toolbar_aifc', true, {
|
|
20
|
+
var isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true, {
|
|
21
21
|
exposure: true
|
|
22
22
|
});
|
|
23
23
|
var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-undo-redo",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
4
4
|
"description": "Undo redo plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,19 +31,19 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@atlaskit/editor-plugin-history": "^4.0.0",
|
|
33
33
|
"@atlaskit/editor-plugin-primary-toolbar": "^5.0.0",
|
|
34
|
-
"@atlaskit/editor-plugin-toolbar": "^1.
|
|
34
|
+
"@atlaskit/editor-plugin-toolbar": "^1.2.0",
|
|
35
35
|
"@atlaskit/editor-plugin-type-ahead": "^4.0.0",
|
|
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
39
|
"@atlaskit/icon": "^28.1.0",
|
|
40
40
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
41
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
41
|
+
"@atlaskit/tmp-editor-statsig": "^12.8.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0",
|
|
43
43
|
"@emotion/react": "^11.7.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@atlaskit/editor-common": "^108.
|
|
46
|
+
"@atlaskit/editor-common": "^108.6.0",
|
|
47
47
|
"react": "^18.2.0",
|
|
48
48
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
49
49
|
},
|