@atlaskit/editor-plugin-insert-block 7.1.0 → 7.1.2

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-insert-block
2
2
 
3
+ ## 7.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 7.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`5302333ef3404`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5302333ef3404) -
14
+ Clean up feature gate platform_editor_remove_unused_block_insert_props
15
+ - Updated dependencies
16
+
3
17
  ## 7.1.0
4
18
 
5
19
  ### Minor Changes
@@ -809,8 +809,6 @@ var ToolbarInsertBlock = exports.ToolbarInsertBlock = /*#__PURE__*/function (_Re
809
809
  onPlusButtonRef: this.handlePlusButtonRef,
810
810
  onClick: this.handleClick,
811
811
  onKeyDown: this.handleOpenByKeyboard,
812
- onItemActivated: (0, _platformFeatureFlags.fg)('platform_editor_remove_unused_block_insert_props') ? undefined : this.insertInsertMenuItem,
813
- onOpenChange: (0, _platformFeatureFlags.fg)('platform_editor_remove_unused_block_insert_props') ? undefined : this.onOpenChange,
814
812
  onInsert: this.insertInsertMenuItem,
815
813
  togglePlusMenuVisibility: this.togglePlusMenuVisibility,
816
814
  showElementBrowserLink: this.props.showElementBrowserLink || false,
@@ -851,8 +851,6 @@ export class ToolbarInsertBlock extends React.PureComponent {
851
851
  onPlusButtonRef: this.handlePlusButtonRef,
852
852
  onClick: this.handleClick,
853
853
  onKeyDown: this.handleOpenByKeyboard,
854
- onItemActivated: fg('platform_editor_remove_unused_block_insert_props') ? undefined : this.insertInsertMenuItem,
855
- onOpenChange: fg('platform_editor_remove_unused_block_insert_props') ? undefined : this.onOpenChange,
856
854
  onInsert: this.insertInsertMenuItem,
857
855
  togglePlusMenuVisibility: this.togglePlusMenuVisibility,
858
856
  showElementBrowserLink: this.props.showElementBrowserLink || false,
@@ -803,8 +803,6 @@ export var ToolbarInsertBlock = /*#__PURE__*/function (_React$PureComponent) {
803
803
  onPlusButtonRef: this.handlePlusButtonRef,
804
804
  onClick: this.handleClick,
805
805
  onKeyDown: this.handleOpenByKeyboard,
806
- onItemActivated: fg('platform_editor_remove_unused_block_insert_props') ? undefined : this.insertInsertMenuItem,
807
- onOpenChange: fg('platform_editor_remove_unused_block_insert_props') ? undefined : this.onOpenChange,
808
806
  onInsert: this.insertInsertMenuItem,
809
807
  togglePlusMenuVisibility: this.togglePlusMenuVisibility,
810
808
  showElementBrowserLink: this.props.showElementBrowserLink || false,
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
- import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
4
3
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
4
  import type { InsertBlockPlugin } from '../../index';
6
5
  import type { OnInsert } from '../ElementBrowser/types';
@@ -13,11 +12,7 @@ export interface BlockInsertMenuProps {
13
12
  label: string;
14
13
  onClick: React.MouseEventHandler;
15
14
  onInsert: OnInsert;
16
- onItemActivated?: (attrs: {
17
- item: MenuItem;
18
- }) => void;
19
15
  onKeyDown?: React.KeyboardEventHandler;
20
- onOpenChange?: (attrs: any) => void;
21
16
  onPlusButtonRef(el: HTMLElement): void;
22
17
  onRef(el: HTMLElement): void;
23
18
  open: boolean;
@@ -1,6 +1,5 @@
1
1
  import React from 'react';
2
2
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
- import type { MenuItem } from '@atlaskit/editor-common/ui-menu';
4
3
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
4
  import type { InsertBlockPlugin } from '../../index';
6
5
  import type { OnInsert } from '../ElementBrowser/types';
@@ -13,11 +12,7 @@ export interface BlockInsertMenuProps {
13
12
  label: string;
14
13
  onClick: React.MouseEventHandler;
15
14
  onInsert: OnInsert;
16
- onItemActivated?: (attrs: {
17
- item: MenuItem;
18
- }) => void;
19
15
  onKeyDown?: React.KeyboardEventHandler;
20
- onOpenChange?: (attrs: any) => void;
21
16
  onPlusButtonRef(el: HTMLElement): void;
22
17
  onRef(el: HTMLElement): void;
23
18
  open: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-insert-block",
3
- "version": "7.1.0",
3
+ "version": "7.1.2",
4
4
  "description": "Insert block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -41,7 +41,7 @@
41
41
  "@atlaskit/editor-plugin-hyperlink": "^8.1.0",
42
42
  "@atlaskit/editor-plugin-image-upload": "^6.0.0",
43
43
  "@atlaskit/editor-plugin-layout": "^6.2.0",
44
- "@atlaskit/editor-plugin-media": "^8.6.0",
44
+ "@atlaskit/editor-plugin-media": "^8.7.0",
45
45
  "@atlaskit/editor-plugin-media-insert": "^14.1.0",
46
46
  "@atlaskit/editor-plugin-mentions": "^8.2.0",
47
47
  "@atlaskit/editor-plugin-metrics": "^7.1.0",
@@ -60,11 +60,11 @@
60
60
  "@atlaskit/editor-toolbar": "^0.18.0",
61
61
  "@atlaskit/editor-toolbar-model": "^0.2.0",
62
62
  "@atlaskit/emoji": "^69.9.0",
63
- "@atlaskit/icon": "^29.2.0",
64
- "@atlaskit/icon-lab": "^5.12.0",
63
+ "@atlaskit/icon": "^29.3.0",
64
+ "@atlaskit/icon-lab": "^5.13.0",
65
65
  "@atlaskit/platform-feature-flags": "^1.1.0",
66
66
  "@atlaskit/theme": "^21.0.0",
67
- "@atlaskit/tmp-editor-statsig": "^15.12.0",
67
+ "@atlaskit/tmp-editor-statsig": "^16.0.0",
68
68
  "@atlaskit/tokens": "^8.6.0",
69
69
  "@babel/runtime": "^7.0.0",
70
70
  "@emotion/react": "^11.7.1",
@@ -74,7 +74,7 @@
74
74
  "react-virtualized": "^9.22.6"
75
75
  },
76
76
  "peerDependencies": {
77
- "@atlaskit/editor-common": "^110.45.0",
77
+ "@atlaskit/editor-common": "^110.46.0",
78
78
  "react": "^18.2.0",
79
79
  "react-dom": "^18.2.0",
80
80
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -138,9 +138,6 @@
138
138
  "confluence-whiteboards-quick-insert-l10n-eligible": {
139
139
  "type": "boolean"
140
140
  },
141
- "platform_editor_remove_unused_block_insert_props": {
142
- "type": "boolean"
143
- },
144
141
  "platform_editor_toolbar_aifc_undo_redo_confluence": {
145
142
  "type": "boolean"
146
143
  },