@atlaskit/editor-plugin-alignment 5.0.2 → 5.0.4

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,21 @@
1
1
  # @atlaskit/editor-plugin-alignment
2
2
 
3
+ ## 5.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`555ac8f256674`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/555ac8f256674) -
8
+ Update menu item icon size to small, tweak paddings and font styles
9
+ - Updated dependencies
10
+
11
+ ## 5.0.3
12
+
13
+ ### Patch Changes
14
+
15
+ - [`db97eb262cc5a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/db97eb262cc5a) -
16
+ replace platform_editor_toolbar_aifc with separate experiements for jira and confluence
17
+ - Updated dependencies
18
+
3
19
  ## 5.0.2
4
20
 
5
21
  ### Patch Changes
@@ -8,7 +8,6 @@ exports.alignmentPlugin = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _adfSchema = require("@atlaskit/adf-schema");
10
10
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
11
- var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
12
11
  var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
13
12
  var _keymap = require("./pm-plugins/keymap");
14
13
  var _main = require("./pm-plugins/main");
@@ -20,7 +19,9 @@ var defaultConfig = {
20
19
  };
21
20
  var alignmentPlugin = exports.alignmentPlugin = function alignmentPlugin(_ref) {
22
21
  var api = _ref.api;
23
- var isToolbarAIFCEnabled = (0, _expValEquals.expValEquals)('platform_editor_toolbar_aifc', 'isEnabled', true);
22
+ var isToolbarAIFCEnabled = (0, _experiments.editorExperiment)('platform_editor_toolbar_aifc', true, {
23
+ exposure: true
24
+ });
24
25
  var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
25
26
  var editorView = _ref2.editorView,
26
27
  popupsMountPoint = _ref2.popupsMountPoint,
@@ -33,6 +33,7 @@ var AlignmentMenuItem = exports.AlignmentMenuItem = function AlignmentMenuItem(_
33
33
  return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItem, {
34
34
  isSelected: align === alignment,
35
35
  elemBefore: /*#__PURE__*/_react.default.createElement(Icon, {
36
+ size: "small",
36
37
  label: ""
37
38
  }),
38
39
  elemAfter: shortcut && /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarKeyboardShortcutHint, {
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import { alignment } from '@atlaskit/adf-schema';
3
3
  import { fg } from '@atlaskit/platform-feature-flags';
4
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
5
4
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
6
5
  import { keymapPlugin } from './pm-plugins/keymap';
7
6
  import { createPlugin, pluginKey } from './pm-plugins/main';
@@ -14,7 +13,9 @@ const defaultConfig = {
14
13
  export const alignmentPlugin = ({
15
14
  api
16
15
  }) => {
17
- const isToolbarAIFCEnabled = expValEquals('platform_editor_toolbar_aifc', 'isEnabled', true);
16
+ const isToolbarAIFCEnabled = editorExperiment('platform_editor_toolbar_aifc', true, {
17
+ exposure: true
18
+ });
18
19
  const primaryToolbarComponent = ({
19
20
  editorView,
20
21
  popupsMountPoint,
@@ -30,6 +30,7 @@ export const AlignmentMenuItem = ({
30
30
  return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
31
31
  isSelected: align === alignment,
32
32
  elemBefore: /*#__PURE__*/React.createElement(Icon, {
33
+ size: "small",
33
34
  label: ""
34
35
  }),
35
36
  elemAfter: shortcut && /*#__PURE__*/React.createElement(ToolbarKeyboardShortcutHint, {
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import { alignment } from '@atlaskit/adf-schema';
3
3
  import { fg } from '@atlaskit/platform-feature-flags';
4
- import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
5
4
  import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
6
5
  import { keymapPlugin } from './pm-plugins/keymap';
7
6
  import { createPlugin, pluginKey } from './pm-plugins/main';
@@ -13,7 +12,9 @@ var defaultConfig = {
13
12
  };
14
13
  export var alignmentPlugin = function alignmentPlugin(_ref) {
15
14
  var api = _ref.api;
16
- var isToolbarAIFCEnabled = expValEquals('platform_editor_toolbar_aifc', 'isEnabled', true);
15
+ var isToolbarAIFCEnabled = editorExperiment('platform_editor_toolbar_aifc', true, {
16
+ exposure: true
17
+ });
17
18
  var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
18
19
  var editorView = _ref2.editorView,
19
20
  popupsMountPoint = _ref2.popupsMountPoint,
@@ -26,6 +26,7 @@ export var AlignmentMenuItem = function AlignmentMenuItem(_ref) {
26
26
  return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
27
27
  isSelected: align === alignment,
28
28
  elemBefore: /*#__PURE__*/React.createElement(Icon, {
29
+ size: "small",
29
30
  label: ""
30
31
  }),
31
32
  elemAfter: shortcut && /*#__PURE__*/React.createElement(ToolbarKeyboardShortcutHint, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-alignment",
3
- "version": "5.0.2",
3
+ "version": "5.0.4",
4
4
  "description": "Alignment plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -41,13 +41,13 @@
41
41
  "@atlaskit/editor-toolbar": "^0.8.0",
42
42
  "@atlaskit/icon": "^28.1.0",
43
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
44
- "@atlaskit/tmp-editor-statsig": "^12.4.0",
44
+ "@atlaskit/tmp-editor-statsig": "^12.5.0",
45
45
  "@atlaskit/tokens": "^6.2.0",
46
46
  "@babel/runtime": "^7.0.0",
47
47
  "@compiled/react": "^0.18.3"
48
48
  },
49
49
  "peerDependencies": {
50
- "@atlaskit/editor-common": "^108.2.0",
50
+ "@atlaskit/editor-common": "^108.5.0",
51
51
  "react": "^18.2.0",
52
52
  "react-dom": "^18.2.0",
53
53
  "react-intl-next": "npm:react-intl@^5.18.1"