@atlaskit/editor-plugin-alignment 1.7.2 → 1.7.4
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/cjs/ui/Alignment/styles.js +1 -1
- package/dist/cjs/ui/ToolbarAlignment/styles.js +3 -3
- package/dist/es2019/pm-plugins/keymap.js +2 -5
- package/dist/es2019/ui/Alignment/index.js +2 -5
- package/dist/es2019/ui/Alignment/styles.js +1 -1
- package/dist/es2019/ui/ToolbarAlignment/styles.js +3 -3
- package/dist/esm/pm-plugins/keymap.js +2 -5
- package/dist/esm/ui/Alignment/index.js +2 -5
- package/dist/esm/ui/Alignment/styles.js +1 -1
- package/dist/esm/ui/ToolbarAlignment/styles.js +3 -3
- package/package.json +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-alignment
|
|
2
2
|
|
|
3
|
+
## 1.7.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#119412](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/119412)
|
|
8
|
+
[`a714be7c47d68`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a714be7c47d68) -
|
|
9
|
+
[ux] [ED-23047] Remove FF platform.editor.text-alignment-keyboard-shortcuts and make feature
|
|
10
|
+
flagged functionality default
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
|
|
13
|
+
## 1.7.3
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies
|
|
18
|
+
|
|
3
19
|
## 1.7.2
|
|
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,
|
|
@@ -7,7 +7,7 @@ exports.alignmentWrapper = void 0;
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
|
|
10
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
11
11
|
var alignmentWrapper = exports.alignmentWrapper = (0, _react.css)({
|
|
12
12
|
padding: "0 ".concat("var(--ds-space-100, 8px)"),
|
|
13
13
|
display: 'flex',
|
|
@@ -7,12 +7,12 @@ exports.wrapper = exports.triggerWrapper = exports.expandIconWrapper = void 0;
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
9
|
|
|
10
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
11
11
|
var triggerWrapper = exports.triggerWrapper = (0, _react.css)({
|
|
12
12
|
display: 'flex'
|
|
13
13
|
});
|
|
14
14
|
|
|
15
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
16
16
|
var wrapper = exports.wrapper = (0, _react.css)({
|
|
17
17
|
display: 'flex',
|
|
18
18
|
alignItems: 'center',
|
|
@@ -22,7 +22,7 @@ var wrapper = exports.wrapper = (0, _react.css)({
|
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
|
|
25
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
26
26
|
var expandIconWrapper = exports.expandIconWrapper = (0, _react.css)({
|
|
27
27
|
marginLeft: "var(--ds-space-negative-100, -8px)"
|
|
28
28
|
});
|
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
4
|
export const alignmentWrapper = css({
|
|
5
5
|
padding: `0 ${"var(--ds-space-100, 8px)"}`,
|
|
6
6
|
display: 'flex',
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
4
|
export const triggerWrapper = css({
|
|
5
5
|
display: 'flex'
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
9
9
|
export const wrapper = css({
|
|
10
10
|
display: 'flex',
|
|
11
11
|
alignItems: 'center',
|
|
@@ -15,7 +15,7 @@ export const wrapper = css({
|
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
17
|
|
|
18
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
19
19
|
export const expandIconWrapper = css({
|
|
20
20
|
marginLeft: "var(--ds-space-negative-100, -8px)"
|
|
21
21
|
});
|
|
@@ -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,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
4
|
export var alignmentWrapper = css({
|
|
5
5
|
padding: "0 ".concat("var(--ds-space-100, 8px)"),
|
|
6
6
|
display: 'flex',
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
2
|
import { css } from '@emotion/react';
|
|
3
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
4
4
|
export var triggerWrapper = css({
|
|
5
5
|
display: 'flex'
|
|
6
6
|
});
|
|
7
7
|
|
|
8
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
9
9
|
export var wrapper = css({
|
|
10
10
|
display: 'flex',
|
|
11
11
|
alignItems: 'center',
|
|
@@ -15,7 +15,7 @@ export var wrapper = css({
|
|
|
15
15
|
}
|
|
16
16
|
});
|
|
17
17
|
|
|
18
|
-
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
19
19
|
export var expandIconWrapper = css({
|
|
20
20
|
marginLeft: "var(--ds-space-negative-100, -8px)"
|
|
21
21
|
});
|
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.4",
|
|
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": "^
|
|
25
|
+
"@atlaskit/editor-common": "^85.0.0",
|
|
26
26
|
"@atlaskit/editor-plugin-primary-toolbar": "^1.1.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.54.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
|
}
|