@atlaskit/editor-plugin-block-menu 9.0.12 → 9.0.13

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-block-menu
2
2
 
3
+ ## 9.0.13
4
+
5
+ ### Patch Changes
6
+
7
+ - [`07b2a518560d1`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/07b2a518560d1) -
8
+ Adds test-id to the "Turn into" button.
9
+ - Updated dependencies
10
+
3
11
  ## 9.0.12
4
12
 
5
13
  ### Patch Changes
@@ -13,6 +13,7 @@ var _messages = require("@atlaskit/editor-common/messages");
13
13
  var _editorToolbar = require("@atlaskit/editor-toolbar");
14
14
  var _changes = _interopRequireDefault(require("@atlaskit/icon/core/changes"));
15
15
  var _chevronRight = _interopRequireDefault(require("@atlaskit/icon/core/chevron-right"));
16
+ var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
16
17
  var _consts = require("./consts");
17
18
  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); }
18
19
  var FormatMenuComponent = exports.FormatMenuComponent = function FormatMenuComponent(_ref) {
@@ -49,6 +50,7 @@ var FormatMenuComponent = exports.FormatMenuComponent = function FormatMenuCompo
49
50
  enableMaxHeight: true,
50
51
  onClick: handleClick,
51
52
  dropdownTestId: "editor-turn-into-menu",
53
+ testId: (0, _platformFeatureFlags.fg)('cc_blocks_changeboarding') ? 'turn-into-block-menu-btn' : undefined,
52
54
  shouldFitContainer: true
53
55
  }, children);
54
56
  };
@@ -5,6 +5,7 @@ import { blockMenuMessages } from '@atlaskit/editor-common/messages';
5
5
  import { ToolbarNestedDropdownMenu } from '@atlaskit/editor-toolbar';
6
6
  import ChangesIcon from '@atlaskit/icon/core/changes';
7
7
  import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
8
+ import { fg } from '@atlaskit/platform-feature-flags';
8
9
  import { BLOCK_MENU_ITEM_NAME } from './consts';
9
10
  export const FormatMenuComponent = ({
10
11
  api,
@@ -43,6 +44,7 @@ export const FormatMenuComponent = ({
43
44
  enableMaxHeight: true,
44
45
  onClick: handleClick,
45
46
  dropdownTestId: "editor-turn-into-menu",
47
+ testId: fg('cc_blocks_changeboarding') ? 'turn-into-block-menu-btn' : undefined,
46
48
  shouldFitContainer: true
47
49
  }, children);
48
50
  };
@@ -5,6 +5,7 @@ import { blockMenuMessages } from '@atlaskit/editor-common/messages';
5
5
  import { ToolbarNestedDropdownMenu } from '@atlaskit/editor-toolbar';
6
6
  import ChangesIcon from '@atlaskit/icon/core/changes';
7
7
  import ChevronRightIcon from '@atlaskit/icon/core/chevron-right';
8
+ import { fg } from '@atlaskit/platform-feature-flags';
8
9
  import { BLOCK_MENU_ITEM_NAME } from './consts';
9
10
  export var FormatMenuComponent = function FormatMenuComponent(_ref) {
10
11
  var api = _ref.api,
@@ -40,6 +41,7 @@ export var FormatMenuComponent = function FormatMenuComponent(_ref) {
40
41
  enableMaxHeight: true,
41
42
  onClick: handleClick,
42
43
  dropdownTestId: "editor-turn-into-menu",
44
+ testId: fg('cc_blocks_changeboarding') ? 'turn-into-block-menu-btn' : undefined,
43
45
  shouldFitContainer: true
44
46
  }, children);
45
47
  };
@@ -5,7 +5,6 @@
5
5
 
6
6
  import path from 'path';
7
7
 
8
-
9
8
  import type { ComponentStructuredContentSource } from '@atlassian/structured-docs-types';
10
9
 
11
10
  import packageJson from './package.json';
@@ -30,7 +29,11 @@ const documentation: ComponentStructuredContentSource[] = [
30
29
  keywords: ['editor', 'editor-plugin-block-menu', 'atlaskit'],
31
30
  categories: ['editor'],
32
31
  examples: [
33
- { name: 'Basic', description: 'Block menu plugin usage.', source: path.resolve(packagePath, './examples/basic.tsx') },
32
+ {
33
+ name: 'Basic',
34
+ description: 'Block menu plugin usage.',
35
+ source: path.resolve(packagePath, './examples/basic.tsx'),
36
+ },
34
37
  ],
35
38
  },
36
39
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-menu",
3
- "version": "9.0.12",
3
+ "version": "9.0.13",
4
4
  "description": "BlockMenu plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,7 +34,7 @@
34
34
  "@atlaskit/editor-plugin-block-controls": "^11.2.0",
35
35
  "@atlaskit/editor-plugin-decorations": "^10.0.0",
36
36
  "@atlaskit/editor-plugin-selection": "^10.0.0",
37
- "@atlaskit/editor-plugin-user-intent": "^8.0.0",
37
+ "@atlaskit/editor-plugin-user-intent": "^8.1.0",
38
38
  "@atlaskit/editor-prosemirror": "^7.3.0",
39
39
  "@atlaskit/editor-shared-styles": "^3.10.0",
40
40
  "@atlaskit/editor-tables": "^2.9.0",
@@ -44,13 +44,13 @@
44
44
  "@atlaskit/platform-feature-flags": "^1.1.0",
45
45
  "@atlaskit/primitives": "^19.0.0",
46
46
  "@atlaskit/prosemirror-history": "^0.2.0",
47
- "@atlaskit/tmp-editor-statsig": "^74.0.0",
47
+ "@atlaskit/tmp-editor-statsig": "^74.10.0",
48
48
  "@atlaskit/tokens": "^13.0.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "bind-event-listener": "^3.0.0"
51
51
  },
52
52
  "peerDependencies": {
53
- "@atlaskit/editor-common": "^114.15.0",
53
+ "@atlaskit/editor-common": "^114.19.0",
54
54
  "react": "^18.2.0",
55
55
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
56
56
  },
@@ -105,6 +105,9 @@
105
105
  },
106
106
  "platform_editor_block_menu_divider_patch": {
107
107
  "type": "boolean"
108
+ },
109
+ "cc_blocks_changeboarding": {
110
+ "type": "boolean"
108
111
  }
109
112
  },
110
113
  "devDependencies": {