@atlaskit/editor-plugin-copy-button 8.0.22 → 8.0.24
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 +14 -0
- package/README.md +15 -2
- package/dist/types/pm-plugins/main.d.ts +1 -1
- package/dist/types-ts4.5/pm-plugins/main.d.ts +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-copy-button
|
|
2
2
|
|
|
3
|
+
## 8.0.24
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`82c0224977f47`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/82c0224977f47) -
|
|
8
|
+
Update README.md and 0-intro.tsx
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 8.0.23
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 8.0.22
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,10 +1,23 @@
|
|
|
1
|
-
# Editor
|
|
1
|
+
# Editor Plugin Copy Button
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Copy Button plugin for @atlaskit/editor-core
|
|
4
4
|
|
|
5
5
|
**Note:** This component is designed for internal Atlassian development.
|
|
6
6
|
External contributors will be able to use this component but will not be able to submit issues.
|
|
7
7
|
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
The Copy Button plugin provides toolbar button functionality for copying content within the Atlassian Editor. It integrates with the floating toolbar to display copy buttons for marks and nodes, offering visual feedback and accessibility features for copy operations.
|
|
11
|
+
|
|
12
|
+
## Key features
|
|
13
|
+
|
|
14
|
+
- **Copy button toolbar integration** - Seamlessly integrate copy buttons into the floating toolbar
|
|
15
|
+
- **Mark and node support** - Support copying both marks and nodes with specific copy handlers
|
|
16
|
+
- **Visual feedback** - Provide hover decoration and copied state indication to users
|
|
17
|
+
- **Accessibility support** - Announce copy operations to users via aria notifications
|
|
18
|
+
- **Analytics integration** - Track copy button interactions with analytics events
|
|
19
|
+
- **Customizable handlers** - Configure custom mouse and focus event handlers for copy buttons
|
|
20
|
+
|
|
8
21
|
## Install
|
|
9
22
|
---
|
|
10
23
|
- **Install** - *yarn add @atlaskit/editor-plugin-copy-button*
|
|
@@ -5,8 +5,8 @@ export declare function getMarkSelectionHelper({ $pos, markType, }: {
|
|
|
5
5
|
$pos: ResolvedPos;
|
|
6
6
|
markType: MarkType;
|
|
7
7
|
}): false | {
|
|
8
|
-
start: number;
|
|
9
8
|
end: number;
|
|
9
|
+
start: number;
|
|
10
10
|
};
|
|
11
11
|
export declare function copyButtonPlugin(): SafePlugin<CopyButtonPluginState>;
|
|
12
12
|
export default copyButtonPlugin;
|
|
@@ -5,8 +5,8 @@ export declare function getMarkSelectionHelper({ $pos, markType, }: {
|
|
|
5
5
|
$pos: ResolvedPos;
|
|
6
6
|
markType: MarkType;
|
|
7
7
|
}): false | {
|
|
8
|
-
start: number;
|
|
9
8
|
end: number;
|
|
9
|
+
start: number;
|
|
10
10
|
};
|
|
11
11
|
export declare function copyButtonPlugin(): SafePlugin<CopyButtonPluginState>;
|
|
12
12
|
export default copyButtonPlugin;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-copy-button",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.24",
|
|
4
4
|
"description": "editor-plugin-copy-button for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -32,11 +32,11 @@
|
|
|
32
32
|
"@atlaskit/editor-plugin-decorations": "^8.0.0",
|
|
33
33
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
34
34
|
"@atlaskit/icon": "^34.0.0",
|
|
35
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
35
|
+
"@atlaskit/tmp-editor-statsig": "^55.0.0",
|
|
36
36
|
"@babel/runtime": "^7.0.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@atlaskit/editor-common": "^112.
|
|
39
|
+
"@atlaskit/editor-common": "^112.18.0",
|
|
40
40
|
"react": "^18.2.0",
|
|
41
41
|
"react-dom": "^18.2.0"
|
|
42
42
|
},
|