jcinfo-utils 1.0.8 → 1.0.9

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 (3) hide show
  1. package/package.json +1 -1
  2. package/update.css +3 -7
  3. package/update.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jcinfo-utils",
3
- "version": "1.0.8",
3
+ "version": "1.0.9",
4
4
  "description": "Pacote de funções utilitárias",
5
5
  "main": "index.js",
6
6
  "type": "module",
package/update.css CHANGED
@@ -3,7 +3,7 @@
3
3
  --margin-down: -120px;
4
4
  }
5
5
 
6
- @keyframes entrada {
6
+ @keyframes c-update-entrada {
7
7
  0% {
8
8
  opacity: 0;
9
9
  bottom: var(--margin-down);
@@ -35,19 +35,15 @@
35
35
  width: auto;
36
36
  white-space: nowrap;
37
37
  user-select: none;
38
- animation: entrada 1s both;
38
+ animation: c-update-entrada 1s both;
39
39
  z-index: 9999991;
40
40
  }
41
+
41
42
  .c-update i {
42
43
  color: var(--bs-info);
43
44
  font-size: 1.3rem;
44
45
  }
45
46
 
46
- .c-update button {
47
- padding: 6px 12px;
48
- line-height: 100%;
49
- }
50
-
51
47
  .c-line {
52
48
  position: absolute;
53
49
  min-height: 85%;
package/update.js CHANGED
@@ -4,7 +4,7 @@ import './update.css'
4
4
  const cMessagUpdating =
5
5
  '<div class="c-line"></div>' +
6
6
  '<i class="fas fa-info-circle"></i>' +
7
- 'Nova versão disponível, atualizando...'
7
+ 'Nova versão disponível! Atualizando...'
8
8
 
9
9
  let divUpdate = document.querySelector('#update')
10
10
 
@@ -14,7 +14,7 @@ if (!divUpdate) {
14
14
  document.body.appendChild(divUpdate)
15
15
  }
16
16
 
17
- function showMessage(isTest = false, closeAfterShow = false) {
17
+ export function showMessage(isTest = false, closeAfterShow = false) {
18
18
  divUpdate.innerHTML = cMessagUpdating
19
19
  divUpdate.classList.add('c-update')
20
20
  console.info('Mostrando msg...')
@@ -52,4 +52,4 @@ export default function checkUpdate() {
52
52
  }
53
53
  }
54
54
 
55
- // showMessage(true, true)
55
+ showMessage(true, true)