@atlaskit/editor-plugin-paste-options-toolbar 1.3.12 → 1.4.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-paste-options-toolbar
2
2
 
3
+ ## 1.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 1.4.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#163564](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/163564)
14
+ [`6e4c6d8dcc5e9`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/6e4c6d8dcc5e9) -
15
+ Converted paste-icon from CommonJS to ES6 module syntax to address 'require is not defined' errors
16
+ during transpilation
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+
3
22
  ## 1.3.12
4
23
 
5
24
  ### Patch Changes
@@ -1,22 +1,47 @@
1
1
  "use strict";
2
2
 
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
3
4
  Object.defineProperty(exports, "__esModule", {
4
5
  value: true
5
6
  });
6
7
  exports.default = void 0;
8
+ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
+ var _react = _interopRequireDefault(require("react"));
10
+ var _icon = _interopRequireDefault(require("@atlaskit/icon"));
7
11
  //Using a custom icon for now since Design System Team is in the process of updating the icon set for project griffin.
8
12
 
9
- var _react = _interopRequireDefault(require('react'));
10
- var _base = require('@atlaskit/icon/base');
11
- function _interopRequireDefault(obj) {
12
- return obj && obj.__esModule ? obj : {
13
- default: obj
14
- };
15
- }
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
+ }, props), /*#__PURE__*/_react.default.createElement("path", {
21
+ fillRule: "evenodd",
22
+ clipRule: "evenodd",
23
+ 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",
24
+ fill: "currentColor"
25
+ }), /*#__PURE__*/_react.default.createElement("rect", {
26
+ x: "8",
27
+ y: "11",
28
+ width: "8",
29
+ height: "2",
30
+ rx: "1",
31
+ fill: "currentColor"
32
+ }), /*#__PURE__*/_react.default.createElement("rect", {
33
+ x: "8",
34
+ y: "14",
35
+ width: "5",
36
+ height: "2",
37
+ rx: "1",
38
+ fill: "currentColor"
39
+ }));
40
+ };
16
41
  var EditorPasteIcon = function EditorPasteIcon(props) {
17
- return /*#__PURE__*/_react.default.createElement(_base.Icon, Object.assign({
18
- dangerouslySetGlyph: "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" 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\" fill=\"currentColor\"/><rect x=\"8\" y=\"11\" width=\"8\" height=\"2\" rx=\"1\" fill=\"currentColor\"/><rect x=\"8\" y=\"14\" width=\"5\" height=\"2\" rx=\"1\" fill=\"currentColor\"/></svg>"
19
- }, props));
42
+ return /*#__PURE__*/_react.default.createElement(_icon.default, (0, _extends2.default)({}, props, {
43
+ glyph: CustomGlyph
44
+ }));
20
45
  };
21
46
  EditorPasteIcon.displayName = 'EditorPasteIcon';
22
47
  var _default = exports.default = EditorPasteIcon;
@@ -1,14 +1,36 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
1
2
  //Using a custom icon for now since Design System Team is in the process of updating the icon set for project griffin.
2
3
 
3
- const _react = _interopRequireDefault(require('react'));
4
- const _base = require('@atlaskit/icon/base');
5
- function _interopRequireDefault(obj) {
6
- return obj && obj.__esModule ? obj : {
7
- default: obj
8
- };
9
- }
10
- const EditorPasteIcon = props => /*#__PURE__*/_react.default.createElement(_base.Icon, Object.assign({
11
- dangerouslySetGlyph: `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" 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" fill="currentColor"/><rect x="8" y="11" width="8" height="2" rx="1" fill="currentColor"/><rect x="8" y="14" width="5" height="2" rx="1" fill="currentColor"/></svg>`
12
- }, props));
4
+ 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
+ }, props), /*#__PURE__*/React.createElement("path", {
13
+ fillRule: "evenodd",
14
+ clipRule: "evenodd",
15
+ 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",
16
+ fill: "currentColor"
17
+ }), /*#__PURE__*/React.createElement("rect", {
18
+ x: "8",
19
+ y: "11",
20
+ width: "8",
21
+ height: "2",
22
+ rx: "1",
23
+ fill: "currentColor"
24
+ }), /*#__PURE__*/React.createElement("rect", {
25
+ x: "8",
26
+ y: "14",
27
+ width: "5",
28
+ height: "2",
29
+ rx: "1",
30
+ fill: "currentColor"
31
+ }));
32
+ const EditorPasteIcon = props => /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
33
+ glyph: CustomGlyph
34
+ }));
13
35
  EditorPasteIcon.displayName = 'EditorPasteIcon';
