@atlaskit/editor-plugin-paste 13.3.6 → 13.3.8

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.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`c2986ab2c7a01`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/c2986ab2c7a01) -
8
+ Cleans up prefer static regex violations and enables e18e rule
9
+ - Updated dependencies
10
+
11
+ ## 13.3.7
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 13.3.6
4
18
 
5
19
  ### Patch Changes
package/compass.yml CHANGED
@@ -24,6 +24,9 @@ customFields:
24
24
  - name: Department
25
25
  type: text
26
26
  value: Eng - Editor Frontend Platform
27
+ - name: Trusted Reviewer Teams
28
+ type: text
29
+ value: ari:cloud:identity::team/cf6a670b-5252-4c68-a769-9207de366beb
27
30
  - name: Technical Owner
28
31
  type: user
29
32
  value: ari:cloud:identity::user/5ea93c14a4c57d0b8bd65a16 # Anand Raj
@@ -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
- // eslint-disable-next-line require-unicode-regexp
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
- // eslint-disable-next-line require-unicode-regexp
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
- // eslint-disable-next-line require-unicode-regexp
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.6",
3
+ "version": "13.3.8",
4
4
  "description": "Paste plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -20,7 +20,7 @@
20
20
  "atlaskit:src": "src/index.ts",
21
21
  "dependencies": {
22
22
  "@atlaskit/adf-schema": "^56.0.0",
23
- "@atlaskit/adf-utils": "^20.1.0",
23
+ "@atlaskit/adf-utils": "^20.2.0",
24
24
  "@atlaskit/code": "^18.2.0",
25
25
  "@atlaskit/editor-markdown-transformer": "^6.0.0",
26
26
  "@atlaskit/editor-plugin-analytics": "^12.0.0",
@@ -41,14 +41,14 @@
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": "^119.0.0",
44
+ "@atlaskit/tmp-editor-statsig": "^120.1.0",
45
45
  "@atlaskit/tokens": "^15.3.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.19.0",
51
+ "@atlaskit/editor-common": "^116.21.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"