@atlaskit/editor-plugin-floating-toolbar 9.0.0 → 9.1.1

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,24 @@
1
1
  # @atlaskit/editor-plugin-floating-toolbar
2
2
 
3
+ ## 9.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c4a774ad462fb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c4a774ad462fb) -
8
+ EDITOR-2477 Clean up remaining usages of `platform_editor_use_nested_table_pm_nodes` which are no
9
+ longer needed now that `isNestedTablesSupported` is fully rolled out.
10
+
11
+ ## 9.1.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [`00e69e0b7c839`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/00e69e0b7c839) -
16
+ Clean up and removal of the `platform-visual-refresh-icons` feature flag.
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+
3
22
  ## 9.0.0
4
23
 
5
24
  ### Patch Changes
@@ -15,7 +15,6 @@ var _ui = require("@atlaskit/editor-common/ui");
15
15
  var _uiReact = require("@atlaskit/editor-common/ui-react");
16
16
  var _emoji = require("@atlaskit/emoji");
17
17
  var _emojiAdd = _interopRequireDefault(require("@atlaskit/icon/core/emoji-add"));
18
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
19
18
  var _tooltip = _interopRequireDefault(require("@atlaskit/tooltip"));
20
19
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
21
20
  /**
@@ -25,30 +24,6 @@ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r
25
24
 
26
25
  // eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
27
26
 
28
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
29
- var emojiPickerButtonWrapper = (0, _react2.css)({
30
- position: 'relative',
31
- // helps adjusts position of popup
32
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
33
- button: {
34
- top: '-1px',
35
- // adjust position of emoji icon when using the IconButtom component
36
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
37
- '&:not([disabled])::after': {
38
- border: 'none' // remove blue border when picker has been selected
39
- }
40
- },
41
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
42
- svg: {
43
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
44
- path: {
45
- // adjust size of emoji icon when using the IconButtom component, otherwise it's too small
46
- transformOrigin: '50% 50%',
47
- transform: 'scale(1.14)'
48
- }
49
- }
50
- });
51
-
52
27
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
53
28
  var emojiPickerButtonWrapperVisualRefresh = (0, _react2.css)({
54
29
  position: 'relative',
@@ -155,7 +130,7 @@ var EmojiPickerButton = exports.EmojiPickerButton = function EmojiPickerButton(p
155
130
  };
156
131
  var title = props.title || '';
157
132
  return (0, _react2.jsx)("div", {
158
- css: (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons') ? emojiPickerButtonWrapperVisualRefresh : emojiPickerButtonWrapper
133
+ css: emojiPickerButtonWrapperVisualRefresh
159
134
  }, (0, _react2.jsx)(_tooltip.default, {
160
135
  content: title,
161
136
  position: "top"
@@ -16,7 +16,6 @@ var _extensions = require("@atlaskit/editor-common/extensions");
16
16
  var _nesting = require("@atlaskit/editor-common/nesting");
17
17
  var _ui = require("@atlaskit/editor-common/ui");
18
18
  var _utils = require("@atlaskit/editor-common/utils");
19
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
20
19
  var _Dropdown = _interopRequireDefault(require("./Dropdown"));
21
20
  function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
22
21
  var noop = function noop() {
@@ -191,7 +190,7 @@ var ExtensionsPlaceholder = exports.ExtensionsPlaceholder = function ExtensionsP
191
190
  areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
192
191
  }));
193
192
  }
194
- var isNestedTable = (0, _nesting.isNestedTablesSupported)(editorView.state.schema) && (0, _platformFeatureFlags.fg)('platform_editor_use_nested_table_pm_nodes') && (0, _nesting.isSelectionTableNestedInTable)(editorView.state);
193
+ var isNestedTable = (0, _nesting.isNestedTablesSupported)(editorView.state.schema) && (0, _nesting.isSelectionTableNestedInTable)(editorView.state);
195
194
 
196
195
  // Ignored via go/ees005
197
196
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -12,32 +12,7 @@ import { Popup } from '@atlaskit/editor-common/ui';
12
12
  import { OutsideClickTargetRefContext, withReactEditorViewOuterListeners } from '@atlaskit/editor-common/ui-react';
13
13
  import { EmojiPicker } from '@atlaskit/emoji';
14
14
  import EmojiAddIcon from '@atlaskit/icon/core/emoji-add';
15
- import { fg } from '@atlaskit/platform-feature-flags';
16
15
  import Tooltip from '@atlaskit/tooltip';
17
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
18
- const emojiPickerButtonWrapper = css({
19
- position: 'relative',
20
- // helps adjusts position of popup
21
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
22
- button: {
23
- top: '-1px',
24
- // adjust position of emoji icon when using the IconButtom component
25
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
26
- '&:not([disabled])::after': {
27
- border: 'none' // remove blue border when picker has been selected
28
- }
29
- },
30
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
31
- svg: {
32
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
33
- path: {
34
- // adjust size of emoji icon when using the IconButtom component, otherwise it's too small
35
- transformOrigin: '50% 50%',
36
- transform: 'scale(1.14)'
37
- }
38
- }
39
- });
40
-
41
16
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
42
17
  const emojiPickerButtonWrapperVisualRefresh = css({
43
18
  position: 'relative',
@@ -139,7 +114,7 @@ export const EmojiPickerButton = props => {
139
114
  };
140
115
  const title = props.title || '';
141
116
  return jsx("div", {
142
- css: fg('platform-visual-refresh-icons') ? emojiPickerButtonWrapperVisualRefresh : emojiPickerButtonWrapper
117
+ css: emojiPickerButtonWrapperVisualRefresh
143
118
  }, jsx(Tooltip, {
144
119
  content: title,
145
120
  position: "top"
@@ -5,7 +5,6 @@ import { getContextualToolbarItemsFromModule } from '@atlaskit/editor-common/ext
5
5
  import { isNestedTablesSupported, isSelectionTableNestedInTable } from '@atlaskit/editor-common/nesting';
6
6
  import { FloatingToolbarButton as Button, FloatingToolbarSeparator as Separator } from '@atlaskit/editor-common/ui';
7
7
  import { nodeToJSON } from '@atlaskit/editor-common/utils';
8
- import { fg } from '@atlaskit/platform-feature-flags';
9
8
  import Dropdown from './Dropdown';
10
9
  const noop = () => null;
11
10
  const isDefaultExport = mod => {
@@ -114,7 +113,7 @@ export const ExtensionsPlaceholder = props => {
114
113
  areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
115
114
  }));
116
115
  }
117
- const isNestedTable = isNestedTablesSupported(editorView.state.schema) && fg('platform_editor_use_nested_table_pm_nodes') && isSelectionTableNestedInTable(editorView.state);
116
+ const isNestedTable = isNestedTablesSupported(editorView.state.schema) && isSelectionTableNestedInTable(editorView.state);
118
117
 
119
118
  // Ignored via go/ees005
120
119
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -13,32 +13,7 @@ import { Popup } from '@atlaskit/editor-common/ui';
13
13
  import { OutsideClickTargetRefContext, withReactEditorViewOuterListeners } from '@atlaskit/editor-common/ui-react';
14
14
  import { EmojiPicker } from '@atlaskit/emoji';
15
15
  import EmojiAddIcon from '@atlaskit/icon/core/emoji-add';
16
- import { fg } from '@atlaskit/platform-feature-flags';
17
16
  import Tooltip from '@atlaskit/tooltip';
18
- // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
19
- var emojiPickerButtonWrapper = css({
20
- position: 'relative',
21
- // helps adjusts position of popup
22
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
23
- button: {
24
- top: '-1px',
25
- // adjust position of emoji icon when using the IconButtom component
26
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-selectors
27
- '&:not([disabled])::after': {
28
- border: 'none' // remove blue border when picker has been selected
29
- }
30
- },
31
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
32
- svg: {
33
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors
34
- path: {
35
- // adjust size of emoji icon when using the IconButtom component, otherwise it's too small
36
- transformOrigin: '50% 50%',
37
- transform: 'scale(1.14)'
38
- }
39
- }
40
- });
41
-
42
17
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
43
18
  var emojiPickerButtonWrapperVisualRefresh = css({
44
19
  position: 'relative',
@@ -145,7 +120,7 @@ export var EmojiPickerButton = function EmojiPickerButton(props) {
145
120
  };
146
121
  var title = props.title || '';
147
122
  return jsx("div", {
148
- css: fg('platform-visual-refresh-icons') ? emojiPickerButtonWrapperVisualRefresh : emojiPickerButtonWrapper
123
+ css: emojiPickerButtonWrapperVisualRefresh
149
124
  }, jsx(Tooltip, {
150
125
  content: title,
151
126
  position: "top"
@@ -8,7 +8,6 @@ import { getContextualToolbarItemsFromModule } from '@atlaskit/editor-common/ext
8
8
  import { isNestedTablesSupported, isSelectionTableNestedInTable } from '@atlaskit/editor-common/nesting';
9
9
  import { FloatingToolbarButton as Button, FloatingToolbarSeparator as Separator } from '@atlaskit/editor-common/ui';
10
10
  import { nodeToJSON } from '@atlaskit/editor-common/utils';
11
- import { fg } from '@atlaskit/platform-feature-flags';
12
11
  import Dropdown from './Dropdown';
13
12
  var noop = function noop() {
14
13
  return null;
@@ -182,7 +181,7 @@ export var ExtensionsPlaceholder = function ExtensionsPlaceholder(props) {
182
181
  areAnyNewToolbarFlagsEnabled: areAnyNewToolbarFlagsEnabled
183
182
  }));
184
183
  }
185
- var isNestedTable = isNestedTablesSupported(editorView.state.schema) && fg('platform_editor_use_nested_table_pm_nodes') && isSelectionTableNestedInTable(editorView.state);
184
+ var isNestedTable = isNestedTablesSupported(editorView.state.schema) && isSelectionTableNestedInTable(editorView.state);
186
185
 
187
186
  // Ignored via go/ees005
188
187
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-floating-toolbar",
3
- "version": "9.0.0",
3
+ "version": "9.1.1",
4
4
  "description": "Floating toolbar plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -23,7 +23,7 @@
23
23
  "dependencies": {
24
24
  "@atlaskit/adf-utils": "^19.26.0",
25
25
  "@atlaskit/button": "^23.9.0",
26
- "@atlaskit/checkbox": "^17.2.0",
26
+ "@atlaskit/checkbox": "^17.3.0",
27
27
  "@atlaskit/editor-palette": "^2.1.0",
28
28
  "@atlaskit/editor-plugin-analytics": "^7.0.0",
29
29
  "@atlaskit/editor-plugin-context-panel": "^9.0.0",
@@ -44,8 +44,8 @@
44
44
  "@atlaskit/primitives": "^17.0.0",
45
45
  "@atlaskit/select": "^21.6.0",
46
46
  "@atlaskit/theme": "^21.0.0",
47
- "@atlaskit/tmp-editor-statsig": "^16.3.0",
48
- "@atlaskit/tokens": "^9.0.0",
47
+ "@atlaskit/tmp-editor-statsig": "^16.4.0",
48
+ "@atlaskit/tokens": "^9.1.0",
49
49
  "@atlaskit/tooltip": "^20.11.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@emotion/react": "^11.7.1",
@@ -56,7 +56,7 @@
56
56
  "react-loadable": "^5.1.0"
57
57
  },
58
58
  "peerDependencies": {
59
- "@atlaskit/editor-common": "^111.0.0",
59
+ "@atlaskit/editor-common": "^111.2.0",
60
60
  "react": "^18.2.0",
61
61
  "react-dom": "^18.2.0"
62
62
  },
@@ -112,9 +112,6 @@
112
112
  "platform-visual-refresh-icons": {
113
113
  "type": "boolean"
114
114
  },
115
- "platform_editor_use_nested_table_pm_nodes": {
116
- "type": "boolean"
117
- },
118
115
  "platform_editor_user_intent_plugin": {
119
116
  "type": "boolean"
120
117
  },