@atlaskit/editor-plugin-floating-toolbar 3.1.2 → 3.1.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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/editor-plugin-floating-toolbar
2
2
 
3
+ ## 3.1.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 3.1.3
10
+
11
+ ### Patch Changes
12
+
13
+ - [#122186](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/122186)
14
+ [`c629cdfe00a84`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c629cdfe00a84) -
15
+ migrated icons to new design systems library
16
+ - Updated dependencies
17
+
3
18
  ## 3.1.2
4
19
 
5
20
  ### Patch Changes
@@ -10,7 +10,7 @@ var _react = require("react");
10
10
  var _react2 = require("@emotion/react");
11
11
  var _reactIntlNext = require("react-intl-next");
12
12
  var _floatingToolbar = require("@atlaskit/editor-common/floating-toolbar");
13
- var _done = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/done"));
13
+ var _checkMarkEditorDone = _interopRequireDefault(require("@atlaskit/icon/core/migration/check-mark--editor-done"));
14
14
  var _menu = require("@atlaskit/menu");
15
15
  var _colors = require("@atlaskit/theme/colors");
16
16
  var _constants = require("@atlaskit/theme/constants");
@@ -223,10 +223,11 @@ var SelectedIconBefore = function SelectedIconBefore(_ref) {
223
223
  if (showSelected && itemSelected) {
224
224
  return (0, _react2.jsx)("span", {
225
225
  "aria-hidden": "true"
226
- }, (0, _react2.jsx)(_done.default, {
227
- primaryColor: "var(--ds-icon-selected, ".concat(_colors.B400, ")"),
228
- size: "small",
229
- label: intl.formatMessage(_floatingToolbar.messages.confirmModalOK)
226
+ }, (0, _react2.jsx)(_checkMarkEditorDone.default, {
227
+ LEGACY_primaryColor: "var(--ds-icon-selected, ".concat(_colors.B400, ")"),
228
+ LEGACY_size: "small",
229
+ label: intl.formatMessage(_floatingToolbar.messages.confirmModalOK),
230
+ spacing: "none"
230
231
  }));
231
232
  }
232
233
  return (0, _react2.jsx)("span", {
@@ -12,8 +12,8 @@ var _react2 = require("@emotion/react");
12
12
  var _rafSchd = _interopRequireDefault(require("raf-schd"));
13
13
  var _floatingToolbar = require("@atlaskit/editor-common/floating-toolbar");
14
14
  var _ui = require("@atlaskit/editor-common/ui");
15
- var _chevronLeftLarge = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-left-large"));
16
- var _chevronRightLarge = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-right-large"));
15
+ var _chevronLeftChevronLeftLarge = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-left--chevron-left-large"));
16
+ var _chevronRightChevronRightLarge = _interopRequireDefault(require("@atlaskit/icon/utility/migration/chevron-right--chevron-right-large"));
17
17
  var _colors = require("@atlaskit/theme/colors");
18
18
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
19
19
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -34,13 +34,8 @@ var toolbarScrollButtons = (0, _react2.css)({
34
34
  flexShrink: 0,
35
35
  alignItems: 'center'
36
36
  });
37
-
38
- // Ignored via go/ees005
39
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
40
- var LeftIcon = _chevronLeftLarge.default;
41
- // Ignored via go/ees005
42
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
43
- var RightIcon = _chevronRightLarge.default;
37
+ var LeftIcon = _chevronLeftChevronLeftLarge.default;
38
+ var RightIcon = _chevronRightChevronRightLarge.default;
44
39
  var ScrollButtons = exports.ScrollButtons = function ScrollButtons(_ref) {
45
40
  var intl = _ref.intl,
46
41
  scrollContainerRef = _ref.scrollContainerRef,
@@ -10,7 +10,7 @@ import { css, jsx } from '@emotion/react';
10
10
 
11
11
  import { injectIntl } from 'react-intl-next';
12
12
  import { messages } from '@atlaskit/editor-common/floating-toolbar';
13
- import EditorDoneIcon from '@atlaskit/icon/glyph/editor/done';
13
+ import EditorDoneIcon from '@atlaskit/icon/core/migration/check-mark--editor-done';
14
14
  import { ButtonItem, HeadingItem } from '@atlaskit/menu';
15
15
  import { B400 } from '@atlaskit/theme/colors';
16
16
  // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
@@ -216,9 +216,10 @@ const SelectedIconBefore = ({
216
216
  return jsx("span", {
217
217
  "aria-hidden": "true"
218
218
  }, jsx(EditorDoneIcon, {
219
- primaryColor: `var(--ds-icon-selected, ${B400})`,
220
- size: "small",
221
- label: intl.formatMessage(messages.confirmModalOK)
219
+ LEGACY_primaryColor: `var(--ds-icon-selected, ${B400})`,
220
+ LEGACY_size: "small",
221
+ label: intl.formatMessage(messages.confirmModalOK),
222
+ spacing: "none"
222
223
  }));
223
224
  }
224
225
  return jsx("span", {
@@ -9,8 +9,8 @@ import { css, jsx } from '@emotion/react';
9
9
  import rafSchedule from 'raf-schd';
10
10
  import { messages } from '@atlaskit/editor-common/floating-toolbar';
11
11
  import { FloatingToolbarButton as Button } from '@atlaskit/editor-common/ui';
12
- import ChevronLeftLargeIcon from '@atlaskit/icon/glyph/chevron-left-large';
13
- import ChevronRightLargeIcon from '@atlaskit/icon/glyph/chevron-right-large';
12
+ import ChevronLeftLargeIcon from '@atlaskit/icon/utility/migration/chevron-left--chevron-left-large';
13
+ import ChevronRightLargeIcon from '@atlaskit/icon/utility/migration/chevron-right--chevron-right-large';
14
14
  import { N30 } from '@atlaskit/theme/colors';
15
15
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
16
16
  const toolbarScrollButtons = css({
@@ -22,12 +22,7 @@ const toolbarScrollButtons = css({
22
22
  flexShrink: 0,
23
23
  alignItems: 'center'
24
24
  });
25
-
26
- // Ignored via go/ees005
27
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
28
25
  const LeftIcon = ChevronLeftLargeIcon;
29
- // Ignored via go/ees005
30
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
31
26
  const RightIcon = ChevronRightLargeIcon;
32
27
  export const ScrollButtons = ({
33
28
  intl,
@@ -11,7 +11,7 @@ import { css, jsx } from '@emotion/react';
11
11
 
12
12
  import { injectIntl } from 'react-intl-next';
13
13
  import { messages } from '@atlaskit/editor-common/floating-toolbar';
14
- import EditorDoneIcon from '@atlaskit/icon/glyph/editor/done';
14
+ import EditorDoneIcon from '@atlaskit/icon/core/migration/check-mark--editor-done';
15
15
  import { ButtonItem, HeadingItem } from '@atlaskit/menu';
16
16
  import { B400 } from '@atlaskit/theme/colors';
17
17
  // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
@@ -215,9 +215,10 @@ var SelectedIconBefore = function SelectedIconBefore(_ref) {
215
215
  return jsx("span", {
216
216
  "aria-hidden": "true"
217
217
  }, jsx(EditorDoneIcon, {
218
- primaryColor: "var(--ds-icon-selected, ".concat(B400, ")"),
219
- size: "small",
220
- label: intl.formatMessage(messages.confirmModalOK)
218
+ LEGACY_primaryColor: "var(--ds-icon-selected, ".concat(B400, ")"),
219
+ LEGACY_size: "small",
220
+ label: intl.formatMessage(messages.confirmModalOK),
221
+ spacing: "none"
221
222
  }));
222
223
  }
223
224
  return jsx("span", {
@@ -10,8 +10,8 @@ import { css, jsx } from '@emotion/react';
10
10
  import rafSchedule from 'raf-schd';
11
11
  import { messages } from '@atlaskit/editor-common/floating-toolbar';
12
12
  import { FloatingToolbarButton as Button } from '@atlaskit/editor-common/ui';
13
- import ChevronLeftLargeIcon from '@atlaskit/icon/glyph/chevron-left-large';
14
- import ChevronRightLargeIcon from '@atlaskit/icon/glyph/chevron-right-large';
13
+ import ChevronLeftLargeIcon from '@atlaskit/icon/utility/migration/chevron-left--chevron-left-large';
14
+ import ChevronRightLargeIcon from '@atlaskit/icon/utility/migration/chevron-right--chevron-right-large';
15
15
  import { N30 } from '@atlaskit/theme/colors';
16
16
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
17
17
  var toolbarScrollButtons = css({
@@ -23,12 +23,7 @@ var toolbarScrollButtons = css({
23
23
  flexShrink: 0,
24
24
  alignItems: 'center'
25
25
  });
26
-
27
- // Ignored via go/ees005
28
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
29
26
  var LeftIcon = ChevronLeftLargeIcon;
30
- // Ignored via go/ees005
31
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
32
27
  var RightIcon = ChevronRightLargeIcon;
33
28
  export var ScrollButtons = function ScrollButtons(_ref) {
34
29
  var intl = _ref.intl,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "3.1.2",
3
+ "version": "3.1.4",
4
4
  "description": "Floating toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -31,13 +31,13 @@
31
31
  "@atlaskit/editor-common": "^101.1.0",
32
32
  "@atlaskit/editor-palette": "2.0.0",
33
33
  "@atlaskit/editor-plugin-block-controls": "^3.3.0",
34
- "@atlaskit/editor-plugin-context-panel": "^3.0.0",
34
+ "@atlaskit/editor-plugin-context-panel": "^4.0.0",
35
35
  "@atlaskit/editor-plugin-copy-button": "^2.0.0",
36
36
  "@atlaskit/editor-plugin-decorations": "^2.0.0",
37
37
  "@atlaskit/editor-plugin-editor-disabled": "^2.0.0",
38
38
  "@atlaskit/editor-plugin-editor-viewmode": "^3.0.0",
39
39
  "@atlaskit/editor-plugin-emoji": "^3.1.0",
40
- "@atlaskit/editor-plugin-extension": "^4.1.0",
40
+ "@atlaskit/editor-plugin-extension": "^5.0.0",
41
41
  "@atlaskit/editor-plugin-table": "^10.3.0",
42
42
  "@atlaskit/editor-prosemirror": "7.0.0",
43
43
  "@atlaskit/emoji": "^68.0.0",
@@ -47,7 +47,7 @@
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
48
  "@atlaskit/primitives": "^14.1.0",
49
49
  "@atlaskit/select": "^20.0.0",
50
- "@atlaskit/theme": "^17.0.0",
50
+ "@atlaskit/theme": "^18.0.0",
51
51
  "@atlaskit/tmp-editor-statsig": "^3.4.0",
52
52
  "@atlaskit/tokens": "^4.3.0",
53
53
  "@atlaskit/tooltip": "^20.0.0",