@atlaskit/editor-plugin-paste-options-toolbar 7.0.5 → 7.0.7

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,20 @@
1
1
  # @atlaskit/editor-plugin-paste-options-toolbar
2
2
 
3
+ ## 7.0.7
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9f03725ffb7b8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9f03725ffb7b8) -
8
+ Removing feature flag with changing internal use of custom icons.
9
+ - Updated dependencies
10
+
11
+ ## 7.0.6
12
+
13
+ ### Patch Changes
14
+
15
+ - [`840338033507a`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/840338033507a) -
16
+ Migrating custom icons behind feature flag.
17
+
3
18
  ## 7.0.5
4
19
 
5
20
  ### Patch Changes
@@ -5,48 +5,13 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = void 0;
8
- var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
8
  var _react = _interopRequireDefault(require("react"));
10
- var _icon = _interopRequireDefault(require("@atlaskit/icon"));
11
- //Using a custom icon for now since Design System Team is in the process of updating the icon set for project griffin.
12
-
13
- var CustomGlyph = function CustomGlyph(props) {
14
- return /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({
15
- width: "24",
16
- height: "24",
17
- viewBox: "0 0 24 24",
18
- fill: "none",
19
- xmlns: "http://www.w3.org/2000/svg"
20
- // Ignored via go/ees005
21
- // eslint-disable-next-line react/jsx-props-no-spreading
22
- }, props), /*#__PURE__*/_react.default.createElement("path", {
23
- fillRule: "evenodd",
24
- clipRule: "evenodd",
25
- d: "M14.8293 4C14.4175 2.83481 13.3062 2 12 2C10.6938 2 9.58254 2.83481 9.17071 4H9H6C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20H18C19.1046 20 20 19.1046 20 18V6C20 4.89543 19.1046 4 18 4H15H14.8293ZM6 6H8V7C8 7.55228 8.44772 8 9 8H15C15.5523 8 16 7.55228 16 7V6H18V18H6V6ZM12 6C12.5523 6 13 5.55228 13 5C13 4.44772 12.5523 4 12 4C11.4477 4 11 4.44772 11 5C11 5.55228 11.4477 6 12 6Z",
26
- fill: "currentColor"
27
- }), /*#__PURE__*/_react.default.createElement("rect", {
28
- x: "8",
29
- y: "11",
30
- width: "8",
31
- height: "2",
32
- rx: "1",
33
- fill: "currentColor"
34
- }), /*#__PURE__*/_react.default.createElement("rect", {
35
- x: "8",
36
- y: "14",
37
- width: "5",
38
- height: "2",
39
- rx: "1",
40
- fill: "currentColor"
41
- }));
42
- };
43
-
9
+ var _clipboard = _interopRequireDefault(require("@atlaskit/icon/core/clipboard"));
44
10
  // Ignored via go/ees005
45
11
  // eslint-disable-next-line react/jsx-props-no-spreading
46
12
  var EditorPasteIcon = function EditorPasteIcon(props) {
47
- return /*#__PURE__*/_react.default.createElement(_icon.default, (0, _extends2.default)({}, props, {
48
- glyph: CustomGlyph
49
- }));
13
+ // eslint-disable-next-line react/jsx-props-no-spreading
14
+ return /*#__PURE__*/_react.default.createElement(_clipboard.default, props);
50
15
  };
51
16
  EditorPasteIcon.displayName = 'EditorPasteIcon';
52
17
  var _default = exports.default = EditorPasteIcon;
@@ -1,41 +1,11 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- //Using a custom icon for now since Design System Team is in the process of updating the icon set for project griffin.
3
-
4
1
  import React from 'react';
5
- import Icon from '@atlaskit/icon';
6
- const CustomGlyph = props => /*#__PURE__*/React.createElement("svg", _extends({
7
- width: "24",
8
- height: "24",
9
- viewBox: "0 0 24 24",
10
- fill: "none",
11
- xmlns: "http://www.w3.org/2000/svg"
12
- // Ignored via go/ees005
13
- // eslint-disable-next-line react/jsx-props-no-spreading
14
- }, props), /*#__PURE__*/React.createElement("path", {
15
- fillRule: "evenodd",
16
- clipRule: "evenodd",
17
- d: "M14.8293 4C14.4175 2.83481 13.3062 2 12 2C10.6938 2 9.58254 2.83481 9.17071 4H9H6C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20H18C19.1046 20 20 19.1046 20 18V6C20 4.89543 19.1046 4 18 4H15H14.8293ZM6 6H8V7C8 7.55228 8.44772 8 9 8H15C15.5523 8 16 7.55228 16 7V6H18V18H6V6ZM12 6C12.5523 6 13 5.55228 13 5C13 4.44772 12.5523 4 12 4C11.4477 4 11 4.44772 11 5C11 5.55228 11.4477 6 12 6Z",
18
- fill: "currentColor"
19
- }), /*#__PURE__*/React.createElement("rect", {
20
- x: "8",
21
- y: "11",
22
- width: "8",
23
- height: "2",
24
- rx: "1",
25
- fill: "currentColor"
26
- }), /*#__PURE__*/React.createElement("rect", {
27
- x: "8",
28
- y: "14",
29
- width: "5",
30
- height: "2",
31
- rx: "1",
32
- fill: "currentColor"
33
- }));
2
+ import ClipboardIcon from '@atlaskit/icon/core/clipboard';
34
3
 
35
4
  // Ignored via go/ees005
36
5
  // eslint-disable-next-line react/jsx-props-no-spreading
