@atlaskit/editor-plugin-block-type 22.0.12 → 23.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,19 @@
1
1
  # @atlaskit/editor-plugin-block-type
2
2
 
3
+ ## 23.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8d37dc7e55d62`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/8d37dc7e55d62) -
8
+ Clean up shipped experiment `platform_editor_block_menu`
9
+ - Updated dependencies
10
+
11
+ ## 23.0.0
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 22.0.12
4
18
 
5
19
  ### Patch Changes
@@ -107,6 +107,7 @@ var blockquotePluginOptions = function blockquotePluginOptions(_ref2, isAllowed,
107
107
  }];
108
108
  };
109
109
  var blockTypePlugin = exports.blockTypePlugin = function blockTypePlugin(_ref3) {
110
+ var _api$blockMenu;
110
111
  var options = _ref3.config,
111
112
  api = _ref3.api;
112
113
  var isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar);
@@ -143,12 +144,9 @@ var blockTypePlugin = exports.blockTypePlugin = function blockTypePlugin(_ref3)
143
144
  component: primaryToolbarComponent
144
145
  });
145
146
  }
146
- if ((0, _editorExperiment.editorExperiment)('platform_editor_block_menu', true)) {
147
- var _api$blockMenu;
148
- api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents((0, _ui.getBlockTypeComponents)(api, {
149
- allowFontSize: options === null || options === void 0 ? void 0 : options.allowFontSize
150
- }));
151
- }
147
+ api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents((0, _ui.getBlockTypeComponents)(api, {
148
+ allowFontSize: options === null || options === void 0 ? void 0 : options.allowFontSize
149
+ }));
152
150
  if (isRegisteredSlashCommandEnabled) {
153
151
  var _api$uiControlRegistr, _options$allowBlockTy, _options$allowBlockTy2;
154
152
  api === null || api === void 0 || (_api$uiControlRegistr = api.uiControlRegistry) === null || _api$uiControlRegistr === void 0 || _api$uiControlRegistr.actions.register((0, _getBlockTypeQuickInsertComponents.getBlockTypeQuickInsertComponents)({
@@ -97,6 +97,7 @@ const blockTypePlugin = ({
97
97
  config: options,
98
98
  api
99
99
  }) => {
100
+ var _api$blockMenu;
100
101
  const isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar);
101
102
  const isRegisteredSlashCommandEnabled = isExperimentEnabled('platform_editor_slash_command');
102
103
  const primaryToolbarComponent = ({
@@ -132,12 +133,9 @@ const blockTypePlugin = ({
132
133
  component: primaryToolbarComponent
133
134
  });
134
135
  }
135
- if (editorExperiment('platform_editor_block_menu', true)) {
136
- var _api$blockMenu;
137
- api === null || api === void 0 ? void 0 : (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.actions.registerBlockMenuComponents(getBlockTypeComponents(api, {
138
- allowFontSize: options === null || options === void 0 ? void 0 : options.allowFontSize
139
- }));
140
- }
136
+ api === null || api === void 0 ? void 0 : (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 ? void 0 : _api$blockMenu.actions.registerBlockMenuComponents(getBlockTypeComponents(api, {
137
+ allowFontSize: options === null || options === void 0 ? void 0 : options.allowFontSize
138
+ }));
141
139
  if (isRegisteredSlashCommandEnabled) {
142
140
  var _api$uiControlRegistr, _options$allowBlockTy, _options$allowBlockTy2;
143
141
  api === null || api === void 0 ? void 0 : (_api$uiControlRegistr = api.uiControlRegistry) === null || _api$uiControlRegistr === void 0 ? void 0 : _api$uiControlRegistr.actions.register(getBlockTypeQuickInsertComponents({
@@ -100,6 +100,7 @@ var blockquotePluginOptions = function blockquotePluginOptions(_ref2, isAllowed,
100
100
  }];
101
101
  };
102
102
  var blockTypePlugin = function blockTypePlugin(_ref3) {
103
+ var _api$blockMenu;
103
104
  var options = _ref3.config,
104
105
  api = _ref3.api;
105
106
  var isToolbarAIFCEnabled = Boolean(api === null || api === void 0 ? void 0 : api.toolbar);
@@ -136,12 +137,9 @@ var blockTypePlugin = function blockTypePlugin(_ref3) {
136
137
  component: primaryToolbarComponent
137
138
  });
138
139
  }
139
- if (editorExperiment('platform_editor_block_menu', true)) {
140
- var _api$blockMenu;
141
- api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents(getBlockTypeComponents(api, {
142
- allowFontSize: options === null || options === void 0 ? void 0 : options.allowFontSize
143
- }));
144
- }
140
+ api === null || api === void 0 || (_api$blockMenu = api.blockMenu) === null || _api$blockMenu === void 0 || _api$blockMenu.actions.registerBlockMenuComponents(getBlockTypeComponents(api, {
141
+ allowFontSize: options === null || options === void 0 ? void 0 : options.allowFontSize
142
+ }));
145
143
  if (isRegisteredSlashCommandEnabled) {
146
144
  var _api$uiControlRegistr, _options$allowBlockTy, _options$allowBlockTy2;
147
145
  api === null || api === void 0 || (_api$uiControlRegistr = api.uiControlRegistry) === null || _api$uiControlRegistr === void 0 || _api$uiControlRegistr.actions.register(getBlockTypeQuickInsertComponents({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-type",
3
- "version": "22.0.12",
3
+ "version": "23.0.1",
4
4
  "description": "BlockType plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -23,15 +23,15 @@
23
23
  "dependencies": {
24
24
  "@atlaskit/adf-schema": "^57.5.0",
25
25
  "@atlaskit/css": "^1.1.0",
26
- "@atlaskit/editor-plugin-analytics": "^18.0.0",
27
- "@atlaskit/editor-plugin-block-menu": "^17.0.0",
28
- "@atlaskit/editor-plugin-interaction": "^31.0.0",
29
- "@atlaskit/editor-plugin-list": "^20.0.0",
30
- "@atlaskit/editor-plugin-primary-toolbar": "^19.0.0",
31
- "@atlaskit/editor-plugin-selection": "^18.0.0",
32
- "@atlaskit/editor-plugin-selection-toolbar": "^19.0.0",
33
- "@atlaskit/editor-plugin-toolbar": "^15.0.0",
34
- "@atlaskit/editor-prosemirror": "^8.0.0",
26
+ "@atlaskit/editor-plugin-analytics": "^19.0.0",
27
+ "@atlaskit/editor-plugin-block-menu": "^18.0.0",
28
+ "@atlaskit/editor-plugin-interaction": "^32.0.0",
29
+ "@atlaskit/editor-plugin-list": "^21.0.0",
30
+ "@atlaskit/editor-plugin-primary-toolbar": "^20.0.0",
31
+ "@atlaskit/editor-plugin-selection": "^19.0.0",
32
+ "@atlaskit/editor-plugin-selection-toolbar": "^20.0.0",
33
+ "@atlaskit/editor-plugin-toolbar": "^16.0.0",
34
+ "@atlaskit/editor-prosemirror": "^9.0.0",
35
35
  "@atlaskit/editor-shared-styles": "^4.3.0",
36
36
  "@atlaskit/editor-tables": "^3.2.0",
37
37
  "@atlaskit/editor-toolbar": "^2.6.0",
@@ -43,14 +43,14 @@
43
43
  "@atlaskit/primitives": "^22.5.0",
44
44
  "@atlaskit/prosemirror-history": "^1.2.0",
45
45
  "@atlaskit/prosemirror-input-rules": "^4.1.0",
46
- "@atlaskit/tmp-editor-statsig": "^199.0.0",
47
- "@atlaskit/tokens": "^18.0.0",
46
+ "@atlaskit/tmp-editor-statsig": "^200.0.0",
47
+ "@atlaskit/tokens": "^18.2.0",
48
48
  "@babel/runtime": "^7.0.0",
49
49
  "@compiled/react": "^1.0.2",
50
50
  "@emotion/react": "^11.7.1"
51
51
  },
52
52
  "peerDependencies": {
53
- "@atlaskit/editor-common": "^122.11.0",
53
+ "@atlaskit/editor-common": "^123.0.0",
54
54
  "react": "^18.2.0 || ^19.2.0",
55
55
  "react-dom": "^18.2.0 || ^19.2.0",
56
56
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"