@atlaskit/editor-plugin-alignment 5.0.5 → 5.0.6
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-alignment
|
|
2
2
|
|
|
3
|
+
## 5.0.6
|
|
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
|
## 5.0.5
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -19,7 +19,7 @@ var defaultConfig = {
|
|
|
19
19
|
};
|
|
20
20
|
var alignmentPlugin = exports.alignmentPlugin = function alignmentPlugin(_ref) {
|
|
21
21
|
var api = _ref.api;
|
|
22
|
-
var isToolbarAIFCEnabled = (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true, {
|
|
22
|
+
var isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true, {
|
|
23
23
|
exposure: true
|
|
24
24
|
});
|
|
25
25
|
var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
|
|
@@ -13,7 +13,7 @@ const defaultConfig = {
|
|
|
13
13
|
export const alignmentPlugin = ({
|
|
14
14
|
api
|
|
15
15
|
}) => {
|
|
16
|
-
const isToolbarAIFCEnabled = editorExperiment('platform_editor_toolbar_aifc', true, {
|
|
16
|
+
const isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true, {
|
|
17
17
|
exposure: true
|
|
18
18
|
});
|
|
19
19
|
const primaryToolbarComponent = ({
|
|
@@ -12,7 +12,7 @@ var defaultConfig = {
|
|
|
12
12
|
};
|
|
13
13
|
export var alignmentPlugin = function alignmentPlugin(_ref) {
|
|
14
14
|
var api = _ref.api;
|
|
15
|
-
var isToolbarAIFCEnabled = editorExperiment('platform_editor_toolbar_aifc', true, {
|
|
15
|
+
var isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar) && editorExperiment('platform_editor_toolbar_aifc', true, {
|
|
16
16
|
exposure: true
|
|
17
17
|
});
|
|
18
18
|
var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-alignment",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.6",
|
|
4
4
|
"description": "Alignment plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -35,19 +35,19 @@
|
|
|
35
35
|
"@atlaskit/editor-plugin-analytics": "^4.0.0",
|
|
36
36
|
"@atlaskit/editor-plugin-primary-toolbar": "^5.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-selection-toolbar": "^5.0.0",
|
|
38
|
-
"@atlaskit/editor-plugin-toolbar": "^1.
|
|
38
|
+
"@atlaskit/editor-plugin-toolbar": "^1.2.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
40
40
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
41
41
|
"@atlaskit/editor-toolbar": "^0.8.0",
|
|
42
42
|
"@atlaskit/icon": "^28.1.0",
|
|
43
43
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
44
|
-
"@atlaskit/tmp-editor-statsig": "^12.
|
|
44
|
+
"@atlaskit/tmp-editor-statsig": "^12.8.0",
|
|
45
45
|
"@atlaskit/tokens": "^6.3.0",
|
|
46
46
|
"@babel/runtime": "^7.0.0",
|
|
47
47
|
"@compiled/react": "^0.18.3"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@atlaskit/editor-common": "^108.
|
|
50
|
+
"@atlaskit/editor-common": "^108.6.0",
|
|
51
51
|
"react": "^18.2.0",
|
|
52
52
|
"react-dom": "^18.2.0",
|
|
53
53
|
"react-intl-next": "npm:react-intl@^5.18.1"
|