@atlaskit/editor-plugin-floating-toolbar 3.3.1 → 3.3.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,20 @@
1
1
  # @atlaskit/editor-plugin-floating-toolbar
2
2
 
3
+ ## 3.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#132712](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/132712)
8
+ [`03a53eb22fbba`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/03a53eb22fbba) -
9
+ [ED-27288] Hide horizontal scrollbar for floating toolbar in narrow editor (e.g. inline comment)
10
+ - Updated dependencies
11
+
12
+ ## 3.3.2
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 3.3.1
4
19
 
5
20
  ### Patch Changes
@@ -16,6 +16,7 @@ var styles = (0, _primitives.xcss)({
16
16
  var Divider = exports.Divider = function Divider() {
17
17
  return /*#__PURE__*/_react.default.createElement(_primitives.Box, {
18
18
  as: "hr",
19
- xcss: styles
19
+ xcss: styles,
20
+ role: "presentation"
20
21
  });
21
22
  };
@@ -465,7 +465,16 @@ var toolbarOverflow = function toolbarOverflow(_ref2) {
465
465
  (0, _react2.css)({
466
466
  overflow: 'hidden'
467
467
  }) :
468
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
468
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
469
+ (0, _platformFeatureFlags.fg)('platform_editor_fix_floating_toolbar_scrollbar') ?
470
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
471
+ (0, _react2.css)({
472
+ overflowX: 'auto',
473
+ overflowY: 'hidden',
474
+ // When scrollable is true, ScrollButtons will be shown, hence we want to hide show default horizontal scrollbar
475
+ scrollbarWidth: 'none'
476
+ }) :
477
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
469
478
  (0, _react2.css)({
470
479
  overflowX: 'auto',
471
480
  overflowY: 'hidden'
@@ -8,5 +8,6 @@ const styles = xcss({
8
8
  });
9
9
  export const Divider = () => /*#__PURE__*/React.createElement(Box, {
10
10
  as: "hr",
11
- xcss: styles
11
+ xcss: styles,
12
+ role: "presentation"
12
13
  });
@@ -430,7 +430,16 @@ scrollDisabled ?
430
430
  css({
431
431
  overflow: 'hidden'
432
432
  }) :
433
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
433
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
434
+ fg('platform_editor_fix_floating_toolbar_scrollbar') ?
435
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
436
+ css({
437
+ overflowX: 'auto',
438
+ overflowY: 'hidden',
439
+ // When scrollable is true, ScrollButtons will be shown, hence we want to hide show default horizontal scrollbar
440
+ scrollbarWidth: 'none'
441
+ }) :
442
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
434
443
  css({
435
444
  overflowX: 'auto',
436
445
  overflowY: 'hidden'
@@ -9,6 +9,7 @@ var styles = xcss({
9
9
  export var Divider = function Divider() {
10
10
  return /*#__PURE__*/React.createElement(Box, {
11
11
  as: "hr",
12
- xcss: styles
12
+ xcss: styles,
13
+ role: "presentation"
13
14
  });
14
15
  };
@@ -458,7 +458,16 @@ var toolbarOverflow = function toolbarOverflow(_ref2) {
458
458
  css({
459
459
  overflow: 'hidden'
460
460
  }) :
461
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values -- Ignored via go/DSP-18766
461
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
462
+ fg('platform_editor_fix_floating_toolbar_scrollbar') ?
463
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
464
+ css({
465
+ overflowX: 'auto',
466
+ overflowY: 'hidden',
467
+ // When scrollable is true, ScrollButtons will be shown, hence we want to hide show default horizontal scrollbar
468
+ scrollbarWidth: 'none'
469
+ }) :
470
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
462
471
  css({
463
472
  overflowX: 'auto',
464
473
  overflowY: 'hidden'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "3.3.1",
3
+ "version": "3.3.3",
4
4
  "description": "Floating toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -26,11 +26,11 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@atlaskit/adf-utils": "^19.19.0",
29
- "@atlaskit/button": "^21.1.0",
29
+ "@atlaskit/button": "^22.0.0",
30
30
  "@atlaskit/checkbox": "^17.0.0",
31
- "@atlaskit/editor-common": "^102.11.0",
31
+ "@atlaskit/editor-common": "^102.13.0",
32
32
  "@atlaskit/editor-palette": "^2.1.0",
33
- "@atlaskit/editor-plugin-block-controls": "^3.3.0",
33
+ "@atlaskit/editor-plugin-block-controls": "^3.5.0",
34
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",
@@ -38,17 +38,17 @@
38
38
  "@atlaskit/editor-plugin-editor-viewmode": "^3.0.0",
39
39
  "@atlaskit/editor-plugin-emoji": "^3.2.0",
40
40
  "@atlaskit/editor-plugin-extension": "^5.0.0",
41
- "@atlaskit/editor-plugin-table": "^10.4.0",
41
+ "@atlaskit/editor-plugin-table": "^10.5.0",
42
42
  "@atlaskit/editor-prosemirror": "7.0.0",
43
43
  "@atlaskit/emoji": "^69.0.0",
44
- "@atlaskit/icon": "^25.0.0",
44
+ "@atlaskit/icon": "^25.2.0",
45
45
  "@atlaskit/menu": "^3.1.0",
46
- "@atlaskit/modal-dialog": "^13.2.0",
46
+ "@atlaskit/modal-dialog": "^14.0.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
48
  "@atlaskit/primitives": "^14.2.0",
49
49
  "@atlaskit/select": "^20.0.0",
50
50
  "@atlaskit/theme": "^18.0.0",
51
- "@atlaskit/tmp-editor-statsig": "^4.1.0",
51
+ "@atlaskit/tmp-editor-statsig": "^4.4.0",
52
52
  "@atlaskit/tokens": "^4.5.0",
53
53
  "@atlaskit/tooltip": "^20.0.0",
54
54
  "@babel/runtime": "^7.0.0",
@@ -124,6 +124,9 @@
124
124
  },
125
125
  "forge-ui-macro-autoconvert": {
126
126
  "type": "boolean"
127
+ },
128
+ "platform_editor_fix_floating_toolbar_scrollbar": {
129
+ "type": "boolean"
127
130
  }
128
131
  }
129
132
  }