@atlaskit/editor-plugin-paste 13.3.7 → 13.3.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,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-paste
|
|
2
2
|
|
|
3
|
+
## 13.3.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 13.3.8
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`c2986ab2c7a01`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c2986ab2c7a01) -
|
|
14
|
+
Cleans up prefer static regex violations and enables e18e rule
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 13.3.7
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
|
@@ -16,6 +16,9 @@ var _pastePluginType = require("../../pastePluginType");
|
|
|
16
16
|
var _pluginFactory = require("../../pm-plugins/plugin-factory");
|
|
17
17
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
18
18
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
19
|
+
// Ignored via go/ees005
|
|
20
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
21
|
+
var RESOURCE_ID_REGEX = /data-resource-id="(confluence-page|jira-work-item)\//;
|
|
19
22
|
var FLAG_ID = /*#__PURE__*/function (FLAG_ID) {
|
|
20
23
|
FLAG_ID["CANNOT_PASTE_CONTENT"] = "cannot-paste-content";
|
|
21
24
|
return FLAG_ID;
|
|
@@ -91,8 +94,7 @@ var getSourceProductFromRawHtml = function getSourceProductFromRawHtml(rawHtml)
|
|
|
91
94
|
// The capture group already constrains the match to exactly these two literals,
|
|
92
95
|
// so the assertion is safe. This mirrors `getContentIdAndProductFromResourceId`
|
|
93
96
|
// in `@atlaskit/editor-synced-block-provider`.
|
|
94
|
-
|
|
95
|
-
var match = rawHtml.match(/data-resource-id="(confluence-page|jira-work-item)\//);
|
|
97
|
+
var match = rawHtml.match(RESOURCE_ID_REGEX);
|
|
96
98
|
return match === null || match === void 0 ? void 0 : match[1];
|
|
97
99
|
};
|
|
98
100
|
|
|
@@ -5,6 +5,10 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
5
5
|
import { PastePluginActionTypes } from '../../editor-actions/actions';
|
|
6
6
|
import { FLAG_TYPE } from '../../pastePluginType';
|
|
7
7
|
import { pluginKey } from '../../pm-plugins/plugin-factory';
|
|
8
|
+
|
|
9
|
+
// Ignored via go/ees005
|
|
10
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
11
|
+
const RESOURCE_ID_REGEX = /data-resource-id="(confluence-page|jira-work-item)\//;
|
|
8
12
|
var FLAG_ID = /*#__PURE__*/function (FLAG_ID) {
|
|
9
13
|
FLAG_ID["CANNOT_PASTE_CONTENT"] = "cannot-paste-content";
|
|
10
14
|
return FLAG_ID;
|
|
@@ -83,8 +87,7 @@ const getSourceProductFromRawHtml = rawHtml => {
|
|
|
83
87
|
// The capture group already constrains the match to exactly these two literals,
|
|
84
88
|
// so the assertion is safe. This mirrors `getContentIdAndProductFromResourceId`
|
|
85
89
|
// in `@atlaskit/editor-synced-block-provider`.
|
|
86
|
-
|
|
87
|
-
const match = rawHtml.match(/data-resource-id="(confluence-page|jira-work-item)\//);
|
|
90
|
+
const match = rawHtml.match(RESOURCE_ID_REGEX);
|
|
88
91
|
return match === null || match === void 0 ? void 0 : match[1];
|
|
89
92
|
};
|
|
90
93
|
|
|
@@ -9,6 +9,10 @@ import { fg } from '@atlaskit/platform-feature-flags';
|
|
|
9
9
|
import { PastePluginActionTypes } from '../../editor-actions/actions';
|
|
10
10
|
import { FLAG_TYPE } from '../../pastePluginType';
|
|
11
11
|
import { pluginKey } from '../../pm-plugins/plugin-factory';
|
|
12
|
+
|
|
13
|
+
// Ignored via go/ees005
|
|
14
|
+
// eslint-disable-next-line require-unicode-regexp
|
|
15
|
+
var RESOURCE_ID_REGEX = /data-resource-id="(confluence-page|jira-work-item)\//;
|
|
12
16
|
var FLAG_ID = /*#__PURE__*/function (FLAG_ID) {
|
|
13
17
|
FLAG_ID["CANNOT_PASTE_CONTENT"] = "cannot-paste-content";
|
|
14
18
|
return FLAG_ID;
|
|
@@ -84,8 +88,7 @@ var getSourceProductFromRawHtml = function getSourceProductFromRawHtml(rawHtml)
|
|
|
84
88
|
// The capture group already constrains the match to exactly these two literals,
|
|
85
89
|
// so the assertion is safe. This mirrors `getContentIdAndProductFromResourceId`
|
|
86
90
|
// in `@atlaskit/editor-synced-block-provider`.
|
|
87
|
-
|
|
88
|
-
var match = rawHtml.match(/data-resource-id="(confluence-page|jira-work-item)\//);
|
|
91
|
+
var match = rawHtml.match(RESOURCE_ID_REGEX);
|
|
89
92
|
return match === null || match === void 0 ? void 0 : match[1];
|
|
90
93
|
};
|
|
91
94
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-paste",
|
|
3
|
-
"version": "13.3.
|
|
3
|
+
"version": "13.3.9",
|
|
4
4
|
"description": "Paste plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,20 +35,20 @@
|
|
|
35
35
|
"@atlaskit/editor-prosemirror": "^8.0.0",
|
|
36
36
|
"@atlaskit/editor-tables": "^3.0.0",
|
|
37
37
|
"@atlaskit/flag": "^18.1.0",
|
|
38
|
-
"@atlaskit/icon": "^36.
|
|
38
|
+
"@atlaskit/icon": "^36.2.0",
|
|
39
39
|
"@atlaskit/insm": "^1.0.0",
|
|
40
|
-
"@atlaskit/media-client": "^37.
|
|
40
|
+
"@atlaskit/media-client": "^37.2.0",
|
|
41
41
|
"@atlaskit/media-common": "^14.2.0",
|
|
42
42
|
"@atlaskit/platform-feature-flags": "^2.0.0",
|
|
43
43
|
"@atlaskit/prosemirror-history": "^1.0.0",
|
|
44
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
45
|
-
"@atlaskit/tokens": "^15.
|
|
44
|
+
"@atlaskit/tmp-editor-statsig": "^121.0.0",
|
|
45
|
+
"@atlaskit/tokens": "^15.4.0",
|
|
46
46
|
"@babel/runtime": "^7.0.0",
|
|
47
47
|
"lodash": "^4.17.21",
|
|
48
48
|
"uuid": "^3.1.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@atlaskit/editor-common": "^116.
|
|
51
|
+
"@atlaskit/editor-common": "^116.22.0",
|
|
52
52
|
"react": "^18.2.0",
|
|
53
53
|
"react-dom": "^18.2.0",
|
|
54
54
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|