14
36
  export default EditorPasteIcon;
@@ -1,16 +1,40 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
1
2
  //Using a custom icon for now since Design System Team is in the process of updating the icon set for project griffin.
2
3
 
3
- var _react = _interopRequireDefault(require('react'));
4
- var _base = require('@atlaskit/icon/base');
5
- function _interopRequireDefault(obj) {
6
- return obj && obj.__esModule ? obj : {
7
- default: obj
8
- };
9
- }
4
+ 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
+ }, props), /*#__PURE__*/React.createElement("path", {
14
+ fillRule: "evenodd",
15
+ clipRule: "evenodd",
16
+ 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",
17
+ fill: "currentColor"
18
+ }), /*#__PURE__*/React.createElement("rect", {
19
+ x: "8",
20
+ y: "11",
21
+ width: "8",
22
+ height: "2",
23
+ rx: "1",
24
+ fill: "currentColor"
25
+ }), /*#__PURE__*/React.createElement("rect", {
26
+ x: "8",
27
+ y: "14",
28
+ width: "5",
29
+ height: "2",
30
+ rx: "1",
31
+ fill: "currentColor"
32
+ }));
33
+ };
10
34
  var EditorPasteIcon = function EditorPasteIcon(props) {
11
- return /*#__PURE__*/_react.default.createElement(_base.Icon, Object.assign({
12
- dangerouslySetGlyph: "<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"><path fill-rule=\"evenodd\" clip-rule=\"evenodd\" 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\" fill=\"currentColor\"/><rect x=\"8\" y=\"11\" width=\"8\" height=\"2\" rx=\"1\" fill=\"currentColor\"/><rect x=\"8\" y=\"14\" width=\"5\" height=\"2\" rx=\"1\" fill=\"currentColor\"/></svg>"
13
- }, props));
35
+ return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
36
+ glyph: CustomGlyph
37
+ }));
14
38
  };
15
39
  EditorPasteIcon.displayName = 'EditorPasteIcon';
16
40
  export default EditorPasteIcon;
@@ -1,5 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { type IconProps } from '@atlaskit/icon';
1
3
  declare const EditorPasteIcon: {
2
- (props: any): any;
4
+ (props: IconProps): JSX.Element;
3
5
  displayName: string;
4
6
  };
5
7
  export default EditorPasteIcon;
@@ -1,5 +1,7 @@
1
+ /// <reference types="react" />
2
+ import { type IconProps } from '@atlaskit/icon';
1
3
  declare const EditorPasteIcon: {
2
- (props: any): any;
4
+ (props: IconProps): JSX.Element;
3
5
  displayName: string;
4
6
  };
5
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": "1.3.12",
3
+ "version": "1.4.1",
4
4
  "description": "Paste options toolbar for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -32,14 +32,14 @@
32
32
  "./styles": "./src/styles.ts"
33
33
  },
34
34
  "dependencies": {
35
- "@atlaskit/editor-common": "^94.6.0",
35
+ "@atlaskit/editor-common": "^95.0.0",
36
36
  "@atlaskit/editor-markdown-transformer": "^5.13.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^1.10.0",
38
38
  "@atlaskit/editor-plugin-paste": "^2.0.0",
39
39
  "@atlaskit/editor-prosemirror": "6.0.0",
40
- "@atlaskit/editor-shared-styles": "^3.1.0",
40
+ "@atlaskit/editor-shared-styles": "^3.2.0",
41
41
  "@atlaskit/icon": "^22.24.0",
42
- "@atlaskit/tokens": "^2.0.0",
42
+ "@atlaskit/tokens": "^2.3.0",
43
43
  "@babel/runtime": "^7.0.0",
44
44
  "@emotion/react": "^11.7.1",
45
45
  "react-intl-next": "npm:react-intl@^5.18.1"