@atlaskit/editor-plugin-toolbar-lists-indentation 1.12.4 → 1.12.6

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,22 @@
1
1
  # @atlaskit/editor-plugin-toolbar-lists-indentation
2
2
 
3
+ ## 1.12.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#140915](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/140915)
8
+ [`eaccad51157d6`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/eaccad51157d6) -
9
+ [ux] Migrate new icons including color, highlight and task on Editor primary toolbar
10
+
11
+ ## 1.12.5
12
+
13
+ ### Patch Changes
14
+
15
+ - [#139334](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/139334)
16
+ [`30793649657c0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/30793649657c0) -
17
+ [HOT-111629] We had an incident where the last character disappears when hitting the enter key on
18
+ windows OS for Korean characters. Bumping to prosemirror-view@1.34.2 for the fix.
19
+
3
20
  ## 1.12.4
4
21
 
5
22
  ### Patch Changes
@@ -14,8 +14,9 @@ var _messages = require("@atlaskit/editor-common/messages");
14
14
  var _styles = require("@atlaskit/editor-common/styles");
15
15
  var _uiMenu = require("@atlaskit/editor-common/ui-menu");
16
16
  var _shortcut = require("@atlaskit/editor-shared-styles/shortcut");
17
- var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-down"));
18
- var _bulletList = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/bullet-list"));
17
+ var _listBulletedEditorBulletList = _interopRequireDefault(require("@atlaskit/icon/core/migration/list-bulleted--editor-bullet-list"));
18
+ var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-down"));
19
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
19
20
  /**
20
21
  * @jsxRuntime classic
21
22
  * @jsx jsx
@@ -105,12 +106,20 @@ function ToolbarDropdown(props) {
105
106
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage, @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
106
107
  (0, _react2.jsx)("span", {
107
108
  css: _styles.wrapperStyle
108
- }, (0, _react2.jsx)(_bulletList.default, {
109
+ }, (0, _react2.jsx)(_listBulletedEditorBulletList.default, {
110
+ color: "currentColor",
111
+ spacing: "spacious",
109
112
  label: labelLists
110
113
  }), (0, _react2.jsx)("span", {
111
- css: _styles.expandIconWrapperStyle
114
+ css: [
115
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
116
+ (0, _platformFeatureFlags.fg)('platform.design-system-team.enable-new-icons') &&
117
+ //eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
118
+ _styles.expandIconContainerStyle]
112
119
  }, (0, _react2.jsx)(_chevronDown.default, {
113
- label: ""
120
+ color: "currentColor",
121
+ label: "",
122
+ LEGACY_margin: "0 0 0 -8px"
114
123
  })))
115
124
  })), !(pluginInjectionApi !== null && pluginInjectionApi !== void 0 && pluginInjectionApi.primaryToolbar) && /* eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage */
116
125
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
@@ -9,11 +9,12 @@ import { jsx } from '@emotion/react';
9
9
  import { useIntl } from 'react-intl-next';
10
10
  import { toggleBulletList as toggleBulletListKeymap, indent as toggleIndentKeymap, toggleOrderedList as toggleOrderedListKeymap, outdent as toggleOutdentKeymap, tooltip } from '@atlaskit/editor-common/keymaps';
11
11
  import { indentationMessages, listMessages } from '@atlaskit/editor-common/messages';
12
- import { expandIconWrapperStyle, separatorStyles, wrapperStyle } from '@atlaskit/editor-common/styles';
12
+ import { expandIconContainerStyle, separatorStyles, wrapperStyle } from '@atlaskit/editor-common/styles';
13
13
  import { DropdownMenuWithKeyboardNavigation as DropdownMenu, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
14
14
  import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
15
- import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
16
- import BulletListIcon from '@atlaskit/icon/glyph/editor/bullet-list';
15
+ import BulletListIcon from '@atlaskit/icon/core/migration/list-bulleted--editor-bullet-list';
16
+ import ExpandIcon from '@atlaskit/icon/utility/migration/chevron-down';
17
+ import { fg } from '@atlaskit/platform-feature-flags';
17
18
  export function ToolbarDropdown(props) {
18
19
  const {
19
20
  formatMessage
@@ -94,11 +95,19 @@ export function ToolbarDropdown(props) {
94
95
  jsx("span", {
95
96
  css: wrapperStyle
96
97
  }, jsx(BulletListIcon, {
98
+ color: "currentColor",
99
+ spacing: "spacious",
97
100
  label: labelLists
98
101
  }), jsx("span", {
99
- css: expandIconWrapperStyle
102
+ css: [
103
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
104
+ fg('platform.design-system-team.enable-new-icons') &&
105
+ //eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
106
+ expandIconContainerStyle]
100
107
  }, jsx(ExpandIcon, {
101
- label: ""
108
+ color: "currentColor",
109
+ label: "",
110
+ LEGACY_margin: "0 0 0 -8px"
102
111
  })))
103
112
  })), !(pluginInjectionApi !== null && pluginInjectionApi !== void 0 && pluginInjectionApi.primaryToolbar) && /* eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage */
104
113
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
@@ -10,11 +10,12 @@ import { jsx } from '@emotion/react';
10
10
  import { useIntl } from 'react-intl-next';
11
11
  import { toggleBulletList as toggleBulletListKeymap, indent as toggleIndentKeymap, toggleOrderedList as toggleOrderedListKeymap, outdent as toggleOutdentKeymap, tooltip } from '@atlaskit/editor-common/keymaps';
12
12
  import { indentationMessages, listMessages } from '@atlaskit/editor-common/messages';
13
- import { expandIconWrapperStyle, separatorStyles, wrapperStyle } from '@atlaskit/editor-common/styles';
13
+ import { expandIconContainerStyle, separatorStyles, wrapperStyle } from '@atlaskit/editor-common/styles';
14
14
  import { DropdownMenuWithKeyboardNavigation as DropdownMenu, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
15
15
  import { shortcutStyle } from '@atlaskit/editor-shared-styles/shortcut';
16
- import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
17
- import BulletListIcon from '@atlaskit/icon/glyph/editor/bullet-list';
16
+ import BulletListIcon from '@atlaskit/icon/core/migration/list-bulleted--editor-bullet-list';
17
+ import ExpandIcon from '@atlaskit/icon/utility/migration/chevron-down';
18
+ import { fg } from '@atlaskit/platform-feature-flags';
18
19
  export function ToolbarDropdown(props) {
19
20
  var _useIntl = useIntl(),
20
21
  formatMessage = _useIntl.formatMessage;
@@ -98,11 +99,19 @@ export function ToolbarDropdown(props) {
98
99
  jsx("span", {
99
100
  css: wrapperStyle
100
101
  }, jsx(BulletListIcon, {
102
+ color: "currentColor",
103
+ spacing: "spacious",
101
104
  label: labelLists
102
105
  }), jsx("span", {
103
- css: expandIconWrapperStyle
106
+ css: [
107
+ // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-registration
108
+ fg('platform.design-system-team.enable-new-icons') &&
109
+ //eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
110
+ expandIconContainerStyle]
104
111
  }, jsx(ExpandIcon, {
105
- label: ""
112
+ color: "currentColor",
113
+ label: "",
114
+ LEGACY_margin: "0 0 0 -8px"
106
115
  })))
107
116
  })), !(pluginInjectionApi !== null && pluginInjectionApi !== void 0 && pluginInjectionApi.primaryToolbar) && /* eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage */
108
117
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/design-system/consistent-css-prop-usage -- Ignored via go/DSP-18766
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-toolbar-lists-indentation",
3
- "version": "1.12.4",
3
+ "version": "1.12.6",
4
4
  "description": "Toolbar lists and indentation plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,17 +31,18 @@
31
31
  ".": "./src/index.ts"
32
32
  },
33
33
  "dependencies": {
34
- "@atlaskit/editor-common": "^89.0.0",
34
+ "@atlaskit/editor-common": "^89.2.0",
35
35
  "@atlaskit/editor-plugin-analytics": "^1.8.0",
36
36
  "@atlaskit/editor-plugin-block-type": "^3.14.0",
37
37
  "@atlaskit/editor-plugin-feature-flags": "^1.2.0",
38
38
  "@atlaskit/editor-plugin-indentation": "^1.7.0",
39
39
  "@atlaskit/editor-plugin-list": "^3.8.0",
40
40
  "@atlaskit/editor-plugin-primary-toolbar": "^2.0.0",
41
- "@atlaskit/editor-plugin-tasks-and-decisions": "^2.4.0",
42
- "@atlaskit/editor-prosemirror": "5.0.1",
41
+ "@atlaskit/editor-plugin-tasks-and-decisions": "^2.5.0",
42
+ "@atlaskit/editor-prosemirror": "6.0.0",
43
43
  "@atlaskit/editor-shared-styles": "^2.13.0",
44
- "@atlaskit/icon": "^22.16.0",
44
+ "@atlaskit/icon": "^22.18.0",
45
+ "@atlaskit/platform-feature-flags": "^0.3.0",
45
46
  "@babel/runtime": "^7.0.0",
46
47
  "@emotion/react": "^11.7.1"
47
48
  },