@dpgradio/creative 6.0.0 → 7.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/package.json
CHANGED
package/src/privacy/dataLayer.js
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
const getLocalStorageItem = (key) => {
|
|
2
|
+
try {
|
|
3
|
+
return localStorage.getItem(key)
|
|
4
|
+
} catch (error) {
|
|
5
|
+
// Ignore error: either localStorage is disabled or full
|
|
6
|
+
console.error(error)
|
|
7
|
+
return undefined
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
1
11
|
export const onLocalStorageChange = (key, callback, immediate) => {
|
|
2
12
|
window.addEventListener('storage', (change) => {
|
|
3
13
|
if (change.key == key) {
|
|
@@ -6,6 +16,6 @@ export const onLocalStorageChange = (key, callback, immediate) => {
|
|
|
6
16
|
})
|
|
7
17
|
|
|
8
18
|
if (immediate) {
|
|
9
|
-
callback(
|
|
19
|
+
callback(getLocalStorageItem(key))
|
|
10
20
|
}
|
|
11
21
|
}
|
package/styles/colors/joe.css
CHANGED
|
@@ -1,21 +1,7 @@
|
|
|
1
1
|
:root {
|
|
2
|
-
--joe-
|
|
3
|
-
|
|
4
|
-
--joe-
|
|
5
|
-
--joe-purple-dark: 92 29 84;
|
|
6
|
-
--joe-purple-light: 220 50 130;
|
|
7
|
-
|
|
8
|
-
--joe-green: 3 112 108;
|
|
9
|
-
--joe-green-dark: 9 76 89;
|
|
10
|
-
--joe-green-light: 20 160 140;
|
|
11
|
-
|
|
12
|
-
--joe-red: 186 22 52;
|
|
13
|
-
--joe-red-dark: 154 23 54;
|
|
14
|
-
--joe-red-light: 240 40 70;
|
|
15
|
-
|
|
16
|
-
--joe-blue: 7 77 163;
|
|
17
|
-
--joe-blue-dark: 44 45 119;
|
|
18
|
-
--joe-blue-light: 0 130 220;
|
|
2
|
+
--joe-primary: 30 100 200;
|
|
3
|
+
--joe-secondary: 20 50 140;
|
|
4
|
+
--joe-accent: 220 60 150;
|
|
19
5
|
|
|
20
6
|
--joe-text: 78 78 78;
|
|
21
7
|
}
|