@atlaskit/editor-plugin-insert-block 7.0.29 → 7.1.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,24 @@
1
1
  # @atlaskit/editor-plugin-insert-block
2
2
 
3
+ ## 7.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`5302333ef3404`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/5302333ef3404) -
8
+ Clean up feature gate platform_editor_remove_unused_block_insert_props
9
+ - Updated dependencies
10
+
11
+ ## 7.1.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [`762b79e21f96a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/762b79e21f96a) -
16
+ Migrated and cleaned up legacy iconography usage.
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+
3
22
  ## 7.0.29
4
23
 
5
24
  ### Patch 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,
@@ -28,9 +28,6 @@ var _quotationMark = _interopRequireDefault(require("@atlaskit/icon/core/quotati
28
28
  var _showMoreHorizontal = _interopRequireDefault(require("@atlaskit/icon/core/show-more-horizontal"));
29
29
  var _statusInformation = _interopRequireDefault(require("@atlaskit/icon/core/status-information"));
30
30
  var _task = _interopRequireDefault(require("@atlaskit/icon/core/task"));
31
- var _task2 = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/task"));
32
- var _text = _interopRequireDefault(require("@atlaskit/icon/glyph/media-services/text"));
33
- var _status = _interopRequireDefault(require("@atlaskit/icon/glyph/status"));
34
31
  var _shallowEquals = require("./shallow-equals");
35
32
  /**
36
33
  * @jsxRuntime classic
@@ -77,8 +74,7 @@ var action = exports.action = mem(function (init) {
77
74
  return (0, _react2.jsx)(_task.default, {
78
75
  label: "",
79
76
  color: "currentColor",
80
- spacing: "spacious",
81
- LEGACY_fallbackIcon: _task2.default
77
+ spacing: "spacious"
82
78
  });
83
79
  },
84
80
  'aria-keyshortcuts': '[ ] Space'
@@ -263,8 +259,7 @@ var placeholder = exports.placeholder = mem(function (init) {
263
259
  return (0, _react2.jsx)(_fieldText.default, {
264
260
  label: "",
265
261
  spacing: "spacious",
266
- color: "currentColor",
267
- LEGACY_fallbackIcon: _text.default
262
+ color: "currentColor"
268
263
  });
269
264
  }
270
265
  });
@@ -279,8 +274,7 @@ var status = exports.status = mem(function (init) {
279
274
  return (0, _react2.jsx)(_lozenge.default, {
280
275
  label: "",
281
276
  color: "currentColor",
282
- spacing: "spacious",
283
- LEGACY_fallbackIcon: _status.default
277
+ spacing: "spacious"
284
278
  });
285
279
  }
286
280
  });
@@ -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,
@@ -27,9 +27,6 @@ import QuotationMarkIcon from '@atlaskit/icon/core/quotation-mark';
27
27
  import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
28
28
  import InformationIcon from '@atlaskit/icon/core/status-information';
29
29
  import TaskIcon from '@atlaskit/icon/core/task';
30
- import CheckboxCheckedIconLegacy from '@atlaskit/icon/glyph/editor/task';
31
- import PlaceholderTextIcon from '@atlaskit/icon/glyph/media-services/text';
32
- import StatusIconLegacy from '@atlaskit/icon/glyph/status';
33
30
  import { shallowEquals } from './shallow-equals';
34
31
  const from = init => ({
35
32
  content: init.content,
@@ -64,8 +61,7 @@ export const action = mem(init => {
64
61
  Icon: () => jsx(TaskIcon, {
65
62
  label: "",
66
63
  color: "currentColor",
67
- spacing: "spacious",
68
- LEGACY_fallbackIcon: CheckboxCheckedIconLegacy
64
+ spacing: "spacious"
69
65
  }),
70
66
  'aria-keyshortcuts': '[ ] Space'
71
67
  });
@@ -213,8 +209,7 @@ export const placeholder = mem(init => from({
213
209
  Icon: () => jsx(FieldTextIcon, {
214
210
  label: "",
215
211
  spacing: "spacious",
216
- color: "currentColor",
217
- LEGACY_fallbackIcon: PlaceholderTextIcon
212
+ color: "currentColor"
218
213
  })
219
214
  }));
220
215
  export const status = mem(init => from({
@@ -225,8 +220,7 @@ export const status = mem(init => from({
225
220
  Icon: () => jsx(LozengeIcon, {
226
221
  label: "",
227
222
  color: "currentColor",
228
- spacing: "spacious",
229
- LEGACY_fallbackIcon: StatusIconLegacy
223
+ spacing: "spacious"
230
224
  })
231
225
  }));
232
226
 
@@ -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,
@@ -27,9 +27,6 @@ import QuotationMarkIcon from '@atlaskit/icon/core/quotation-mark';
27
27
  import ShowMoreHorizontalIcon from '@atlaskit/icon/core/show-more-horizontal';
28
28
  import InformationIcon from '@atlaskit/icon/core/status-information';
29
29
  import TaskIcon from '@atlaskit/icon/core/task';
30
- import CheckboxCheckedIconLegacy from '@atlaskit/icon/glyph/editor/task';
31
- import PlaceholderTextIcon from '@atlaskit/icon/glyph/media-services/text';
32
- import StatusIconLegacy from '@atlaskit/icon/glyph/status';
33
30
  import { shallowEquals } from './shallow-equals';
34
31
  var from = function from(init) {
35
32
  return {
@@ -69,8 +66,7 @@ export var action = mem(function (init) {
69
66
  return jsx(TaskIcon, {
70
67
  label: "",
71
68
  color: "currentColor",
72
- spacing: "spacious",
73
- LEGACY_fallbackIcon: CheckboxCheckedIconLegacy
69
+ spacing: "spacious"
74
70
  });
75
71
  },
76
72
  'aria-keyshortcuts': '[ ] Space'
@@ -255,8 +251,7 @@ export var placeholder = mem(function (init) {
255
251
  return jsx(FieldTextIcon, {
256
252
  label: "",
257
253
  spacing: "spacious",
258
- color: "currentColor",
259
- LEGACY_fallbackIcon: PlaceholderTextIcon
254
+ color: "currentColor"
260
255
  });
261
256
  }
262
257
  });
@@ -271,8 +266,7 @@ export var status = mem(function (init) {
271
266
  return jsx(LozengeIcon, {
272
267
  label: "",
273
268
  color: "currentColor",
274
- spacing: "spacious",
275
- LEGACY_fallbackIcon: StatusIconLegacy
269
+ spacing: "spacious"
276
270
  });
277
271
  }
278
272
  });
@@ -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.0.29",
3
+ "version": "7.1.1",
4
4
  "description": "Insert block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -30,28 +30,28 @@
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
32
  "@atlaskit/editor-plugin-analytics": "^6.2.0",
33
- "@atlaskit/editor-plugin-block-type": "^10.2.0",
33
+ "@atlaskit/editor-plugin-block-type": "^10.3.0",
34
34
  "@atlaskit/editor-plugin-code-block": "^8.1.0",
35
35
  "@atlaskit/editor-plugin-connectivity": "^6.0.0",
36
36
  "@atlaskit/editor-plugin-date": "^8.1.0",
37
37
  "@atlaskit/editor-plugin-emoji": "^7.7.0",
38
- "@atlaskit/editor-plugin-expand": "^7.4.0",
38
+ "@atlaskit/editor-plugin-expand": "^7.5.0",
39
39
  "@atlaskit/editor-plugin-extension": "^9.2.0",
40
40
  "@atlaskit/editor-plugin-feature-flags": "^5.0.0",
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.5.0",
45
- "@atlaskit/editor-plugin-media-insert": "^14.0.0",
44
+ "@atlaskit/editor-plugin-media": "^8.6.0",
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",
48
- "@atlaskit/editor-plugin-panel": "^8.1.0",
48
+ "@atlaskit/editor-plugin-panel": "^8.2.0",
49
49
  "@atlaskit/editor-plugin-placeholder-text": "^7.1.0",
50
50
  "@atlaskit/editor-plugin-primary-toolbar": "^7.0.0",
51
51
  "@atlaskit/editor-plugin-quick-insert": "^6.1.0",
52
52
  "@atlaskit/editor-plugin-rule": "^6.1.0",
53
53
  "@atlaskit/editor-plugin-status": "^7.1.0",
54
- "@atlaskit/editor-plugin-table": "^15.5.0",
54
+ "@atlaskit/editor-plugin-table": "^15.6.0",
55
55
  "@atlaskit/editor-plugin-tasks-and-decisions": "^9.1.0",
56
56
  "@atlaskit/editor-plugin-toolbar": "^3.4.0",
57
57
  "@atlaskit/editor-plugin-type-ahead": "^6.5.0",
@@ -60,12 +60,12 @@
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.1.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",
68
- "@atlaskit/tokens": "^8.5.0",
67
+ "@atlaskit/tmp-editor-statsig": "^15.13.0",
68
+ "@atlaskit/tokens": "^8.6.0",
69
69
  "@babel/runtime": "^7.0.0",
70
70
  "@emotion/react": "^11.7.1",
71
71
  "bind-event-listener": "^3.0.0",
@@ -74,7 +74,7 @@
74
74
  "react-virtualized": "^9.22.6"
75
75
  },
76
76
  "peerDependencies": {
77
- "@atlaskit/editor-common": "^110.44.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
  },