@atlaskit/editor-plugin-code-block 35.0.4 → 35.0.6

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-code-block
2
2
 
3
+ ## 35.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8bdae43216aac`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8bdae43216aac) -
8
+ Set `registeredKey` on legacy quick insert items and toolbar `+` items: the key of the matching
9
+ item in the registered quick insert menu, so analytics can name native items the same way in both
10
+ menus.
11
+ - Updated dependencies
12
+
13
+ ## 35.0.5
14
+
15
+ ### Patch Changes
16
+
17
+ - Updated dependencies
18
+
3
19
  ## 35.0.4
4
20
 
5
21
  ### Patch Changes
@@ -14,6 +14,7 @@ var _assets = require("@atlaskit/editor-common/assets");
14
14
  var _key = require("@atlaskit/editor-common/block-menu/key");
15
15
  var _rank = require("@atlaskit/editor-common/block-menu/rank");
16
16
  var _blockType = require("@atlaskit/editor-common/messages/block-type");
17
+ var _keys = require("@atlaskit/editor-common/quick-insert/keys");
17
18
  var _isExperimentEnabled = require("@atlaskit/platform-feature-experiments/is-experiment-enabled");
18
19
  var _fg = require("@atlaskit/platform-feature-flags/fg");
19
20
  var _expValEqualsNoExposure = require("@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure");
@@ -143,6 +144,7 @@ var codeBlockPlugin = function codeBlockPlugin(_ref) {
143
144
  var formatMessage = _ref5.formatMessage;
144
145
  return [{
145
146
  id: 'codeblock',
147
+ registeredKey: _keys.CODE_BLOCK_MENU_ITEM.key,
146
148
  title: formatMessage(_blockType.messages.codeblock),
147
149
  description: formatMessage(_blockType.messages.codeblockDescription),
148
150
  keywords: ['code block'],
@@ -5,6 +5,7 @@ import { IconCode } from '@atlaskit/editor-common/assets';
5
5
  import { TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_CODE_BLOCK_MENU_ITEM } from '@atlaskit/editor-common/block-menu/key';
6
6
  import { TRANSFORM_STRUCTURE_MENU_SECTION_RANK } from '@atlaskit/editor-common/block-menu/rank';
7
7
  import { messages as blockTypeMessages } from '@atlaskit/editor-common/messages/block-type';
8
+ import { CODE_BLOCK_MENU_ITEM } from '@atlaskit/editor-common/quick-insert/keys';
8
9
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
9
10
  import { fg } from '@atlaskit/platform-feature-flags/fg';
10
11
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
@@ -126,6 +127,7 @@ const codeBlockPlugin = ({
126
127
  formatMessage
127
128
  }) => [{
128
129
  id: 'codeblock',
130
+ registeredKey: CODE_BLOCK_MENU_ITEM.key,
129
131
  title: formatMessage(blockTypeMessages.codeblock),
130
132
  description: formatMessage(blockTypeMessages.codeblockDescription),
131
133
  keywords: ['code block'],
@@ -9,6 +9,7 @@ import { IconCode } from '@atlaskit/editor-common/assets';
9
9
  import { TRANSFORM_STRUCTURE_MENU_SECTION, TRANSFORM_STRUCTURE_CODE_BLOCK_MENU_ITEM } from '@atlaskit/editor-common/block-menu/key';
10
10
  import { TRANSFORM_STRUCTURE_MENU_SECTION_RANK } from '@atlaskit/editor-common/block-menu/rank';
11
11
  import { messages as blockTypeMessages } from '@atlaskit/editor-common/messages/block-type';
12
+ import { CODE_BLOCK_MENU_ITEM } from '@atlaskit/editor-common/quick-insert/keys';
12
13
  import { isExperimentEnabled } from '@atlaskit/platform-feature-experiments/is-experiment-enabled';
13
14
  import { fg } from '@atlaskit/platform-feature-flags/fg';
14
15
  import { expValEqualsNoExposure } from '@atlaskit/tmp-editor-statsig/exp-val-equals-no-exposure';
@@ -136,6 +137,7 @@ var codeBlockPlugin = function codeBlockPlugin(_ref) {
136
137
  var formatMessage = _ref5.formatMessage;
137
138
  return [{
138
139
  id: 'codeblock',
140
+ registeredKey: CODE_BLOCK_MENU_ITEM.key,
139
141
  title: formatMessage(blockTypeMessages.codeblock),
140
142
  description: formatMessage(blockTypeMessages.codeblockDescription),
141
143
  keywords: ['code block'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-code-block",
3
- "version": "35.0.4",
3
+ "version": "35.0.6",
4
4
  "description": "Code block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,7 +30,7 @@
30
30
  "@atlaskit/editor-plugin-editor-viewmode": "^35.0.0",
31
31
  "@atlaskit/editor-plugin-feature-flags": "^32.0.0",
32
32
  "@atlaskit/editor-plugin-interaction": "^47.0.0",
33
- "@atlaskit/editor-plugin-selection": "^33.0.0",
33
+ "@atlaskit/editor-plugin-selection": "^33.1.0",
34
34
  "@atlaskit/editor-plugin-toolbar": "^30.0.0",
35
35
  "@atlaskit/editor-plugin-ui-control-registry": "^27.0.0",
36
36
  "@atlaskit/editor-prosemirror": "^9.0.0",
@@ -46,13 +46,13 @@
46
46
  "@atlaskit/prosemirror-input-rules": "^4.1.0",
47
47
  "@atlaskit/react-select": "^4.12.0",
48
48
  "@atlaskit/select": "^23.2.0",
49
- "@atlaskit/tmp-editor-statsig": "^268.0.0",
49
+ "@atlaskit/tmp-editor-statsig": "^269.0.0",
50
50
  "@atlaskit/tokens": "^20.14.0",
51
51
  "@babel/runtime": "^7.0.0",
52
52
  "@compiled/react": "^2.0.0"
53
53
  },
54
54
  "peerDependencies": {
55
- "@atlaskit/editor-common": "^137.7.0",
55
+ "@atlaskit/editor-common": "^137.10.0",
56
56
  "react": "^18.2.0 || ^19.2.0",
57
57
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
58
58
  },
@@ -69,7 +69,7 @@
69
69
  },
70
70
  "devDependencies": {
71
71
  "@atlaskit/docs": "^12.3.0",
72
- "@atlaskit/editor-common": "^137.7.0",
72
+ "@atlaskit/editor-common": "^137.10.0",
73
73
  "react": "^19.2.0",
74
74
  "react-intl": "^7.0.0"
75
75
  }