@atlaskit/editor-plugin-floating-toolbar 5.2.2 → 5.2.3

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,12 @@
1
1
  # @atlaskit/editor-plugin-floating-toolbar
2
2
 
3
+ ## 5.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`20a5aa8c4e7a0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/20a5aa8c4e7a0) -
8
+ Removed gridSize import. No visual changes.
9
+
3
10
  ## 5.2.2
4
11
 
5
12
  ### Patch Changes
@@ -10,7 +10,6 @@ var _reactIntlNext = require("react-intl-next");
10
10
  var _floatingToolbar = require("@atlaskit/editor-common/floating-toolbar");
11
11
  var _toolbarFlagCheck = require("@atlaskit/editor-common/toolbar-flag-check");
12
12
  var _menu = require("@atlaskit/menu");
13
- var _constants = require("@atlaskit/theme/constants");
14
13
  /**
15
14
  * @jsxRuntime classic
16
15
  * @jsx jsx
@@ -20,8 +19,6 @@ var _constants = require("@atlaskit/theme/constants");
20
19
 
21
20
  // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
22
21
 
23
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
24
-
25
22
  var menuItemDimensions = exports.menuItemDimensions = {
26
23
  width: 175,
27
24
  height: 32
@@ -46,9 +43,8 @@ var menuContainerStyles = (0, _react2.css)({
46
43
  }
47
44
  });
48
45
 
49
- // TODO: ED-26959 - Migrate away from gridSize
50
- // Recommendation: Replace with 4 as itemSpacing is used in calculations expecting a number
51
- var itemSpacing = exports.itemSpacing = (0, _constants.gridSize)() / 2;
46
+ // itemSpacing is used in calculations expecting a number, hence not using a space token
47
+ var itemSpacing = exports.itemSpacing = 4;
52
48
 
53
49
  // Extend the ButtonItem component type to allow mouse events to be accepted from the Typescript check
54
50
 
@@ -12,8 +12,6 @@ import { injectIntl } from 'react-intl-next';
12
12
  import { DropdownMenuItem, DropdownSeparator } from '@atlaskit/editor-common/floating-toolbar';
13
13
  import { areToolbarFlagsEnabled } from '@atlaskit/editor-common/toolbar-flag-check';
14
14
  import { HeadingItem } from '@atlaskit/menu';
15
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
16
- import { gridSize } from '@atlaskit/theme/constants';
17
15
  export const menuItemDimensions = {
18
16
  width: 175,
19
17
  height: 32
@@ -38,9 +36,8 @@ const menuContainerStyles = css({
38
36
  }
39
37
  });
40
38
 
41
- // TODO: ED-26959 - Migrate away from gridSize
42
- // Recommendation: Replace with 4 as itemSpacing is used in calculations expecting a number
43
- export const itemSpacing = gridSize() / 2;
39
+ // itemSpacing is used in calculations expecting a number, hence not using a space token
40
+ export const itemSpacing = 4;
44
41
 
45
42
  // Extend the ButtonItem component type to allow mouse events to be accepted from the Typescript check
46
43
 
@@ -12,8 +12,6 @@ import { injectIntl } from 'react-intl-next';
12
12
  import { DropdownMenuItem, DropdownSeparator } from '@atlaskit/editor-common/floating-toolbar';
13
13
  import { areToolbarFlagsEnabled } from '@atlaskit/editor-common/toolbar-flag-check';
14
14
  import { HeadingItem } from '@atlaskit/menu';
15
- // eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
16
- import { gridSize } from '@atlaskit/theme/constants';
17
15
  export var menuItemDimensions = {
18
16
  width: 175,
19
17
  height: 32
@@ -38,9 +36,8 @@ var menuContainerStyles = css({
38
36
  }
39
37
  });
40
38
 
41
- // TODO: ED-26959 - Migrate away from gridSize
42
- // Recommendation: Replace with 4 as itemSpacing is used in calculations expecting a number
43
- export var itemSpacing = gridSize() / 2;
39
+ // itemSpacing is used in calculations expecting a number, hence not using a space token
40
+ export var itemSpacing = 4;
44
41
 
45
42
  // Extend the ButtonItem component type to allow mouse events to be accepted from the Typescript check
46
43
 
@@ -7,7 +7,7 @@ export declare const menuItemDimensions: {
7
7
  width: number;
8
8
  height: number;
9
9
  };
10
- export declare const itemSpacing: number;
10
+ export declare const itemSpacing = 4;
11
11
  export interface Props {
12
12
  dispatchCommand: Function;
13
13
  editorView?: EditorView;
@@ -7,7 +7,7 @@ export declare const menuItemDimensions: {
7
7
  width: number;
8
8
  height: number;
9
9
  };
10
- export declare const itemSpacing: number;
10
+ export declare const itemSpacing = 4;
11
11
  export interface Props {
12
12
  dispatchCommand: Function;
13
13
  editorView?: EditorView;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "5.2.2",
3
+ "version": "5.2.3",
4
4
  "description": "Floating toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -20,9 +20,6 @@
20
20
  "*.compiled.css"
21
21
  ],
22
22
  "atlaskit:src": "src/index.ts",
23
- "af:exports": {
24
- ".": "./src/index.ts"
25
- },
26
23
  "dependencies": {
27
24
  "@atlaskit/adf-utils": "^19.21.0",
28
25
  "@atlaskit/button": "^23.4.0",
@@ -60,7 +57,7 @@
60
57
  "react-loadable": "^5.1.0"
61
58
  },
62
59
  "peerDependencies": {
63
- "@atlaskit/editor-common": "^107.31.0",
60
+ "@atlaskit/editor-common": "^107.32.0",
64
61
  "react": "^18.2.0",
65
62
  "react-dom": "^18.2.0"
66
63
  },