@atlaskit/editor-plugin-paste-options-toolbar 7.0.6 → 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,13 @@
|
|
|
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
|
+
|
|
3
11
|
## 7.0.6
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -5,56 +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
9
|
var _clipboard = _interopRequireDefault(require("@atlaskit/icon/core/clipboard"));
|
|
12
|
-
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
13
|
-
//Using a custom icon for now since Design System Team is in the process of updating the icon set for project griffin.
|
|
14
|
-
|
|
15
|
-
var CustomGlyph = function CustomGlyph(props) {
|
|
16
|
-
return /*#__PURE__*/_react.default.createElement("svg", (0, _extends2.default)({
|
|
17
|
-
width: "24",
|
|
18
|
-
height: "24",
|
|
19
|
-
viewBox: "0 0 24 24",
|
|
20
|
-
fill: "none",
|
|
21
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
22
|
-
// Ignored via go/ees005
|
|
23
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
24
|
-
}, props, {
|
|
25
|
-
color: "orange"
|
|
26
|
-
}), /*#__PURE__*/_react.default.createElement("path", {
|
|
27
|
-
fillRule: "evenodd",
|
|
28
|
-
clipRule: "evenodd",
|
|
29
|
-
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",
|
|
30
|
-
fill: "currentColor"
|
|
31
|
-
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
32
|
-
x: "8",
|
|
33
|
-
y: "11",
|
|
34
|
-
width: "8",
|
|
35
|
-
height: "2",
|
|
36
|
-
rx: "1",
|
|
37
|
-
fill: "currentColor"
|
|
38
|
-
}), /*#__PURE__*/_react.default.createElement("rect", {
|
|
39
|
-
x: "8",
|
|
40
|
-
y: "14",
|
|
41
|
-
width: "5",
|
|
42
|
-
height: "2",
|
|
43
|
-
rx: "1",
|
|
44
|
-
fill: "currentColor"
|
|
45
|
-
}));
|
|
46
|
-
};
|
|
47
|
-
|
|
48
10
|
// Ignored via go/ees005
|
|
49
11
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
50
12
|
var EditorPasteIcon = function EditorPasteIcon(props) {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
return /*#__PURE__*/_react.default.createElement(_clipboard.default, props);
|
|
54
|
-
}
|
|
55
|
-
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_icon.default, (0, _extends2.default)({}, props, {
|
|
56
|
-
glyph: CustomGlyph
|
|
57
|
-
})));
|
|
13
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
14
|
+
return /*#__PURE__*/_react.default.createElement(_clipboard.default, props);
|
|
58
15
|
};
|
|
59
16
|
EditorPasteIcon.displayName = 'EditorPasteIcon';
|
|
60
17
|
var _default = exports.default = EditorPasteIcon;
|
|
@@ -1,51 +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
2
|
import ClipboardIcon from '@atlaskit/icon/core/clipboard';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
-
const CustomGlyph = props => /*#__PURE__*/React.createElement("svg", _extends({
|
|
9
|
-
width: "24",
|
|
10
|
-
height: "24",
|
|
11
|
-
viewBox: "0 0 24 24",
|
|
12
|
-
fill: "none",
|
|
13
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
14
|
-
// Ignored via go/ees005
|
|
15
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
16
|
-
}, props, {
|
|
17
|
-
color: "orange"
|
|
18
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
19
|
-
fillRule: "evenodd",
|
|
20
|
-
clipRule: "evenodd",
|
|
21
|
-
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",
|
|
22
|
-
fill: "currentColor"
|
|
23
|
-
}), /*#__PURE__*/React.createElement("rect", {
|
|
24
|
-
x: "8",
|
|
25
|
-
y: "11",
|
|
26
|
-
width: "8",
|
|
27
|
-
height: "2",
|
|
28
|
-
rx: "1",
|
|
29
|
-
fill: "currentColor"
|
|
30
|
-
}), /*#__PURE__*/React.createElement("rect", {
|
|
31
|
-
x: "8",
|
|
32
|
-
y: "14",
|
|
33
|
-
width: "5",
|
|
34
|
-
height: "2",
|
|
35
|
-
rx: "1",
|
|
36
|
-
fill: "currentColor"
|
|
37
|
-
}));
|
|
38
3
|
|
|
39
4
|
// Ignored via go/ees005
|
|
40
5
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
41
6
|
const EditorPasteIcon = props => {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return /*#__PURE__*/React.createElement(ClipboardIcon, props);
|
|
45
|
-
}
|
|
46
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
47
|
-
glyph: CustomGlyph
|
|
48
|
-
})));
|
|
7
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
8
|
+
return /*#__PURE__*/React.createElement(ClipboardIcon, props);
|
|
49
9
|
};
|
|
50
10
|
EditorPasteIcon.displayName = 'EditorPasteIcon';
|
|
51
11
|
export default EditorPasteIcon;
|
|
@@ -1,53 +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
2
|
import ClipboardIcon from '@atlaskit/icon/core/clipboard';
|
|
7
|
-
import { fg } from '@atlaskit/platform-feature-flags';
|
|
8
|
-
var CustomGlyph = function CustomGlyph(props) {
|
|
9
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
10
|
-
width: "24",
|
|
11
|
-
height: "24",
|
|
12
|
-
viewBox: "0 0 24 24",
|
|
13
|
-
fill: "none",
|
|
14
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
15
|
-
// Ignored via go/ees005
|
|
16
|
-
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
17
|
-
}, props, {
|
|
18
|
-
color: "orange"
|
|
19
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
20
|
-
fillRule: "evenodd",
|
|
21
|
-
clipRule: "evenodd",
|
|
22
|
-
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",
|
|
23
|
-
fill: "currentColor"
|
|
24
|
-
}), /*#__PURE__*/React.createElement("rect", {
|
|
25
|
-
x: "8",
|
|
26
|
-
y: "11",
|
|
27
|
-
width: "8",
|
|
28
|
-
height: "2",
|
|
29
|
-
rx: "1",
|
|
30
|
-
fill: "currentColor"
|
|
31
|
-
}), /*#__PURE__*/React.createElement("rect", {
|
|
32
|
-
x: "8",
|
|
33
|
-
y: "14",
|
|
34
|
-
width: "5",
|
|
35
|
-
height: "2",
|
|
36
|
-
rx: "1",
|
|
37
|
-
fill: "currentColor"
|
|
38
|
-
}));
|
|
39
|
-
};
|
|
40
3
|
|
|
41
4
|
// Ignored via go/ees005
|
|
42
5
|
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
43
6
|
var EditorPasteIcon = function EditorPasteIcon(props) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
return /*#__PURE__*/React.createElement(ClipboardIcon, props);
|
|
47
|
-
}
|
|
48
|
-
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
|
|
49
|
-
glyph: CustomGlyph
|
|
50
|
-
})));
|
|
7
|
+
// eslint-disable-next-line react/jsx-props-no-spreading
|
|
8
|
+
return /*#__PURE__*/React.createElement(ClipboardIcon, props);
|
|
51
9
|
};
|
|
52
10
|
EditorPasteIcon.displayName = 'EditorPasteIcon';
|
|
53
11
|
export default EditorPasteIcon;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { IconProps, NewCoreIconProps } from '@atlaskit/icon';
|
|
3
3
|
declare const EditorPasteIcon: {
|
|
4
4
|
(props: Omit<IconProps, "size"> & Omit<NewCoreIconProps, "size">): React.JSX.Element;
|
|
5
5
|
displayName: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import type { IconProps, NewCoreIconProps } from '@atlaskit/icon';
|
|
3
3
|
declare const EditorPasteIcon: {
|
|
4
4
|
(props: Omit<IconProps, "size"> & Omit<NewCoreIconProps, "size">): React.JSX.Element;
|
|
5
5
|
displayName: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-paste-options-toolbar",
|
|
3
|
-
"version": "7.0.
|
|
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,21 +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.
|
|
35
|
+
"@atlaskit/editor-prosemirror": "^7.2.0",
|
|
36
36
|
"@atlaskit/editor-shared-styles": "^3.10.0",
|
|
37
|
-
"@atlaskit/icon": "^29.
|
|
37
|
+
"@atlaskit/icon": "^29.3.0",
|
|
38
38
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
39
39
|
"@babel/runtime": "^7.0.0",
|
|
40
40
|
"@emotion/react": "^11.7.1",
|
|
41
41
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@atlaskit/editor-common": "^110.
|
|
44
|
+
"@atlaskit/editor-common": "^110.46.0",
|
|
45
45
|
"react": "^18.2.0",
|
|
46
46
|
"react-dom": "^18.2.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@testing-library/react": "^
|
|
49
|
+
"@testing-library/react": "^16.3.0",
|
|
50
50
|
"wait-for-expect": "^1.2.0"
|
|
51
51
|
},
|
|
52
52
|
"techstack": {
|
|
@@ -89,10 +89,5 @@
|
|
|
89
89
|
"stricter": [
|
|
90
90
|
"@atlassian/tangerine/project-structure"
|
|
91
91
|
]
|
|
92
|
-
},
|
|
93
|
-
"platform-feature-flags": {
|
|
94
|
-
"platform-custom-icon-migration": {
|
|
95
|
-
"type": "boolean"
|
|
96
|
-
}
|
|
97
92
|
}
|
|
98
93
|
}
|