37
- const EditorPasteIcon = props => /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
38
- glyph: CustomGlyph
39
- }));
6
+ const EditorPasteIcon = props => {
7
+ // eslint-disable-next-line react/jsx-props-no-spreading
8
+ return /*#__PURE__*/React.createElement(ClipboardIcon, props);
9
+ };
40
10
  EditorPasteIcon.displayName = 'EditorPasteIcon';
41
11
  export default EditorPasteIcon;
@@ -1,45 +1,11 @@
1
- import _extends from "@babel/runtime/helpers/extends";
2
- //Using a custom icon for now since Design System Team is in the process of updating the icon set for project griffin.
3
-
4
1
  import React from 'react';
5
- import Icon from '@atlaskit/icon';
6
- var CustomGlyph = function CustomGlyph(props) {
7
- return /*#__PURE__*/React.createElement("svg", _extends({
8
- width: "24",
9
- height: "24",
10
- viewBox: "0 0 24 24",
11
- fill: "none",
12
- xmlns: "http://www.w3.org/2000/svg"
13
- // Ignored via go/ees005
14
- // eslint-disable-next-line react/jsx-props-no-spreading
15
- }, props), /*#__PURE__*/React.createElement("path", {
16
- fillRule: "evenodd",
17
- clipRule: "evenodd",
18
- d: "M14.8293 4C14.4175 2.83481 13.3062 2 12 2C10.6938 2 9.58254 2.83481 9.17071 4H9H6C4.89543 4 4 4.89543 4 6V18C4 19.1046 4.89543 20 6 20H18C19.1046 20 20 19.1046 20 18V6C20 4.89543 19.1046 4 18 4H15H14.8293ZM6 6H8V7C8 7.55228 8.44772 8 9 8H15C15.5523 8 16 7.55228 16 7V6H18V18H6V6ZM12 6C12.5523 6 13 5.55228 13 5C13 4.44772 12.5523 4 12 4C11.4477 4 11 4.44772 11 5C11 5.55228 11.4477 6 12 6Z",
19
- fill: "currentColor"
20
- }), /*#__PURE__*/React.createElement("rect", {
21
- x: "8",
22
- y: "11",
23
- width: "8",
24
- height: "2",
25
- rx: "1",
26
- fill: "currentColor"
27
- }), /*#__PURE__*/React.createElement("rect", {
28
- x: "8",
29
- y: "14",
30
- width: "5",
31
- height: "2",
32
- rx: "1",
33
- fill: "currentColor"
34
- }));
35
- };
2
+ import ClipboardIcon from '@atlaskit/icon/core/clipboard';
36
3
 
37
4
  // Ignored via go/ees005
38
5
  // eslint-disable-next-line react/jsx-props-no-spreading
39
6
  var EditorPasteIcon = function EditorPasteIcon(props) {
40
- return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
41
- glyph: CustomGlyph
42
- }));
7
+ // eslint-disable-next-line react/jsx-props-no-spreading
8
+ return /*#__PURE__*/React.createElement(ClipboardIcon, props);
43
9
  };
44
10
  EditorPasteIcon.displayName = 'EditorPasteIcon';
45
11
  export default EditorPasteIcon;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { type IconProps } from '@atlaskit/icon';
2
+ import type { IconProps, NewCoreIconProps } from '@atlaskit/icon';
3
3
  declare const EditorPasteIcon: {
4
- (props: IconProps): React.JSX.Element;
4
+ (props: Omit<IconProps, "size"> & Omit<NewCoreIconProps, "size">): React.JSX.Element;
5
5
  displayName: string;
6
6
  };
7
7
  export default EditorPasteIcon;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
- import { type IconProps } from '@atlaskit/icon';
2
+ import type { IconProps, NewCoreIconProps } from '@atlaskit/icon';
3
3
  declare const EditorPasteIcon: {
4
- (props: IconProps): React.JSX.Element;
4
+ (props: Omit<IconProps, "size"> & Omit<NewCoreIconProps, "size">): React.JSX.Element;
5
5
  displayName: string;
6
6
  };
7
7
  export default EditorPasteIcon;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-paste-options-toolbar",
3
- "version": "7.0.5",
3
+ "version": "7.0.7",
4
4
  "description": "Paste options toolbar for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,20 +32,21 @@
32
32
  "@atlaskit/editor-markdown-transformer": "^5.20.0",
33
33
  "@atlaskit/editor-plugin-analytics": "^6.2.0",
34
34
  "@atlaskit/editor-plugin-paste": "^7.4.0",
35
- "@atlaskit/editor-prosemirror": "7.0.0",
35
+ "@atlaskit/editor-prosemirror": "^7.2.0",
36
36
  "@atlaskit/editor-shared-styles": "^3.10.0",
37
- "@atlaskit/icon": "^29.0.0",
37
+ "@atlaskit/icon": "^29.3.0",
38
+ "@atlaskit/platform-feature-flags": "^1.1.0",
38
39
  "@babel/runtime": "^7.0.0",
39
40
  "@emotion/react": "^11.7.1",
40
41
  "react-intl-next": "npm:react-intl@^5.18.1"
41
42
  },
42
43
  "peerDependencies": {
43
- "@atlaskit/editor-common": "^110.36.0",
44
+ "@atlaskit/editor-common": "^110.46.0",
44
45
  "react": "^18.2.0",
45
46
  "react-dom": "^18.2.0"
46
47
  },
47
48
  "devDependencies": {
48
- "@testing-library/react": "^13.4.0",
49
+ "@testing-library/react": "^16.3.0",
49
50
  "wait-for-expect": "^1.2.0"
50
51
  },
51
52
  "techstack": {