@atlaskit/editor-plugin-alignment 1.4.1 → 1.5.0
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 +21 -0
- package/dist/cjs/pm-plugins/keymap.js +1 -2
- package/dist/cjs/ui/Alignment/index.js +2 -1
- package/dist/cjs/ui/Alignment/styles.js +3 -0
- package/dist/cjs/ui/ToolbarAlignment/index.js +4 -3
- package/dist/cjs/ui/ToolbarAlignment/styles.js +8 -0
- package/dist/es2019/pm-plugins/keymap.js +1 -2
- package/dist/es2019/ui/Alignment/index.js +2 -1
- package/dist/es2019/ui/Alignment/styles.js +2 -0
- package/dist/es2019/ui/ToolbarAlignment/index.js +5 -2
- package/dist/es2019/ui/ToolbarAlignment/styles.js +7 -0
- package/dist/esm/pm-plugins/keymap.js +1 -2
- package/dist/esm/ui/Alignment/index.js +2 -1
- package/dist/esm/ui/Alignment/styles.js +2 -0
- package/dist/esm/ui/ToolbarAlignment/index.js +5 -2
- package/dist/esm/ui/ToolbarAlignment/styles.js +7 -0
- package/package.json +99 -99
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-alignment
|
|
2
2
|
|
|
3
|
+
## 1.5.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#114156](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/114156)
|
|
8
|
+
[`bc6a63af2d1d0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/bc6a63af2d1d0) -
|
|
9
|
+
Bump adf-schema to 37.0.0 and adf-schema-json to 1.16.0
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies
|
|
14
|
+
|
|
15
|
+
## 1.4.2
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#109764](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109764)
|
|
20
|
+
[`0c87bddb30871`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c87bddb30871) -
|
|
21
|
+
ED-23659 - fix `Mod-Alt-E` allign text left shortcut
|
|
22
|
+
- Updated dependencies
|
|
23
|
+
|
|
3
24
|
## 1.4.1
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.keymapPlugin = keymapPlugin;
|
|
7
7
|
var _keymaps = require("@atlaskit/editor-common/keymaps");
|
|
8
|
-
var _keymap = require("@atlaskit/editor-prosemirror/keymap");
|
|
9
8
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
10
9
|
var _commands = require("../commands");
|
|
11
10
|
function keymapPlugin() {
|
|
@@ -15,5 +14,5 @@ function keymapPlugin() {
|
|
|
15
14
|
(0, _keymaps.bindKeymapWithCommand)(_keymaps.alignCenter.common, (0, _commands.changeAlignment)('center'), list);
|
|
16
15
|
(0, _keymaps.bindKeymapWithCommand)(_keymaps.alignRight.common, (0, _commands.changeAlignment)('end'), list);
|
|
17
16
|
}
|
|
18
|
-
return (0,
|
|
17
|
+
return (0, _keymaps.keymap)(list);
|
|
19
18
|
}
|
|
@@ -14,6 +14,7 @@ var _iconMap = require("../ToolbarAlignment/icon-map");
|
|
|
14
14
|
var _AlignmentButton = _interopRequireDefault(require("./AlignmentButton"));
|
|
15
15
|
var _styles = require("./styles");
|
|
16
16
|
/** @jsx jsx */
|
|
17
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
17
18
|
|
|
18
19
|
var alignCenterKeyboardShortcut;
|
|
19
20
|
var alignRightKeyboardShortcut;
|
|
@@ -41,7 +42,7 @@ function Alignment(_ref) {
|
|
|
41
42
|
intl = _ref.intl;
|
|
42
43
|
return (0, _react.jsx)("div", {
|
|
43
44
|
"data-testid": "alignment-buttons"
|
|
44
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
45
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
45
46
|
,
|
|
46
47
|
css: _styles.alignmentWrapper
|
|
47
48
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -5,6 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.alignmentWrapper = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
8
11
|
var alignmentWrapper = exports.alignmentWrapper = (0, _react.css)({
|
|
9
12
|
padding: "0 ".concat("var(--ds-space-100, 8px)"),
|
|
10
13
|
display: 'flex',
|
|
@@ -23,7 +23,7 @@ var _Alignment = _interopRequireDefault(require("../Alignment"));
|
|
|
23
23
|
var _iconMap = require("./icon-map");
|
|
24
24
|
var _styles2 = require("./styles");
|
|
25
25
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
26
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */
|
|
26
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /** @jsx jsx */ // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
27
27
|
// eslint-disable-next-line @repo/internal/react/no-class-components
|
|
28
28
|
var AlignmentToolbar = exports.AlignmentToolbar = /*#__PURE__*/function (_React$Component) {
|
|
29
29
|
(0, _inherits2.default)(AlignmentToolbar, _React$Component);
|
|
@@ -94,7 +94,7 @@ var AlignmentToolbar = exports.AlignmentToolbar = /*#__PURE__*/function (_React$
|
|
|
94
94
|
var alignment = (_pluginState$align = pluginState === null || pluginState === void 0 ? void 0 : pluginState.align) !== null && _pluginState$align !== void 0 ? _pluginState$align : 'start';
|
|
95
95
|
var title = intl.formatMessage(_messages.alignmentMessages.alignment);
|
|
96
96
|
return (
|
|
97
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
97
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
98
98
|
(0, _react2.jsx)("span", {
|
|
99
99
|
css: _styles2.wrapper
|
|
100
100
|
}, (0, _react2.jsx)(_uiMenu.DropdownContainer, {
|
|
@@ -131,7 +131,7 @@ var AlignmentToolbar = exports.AlignmentToolbar = /*#__PURE__*/function (_React$
|
|
|
131
131
|
onClick: this.toggleOpen,
|
|
132
132
|
onKeyDown: this.toggleOpenByKeyboard,
|
|
133
133
|
iconBefore:
|
|
134
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
134
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
135
135
|
(0, _react2.jsx)("div", {
|
|
136
136
|
css: _styles2.triggerWrapper
|
|
137
137
|
}, (0, _react2.jsx)(_iconMap.IconMap, {
|
|
@@ -149,6 +149,7 @@ var AlignmentToolbar = exports.AlignmentToolbar = /*#__PURE__*/function (_React$
|
|
|
149
149
|
},
|
|
150
150
|
selectedAlignment: alignment
|
|
151
151
|
})), !(api !== null && api !== void 0 && api.primaryToolbar) && /* eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage */
|
|
152
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
152
153
|
(0, _react2.jsx)("span", {
|
|
153
154
|
css: _styles.separatorStyles
|
|
154
155
|
}))
|
|
@@ -5,16 +5,24 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.wrapper = exports.triggerWrapper = exports.expandIconWrapper = void 0;
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
9
|
+
|
|
10
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
8
11
|
var triggerWrapper = exports.triggerWrapper = (0, _react.css)({
|
|
9
12
|
display: 'flex'
|
|
10
13
|
});
|
|
14
|
+
|
|
15
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
11
16
|
var wrapper = exports.wrapper = (0, _react.css)({
|
|
12
17
|
display: 'flex',
|
|
13
18
|
alignItems: 'center',
|
|
19
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
14
20
|
div: {
|
|
15
21
|
display: 'flex'
|
|
16
22
|
}
|
|
17
23
|
});
|
|
24
|
+
|
|
25
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
18
26
|
var expandIconWrapper = exports.expandIconWrapper = (0, _react.css)({
|
|
19
27
|
marginLeft: "var(--ds-space-negative-100, -8px)"
|
|
20
28
|
});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { alignCenter, alignLeft, alignRight, bindKeymapWithCommand } from '@atlaskit/editor-common/keymaps';
|
|
2
|
-
import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
1
|
+
import { alignCenter, alignLeft, alignRight, bindKeymapWithCommand, keymap } from '@atlaskit/editor-common/keymaps';
|
|
3
2
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import { changeAlignment } from '../commands';
|
|
5
4
|
export function keymapPlugin() {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { jsx } from '@emotion/react';
|
|
3
4
|
import { injectIntl } from 'react-intl-next';
|
|
4
5
|
import { alignCenter, alignLeft, alignRight } from '@atlaskit/editor-common/keymaps';
|
|
@@ -34,7 +35,7 @@ function Alignment({
|
|
|
34
35
|
}) {
|
|
35
36
|
return jsx("div", {
|
|
36
37
|
"data-testid": "alignment-buttons"
|
|
37
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
38
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
38
39
|
,
|
|
39
40
|
css: alignmentWrapper
|
|
40
41
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
2
4
|
export const alignmentWrapper = css({
|
|
3
5
|
padding: `0 ${"var(--ds-space-100, 8px)"}`,
|
|
4
6
|
display: 'flex',
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
2
|
/** @jsx jsx */
|
|
3
3
|
import React from 'react';
|
|
4
|
+
|
|
5
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
4
6
|
import { jsx } from '@emotion/react';
|
|
5
7
|
import { injectIntl } from 'react-intl-next';
|
|
6
8
|
import { alignmentMessages as messages } from '@atlaskit/editor-common/messages';
|
|
@@ -72,7 +74,7 @@ export class AlignmentToolbar extends React.Component {
|
|
|
72
74
|
const alignment = (_pluginState$align = pluginState === null || pluginState === void 0 ? void 0 : pluginState.align) !== null && _pluginState$align !== void 0 ? _pluginState$align : 'start';
|
|
73
75
|
const title = intl.formatMessage(messages.alignment);
|
|
74
76
|
return (
|
|
75
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
77
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
76
78
|
jsx("span", {
|
|
77
79
|
css: wrapper
|
|
78
80
|
}, jsx(Dropdown, {
|
|
@@ -109,7 +111,7 @@ export class AlignmentToolbar extends React.Component {
|
|
|
109
111
|
onClick: this.toggleOpen,
|
|
110
112
|
onKeyDown: this.toggleOpenByKeyboard,
|
|
111
113
|
iconBefore:
|
|
112
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
114
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
113
115
|
jsx("div", {
|
|
114
116
|
css: triggerWrapper
|
|
115
117
|
}, jsx(IconMap, {
|
|
@@ -125,6 +127,7 @@ export class AlignmentToolbar extends React.Component {
|
|
|
125
127
|
onClick: align => this.changeAlignment(align, false),
|
|
126
128
|
selectedAlignment: alignment
|
|
127
129
|
})), !(api !== null && api !== void 0 && api.primaryToolbar) && /* eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage */
|
|
130
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
128
131
|
jsx("span", {
|
|
129
132
|
css: separatorStyles
|
|
130
133
|
}))
|
|
@@ -1,14 +1,21 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
2
4
|
export const triggerWrapper = css({
|
|
3
5
|
display: 'flex'
|
|
4
6
|
});
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
5
9
|
export const wrapper = css({
|
|
6
10
|
display: 'flex',
|
|
7
11
|
alignItems: 'center',
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
8
13
|
div: {
|
|
9
14
|
display: 'flex'
|
|
10
15
|
}
|
|
11
16
|
});
|
|
17
|
+
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
12
19
|
export const expandIconWrapper = css({
|
|
13
20
|
marginLeft: "var(--ds-space-negative-100, -8px)"
|
|
14
21
|
});
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { alignCenter, alignLeft, alignRight, bindKeymapWithCommand } from '@atlaskit/editor-common/keymaps';
|
|
2
|
-
import { keymap } from '@atlaskit/editor-prosemirror/keymap';
|
|
1
|
+
import { alignCenter, alignLeft, alignRight, bindKeymapWithCommand, keymap } from '@atlaskit/editor-common/keymaps';
|
|
3
2
|
import { getBooleanFF } from '@atlaskit/platform-feature-flags';
|
|
4
3
|
import { changeAlignment } from '../commands';
|
|
5
4
|
export function keymapPlugin() {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/** @jsx jsx */
|
|
2
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
2
3
|
import { jsx } from '@emotion/react';
|
|
3
4
|
import { injectIntl } from 'react-intl-next';
|
|
4
5
|
import { alignCenter, alignLeft, alignRight } from '@atlaskit/editor-common/keymaps';
|
|
@@ -33,7 +34,7 @@ function Alignment(_ref) {
|
|
|
33
34
|
intl = _ref.intl;
|
|
34
35
|
return jsx("div", {
|
|
35
36
|
"data-testid": "alignment-buttons"
|
|
36
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
37
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
37
38
|
,
|
|
38
39
|
css: alignmentWrapper
|
|
39
40
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
2
4
|
export var alignmentWrapper = css({
|
|
3
5
|
padding: "0 ".concat("var(--ds-space-100, 8px)"),
|
|
4
6
|
display: 'flex',
|
|
@@ -9,6 +9,8 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
9
9
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
10
10
|
/** @jsx jsx */
|
|
11
11
|
import React from 'react';
|
|
12
|
+
|
|
13
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
12
14
|
import { jsx } from '@emotion/react';
|
|
13
15
|
import { injectIntl } from 'react-intl-next';
|
|
14
16
|
import { alignmentMessages as messages } from '@atlaskit/editor-common/messages';
|
|
@@ -88,7 +90,7 @@ export var AlignmentToolbar = /*#__PURE__*/function (_React$Component) {
|
|
|
88
90
|
var alignment = (_pluginState$align = pluginState === null || pluginState === void 0 ? void 0 : pluginState.align) !== null && _pluginState$align !== void 0 ? _pluginState$align : 'start';
|
|
89
91
|
var title = intl.formatMessage(messages.alignment);
|
|
90
92
|
return (
|
|
91
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
93
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
92
94
|
jsx("span", {
|
|
93
95
|
css: wrapper
|
|
94
96
|
}, jsx(Dropdown, {
|
|
@@ -125,7 +127,7 @@ export var AlignmentToolbar = /*#__PURE__*/function (_React$Component) {
|
|
|
125
127
|
onClick: this.toggleOpen,
|
|
126
128
|
onKeyDown: this.toggleOpenByKeyboard,
|
|
127
129
|
iconBefore:
|
|
128
|
-
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
|
|
130
|
+
// eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
|
|
129
131
|
jsx("div", {
|
|
130
132
|
css: triggerWrapper
|
|
131
133
|
}, jsx(IconMap, {
|
|
@@ -143,6 +145,7 @@ export var AlignmentToolbar = /*#__PURE__*/function (_React$Component) {
|
|
|
143
145
|
},
|
|
144
146
|
selectedAlignment: alignment
|
|
145
147
|
})), !(api !== null && api !== void 0 && api.primaryToolbar) && /* eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage */
|
|
148
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
|
|
146
149
|
jsx("span", {
|
|
147
150
|
css: separatorStyles
|
|
148
151
|
}))
|
|
@@ -1,14 +1,21 @@
|
|
|
1
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
1
2
|
import { css } from '@emotion/react';
|
|
3
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
2
4
|
export var triggerWrapper = css({
|
|
3
5
|
display: 'flex'
|
|
4
6
|
});
|
|
7
|
+
|
|
8
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
5
9
|
export var wrapper = css({
|
|
6
10
|
display: 'flex',
|
|
7
11
|
alignItems: 'center',
|
|
12
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
8
13
|
div: {
|
|
9
14
|
display: 'flex'
|
|
10
15
|
}
|
|
11
16
|
});
|
|
17
|
+
|
|
18
|
+
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
|
|
12
19
|
export var expandIconWrapper = css({
|
|
13
20
|
marginLeft: "var(--ds-space-negative-100, -8px)"
|
|
14
21
|
});
|
package/package.json
CHANGED
|
@@ -1,100 +1,100 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
}
|
|
2
|
+
"name": "@atlaskit/editor-plugin-alignment",
|
|
3
|
+
"version": "1.5.0",
|
|
4
|
+
"description": "Alignment plugin for @atlaskit/editor-core",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"registry": "https://registry.npmjs.org/"
|
|
7
|
+
},
|
|
8
|
+
"repository": "https://bitbucket.org/atlassian/atlassian-frontend-mirror",
|
|
9
|
+
"author": "Atlassian Pty Ltd",
|
|
10
|
+
"license": "Apache-2.0",
|
|
11
|
+
"main": "dist/cjs/index.js",
|
|
12
|
+
"module": "dist/esm/index.js",
|
|
13
|
+
"module:es2019": "dist/es2019/index.js",
|
|
14
|
+
"types": "dist/types/index.d.ts",
|
|
15
|
+
"sideEffects": false,
|
|
16
|
+
"atlaskit:src": "src/index.ts",
|
|
17
|
+
"atlassian": {
|
|
18
|
+
"team": "Editor: AI",
|
|
19
|
+
"releaseModel": "continuous",
|
|
20
|
+
"singleton": true,
|
|
21
|
+
"runReact18": false
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"@atlaskit/adf-schema": "^37.0.0",
|
|
25
|
+
"@atlaskit/editor-common": "^82.12.0",
|
|
26
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^1.1.0",
|
|
27
|
+
"@atlaskit/editor-prosemirror": "4.0.1",
|
|
28
|
+
"@atlaskit/editor-tables": "^2.7.0",
|
|
29
|
+
"@atlaskit/icon": "^22.4.0",
|
|
30
|
+
"@atlaskit/platform-feature-flags": "^0.2.0",
|
|
31
|
+
"@atlaskit/tokens": "^1.53.0",
|
|
32
|
+
"@babel/runtime": "^7.0.0",
|
|
33
|
+
"@emotion/react": "^11.7.1"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"react": "^16.8.0",
|
|
37
|
+
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@af/integration-testing": "*",
|
|
41
|
+
"@af/visual-regression": "*",
|
|
42
|
+
"@atlaskit/editor-plugin-list": "^3.4.0",
|
|
43
|
+
"@atlaskit/ssr": "*",
|
|
44
|
+
"@atlaskit/visual-regression": "*",
|
|
45
|
+
"@testing-library/react": "^12.1.5",
|
|
46
|
+
"@testing-library/user-event": "^14.4.3",
|
|
47
|
+
"react-dom": "^16.8.0",
|
|
48
|
+
"typescript": "~5.4.2",
|
|
49
|
+
"wait-for-expect": "^1.2.0"
|
|
50
|
+
},
|
|
51
|
+
"techstack": {
|
|
52
|
+
"@atlassian/frontend": {
|
|
53
|
+
"import-structure": [
|
|
54
|
+
"atlassian-conventions"
|
|
55
|
+
],
|
|
56
|
+
"circular-dependencies": [
|
|
57
|
+
"file-and-folder-level"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"@repo/internal": {
|
|
61
|
+
"dom-events": "use-bind-event-listener",
|
|
62
|
+
"analytics": [
|
|
63
|
+
"analytics-next"
|
|
64
|
+
],
|
|
65
|
+
"design-tokens": [
|
|
66
|
+
"color"
|
|
67
|
+
],
|
|
68
|
+
"theming": [
|
|
69
|
+
"react-context"
|
|
70
|
+
],
|
|
71
|
+
"ui-components": [
|
|
72
|
+
"lite-mode"
|
|
73
|
+
],
|
|
74
|
+
"deprecation": "no-deprecated-imports",
|
|
75
|
+
"styling": [
|
|
76
|
+
"emotion",
|
|
77
|
+
"emotion"
|
|
78
|
+
],
|
|
79
|
+
"imports": [
|
|
80
|
+
"import-no-extraneous-disable-for-examples-and-docs"
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"typesVersions": {
|
|
85
|
+
">=4.5 <4.9": {
|
|
86
|
+
"*": [
|
|
87
|
+
"dist/types-ts4.5/*",
|
|
88
|
+
"dist/types-ts4.5/index.d.ts"
|
|
89
|
+
]
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"af:exports": {
|
|
93
|
+
".": "./src/index.ts"
|
|
94
|
+
},
|
|
95
|
+
"platform-feature-flags": {
|
|
96
|
+
"platform.editor.text-alignment-keyboard-shortcuts": {
|
|
97
|
+
"type": "boolean"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|