@atlaskit/editor-plugin-alignment 1.7.3 → 1.7.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 +16 -0
- package/dist/cjs/pm-plugins/keymap.js +2 -5
- package/dist/cjs/ui/Alignment/index.js +2 -5
- package/dist/es2019/pm-plugins/keymap.js +2 -5
- package/dist/es2019/ui/Alignment/index.js +2 -5
- package/dist/esm/pm-plugins/keymap.js +2 -5
- package/dist/esm/ui/Alignment/index.js +2 -5
- package/package.json +5 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-alignment
|
|
2
2
|
|
|
3
|
+
## 1.7.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 1.7.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#119412](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/119412)
|
|
14
|
+
[`a714be7c47d68`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a714be7c47d68) -
|
|
15
|
+
[ux] [ED-23047] Remove FF platform.editor.text-alignment-keyboard-shortcuts and make feature
|
|
16
|
+
flagged functionality default
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 1.7.3
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -5,14 +5,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.keymapPlugin = keymapPlugin;
|
|
7
7
|
var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
8
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
9
8
|
var _commands = require("../commands");
|
|
10
9
|
function keymapPlugin() {
|
|
11
10
|
var list = {};
|
|
12
11
|
(0, _keymaps.bindKeymapWithCommand)(_keymaps.alignLeft.common, (0, _commands.changeAlignment)('start'), list);
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
(0, _keymaps.bindKeymapWithCommand)(_keymaps.alignRight.common, (0, _commands.changeAlignment)('end'), list);
|
|
16
|
-
}
|
|
12
|
+
(0, _keymaps.bindKeymapWithCommand)(_keymaps.alignCenter.common, (0, _commands.changeAlignment)('center'), list);
|
|
13
|
+
(0, _keymaps.bindKeymapWithCommand)(_keymaps.alignRight.common, (0, _commands.changeAlignment)('end'), list);
|
|
17
14
|
return (0, _keymaps.keymap)(list);
|
|
18
15
|
}
|
|
@@ -9,7 +9,6 @@ var _react = require("@emotion/react");
|
|
|
9
9
|
var _reactIntlNext = require("react-intl-next");
|
|
10
10
|
var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
11
11
|
var _messages = require("@atlaskit/editor-common/messages");
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
12
|
var _iconMap = require("../ToolbarAlignment/icon-map");
|
|
14
13
|
var _AlignmentButton = _interopRequireDefault(require("./AlignmentButton"));
|
|
15
14
|
var _styles = require("./styles");
|
|
@@ -18,10 +17,8 @@ var _styles = require("./styles");
|
|
|
18
17
|
|
|
19
18
|
var alignCenterKeyboardShortcut;
|
|
20
19
|
var alignRightKeyboardShortcut;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
alignRightKeyboardShortcut = _keymaps.alignRight;
|
|
24
|
-
}
|
|
20
|
+
alignCenterKeyboardShortcut = _keymaps.alignCenter;
|
|
21
|
+
alignRightKeyboardShortcut = _keymaps.alignRight;
|
|
25
22
|
var alignmentOptions = [{
|
|
26
23
|
title: _messages.alignmentMessages.alignLeft,
|
|
27
24
|
shortcut: _keymaps.alignLeft,
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { alignCenter, alignLeft, alignRight, bindKeymapWithCommand, keymap } from '@atlaskit/editor-common/keymaps';
|
|
2
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
3
2
|
import { changeAlignment } from '../commands';
|
|
4
3
|
export function keymapPlugin() {
|
|
5
4
|
const list = {};
|
|
6
5
|
bindKeymapWithCommand(alignLeft.common, changeAlignment('start'), list);
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
bindKeymapWithCommand(alignRight.common, changeAlignment('end'), list);
|
|
10
|
-
}
|
|
6
|
+
bindKeymapWithCommand(alignCenter.common, changeAlignment('center'), list);
|
|
7
|
+
bindKeymapWithCommand(alignRight.common, changeAlignment('end'), list);
|
|
11
8
|
return keymap(list);
|
|
12
9
|
}
|
|
@@ -4,16 +4,13 @@ import { jsx } from '@emotion/react';
|
|
|
4
4
|
import { injectIntl } from 'react-intl-next';
|
|
5
5
|
import { alignCenter, alignLeft, alignRight } from '@atlaskit/editor-common/keymaps';
|
|
6
6
|
import { alignmentMessages } from '@atlaskit/editor-common/messages';
|
|
7
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
import { IconMap } from '../ToolbarAlignment/icon-map';
|
|
9
8
|
import AlignmentButton from './AlignmentButton';
|
|
10
9
|
import { alignmentWrapper } from './styles';
|
|
11
10
|
let alignCenterKeyboardShortcut;
|
|
12
11
|
let alignRightKeyboardShortcut;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
alignRightKeyboardShortcut = alignRight;
|
|
16
|
-
}
|
|
12
|
+
alignCenterKeyboardShortcut = alignCenter;
|
|
13
|
+
alignRightKeyboardShortcut = alignRight;
|
|
17
14
|
const alignmentOptions = [{
|
|
18
15
|
title: alignmentMessages.alignLeft,
|
|
19
16
|
shortcut: alignLeft,
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import { alignCenter, alignLeft, alignRight, bindKeymapWithCommand, keymap } from '@atlaskit/editor-common/keymaps';
|
|
2
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
3
2
|
import { changeAlignment } from '../commands';
|
|
4
3
|
export function keymapPlugin() {
|
|
5
4
|
var list = {};
|
|
6
5
|
bindKeymapWithCommand(alignLeft.common, changeAlignment('start'), list);
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
bindKeymapWithCommand(alignRight.common, changeAlignment('end'), list);
|
|
10
|
-
}
|
|
6
|
+
bindKeymapWithCommand(alignCenter.common, changeAlignment('center'), list);
|
|
7
|
+
bindKeymapWithCommand(alignRight.common, changeAlignment('end'), list);
|
|
11
8
|
return keymap(list);
|
|
12
9
|
}
|
|
@@ -4,16 +4,13 @@ import { jsx } from '@emotion/react';
|
|
|
4
4
|
import { injectIntl } from 'react-intl-next';
|
|
5
5
|
import { alignCenter, alignLeft, alignRight } from '@atlaskit/editor-common/keymaps';
|
|
6
6
|
import { alignmentMessages } from '@atlaskit/editor-common/messages';
|
|
7
|
-
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
8
7
|
import { IconMap } from '../ToolbarAlignment/icon-map';
|
|
9
8
|
import AlignmentButton from './AlignmentButton';
|
|
10
9
|
import { alignmentWrapper } from './styles';
|
|
11
10
|
var alignCenterKeyboardShortcut;
|
|
12
11
|
var alignRightKeyboardShortcut;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
alignRightKeyboardShortcut = alignRight;
|
|
16
|
-
}
|
|
12
|
+
alignCenterKeyboardShortcut = alignCenter;
|
|
13
|
+
alignRightKeyboardShortcut = alignRight;
|
|
17
14
|
var alignmentOptions = [{
|
|
18
15
|
title: alignmentMessages.alignLeft,
|
|
19
16
|
shortcut: alignLeft,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-alignment",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.5",
|
|
4
4
|
"description": "Alignment plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@atlaskit/adf-schema": "^39.0.3",
|
|
25
|
-
"@atlaskit/editor-common": "^
|
|
26
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^1.
|
|
25
|
+
"@atlaskit/editor-common": "^86.0.0",
|
|
26
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^1.2.0",
|
|
27
27
|
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
28
28
|
"@atlaskit/editor-tables": "^2.7.0",
|
|
29
|
-
"@atlaskit/icon": "^22.
|
|
29
|
+
"@atlaskit/icon": "^22.6.0",
|
|
30
30
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
31
|
-
"@atlaskit/tokens": "^1.
|
|
31
|
+
"@atlaskit/tokens": "^1.55.0",
|
|
32
32
|
"@babel/runtime": "^7.0.0",
|
|
33
33
|
"@emotion/react": "^11.7.1"
|
|
34
34
|
},
|
|
@@ -93,9 +93,6 @@
|
|
|
93
93
|
".": "./src/index.ts"
|
|
94
94
|
},
|
|
95
95
|
"platform-feature-flags": {
|
|
96
|
-
"platform.editor.text-alignment-keyboard-shortcuts": {
|
|
97
|
-
"type": "boolean"
|
|
98
|
-
},
|
|
99
96
|
"platform.editor.a11y-main-toolbar-navigation_osrty": {
|
|
100
97
|
"type": "boolean"
|
|
101
98
|
}
|