@cocreate/events 1.14.2 → 1.16.0
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 +24 -0
- package/docs/index.html +10 -12
- package/package.json +5 -5
- package/src/index.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,27 @@
|
|
|
1
|
+
# [1.16.0](https://github.com/CoCreate-app/CoCreate-events/compare/v1.15.0...v1.16.0) (2023-11-25)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* update nav, edit button and css path ([c337796](https://github.com/CoCreate-app/CoCreate-events/commit/c3377964291ce3f8550aee83be005f65acf1a254))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* upgrade dependencies for latest features and fixes ([e947635](https://github.com/CoCreate-app/CoCreate-events/commit/e947635700005fa424ab4bd337338f1070514c00))
|
|
12
|
+
|
|
13
|
+
# [1.15.0](https://github.com/CoCreate-app/CoCreate-events/compare/v1.14.2...v1.15.0) (2023-11-19)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* if localstorage return if no key or value ([c6b2fc1](https://github.com/CoCreate-app/CoCreate-events/commit/c6b2fc166e6214dd9a3cb3a61cb309b2fd9cf34f))
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* update dependecies for th latest features and bug fixes ([2e03eed](https://github.com/CoCreate-app/CoCreate-events/commit/2e03eed38fe82d0b7ae98da30a2894a1aa12be62))
|
|
24
|
+
|
|
1
25
|
## [1.14.2](https://github.com/CoCreate-app/CoCreate-events/compare/v1.14.1...v1.14.2) (2023-11-12)
|
|
2
26
|
|
|
3
27
|
|
package/docs/index.html
CHANGED
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
type="text/css" />
|
|
29
29
|
<link
|
|
30
30
|
rel="stylesheet"
|
|
31
|
-
href="
|
|
31
|
+
href="../index.css"
|
|
32
32
|
array="files"
|
|
33
33
|
object="60888216117c640e7596303f"
|
|
34
34
|
key="src"
|
|
@@ -38,15 +38,15 @@
|
|
|
38
38
|
</head>
|
|
39
39
|
|
|
40
40
|
<body>
|
|
41
|
+
<!-- Navbar -->
|
|
41
42
|
<nav
|
|
42
|
-
class="
|
|
43
|
+
class="width:100% display:flex align-items:center background:transparent padding-top:10px padding-bottom:10px"
|
|
43
44
|
content_id="content"
|
|
44
|
-
scroll="sticky-nav,
|
|
45
|
-
scroll-up="
|
|
46
|
-
scroll-down="
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
key="src"></nav>
|
|
45
|
+
scroll="sticky-nav,"
|
|
46
|
+
scroll-up="5"
|
|
47
|
+
scroll-down="5"
|
|
48
|
+
path="../"
|
|
49
|
+
src="../components/navbar.html"></nav>
|
|
50
50
|
<sidenav
|
|
51
51
|
id="menuL"
|
|
52
52
|
class="position:fixed top:0px left:0px overflow:hidden background:whitesmoke height:100vh width:0px width:300px@xl"
|
|
@@ -413,10 +413,8 @@
|
|
|
413
413
|
<button
|
|
414
414
|
href="https://github.com/CoCreate-app/CoCreate-events/tree/master/docs/index.html?message=docs%3A%20describe%20your%20change..."
|
|
415
415
|
target="_blank"
|
|
416
|
-
class="position:fixed bottom:15px right:15px
|
|
417
|
-
<i
|
|
418
|
-
class="height:20px fill:#505050"
|
|
419
|
-
src="/assets/svg/pencil-alt.svg"></i>
|
|
416
|
+
class="display:flex justify-content:center align-items:center position:fixed bottom:15px right:15px height:50px width:50px border-radius:50% box-shadow:0px_2px_10px_0px_rgba(0,_0,_0,_0.4)">
|
|
417
|
+
<i class="height:20px" src="../assets/svg/pencil-alt.svg"></i>
|
|
420
418
|
</button>
|
|
421
419
|
</main>
|
|
422
420
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cocreate/events",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
4
4
|
"description": "A simple events component in vanilla javascript. Easily configured using HTML5 attributes and/or JavaScript API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"events",
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"webpack-log": "^3.0.1"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@cocreate/actions": "^1.
|
|
62
|
-
"@cocreate/element-prototype": "^1.
|
|
63
|
-
"@cocreate/observer": "^1.
|
|
64
|
-
"@cocreate/utils": "^1.
|
|
61
|
+
"@cocreate/actions": "^1.13.0",
|
|
62
|
+
"@cocreate/element-prototype": "^1.14.1",
|
|
63
|
+
"@cocreate/observer": "^1.13.0",
|
|
64
|
+
"@cocreate/utils": "^1.28.0"
|
|
65
65
|
}
|
|
66
66
|
}
|
package/src/index.js
CHANGED
|
@@ -219,7 +219,7 @@ const CoCreateEvents = {
|
|
|
219
219
|
let key = element.getAttribute('localstorage-get')
|
|
220
220
|
if (key)
|
|
221
221
|
values = localStorage.getItem(key)
|
|
222
|
-
|
|
222
|
+
if (!key || !values)
|
|
223
223
|
return
|
|
224
224
|
} else
|
|
225
225
|
values = element.getAttribute(`${prefix}-value`) || element.getAttribute(prefix);
|