@atlaskit/editor-plugin-synced-block 5.3.26 → 5.3.27

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,13 @@
1
1
  # @atlaskit/editor-plugin-synced-block
2
2
 
3
+ ## 5.3.27
4
+
5
+ ### Patch Changes
6
+
7
+ - [`7ea2e225c0abb`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7ea2e225c0abb) -
8
+ [ux] Minor styling, wording changes for block menu and sync blocks
9
+ - Updated dependencies
10
+
3
11
  ## 5.3.26
4
12
 
5
13
  ### Patch Changes
@@ -14,6 +14,7 @@ var _messages = require("@atlaskit/editor-common/messages");
14
14
  var _editorPluginConnectivity = require("@atlaskit/editor-plugin-connectivity");
15
15
  var _editorToolbar = require("@atlaskit/editor-toolbar");
16
16
  var _lozenge = _interopRequireDefault(require("@atlaskit/lozenge"));
17
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
17
18
  var _utils = require("../pm-plugins/utils/utils");
18
19
  var _types = require("../types");
19
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); }
@@ -47,9 +48,15 @@ var CreateSyncedBlockDropdownItem = function CreateSyncedBlockDropdownItem(_ref)
47
48
  }));
48
49
  };
49
50
  var isOffline = (0, _editorPluginConnectivity.isOfflineMode)(mode);
51
+
52
+ // [FEATURE FLAG: platform_editor_block_menu_v2_patch_3]
53
+ // Adds size="small" to icons for better visual consistency in block menu.
54
+ // To clean up: remove conditional, keep only size="small" version.
55
+ var iconSize = (0, _platformFeatureFlags.fg)('platform_editor_block_menu_v2_patch_3') ? 'small' : undefined;
50
56
  return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItem, {
51
57
  elemBefore: /*#__PURE__*/_react.default.createElement(_editorToolbar.SyncBlocksIcon, {
52
- label: ""
58
+ label: "",
59
+ size: iconSize
53
60
  }),
54
61
  onClick: onClick,
55
62
  isDisabled: isOffline,
@@ -77,9 +84,15 @@ var CopySyncedBlockDropdownItem = function CopySyncedBlockDropdownItem(_ref2) {
77
84
  closeMenu: true
78
85
  }));
79
86
  };
87
+
88
+ // [FEATURE FLAG: platform_editor_block_menu_v2_patch_3]
89
+ // Adds size="small" to icons for better visual consistency in block menu.
90
+ // To clean up: remove conditional, keep only size="small" version.
91
+ var iconSize = (0, _platformFeatureFlags.fg)('platform_editor_block_menu_v2_patch_3') ? 'small' : undefined;
80
92
  return /*#__PURE__*/_react.default.createElement(_editorToolbar.ToolbarDropdownItem, {
81
93
  elemBefore: /*#__PURE__*/_react.default.createElement(_editorToolbar.SyncBlocksIcon, {
82
- label: ""
94
+ label: "",
95
+ size: iconSize
83
96
  }),
84
97
  onClick: onClick,
85
98
  isDisabled: (0, _editorPluginConnectivity.isOfflineMode)(mode),
@@ -6,6 +6,7 @@ import { blockMenuMessages } from '@atlaskit/editor-common/messages';
6
6
  import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
7
7
  import { SyncBlocksIcon, ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
8
8
  import Lozenge from '@atlaskit/lozenge';
9
+ import { fg } from '@atlaskit/platform-feature-flags';
9
10
  import { canBeConvertedToSyncBlock } from '../pm-plugins/utils/utils';
10
11
  import { SYNCED_BLOCK_BUTTON_TEST_ID } from '../types';
11
12
  const CreateSyncedBlockDropdownItem = ({
@@ -39,9 +40,15 @@ const CreateSyncedBlockDropdownItem = ({
39
40
  }));
40
41
  };
41
42
  const isOffline = isOfflineMode(mode);
43
+
44
+ // [FEATURE FLAG: platform_editor_block_menu_v2_patch_3]
45
+ // Adds size="small" to icons for better visual consistency in block menu.
46
+ // To clean up: remove conditional, keep only size="small" version.
47
+ const iconSize = fg('platform_editor_block_menu_v2_patch_3') ? 'small' : undefined;
42
48
  return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
43
49
  elemBefore: /*#__PURE__*/React.createElement(SyncBlocksIcon, {
44
- label: ""
50
+ label: "",
51
+ size: iconSize
45
52
  }),
46
53
  onClick: onClick,
47
54
  isDisabled: isOffline,
@@ -72,9 +79,15 @@ const CopySyncedBlockDropdownItem = ({
72
79
  closeMenu: true
73
80
  }));
74
81
  };
82
+
83
+ // [FEATURE FLAG: platform_editor_block_menu_v2_patch_3]
84
+ // Adds size="small" to icons for better visual consistency in block menu.
85
+ // To clean up: remove conditional, keep only size="small" version.
86
+ const iconSize = fg('platform_editor_block_menu_v2_patch_3') ? 'small' : undefined;
75
87
  return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
76
88
  elemBefore: /*#__PURE__*/React.createElement(SyncBlocksIcon, {
77
- label: ""
89
+ label: "",
90
+ size: iconSize
78
91
  }),
79
92
  onClick: onClick,
80
93
  isDisabled: isOfflineMode(mode),
@@ -6,6 +6,7 @@ import { blockMenuMessages } from '@atlaskit/editor-common/messages';
6
6
  import { isOfflineMode } from '@atlaskit/editor-plugin-connectivity';
7
7
  import { SyncBlocksIcon, ToolbarDropdownItem } from '@atlaskit/editor-toolbar';
8
8
  import Lozenge from '@atlaskit/lozenge';
9
+ import { fg } from '@atlaskit/platform-feature-flags';
9
10
  import { canBeConvertedToSyncBlock } from '../pm-plugins/utils/utils';
10
11
  import { SYNCED_BLOCK_BUTTON_TEST_ID } from '../types';
11
12
  var CreateSyncedBlockDropdownItem = function CreateSyncedBlockDropdownItem(_ref) {
@@ -38,9 +39,15 @@ var CreateSyncedBlockDropdownItem = function CreateSyncedBlockDropdownItem(_ref)
38
39
  }));
