@equinor/cpl-error-snackbar-react 0.1.6 → 1.0.1
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/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -113,7 +113,7 @@ function CopyToClipboardButton({ value }) {
|
|
|
113
113
|
if (timer) clearTimeout(timer);
|
|
114
114
|
};
|
|
115
115
|
}, [showPopover]);
|
|
116
|
-
const handleCopy = () => __async(
|
|
116
|
+
const handleCopy = () => __async(null, null, function* () {
|
|
117
117
|
try {
|
|
118
118
|
yield navigator.clipboard.writeText(value);
|
|
119
119
|
setShowPopover(true);
|
package/dist/index.mjs
CHANGED
|
@@ -69,7 +69,7 @@ function CopyToClipboardButton({ value }) {
|
|
|
69
69
|
if (timer) clearTimeout(timer);
|
|
70
70
|
};
|
|
71
71
|
}, [showPopover]);
|
|
72
|
-
const handleCopy = () => __async(
|
|
72
|
+
const handleCopy = () => __async(null, null, function* () {
|
|
73
73
|
try {
|
|
74
74
|
yield navigator.clipboard.writeText(value);
|
|
75
75
|
setShowPopover(true);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@equinor/cpl-error-snackbar-react",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"@equinor/eds-tokens": "^0.9.2"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@equinor/eds-core-react": "^
|
|
16
|
+
"@equinor/eds-core-react": "^2.2.0",
|
|
17
17
|
"@storybook/react": "^9.1.1",
|
|
18
18
|
"@types/react": "^18.3.18",
|
|
19
19
|
"@types/react-dom": "^18.3.5",
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
"react": "^18.2.0",
|
|
23
23
|
"react-dom": "^18.2.0",
|
|
24
24
|
"styled-components": "^6.1.14",
|
|
25
|
-
"tsup": "^8.
|
|
26
|
-
"@equinor/cpl-eslint-config": "0.0
|
|
25
|
+
"tsup": "^8.5.1",
|
|
26
|
+
"@equinor/cpl-eslint-config": "1.0.0",
|
|
27
27
|
"@equinor/cpl-typescript-config": "0.0.2"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"@equinor/eds-core-react": ">=
|
|
30
|
+
"@equinor/eds-core-react": ">=2.2.0",
|
|
31
31
|
"react": ">=18.2.0",
|
|
32
32
|
"react-dom": ">=18.2.0",
|
|
33
33
|
"styled-components": ">=5.3.11"
|