@atlaskit/editor-plugin-paste-options-toolbar 11.0.6 → 11.0.9

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,25 @@
1
1
  # @atlaskit/editor-plugin-paste-options-toolbar
2
2
 
3
+ ## 11.0.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [`aaa61a61efb94`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/aaa61a61efb94) -
8
+ Remove unecessary paste icon re-export
9
+ - Updated dependencies
10
+
11
+ ## 11.0.8
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
17
+ ## 11.0.7
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+
3
23
  ## 11.0.6
4
24
 
5
25
  ### Patch Changes
@@ -7,11 +7,11 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.isToolbarVisible = exports.getToolbarMenuConfig = exports.buildToolbar = void 0;
8
8
  var _messages = require("@atlaskit/editor-common/messages");
9
9
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
10
+ var _clipboard = _interopRequireDefault(require("@atlaskit/icon/core/clipboard"));
10
11
  var _commands = require("../editor-commands/commands");
11
12
  var _constants = require("../pm-plugins/constants");
12
13
  var _util = require("../pm-plugins/util");
13
14
  var _types = require("../types/types");
14
- var _pasteIcon = _interopRequireDefault(require("./paste-icon"));
15
15
  var isToolbarVisible = exports.isToolbarVisible = function isToolbarVisible(state, lastContentPasted) {
16
16
  var _$from$parent, _$from$node, _state$schema$nodes$c;
17
17
  /**
@@ -52,7 +52,7 @@ var getToolbarMenuConfig = exports.getToolbarMenuConfig = function getToolbarMen
52
52
  }];
53
53
  return {
54
54
  id: _constants.PASTE_TOOLBAR_ITEM_CLASS,
55
- icon: _pasteIcon.default,
55
+ icon: _clipboard.default,
56
56
  type: 'dropdown',
57
57
  testId: _constants.PASTE_OPTIONS_TEST_ID,
58
58
  title: intl.formatMessage(_messages.pasteOptionsToolbarMessages.pasteOptions),
@@ -1,10 +1,10 @@
1
1
  import { pasteOptionsToolbarMessages as messages } from '@atlaskit/editor-common/messages';
2
2
  import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
3
+ import ClipboardIcon from '@atlaskit/icon/core/clipboard';
3
4
  import { changeToMarkdownWithAnalytics, changeToPlainTextWithAnalytics, changeToRichTextWithAnalytics, dropdownClickHandler } from '../editor-commands/commands';
4
5
  import { PASTE_OPTIONS_TEST_ID, PASTE_TOOLBAR_CLASS, PASTE_TOOLBAR_ITEM_CLASS } from '../pm-plugins/constants';
5
6
  import { hasLinkMark, hasMediaNode, hasRuleNode, isPastedFromFabricEditor } from '../pm-plugins/util';
6
7
  import { pasteOptionsPluginKey, ToolbarDropdownOption } from '../types/types';
7
- import EditorPasteIcon from './paste-icon';
8
8
  export const isToolbarVisible = (state, lastContentPasted) => {
9
9
  var _$from$parent, _$from$node, _state$schema$nodes$c;
10
10
  /**
@@ -45,7 +45,7 @@ export const getToolbarMenuConfig = (pluginState, intl, editorAnalyticsAPI) => {
45
45
  }];
46
46
  return {
47
47
  id: PASTE_TOOLBAR_ITEM_CLASS,
48
- icon: EditorPasteIcon,
48
+ icon: ClipboardIcon,
49
49
  type: 'dropdown',
50
50
  testId: PASTE_OPTIONS_TEST_ID,
51
51
  title: intl.formatMessage(messages.pasteOptions),
@@ -1,10 +1,10 @@
1
1
  import { pasteOptionsToolbarMessages as messages } from '@atlaskit/editor-common/messages';
2
2
  import { akEditorFloatingPanelZIndex } from '@atlaskit/editor-shared-styles';
3
+ import ClipboardIcon from '@atlaskit/icon/core/clipboard';
3
4
  import { changeToMarkdownWithAnalytics, changeToPlainTextWithAnalytics, changeToRichTextWithAnalytics, dropdownClickHandler } from '../editor-commands/commands';
4
5
  import { PASTE_OPTIONS_TEST_ID, PASTE_TOOLBAR_CLASS, PASTE_TOOLBAR_ITEM_CLASS } from '../pm-plugins/constants';
5
6
  import { hasLinkMark, hasMediaNode, hasRuleNode, isPastedFromFabricEditor } from '../pm-plugins/util';
6
7
  import { pasteOptionsPluginKey, ToolbarDropdownOption } from '../types/types';
7
- import EditorPasteIcon from './paste-icon';
8
8
  export var isToolbarVisible = function isToolbarVisible(state, lastContentPasted) {
9
9
  var _$from$parent, _$from$node, _state$schema$nodes$c;
10
10
  /**
@@ -45,7 +45,7 @@ export var getToolbarMenuConfig = function getToolbarMenuConfig(pluginState, int
45
45
  }];
46
46
  return {
47
47
  id: PASTE_TOOLBAR_ITEM_CLASS,
48
- icon: EditorPasteIcon,
48
+ icon: ClipboardIcon,
49
49
  type: 'dropdown',
50
50
  testId: PASTE_OPTIONS_TEST_ID,
51
51
  title: intl.formatMessage(messages.pasteOptions),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-paste-options-toolbar",
3
- "version": "11.0.6",
3
+ "version": "11.0.9",
4
4
  "description": "Paste options toolbar for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -42,14 +42,14 @@
42
42
  "@atlaskit/icon": "^34.3.0",
43
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
44
44
  "@atlaskit/primitives": "^19.0.0",
45
- "@atlaskit/tmp-editor-statsig": "^68.0.0",
45
+ "@atlaskit/tmp-editor-statsig": "^70.2.0",
46
46
  "@atlaskit/tokens": "^13.0.0",
47
47
  "@babel/runtime": "^7.0.0",
48
48
  "@compiled/react": "^0.20.0",
49
49
  "@emotion/react": "^11.7.1"
50
50
  },
51
51
  "peerDependencies": {
52
- "@atlaskit/editor-common": "^114.9.0",
52
+ "@atlaskit/editor-common": "^114.11.0",
53
53
  "react": "^18.2.0",
54
54
  "react-dom": "^18.2.0",
55
55
  "react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
@@ -1,17 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = void 0;
8
- var _react = _interopRequireDefault(require("react"));
9
- var _clipboard = _interopRequireDefault(require("@atlaskit/icon/core/clipboard"));
10
- // Ignored via go/ees005
11
- // eslint-disable-next-line react/jsx-props-no-spreading
12
- var EditorPasteIcon = function EditorPasteIcon(props) {
13
- // eslint-disable-next-line react/jsx-props-no-spreading
14
- return /*#__PURE__*/_react.default.createElement(_clipboard.default, props);
15
- };
16
- EditorPasteIcon.displayName = 'EditorPasteIcon';
17
- var _default = exports.default = EditorPasteIcon;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import ClipboardIcon from '@atlaskit/icon/core/clipboard';
3
-
4
- // Ignored via go/ees005
5
- // eslint-disable-next-line react/jsx-props-no-spreading
6
- const EditorPasteIcon = props => {
7
- // eslint-disable-next-line react/jsx-props-no-spreading
8
- return /*#__PURE__*/React.createElement(ClipboardIcon, props);
9
- };
10
- EditorPasteIcon.displayName = 'EditorPasteIcon';
11
- export default EditorPasteIcon;
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import ClipboardIcon from '@atlaskit/icon/core/clipboard';
3
-
4
- // Ignored via go/ees005
5
- // eslint-disable-next-line react/jsx-props-no-spreading
6
- var EditorPasteIcon = function EditorPasteIcon(props) {
7
- // eslint-disable-next-line react/jsx-props-no-spreading
8
- return /*#__PURE__*/React.createElement(ClipboardIcon, props);
9
- };
10
- EditorPasteIcon.displayName = 'EditorPasteIcon';
11
- export default EditorPasteIcon;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { IconProps, NewCoreIconProps } from '@atlaskit/icon';
3
- declare const EditorPasteIcon: {
4
- (props: Omit<IconProps, "size"> & Omit<NewCoreIconProps, "size">): React.JSX.Element;
5
- displayName: string;
6
- };
7
- export default EditorPasteIcon;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- import type { IconProps, NewCoreIconProps } from '@atlaskit/icon';
3
- declare const EditorPasteIcon: {
4
- (props: Omit<IconProps, "size"> & Omit<NewCoreIconProps, "size">): React.JSX.Element;
5
- displayName: string;
6
- };
7
- export default EditorPasteIcon;