@atlaskit/editor-plugin-alignment 3.0.0 → 3.0.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,17 @@
1
1
  # @atlaskit/editor-plugin-alignment
2
2
 
3
+ ## 3.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#120533](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/120533)
8
+ [`f1bec731e278f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f1bec731e278f) -
9
+ Adds a `sideEffects` field to ensure this package does not have Compiled styles tree-shaken in the
10
+ future to avoid an accidental regression.
11
+
12
+ This is related to
13
+ https://community.developer.atlassian.com/t/rfc-73-migrating-our-components-to-compiled-css-in-js/85953
14
+
3
15
  ## 3.0.0
4
16
 
5
17
  ### Major Changes
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", {
8
8
  exports.FloatingToolbarComponent = FloatingToolbarComponent;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
10
  var _hooks = require("@atlaskit/editor-common/hooks");
11
+ var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
11
12
  var _editorCommands = require("../editor-commands");
12
13
  var _types = require("../pm-plugins/types");
13
14
  var _ToolbarAlignment = _interopRequireDefault(require("./ToolbarAlignment"));
@@ -27,7 +28,7 @@ function FloatingToolbarComponent(_ref) {
27
28
  }, [editorView]);
28
29
  return /*#__PURE__*/_react.default.createElement(_ToolbarAlignment.default, {
29
30
  pluginState: alignmentState,
30
- isReducedSpacing: FloatingToolbarSettings.isToolbarReducedSpacing,
31
+ isReducedSpacing: (0, _experiments.editorExperiment)('platform_editor_controls', 'variant1') ? false : FloatingToolbarSettings.isToolbarReducedSpacing,
31
32
  changeAlignment: changeAlignmentCallback
32
33
  // Ignored via go/ees005
33
34
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
@@ -1,5 +1,6 @@
1
1
  import React, { useCallback } from 'react';
2
2
  import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
3
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
3
4
  import { changeAlignment } from '../editor-commands';
4
5
  import { ToolbarType } from '../pm-plugins/types';
5
6
  import ToolbarAlignment from './ToolbarAlignment';
@@ -19,7 +20,7 @@ export function FloatingToolbarComponent({
19
20
  }, [editorView]);
20
21
  return /*#__PURE__*/React.createElement(ToolbarAlignment, {
21
22
  pluginState: alignmentState,
22
- isReducedSpacing: FloatingToolbarSettings.isToolbarReducedSpacing,
23
+ isReducedSpacing: editorExperiment('platform_editor_controls', 'variant1') ? false : FloatingToolbarSettings.isToolbarReducedSpacing,
23
24
  changeAlignment: changeAlignmentCallback
24
25
  // Ignored via go/ees005
25
26
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
@@ -1,5 +1,6 @@
1
1
  import React, { useCallback } from 'react';
2
2
  import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
3
+ import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
3
4
  import { changeAlignment } from '../editor-commands';
4
5
  import { ToolbarType } from '../pm-plugins/types';
5
6
  import ToolbarAlignment from './ToolbarAlignment';
@@ -17,7 +18,7 @@ export function FloatingToolbarComponent(_ref) {
17
18
  }, [editorView]);
18
19
  return /*#__PURE__*/React.createElement(ToolbarAlignment, {
19
20
  pluginState: alignmentState,
20
- isReducedSpacing: FloatingToolbarSettings.isToolbarReducedSpacing,
21
+ isReducedSpacing: editorExperiment('platform_editor_controls', 'variant1') ? false : FloatingToolbarSettings.isToolbarReducedSpacing,
21
22
  changeAlignment: changeAlignmentCallback
22
23
  // Ignored via go/ees005
23
24
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-alignment",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Alignment plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -29,14 +29,14 @@
29
29
  "dependencies": {
30
30
  "@atlaskit/adf-schema": "^47.2.1",
31
31
  "@atlaskit/css": "^0.10.0",
32
- "@atlaskit/editor-common": "^100.2.0",
32
+ "@atlaskit/editor-common": "^100.4.0",
33
33
  "@atlaskit/editor-plugin-primary-toolbar": "^3.0.0",
34
34
  "@atlaskit/editor-plugin-selection-toolbar": "^2.0.0",
35
35
  "@atlaskit/editor-prosemirror": "7.0.0",
36
36
  "@atlaskit/editor-tables": "^2.9.0",
37
37
  "@atlaskit/icon": "^24.1.0",
38
38
  "@atlaskit/platform-feature-flags": "1.1.0",
39
- "@atlaskit/tmp-editor-statsig": "^3.2.0",
39
+ "@atlaskit/tmp-editor-statsig": "^3.3.0",
40
40
  "@atlaskit/tokens": "^4.2.0",
41
41
  "@babel/runtime": "^7.0.0",
42
42
  "@compiled/react": "^0.18.2"