@atlaskit/editor-plugin-floating-toolbar 5.1.8 → 5.1.9

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-floating-toolbar
2
2
 
3
+ ## 5.1.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [#199297](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/199297)
8
+ [`db78bb9b404cc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/db78bb9b404cc) -
9
+ ED-28967 cleanup platform_editor_floating_toolbar_padding_fix
10
+ - Updated dependencies
11
+
3
12
  ## 5.1.8
4
13
 
5
14
  ### Patch Changes
@@ -26,7 +26,6 @@ var _uiColor = require("@atlaskit/editor-common/ui-color");
26
26
  var _uiMenu = require("@atlaskit/editor-common/ui-menu");
27
27
  var _editorPalette = require("@atlaskit/editor-palette");
28
28
  var _showMoreHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/show-more-horizontal"));
29
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
30
29
  var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
31
30
  var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
32
31
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
@@ -473,8 +472,7 @@ var toolbarContainer = function toolbarContainer(scrollable, hasSelect, firstEle
473
472
  var toolbarOverflow = function toolbarOverflow(_ref2) {
474
473
  var scrollable = _ref2.scrollable,
475
474
  scrollDisabled = _ref2.scrollDisabled,
476
- firstElementIsSelect = _ref2.firstElementIsSelect,
477
- paddingFeatureFlag = _ref2.paddingFeatureFlag;
475
+ firstElementIsSelect = _ref2.firstElementIsSelect;
478
476
  return (0, _react2.css)(
479
477
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
480
478
  scrollable ?
@@ -495,7 +493,7 @@ var toolbarOverflow = function toolbarOverflow(_ref2) {
495
493
  }), {
496
494
  WebkitOverflowScrolling: 'touch',
497
495
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
498
- padding: paddingFeatureFlag ? "var(--ds-space-050, 4px)".concat(" 0 ", "var(--ds-space-050, 4px)") : "var(--ds-space-050, 4px)".concat(" 0 ", "var(--ds-space-600, 48px)"),
496
+ padding: "var(--ds-space-050, 4px)".concat(" 0 ", "var(--ds-space-050, 4px)"),
499
497
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
500
498
  '> div': {
501
499
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
@@ -711,9 +709,7 @@ var Toolbar = /*#__PURE__*/function (_Component) {
711
709
  css: toolbarOverflow({
712
710
  scrollable: scrollable,
713
711
  scrollDisabled: this.state.scrollDisabled,
714
- firstElementIsSelect: firstElementIsSelect,
715
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
716
- paddingFeatureFlag: (0, _platformFeatureFlags.fg)('platform_editor_floating_toolbar_padding_fix')
712
+ firstElementIsSelect: firstElementIsSelect
717
713
  })
718
714
  }, (0, _react2.jsx)(ToolbarItems
719
715
  // Ignored via go/ees005
@@ -19,7 +19,6 @@ import { backgroundPaletteTooltipMessages } from '@atlaskit/editor-common/ui-col
19
19
  import { ColorPickerButton, ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
20
20
  import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
21
21
  import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
22
- import { fg } from '@atlaskit/platform-feature-flags';
23
22
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
24
23
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
25
24
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
@@ -439,8 +438,7 @@ css({
439
438
  const toolbarOverflow = ({
440
439
  scrollable,
441
440
  scrollDisabled,
442
- firstElementIsSelect,
443
- paddingFeatureFlag
441
+ firstElementIsSelect
444
442
  }) => css(
445
443
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
446
444
  scrollable ?
@@ -461,7 +459,7 @@ css({
461
459
  }), {
462
460
  WebkitOverflowScrolling: 'touch',
463
461
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
464
- padding: paddingFeatureFlag ? `${"var(--ds-space-050, 4px)"} 0 ${"var(--ds-space-050, 4px)"}` : `${"var(--ds-space-050, 4px)"} 0 ${"var(--ds-space-600, 48px)"}`,
462
+ padding: `${"var(--ds-space-050, 4px)"} 0 ${"var(--ds-space-050, 4px)"}`,
465
463
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
466
464
  '> div': {
467
465
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
@@ -661,9 +659,7 @@ class Toolbar extends Component {
661
659
  css: toolbarOverflow({
662
660
  scrollable,
663
661
  scrollDisabled: this.state.scrollDisabled,
664
- firstElementIsSelect,
665
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
666
- paddingFeatureFlag: fg('platform_editor_floating_toolbar_padding_fix')
662
+ firstElementIsSelect
667
663
  })
668
664
  }, jsx(ToolbarItems
669
665
  // Ignored via go/ees005
@@ -26,7 +26,6 @@ import { backgroundPaletteTooltipMessages } from '@atlaskit/editor-common/ui-col
26
26
  import { ColorPickerButton, ToolbarArrowKeyNavigationProvider } from '@atlaskit/editor-common/ui-menu';
27
27
  import { hexToEditorBackgroundPaletteColor } from '@atlaskit/editor-palette';
28
28
  import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
29
- import { fg } from '@atlaskit/platform-feature-flags';
30
29
  import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
31
30
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
32
31
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
@@ -467,8 +466,7 @@ var toolbarContainer = function toolbarContainer(scrollable, hasSelect, firstEle
467
466
  var toolbarOverflow = function toolbarOverflow(_ref2) {
468
467
  var scrollable = _ref2.scrollable,
469
468
  scrollDisabled = _ref2.scrollDisabled,
470
- firstElementIsSelect = _ref2.firstElementIsSelect,
471
- paddingFeatureFlag = _ref2.paddingFeatureFlag;
469
+ firstElementIsSelect = _ref2.firstElementIsSelect;
472
470
  return css(
473
471
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
474
472
  scrollable ?
@@ -489,7 +487,7 @@ var toolbarOverflow = function toolbarOverflow(_ref2) {
489
487
  }), {
490
488
  WebkitOverflowScrolling: 'touch',
491
489
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
492
- padding: paddingFeatureFlag ? "var(--ds-space-050, 4px)".concat(" 0 ", "var(--ds-space-050, 4px)") : "var(--ds-space-050, 4px)".concat(" 0 ", "var(--ds-space-600, 48px)"),
490
+ padding: "var(--ds-space-050, 4px)".concat(" 0 ", "var(--ds-space-050, 4px)"),
493
491
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
494
492
  '> div': {
495
493
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
@@ -705,9 +703,7 @@ var Toolbar = /*#__PURE__*/function (_Component) {
705
703
  css: toolbarOverflow({
706
704
  scrollable: scrollable,
707
705
  scrollDisabled: this.state.scrollDisabled,
708
- firstElementIsSelect: firstElementIsSelect,
709
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values
710
- paddingFeatureFlag: fg('platform_editor_floating_toolbar_padding_fix')
706
+ firstElementIsSelect: firstElementIsSelect
711
707
  })
712
708
  }, jsx(ToolbarItems
713
709
  // Ignored via go/ees005
@@ -1 +1 @@
1
- export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: import("../..").FloatingToolbarPluginData | ((state: import("prosemirror-state").EditorState) => import("../..").FloatingToolbarPluginData)) => import("prosemirror-state").SafeStateField<import("../..").FloatingToolbarPluginData>, createCommand: <A = import("./types").FloatingToolbarPluginAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command, getPluginState: (state: import("prosemirror-state").EditorState) => import("../..").FloatingToolbarPluginData;
1
+ export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: import("../..").FloatingToolbarPluginData | ((state: import("prosemirror-state").EditorState) => import("../..").FloatingToolbarPluginData)) => import("prosemirror-state").SafeStateField<import("../..").FloatingToolbarPluginData>, createCommand: <A = import("./types").FloatingToolbarPluginAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: (tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) => import("@atlaskit/editor-common/types").Command, getPluginState: (state: import("prosemirror-state").EditorState) => import("../..").FloatingToolbarPluginData;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { WrappedComponentProps } from 'react-intl-next';
3
2
  import type { ExtensionAPI, ExtensionProvider } from '@atlaskit/editor-common/extensions';
4
3
  import type { DropdownOptionT, FloatingToolbarOverflowDropdownOptions } from '@atlaskit/editor-common/types';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
3
2
  import { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
3
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
@@ -1 +1 @@
1
- export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: import("../..").FloatingToolbarPluginData | ((state: import("prosemirror-state").EditorState) => import("../..").FloatingToolbarPluginData)) => import("prosemirror-state").SafeStateField<import("../..").FloatingToolbarPluginData>, createCommand: <A = import("./types").FloatingToolbarPluginAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command, getPluginState: (state: import("prosemirror-state").EditorState) => import("../..").FloatingToolbarPluginData;
1
+ export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: import("../..").FloatingToolbarPluginData | ((state: import("prosemirror-state").EditorState) => import("../..").FloatingToolbarPluginData)) => import("prosemirror-state").SafeStateField<import("../..").FloatingToolbarPluginData>, createCommand: <A = import("./types").FloatingToolbarPluginAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: (tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) => import("@atlaskit/editor-common/types").Command, getPluginState: (state: import("prosemirror-state").EditorState) => import("../..").FloatingToolbarPluginData;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { WrappedComponentProps } from 'react-intl-next';
3
2
  import type { ExtensionAPI, ExtensionProvider } from '@atlaskit/editor-common/extensions';
4
3
  import type { DropdownOptionT, FloatingToolbarOverflowDropdownOptions } from '@atlaskit/editor-common/types';
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import type { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
3
2
  import { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
4
3
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "5.1.8",
3
+ "version": "5.1.9",
4
4
  "description": "Floating toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -24,7 +24,7 @@
24
24
  ".": "./src/index.ts"
25
25
  },
26
26
  "dependencies": {
27
- "@atlaskit/adf-utils": "^19.20.0",
27
+ "@atlaskit/adf-utils": "^19.21.0",
28
28
  "@atlaskit/button": "^23.3.0",
29
29
  "@atlaskit/checkbox": "^17.1.0",
30
30
  "@atlaskit/editor-palette": "^2.1.0",
@@ -41,14 +41,14 @@
41
41
  "@atlaskit/editor-plugin-user-intent": "^1.1.0",
42
42
  "@atlaskit/editor-prosemirror": "7.0.0",
43
43
  "@atlaskit/emoji": "^69.3.0",
44
- "@atlaskit/icon": "^27.9.0",
44
+ "@atlaskit/icon": "^27.11.0",
45
45
  "@atlaskit/menu": "^8.1.0",
46
46
  "@atlaskit/modal-dialog": "^14.3.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
48
  "@atlaskit/primitives": "^14.11.0",
49
49
  "@atlaskit/select": "^21.2.0",
50
50
  "@atlaskit/theme": "^19.0.0",
51
- "@atlaskit/tmp-editor-statsig": "^9.25.0",
51
+ "@atlaskit/tmp-editor-statsig": "^9.27.0",
52
52
  "@atlaskit/tokens": "^6.0.0",
53
53
  "@atlaskit/tooltip": "^20.4.0",
54
54
  "@babel/runtime": "^7.0.0",
@@ -60,7 +60,7 @@
60
60
  "react-loadable": "^5.1.0"
61
61
  },
62
62
  "peerDependencies": {
63
- "@atlaskit/editor-common": "^107.18.0",
63
+ "@atlaskit/editor-common": "^107.20.0",
64
64
  "react": "^18.2.0",
65
65
  "react-dom": "^18.2.0"
66
66
  },
@@ -114,9 +114,6 @@
114
114
  }
115
115
  },
116
116
  "platform-feature-flags": {
117
- "platform_editor_floating_toolbar_padding_fix": {
118
- "type": "boolean"
119
- },
120
117
  "platform-visual-refresh-icons": {
121
118
  "type": "boolean"
122
119
  },