@equinor/cpl-error-snackbar-react 1.0.0 → 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 CHANGED
@@ -113,7 +113,7 @@ function CopyToClipboardButton({ value }) {
113
113
  if (timer) clearTimeout(timer);
114
114
  };
115
115
  }, [showPopover]);
116
- const handleCopy = () => __async(this, null, function* () {
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(this, null, function* () {
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": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -22,7 +22,7 @@
22
22
  "react": "^18.2.0",
23
23
  "react-dom": "^18.2.0",
24
24
  "styled-components": "^6.1.14",
25
- "tsup": "^8.3.6",
25
+ "tsup": "^8.5.1",
26
26
  "@equinor/cpl-eslint-config": "1.0.0",
27
27
  "@equinor/cpl-typescript-config": "0.0.2"
28
28
  },