@anu3ev/fabric-image-editor 0.1.68 → 0.1.69

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.
Files changed (2) hide show
  1. package/dist/main.js +4 -0
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -2385,6 +2385,10 @@ class lt {
2385
2385
  if (s.type !== "image") {
2386
2386
  const g = `${$}${JSON.stringify(s.toObject(["format"]))}`;
2387
2387
  navigator.clipboard.writeText(g).catch((u) => {
2388
+ if (u.name === "NotAllowedError") {
2389
+ console.info("Clipboard access denied, object copied to internal clipboard only");
2390
+ return;
2391
+ }
2388
2392
  t.emitWarning({
2389
2393
  origin: "ClipboardManager",
2390
2394
  method: "copy",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anu3ev/fabric-image-editor",
3
- "version": "0.1.68",
3
+ "version": "0.1.69",
4
4
  "description": "JavaScript image editor built on FabricJS, allowing you to create instances with an integrated montage area and providing an API to modify and manage state.",
5
5
  "module": "dist/main.js",
6
6
  "files": [