@atlaskit/editor-plugin-paste 3.1.6 → 3.1.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,20 @@
1
1
  # @atlaskit/editor-plugin-paste
2
2
 
3
+ ## 3.1.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [#140153](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/140153)
8
+ [`b6fdcc7562539`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b6fdcc7562539) -
9
+ Cleanup feature gate for copy-pasting code blocks from VS code
10
+ - Updated dependencies
11
+
12
+ ## 3.1.7
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 3.1.6
4
19
 
5
20
  ### Patch Changes
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.handleVSCodeBlock = handleVSCodeBlock;
7
7
  var _constants = require("@atlaskit/code/constants");
8
8
  var _utils = require("@atlaskit/editor-common/utils");
9
- var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
10
9
  function safelyGetVSCodeLanguage(editorData) {
11
10
  try {
12
11
  var vscodeData = editorData ? JSON.parse(editorData) : undefined;
@@ -19,9 +18,6 @@ function handleVSCodeBlock(_ref) {
19
18
  slice = _ref.slice,
20
19
  text = _ref.text,
21
20
  event = _ref.event;
22
- if (!(0, _platformFeatureFlags.fg)('platform_editor_vs_code_block_paste')) {
23
- return slice;
24
- }
25
21
  var vscodeData = event === null || event === void 0 || (_event$clipboardData = event.clipboardData) === null || _event$clipboardData === void 0 ? void 0 : _event$clipboardData.getData('vscode-editor-data');
26
22
  var language = safelyGetVSCodeLanguage(vscodeData);
27
23
  if (text && language && _constants.SUPPORTED_LANGUAGES.some(function (l) {
@@ -1,6 +1,5 @@
1
1
  import { SUPPORTED_LANGUAGES } from '@atlaskit/code/constants';
2
2
  import { mapSlice } from '@atlaskit/editor-common/utils';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
3
  function safelyGetVSCodeLanguage(editorData) {
5
4
  try {
6
5
  const vscodeData = editorData ? JSON.parse(editorData) : undefined;
@@ -14,9 +13,6 @@ export function handleVSCodeBlock({
14
13
  event
15
14
  }) {
16
15
  var _event$clipboardData;
17
- if (!fg('platform_editor_vs_code_block_paste')) {
18
- return slice;
19
- }
20
16
  const vscodeData = event === null || event === void 0 ? void 0 : (_event$clipboardData = event.clipboardData) === null || _event$clipboardData === void 0 ? void 0 : _event$clipboardData.getData('vscode-editor-data');
21
17
  const language = safelyGetVSCodeLanguage(vscodeData);
22
18
  if (text && language && SUPPORTED_LANGUAGES.some(l => l.alias[0] === language)) {
@@ -1,6 +1,5 @@
1
1
  import { SUPPORTED_LANGUAGES } from '@atlaskit/code/constants';
2
2
  import { mapSlice } from '@atlaskit/editor-common/utils';
3
- import { fg } from '@atlaskit/platform-feature-flags';
4
3
  function safelyGetVSCodeLanguage(editorData) {
5
4
  try {
6
5
  var vscodeData = editorData ? JSON.parse(editorData) : undefined;
@@ -13,9 +12,6 @@ export function handleVSCodeBlock(_ref) {
13
12
  slice = _ref.slice,
14
13
  text = _ref.text,
15
14
  event = _ref.event;
16
- if (!fg('platform_editor_vs_code_block_paste')) {
17
- return slice;
18
- }
19
15
  var vscodeData = event === null || event === void 0 || (_event$clipboardData = event.clipboardData) === null || _event$clipboardData === void 0 ? void 0 : _event$clipboardData.getData('vscode-editor-data');
20
16
  var language = safelyGetVSCodeLanguage(vscodeData);
21
17
  if (text && language && SUPPORTED_LANGUAGES.some(function (l) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-paste",
3
- "version": "3.1.6",
3
+ "version": "3.1.8",
4
4
  "description": "Paste plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,16 +33,16 @@
33
33
  "dependencies": {
34
34
  "@atlaskit/adf-schema": "^47.6.0",
35
35
  "@atlaskit/code": "^17.0.0",
36
- "@atlaskit/editor-common": "^102.18.0",
36
+ "@atlaskit/editor-common": "^103.4.0",
37
37
  "@atlaskit/editor-markdown-transformer": "^5.16.0",
38
38
  "@atlaskit/editor-plugin-analytics": "^2.2.0",
39
- "@atlaskit/editor-plugin-annotation": "^2.2.0",
39
+ "@atlaskit/editor-plugin-annotation": "^2.5.0",
40
40
  "@atlaskit/editor-plugin-better-type-history": "^2.1.0",
41
41
  "@atlaskit/editor-plugin-card": "^5.4.0",
42
- "@atlaskit/editor-plugin-feature-flags": "^1.3.0",
42
+ "@atlaskit/editor-plugin-feature-flags": "^1.4.0",
43
43
  "@atlaskit/editor-plugin-list": "^4.2.0",
44
- "@atlaskit/editor-plugin-media": "^2.3.0",
45
- "@atlaskit/editor-plugin-mentions": "^4.3.0",
44
+ "@atlaskit/editor-plugin-media": "^2.4.0",
45
+ "@atlaskit/editor-plugin-mentions": "^4.4.0",
46
46
  "@atlaskit/editor-prosemirror": "7.0.0",
47
47
  "@atlaskit/editor-tables": "^2.9.0",
48
48
  "@atlaskit/media-client": "^32.0.0",
@@ -117,9 +117,6 @@
117
117
  "platform_editor_use_nested_table_pm_nodes": {
118
118
  "type": "boolean"
119
119
  },
120
- "platform_editor_vs_code_block_paste": {
121
- "type": "boolean"
122
- },
123
120
  "platform_editor_fix_captions_on_copy": {
124
121
  "type": "boolean"
125
122
  },