@atlaskit/editor-plugin-paste 9.1.11 → 9.1.13

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
+ ## 9.1.13
4
+
5
+ ### Patch Changes
6
+
7
+ - [`fa146e17e08d6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/fa146e17e08d6) -
8
+ Update README.md and 0-intro.tsx
9
+
10
+ ## 9.1.12
11
+
12
+ ### Patch Changes
13
+
14
+ - [`7b7c52dff5d7d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7b7c52dff5d7d) -
15
+ Fix eslint violations for type import syntax
16
+ - Updated dependencies
17
+
3
18
  ## 9.1.11
4
19
 
5
20
  ### Patch Changes
package/README.md CHANGED
@@ -1,9 +1,45 @@
1
- # EditorPluginPaste
1
+ # Editor Plugin Paste
2
2
 
3
3
  Paste plugin for @atlaskit/editor-core
4
4
 
5
+ **Note:** This component is designed for internal Atlassian development.
6
+ External contributors will be able to use this component but will not be able to submit issues.
7
+
8
+ ## Overview
9
+
10
+ The Paste plugin handles all paste operations in the Atlassian Editor. It intelligently processes clipboard content from various sources and transforms it into the appropriate editor content, supporting rich text, plain text, code blocks, media, links, and special formatting from applications like Microsoft Word, Excel, and VS Code.
11
+
12
+ ## Key features
13
+
14
+ - **Rich content handling** - Process and transform HTML, markdown, and plain text from clipboard
15
+ - **Smart content detection** - Automatically detect and handle paste from Word, Excel, VS Code, and other sources
16
+ - **Media support** - Handle pasted images and files with proper media node creation
17
+ - **Link intelligence** - Convert pasted URLs to smart cards or inline links based on context
18
+ - **Content transformation** - Transform pasted content to match editor schema (lists, tables, code blocks, etc.)
19
+ - **Macro auto-conversion** - Automatically convert pasted macro links to proper extensions
20
+ - **Paste warnings** - Display contextual warnings for paste operations when needed
21
+ - **Analytics tracking** - Track paste events and sources for performance monitoring
22
+
23
+ ## Install
24
+ ---
25
+ - **Install** - *yarn add @atlaskit/editor-plugin-paste*
26
+ - **npm** - [@atlaskit/editor-plugin-paste](https://www.npmjs.com/package/@atlaskit/editor-plugin-paste)
27
+ - **Source** - [Bitbucket](https://bitbucket.org/atlassian/atlassian-frontend/src/master/packages/editor/editor-plugin-paste)
28
+ - **Bundle** - [unpkg.com](https://unpkg.com/@atlaskit/editor-plugin-paste/dist/)
29
+
5
30
  ## Usage
31
+ ---
32
+ **Internal use only**
33
+
34
+ @atlaskit/editor-plugin-paste is intended for internal use by the @atlaskit/editor-core and as a plugin dependency of the Editor within your product.
35
+
36
+ Direct use of this component is not supported.
6
37
 
7
- `import EditorPluginPaste from '@atlaskit/editor-plugin-paste';`
38
+ Please see [Atlaskit - Editor plugin paste](https://atlaskit.atlassian.com/packages/editor/editor-plugin-paste) for documentation and examples for this package.
8
39
 
9
- Detailed docs and example usage can be found [here](https://atlaskit.atlassian.com/packages/editor/editor-plugin-paste).
40
+ ## Support
41
+ ---
42
+ For internal Atlassian, visit the slack channel [#help-editor](https://atlassian.slack.com/archives/CFG3PSQ9E) for support or visit [go/editor-help](https://go/editor-help) to submit a bug.
43
+ ## License
44
+ ---
45
+ Please see [Atlassian Frontend - License](https://hello.atlassian.net/wiki/spaces/AF/pages/2589099144/Documentation#License) for more licensing information.
@@ -10,7 +10,7 @@ function safelyGetVSCodeLanguage(editorData) {
10
10
  try {
11
11
  var vscodeData = editorData ? JSON.parse(editorData) : undefined;
12
12
  return vscodeData === null || vscodeData === void 0 ? void 0 : vscodeData.mode;
13
- } catch (_e) {}
13
+ } catch (_unused) {}
14
14
  }
15
15
  function handleVSCodeBlock(_ref) {
16
16
  var _event$clipboardData;
@@ -4,7 +4,7 @@ function safelyGetVSCodeLanguage(editorData) {
4
4
  try {
5
5
  const vscodeData = editorData ? JSON.parse(editorData) : undefined;
6
6
  return vscodeData === null || vscodeData === void 0 ? void 0 : vscodeData.mode;
7
- } catch (_e) {}
7
+ } catch {}
8
8
  }
9
9
  export function handleVSCodeBlock({
10
10
  state,
@@ -4,7 +4,7 @@ function safelyGetVSCodeLanguage(editorData) {
4
4
  try {
5
5
  var vscodeData = editorData ? JSON.parse(editorData) : undefined;
6
6
  return vscodeData === null || vscodeData === void 0 ? void 0 : vscodeData.mode;
7
- } catch (_e) {}
7
+ } catch (_unused) {}
8
8
  }
9
9
  export function handleVSCodeBlock(_ref) {
10
10
  var _event$clipboardData;
@@ -1,4 +1,4 @@
1
- import { type Slice } from '@atlaskit/editor-prosemirror/model';
1
+ import type { Slice } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
3
3
  interface VSCodeBlockParams {
4
4
  event: ClipboardEvent;
@@ -1,4 +1,4 @@
1
- import { type Slice } from '@atlaskit/editor-prosemirror/model';
1
+ import type { Slice } from '@atlaskit/editor-prosemirror/model';
2
2
  import type { EditorState } from '@atlaskit/editor-prosemirror/state';
3
3
  interface VSCodeBlockParams {
4
4
  event: ClipboardEvent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-paste",
3
- "version": "9.1.11",
3
+ "version": "9.1.13",
4
4
  "description": "Paste plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",