@node-projects/web-component-designer 0.1.13 → 0.1.15
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.
|
@@ -19,6 +19,9 @@ export async function copyToClipboard(items) {
|
|
|
19
19
|
console.info('Copy to clipboard successful');
|
|
20
20
|
}
|
|
21
21
|
else {
|
|
22
|
+
let activeElement = document.activeElement;
|
|
23
|
+
while (activeElement?.shadowRoot?.activeElement)
|
|
24
|
+
activeElement = activeElement.shadowRoot.activeElement;
|
|
22
25
|
internalClipboard = items[0][1];
|
|
23
26
|
const textArea = document.createElement('textarea');
|
|
24
27
|
textArea.style.position = 'fixed';
|
|
@@ -46,6 +49,7 @@ export async function copyToClipboard(items) {
|
|
|
46
49
|
}
|
|
47
50
|
}
|
|
48
51
|
document.body.removeChild(textArea);
|
|
52
|
+
activeElement.focus();
|
|
49
53
|
}
|
|
50
54
|
}
|
|
51
55
|
export async function getTextFromClipboard() {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"description": "A UI designer for Polymer apps",
|
|
3
3
|
"name": "@node-projects/web-component-designer",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.15",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"author": "jochen.kuehner@gmx.de",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"prepublishOnly": "npm run build"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@node-projects/base-custom-webcomponent": "
|
|
15
|
+
"@node-projects/base-custom-webcomponent": ">=0.19.0"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"mdn-data": "^2.1.0"
|