39
40
  };
40
41
  var isOffline = isOfflineMode(mode);
42
+
43
+ // [FEATURE FLAG: platform_editor_block_menu_v2_patch_3]
44
+ // Adds size="small" to icons for better visual consistency in block menu.
45
+ // To clean up: remove conditional, keep only size="small" version.
46
+ var iconSize = fg('platform_editor_block_menu_v2_patch_3') ? 'small' : undefined;
41
47
  return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
42
48
  elemBefore: /*#__PURE__*/React.createElement(SyncBlocksIcon, {
43
- label: ""
49
+ label: "",
50
+ size: iconSize
44
51
  }),
45
52
  onClick: onClick,
46
53
  isDisabled: isOffline,
@@ -68,9 +75,15 @@ var CopySyncedBlockDropdownItem = function CopySyncedBlockDropdownItem(_ref2) {
68
75
  closeMenu: true
69
76
  }));
70
77
  };
78
+
79
+ // [FEATURE FLAG: platform_editor_block_menu_v2_patch_3]
80
+ // Adds size="small" to icons for better visual consistency in block menu.
81
+ // To clean up: remove conditional, keep only size="small" version.
82
+ var iconSize = fg('platform_editor_block_menu_v2_patch_3') ? 'small' : undefined;
71
83
  return /*#__PURE__*/React.createElement(ToolbarDropdownItem, {
72
84
  elemBefore: /*#__PURE__*/React.createElement(SyncBlocksIcon, {
73
- label: ""
85
+ label: "",
86
+ size: iconSize
74
87
  }),
75
88
  onClick: onClick,
76
89
  isDisabled: isOfflineMode(mode),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-synced-block",
3
- "version": "5.3.26",
3
+ "version": "5.3.27",
4
4
  "description": "SyncedBlock plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -40,7 +40,7 @@
40
40
  "@atlaskit/editor-plugin-selection": "^7.0.0",
41
41
  "@atlaskit/editor-prosemirror": "^7.3.0",
42
42
  "@atlaskit/editor-shared-styles": "^3.10.0",
43
- "@atlaskit/editor-synced-block-provider": "^3.30.0",
43
+ "@atlaskit/editor-synced-block-provider": "^3.31.0",
44
44
  "@atlaskit/editor-toolbar": "^0.19.0",
45
45
  "@atlaskit/flag": "^17.8.0",
46
46
  "@atlaskit/icon": "31.0.0",
@@ -106,6 +106,9 @@
106
106
  "platform-feature-flags": {
107
107
  "platform_synced_block_patch_3": {
108
108
  "type": "boolean"
109
+ },
110
+ "platform_editor_block_menu_v2_patch_3": {
111
+ "type": "boolean"
109
112
  }
110
113
  }
111
114
  }