@atlaskit/editor-plugin-alignment 3.1.3 → 3.1.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 +15 -0
- package/dist/cjs/alignmentPlugin.js +1 -10
- package/dist/cjs/ui/ToolbarAlignment/index.js +1 -3
- package/dist/es2019/alignmentPlugin.js +1 -10
- package/dist/es2019/ui/ToolbarAlignment/index.js +1 -3
- package/dist/esm/alignmentPlugin.js +1 -10
- package/dist/esm/ui/ToolbarAlignment/index.js +1 -3
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-alignment
|
|
2
2
|
|
|
3
|
+
## 3.1.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 3.1.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#126126](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/126126)
|
|
14
|
+
[`468f52001a847`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/468f52001a847) -
|
|
15
|
+
Tidy up contextual formatting toolbar experiment and switch to `platform_editor_controls` flag
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 3.1.3
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -76,16 +76,7 @@ var alignmentPlugin = exports.alignmentPlugin = function alignmentPlugin(_ref) {
|
|
|
76
76
|
pluginsOptions: {
|
|
77
77
|
selectionToolbar: function selectionToolbar() {
|
|
78
78
|
var _api$selectionToolbar;
|
|
79
|
-
if ((api === null || api === void 0 || (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.sharedState) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.currentState()) === null || _api$selectionToolbar === void 0 ? void 0 : _api$selectionToolbar.toolbarDocking) === '
|
|
80
|
-
exposure: true
|
|
81
|
-
})) {
|
|
82
|
-
return undefined;
|
|
83
|
-
}
|
|
84
|
-
if ((0, _experiments.editorExperiment)('contextual_formatting_toolbar', true, {
|
|
85
|
-
exposure: true
|
|
86
|
-
}) || (0, _experiments.editorExperiment)('platform_editor_contextual_formatting_toolbar_v2', 'variant1', {
|
|
87
|
-
exposure: true
|
|
88
|
-
}) || (0, _experiments.editorExperiment)('platform_editor_contextual_formatting_toolbar_v2', 'variant2', {
|
|
79
|
+
if ((api === null || api === void 0 || (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.sharedState) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.currentState()) === null || _api$selectionToolbar === void 0 ? void 0 : _api$selectionToolbar.toolbarDocking) === 'none' && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
|
|
89
80
|
exposure: true
|
|
90
81
|
})) {
|
|
91
82
|
var toolbarCustom = {
|
|
@@ -96,9 +96,7 @@ var AlignmentToolbar = exports.AlignmentToolbar = /*#__PURE__*/function (_React$
|
|
|
96
96
|
toolbarSize = _this$props.toolbarSize;
|
|
97
97
|
var alignment = (_pluginState$align = pluginState === null || pluginState === void 0 ? void 0 : pluginState.align) !== null && _pluginState$align !== void 0 ? _pluginState$align : 'start';
|
|
98
98
|
var title = intl.formatMessage(_messages.alignmentMessages.alignment);
|
|
99
|
-
var reducedSpacing = (0, _experiments.editorExperiment)('
|
|
100
|
-
exposure: true
|
|
101
|
-
}) || (0, _experiments.editorExperiment)('platform_editor_contextual_formatting_toolbar_v2', 'variant2', {
|
|
99
|
+
var reducedSpacing = (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
|
|
102
100
|
exposure: true
|
|
103
101
|
}) ? 'compact' : 'none';
|
|
104
102
|
if (toolbarType === _types2.ToolbarType.PRIMARY && toolbarSize && toolbarSize > _types.ToolbarSize.XL && (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1', {
|
|
@@ -68,16 +68,7 @@ export const alignmentPlugin = ({
|
|
|
68
68
|
pluginsOptions: {
|
|
69
69
|
selectionToolbar: () => {
|
|
70
70
|
var _api$selectionToolbar, _api$selectionToolbar2, _api$selectionToolbar3;
|
|
71
|
-
if ((api === null || api === void 0 ? void 0 : (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 ? void 0 : (_api$selectionToolbar2 = _api$selectionToolbar.sharedState) === null || _api$selectionToolbar2 === void 0 ? void 0 : (_api$selectionToolbar3 = _api$selectionToolbar2.currentState()) === null || _api$selectionToolbar3 === void 0 ? void 0 : _api$selectionToolbar3.toolbarDocking) === '
|
|
72
|
-
exposure: true
|
|
73
|
-
})) {
|
|
74
|
-
return undefined;
|
|
75
|
-
}
|
|
76
|
-
if (editorExperiment('contextual_formatting_toolbar', true, {
|
|
77
|
-
exposure: true
|
|
78
|
-
}) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant1', {
|
|
79
|
-
exposure: true
|
|
80
|
-
}) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant2', {
|
|
71
|
+
if ((api === null || api === void 0 ? void 0 : (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 ? void 0 : (_api$selectionToolbar2 = _api$selectionToolbar.sharedState) === null || _api$selectionToolbar2 === void 0 ? void 0 : (_api$selectionToolbar3 = _api$selectionToolbar2.currentState()) === null || _api$selectionToolbar3 === void 0 ? void 0 : _api$selectionToolbar3.toolbarDocking) === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
|
|
81
72
|
exposure: true
|
|
82
73
|
})) {
|
|
83
74
|
const toolbarCustom = {
|
|
@@ -75,9 +75,7 @@ export class AlignmentToolbar extends React.Component {
|
|
|
75
75
|
} = this.props;
|
|
76
76
|
const alignment = (_pluginState$align = pluginState === null || pluginState === void 0 ? void 0 : pluginState.align) !== null && _pluginState$align !== void 0 ? _pluginState$align : 'start';
|
|
77
77
|
const title = intl.formatMessage(messages.alignment);
|
|
78
|
-
const reducedSpacing = editorExperiment('
|
|
79
|
-
exposure: true
|
|
80
|
-
}) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant2', {
|
|
78
|
+
const reducedSpacing = editorExperiment('platform_editor_controls', 'variant1', {
|
|
81
79
|
exposure: true
|
|
82
80
|
}) ? 'compact' : 'none';
|
|
83
81
|
if (toolbarType === ToolbarType.PRIMARY && toolbarSize && toolbarSize > ToolbarSize.XL && editorExperiment('platform_editor_controls', 'variant1', {
|
|
@@ -69,16 +69,7 @@ export var alignmentPlugin = function alignmentPlugin(_ref) {
|
|
|
69
69
|
pluginsOptions: {
|
|
70
70
|
selectionToolbar: function selectionToolbar() {
|
|
71
71
|
var _api$selectionToolbar;
|
|
72
|
-
if ((api === null || api === void 0 || (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.sharedState) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.currentState()) === null || _api$selectionToolbar === void 0 ? void 0 : _api$selectionToolbar.toolbarDocking) === '
|
|
73
|
-
exposure: true
|
|
74
|
-
})) {
|
|
75
|
-
return undefined;
|
|
76
|
-
}
|
|
77
|
-
if (editorExperiment('contextual_formatting_toolbar', true, {
|
|
78
|
-
exposure: true
|
|
79
|
-
}) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant1', {
|
|
80
|
-
exposure: true
|
|
81
|
-
}) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant2', {
|
|
72
|
+
if ((api === null || api === void 0 || (_api$selectionToolbar = api.selectionToolbar) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.sharedState) === null || _api$selectionToolbar === void 0 || (_api$selectionToolbar = _api$selectionToolbar.currentState()) === null || _api$selectionToolbar === void 0 ? void 0 : _api$selectionToolbar.toolbarDocking) === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
|
|
82
73
|
exposure: true
|
|
83
74
|
})) {
|
|
84
75
|
var toolbarCustom = {
|
|
@@ -89,9 +89,7 @@ export var AlignmentToolbar = /*#__PURE__*/function (_React$Component) {
|
|
|
89
89
|
toolbarSize = _this$props.toolbarSize;
|
|
90
90
|
var alignment = (_pluginState$align = pluginState === null || pluginState === void 0 ? void 0 : pluginState.align) !== null && _pluginState$align !== void 0 ? _pluginState$align : 'start';
|
|
91
91
|
var title = intl.formatMessage(messages.alignment);
|
|
92
|
-
var reducedSpacing = editorExperiment('
|
|
93
|
-
exposure: true
|
|
94
|
-
}) || editorExperiment('platform_editor_contextual_formatting_toolbar_v2', 'variant2', {
|
|
92
|
+
var reducedSpacing = editorExperiment('platform_editor_controls', 'variant1', {
|
|
95
93
|
exposure: true
|
|
96
94
|
}) ? 'compact' : 'none';
|
|
97
95
|
if (toolbarType === ToolbarType.PRIMARY && toolbarSize && toolbarSize > ToolbarSize.XL && editorExperiment('platform_editor_controls', 'variant1', {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-alignment",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.5",
|
|
4
4
|
"description": "Alignment plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@atlaskit/adf-schema": "^47.6.0",
|
|
31
31
|
"@atlaskit/css": "^0.10.0",
|
|
32
|
-
"@atlaskit/editor-common": "^102.
|
|
32
|
+
"@atlaskit/editor-common": "^102.8.0",
|
|
33
33
|
"@atlaskit/editor-plugin-primary-toolbar": "^3.0.0",
|
|
34
34
|
"@atlaskit/editor-plugin-selection-toolbar": "^2.0.0",
|
|
35
35
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
36
36
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
37
37
|
"@atlaskit/icon": "^25.0.0",
|
|
38
38
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
39
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
40
|
-
"@atlaskit/tokens": "^4.
|
|
39
|
+
"@atlaskit/tmp-editor-statsig": "^4.0.0",
|
|
40
|
+
"@atlaskit/tokens": "^4.5.0",
|
|
41
41
|
"@babel/runtime": "^7.0.0",
|
|
42
42
|
"@compiled/react": "^0.18.2"
|
|
43
43
|
},
|