@atlaskit/editor-plugin-copy-button 8.0.31 → 8.0.32
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,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-copy-button
|
|
2
2
|
|
|
3
|
+
## 8.0.32
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`73b2fc243f544`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/73b2fc243f544) -
|
|
8
|
+
Cleaning up getBrowserInfo which was behind experiment platform_editor_hydratable_ui and is now
|
|
9
|
+
rolled out
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 8.0.31
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
|
@@ -13,7 +13,6 @@ var _browser = require("@atlaskit/editor-common/browser");
|
|
|
13
13
|
var _clipboard = require("@atlaskit/editor-common/clipboard");
|
|
14
14
|
var _copyButton = require("@atlaskit/editor-common/copy-button");
|
|
15
15
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
16
|
-
var _expValEquals = require("@atlaskit/tmp-editor-statsig/exp-val-equals");
|
|
17
16
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
18
17
|
var _pluginKey = require("./plugin-key");
|
|
19
18
|
function createToolbarCopyCommandForMark(markType, editorAnalyticsApi) {
|
|
@@ -127,7 +126,7 @@ var createToolbarCopyCommandForNode = exports.createToolbarCopyCommandForNode =
|
|
|
127
126
|
} else {
|
|
128
127
|
if (domNode) {
|
|
129
128
|
var div = document.createElement('div');
|
|
130
|
-
var browser = (0,
|
|
129
|
+
var browser = (0, _browser.getBrowserInfo)();
|
|
131
130
|
div.appendChild(domNode);
|
|
132
131
|
|
|
133
132
|
// if copying inline content
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ACTION, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import {
|
|
2
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
3
3
|
import { copyHTMLToClipboard, copyHTMLToClipboardPolyfill, getAnalyticsPayload } from '@atlaskit/editor-common/clipboard';
|
|
4
4
|
import { copyDomNode, getSelectedNodeOrNodeParentByNodeType, toDOM } from '@atlaskit/editor-common/copy-button';
|
|
5
5
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
6
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
6
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
8
7
|
import { copyButtonPluginKey } from './plugin-key';
|
|
9
8
|
export function createToolbarCopyCommandForMark(markType, editorAnalyticsApi) {
|
|
@@ -118,7 +117,7 @@ export const createToolbarCopyCommandForNode = (nodeType, editorAnalyticsApi, ap
|
|
|
118
117
|
} else {
|
|
119
118
|
if (domNode) {
|
|
120
119
|
const div = document.createElement('div');
|
|
121
|
-
const browser =
|
|
120
|
+
const browser = getBrowserInfo();
|
|
122
121
|
div.appendChild(domNode);
|
|
123
122
|
|
|
124
123
|
// if copying inline content
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ACTION, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
2
|
-
import {
|
|
2
|
+
import { getBrowserInfo } from '@atlaskit/editor-common/browser';
|
|
3
3
|
import { copyHTMLToClipboard, copyHTMLToClipboardPolyfill, getAnalyticsPayload } from '@atlaskit/editor-common/clipboard';
|
|
4
4
|
import { copyDomNode, getSelectedNodeOrNodeParentByNodeType, toDOM } from '@atlaskit/editor-common/copy-button';
|
|
5
5
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
6
|
-
import { expValEquals } from '@atlaskit/tmp-editor-statsig/exp-val-equals';
|
|
7
6
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
8
7
|
import { copyButtonPluginKey } from './plugin-key';
|
|
9
8
|
export function createToolbarCopyCommandForMark(markType, editorAnalyticsApi) {
|
|
@@ -117,7 +116,7 @@ export var createToolbarCopyCommandForNode = function createToolbarCopyCommandFo
|
|
|
117
116
|
} else {
|
|
118
117
|
if (domNode) {
|
|
119
118
|
var div = document.createElement('div');
|
|
120
|
-
var browser =
|
|
119
|
+
var browser = getBrowserInfo();
|
|
121
120
|
div.appendChild(domNode);
|
|
122
121
|
|
|
123
122
|
// if copying inline content
|
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.32",
|
|
4
4
|
"description": "editor-plugin-copy-button for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"@atlaskit/editor-plugin-analytics": "^8.0.0",
|
|
32
32
|
"@atlaskit/editor-plugin-decorations": "^8.0.0",
|
|
33
33
|
"@atlaskit/editor-prosemirror": "^7.3.0",
|
|
34
|
-
"@atlaskit/icon": "^34.
|
|
35
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
34
|
+
"@atlaskit/icon": "^34.1.0",
|
|
35
|
+
"@atlaskit/tmp-editor-statsig": "^62.0.0",
|
|
36
36
|
"@babel/runtime": "^7.0.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"@atlaskit/editor-common": "^112.
|
|
39
|
+
"@atlaskit/editor-common": "^112.21.0",
|
|
40
40
|
"react": "^18.2.0",
|
|
41
41
|
"react-dom": "^18.2.0"
|
|
42
42
|
},
|