@atlaskit/editor-plugin-alignment 1.4.1 → 1.4.2

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,14 @@
1
1
  # @atlaskit/editor-plugin-alignment
2
2
 
3
+ ## 1.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#109764](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/109764)
8
+ [`0c87bddb30871`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/0c87bddb30871) -
9
+ ED-23659 - fix `Mod-Alt-E` allign text left shortcut
10
+ - Updated dependencies
11
+
3
12
  ## 1.4.1
4
13
 
5
14
  ### 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, _keymap.keymap)(list);
17
+ return (0, _keymaps.keymap)(list);
19
18
  }
@@ -41,7 +41,7 @@ function Alignment(_ref) {
41
41
  intl = _ref.intl;
42
42
  return (0, _react.jsx)("div", {
43
43
  "data-testid": "alignment-buttons"
44
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
44
+ // 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
45
  ,
46
46
  css: _styles.alignmentWrapper
47
47
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -5,6 +5,7 @@ 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/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
8
9
  var alignmentWrapper = exports.alignmentWrapper = (0, _react.css)({
9
10
  padding: "0 ".concat("var(--ds-space-100, 8px)"),
10
11
  display: 'flex',
@@ -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,22 @@ 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/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
8
9
  var triggerWrapper = exports.triggerWrapper = (0, _react.css)({
9
10
  display: 'flex'
10
11
  });
12
+
13
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
11
14
  var wrapper = exports.wrapper = (0, _react.css)({
12
15
  display: 'flex',
13
16
  alignItems: 'center',
17
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
14
18
  div: {
15
19
  display: 'flex'
16
20
  }
17
21
  });
22
+
23
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
18
24
  var expandIconWrapper = exports.expandIconWrapper = (0, _react.css)({
19
25
  marginLeft: "var(--ds-space-negative-100, -8px)"
20
26
  });
@@ -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() {
@@ -34,7 +34,7 @@ function Alignment({
34
34
  }) {
35
35
  return jsx("div", {
36
36
  "data-testid": "alignment-buttons"
37
- // 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
38
38
  ,
39
39
  css: alignmentWrapper
40
40
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -1,4 +1,5 @@
1
1
  import { css } from '@emotion/react';
2
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
2
3
  export const alignmentWrapper = css({
3
4
  padding: `0 ${"var(--ds-space-100, 8px)"}`,
4
5
  display: 'flex',
@@ -72,7 +72,7 @@ export class AlignmentToolbar extends React.Component {
72
72
  const alignment = (_pluginState$align = pluginState === null || pluginState === void 0 ? void 0 : pluginState.align) !== null && _pluginState$align !== void 0 ? _pluginState$align : 'start';
73
73
  const title = intl.formatMessage(messages.alignment);
74
74
  return (
75
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
75
+ // 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
76
  jsx("span", {
77
77
  css: wrapper
78
78
  }, jsx(Dropdown, {
@@ -109,7 +109,7 @@ export class AlignmentToolbar extends React.Component {
109
109
  onClick: this.toggleOpen,
110
110
  onKeyDown: this.toggleOpenByKeyboard,
111
111
  iconBefore:
112
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
112
+ // 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
113
  jsx("div", {
114
114
  css: triggerWrapper
115
115
  }, jsx(IconMap, {
@@ -125,6 +125,7 @@ export class AlignmentToolbar extends React.Component {
125
125
  onClick: align => this.changeAlignment(align, false),
126
126
  selectedAlignment: alignment
127
127
  })), !(api !== null && api !== void 0 && api.primaryToolbar) && /* eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage */
128
+ // 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
129
  jsx("span", {
129
130
  css: separatorStyles
130
131
  }))
@@ -1,14 +1,20 @@
1
1
  import { css } from '@emotion/react';
2
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
2
3
  export const triggerWrapper = css({
3
4
  display: 'flex'
4
5
  });
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
5
8
  export const wrapper = css({
6
9
  display: 'flex',
7
10
  alignItems: 'center',
11
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
8
12
  div: {
9
13
  display: 'flex'
10
14
  }
11
15
  });
16
+
17
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
12
18
  export const expandIconWrapper = css({
13
19
  marginLeft: "var(--ds-space-negative-100, -8px)"
14
20
  });
@@ -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() {
@@ -33,7 +33,7 @@ function Alignment(_ref) {
33
33
  intl = _ref.intl;
34
34
  return jsx("div", {
35
35
  "data-testid": "alignment-buttons"
36
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
36
+ // 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
37
  ,
38
38
  css: alignmentWrapper
39
39
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-classname-prop -- Ignored via go/DSP-18766
@@ -1,4 +1,5 @@
1
1
  import { css } from '@emotion/react';
2
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
2
3
  export var alignmentWrapper = css({
3
4
  padding: "0 ".concat("var(--ds-space-100, 8px)"),
4
5
  display: 'flex',
@@ -88,7 +88,7 @@ export var AlignmentToolbar = /*#__PURE__*/function (_React$Component) {
88
88
  var alignment = (_pluginState$align = pluginState === null || pluginState === void 0 ? void 0 : pluginState.align) !== null && _pluginState$align !== void 0 ? _pluginState$align : 'start';
89
89
  var title = intl.formatMessage(messages.alignment);
90
90
  return (
91
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
91
+ // 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
92
  jsx("span", {
93
93
  css: wrapper
94
94
  }, jsx(Dropdown, {
@@ -125,7 +125,7 @@ export var AlignmentToolbar = /*#__PURE__*/function (_React$Component) {
125
125
  onClick: this.toggleOpen,
126
126
  onKeyDown: this.toggleOpenByKeyboard,
127
127
  iconBefore:
128
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
128
+ // 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
129
  jsx("div", {
130
130
  css: triggerWrapper
131
131
  }, jsx(IconMap, {
@@ -143,6 +143,7 @@ export var AlignmentToolbar = /*#__PURE__*/function (_React$Component) {
143
143
  },
144
144
  selectedAlignment: alignment
145
145
  })), !(api !== null && api !== void 0 && api.primaryToolbar) && /* eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage */
146
+ // 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
147
  jsx("span", {
147
148
  css: separatorStyles
148
149
  }))
@@ -1,14 +1,20 @@
1
1
  import { css } from '@emotion/react';
2
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
2
3
  export var triggerWrapper = css({
3
4
  display: 'flex'
4
5
  });
6
+
7
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
5
8
  export var wrapper = css({
6
9
  display: 'flex',
7
10
  alignItems: 'center',
11
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
8
12
  div: {
9
13
  display: 'flex'
10
14
  }
11
15
  });
16
+
17
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles, @atlaskit/design-system/no-exported-css -- Ignored via go/DSP-18766
12
18
  export var expandIconWrapper = css({
13
19
  marginLeft: "var(--ds-space-negative-100, -8px)"
14
20
  });
package/package.json CHANGED
@@ -1,100 +1,80 @@
1
1
  {
2
- "name": "@atlaskit/editor-plugin-alignment",
3
- "version": "1.4.1",
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": "^36.10.7",
25
- "@atlaskit/editor-common": "^82.0.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.3.0",
30
- "@atlaskit/platform-feature-flags": "^0.2.0",
31
- "@atlaskit/tokens": "^1.49.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.3.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
- }
2
+ "name": "@atlaskit/editor-plugin-alignment",
3
+ "version": "1.4.2",
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": "^36.10.7",
25
+ "@atlaskit/editor-common": "^82.6.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.3.0",
30
+ "@atlaskit/platform-feature-flags": "^0.2.0",
31
+ "@atlaskit/tokens": "^1.50.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.3.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": ["atlassian-conventions"],
54
+ "circular-dependencies": ["file-and-folder-level"]
55
+ },
56
+ "@repo/internal": {
57
+ "dom-events": "use-bind-event-listener",
58
+ "analytics": ["analytics-next"],
59
+ "design-tokens": ["color"],
60
+ "theming": ["react-context"],
61
+ "ui-components": ["lite-mode"],
62
+ "deprecation": "no-deprecated-imports",
63
+ "styling": ["emotion", "emotion"],
64
+ "imports": ["import-no-extraneous-disable-for-examples-and-docs"]
65
+ }
66
+ },
67
+ "typesVersions": {
68
+ ">=4.5 <4.9": {
69
+ "*": ["dist/types-ts4.5/*", "dist/types-ts4.5/index.d.ts"]
70
+ }
71
+ },
72
+ "af:exports": {
73
+ ".": "./src/index.ts"
74
+ },
75
+ "platform-feature-flags": {
76
+ "platform.editor.text-alignment-keyboard-shortcuts": {
77
+ "type": "boolean"
78
+ }
79
+ }
80
+ }