@nice2dev/ui-graphics 1.3.16 → 1.3.17

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,9 @@
1
1
  # @nice2dev/ui-graphics — Changelog
2
2
 
3
+ ## 1.3.17
4
+
5
+ No changes in this release.
6
+
3
7
  ## 1.3.16
4
8
 
5
9
  ### Patch Changes
@@ -21,7 +21,7 @@ class VarStoragePolyfill {
21
21
  let _localStorage = new VarStoragePolyfill();
22
22
  let usePolyfill = true;
23
23
  try {
24
- if (typeof localStorage !== "undefined" && localStorage) {
24
+ if (typeof window !== "undefined" && typeof localStorage !== "undefined" && localStorage) {
25
25
  _localStorage = localStorage;
26
26
  usePolyfill = false;
27
27
  }
@@ -19,7 +19,7 @@ class VarStoragePolyfill {
19
19
  let _localStorage = new VarStoragePolyfill();
20
20
  let usePolyfill = true;
21
21
  try {
22
- if (typeof localStorage !== "undefined" && localStorage) {
22
+ if (typeof window !== "undefined" && typeof localStorage !== "undefined" && localStorage) {
23
23
  _localStorage = localStorage;
24
24
  usePolyfill = false;
25
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice2dev/ui-graphics",
3
- "version": "1.3.16",
3
+ "version": "1.3.17",
4
4
  "description": "Nice2Dev Graphics Editors — Pixel, Vector, Photo and Animation editors for React",
5
5
  "author": "NiceToDev <contact@nicetodev.com>",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -70,8 +70,8 @@
70
70
  "react-dom": ">=17.0.0"
71
71
  },
72
72
  "devDependencies": {
73
- "@nice2dev/ui": "^1.3.16",
74
- "@nice2dev/ui-core": "^1.3.16",
73
+ "@nice2dev/ui": "^1.3.17",
74
+ "@nice2dev/ui-core": "^1.3.17",
75
75
  "@testing-library/jest-dom": "^7.0.1",
76
76
  "@testing-library/react": "^16.3.3",
77
77
  "@types/react": "^19.2.18",