single-file-core 1.5.7 → 1.5.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.
package/core/infobar.js CHANGED
@@ -67,6 +67,11 @@ const INFOBAR_STYLES = `
67
67
  border-color: #eee;
68
68
  border-radius: 16px;
69
69
  z-index: 2147483647;
70
+ animation-name: flash;
71
+ animation-duration: .5s;
72
+ animation-timing-function: cubic-bezier(0.39, 0.58, 0.57, 1);
73
+ animation-delay: 1s;
74
+ animation-iteration-count: 2;
70
75
  }
71
76
 
72
77
  .infobar:valid, .infobar:not(:focus-within) .infobar-content {
@@ -78,8 +83,8 @@ const INFOBAR_STYLES = `
78
83
  border-color: #878787;
79
84
  border-radius: 8px;
80
85
  opacity: 1;
81
- transition-property: opacity, background-color, border-color, border-radius,
82
- color;
86
+ transition-property: opacity, background-color, border-color, border-radius, color;
87
+ animation-play-state: paused;
83
88
  }
84
89
 
85
90
  .infobar-content {
@@ -115,6 +120,17 @@ const INFOBAR_STYLES = `
115
120
  min-block-size: 24px;
116
121
  }
117
122
 
123
+ @keyframes flash {
124
+ 0%, 100% {
125
+ background-color: #737373;
126
+ opacity: .7;
127
+ }
128
+ 50% {
129
+ background-color: #171717;
130
+ opacity: 1;
131
+ }
132
+ }
133
+
118
134
  .infobar:focus-within .infobar-icon {
119
135
  z-index: -1;
120
136
  background-image: none;
@@ -410,9 +410,9 @@ function getProcessorHelperClass(utilInstance) {
410
410
  });
411
411
  const name = "scripts/" + indexResource + extension;
412
412
  if (workletOptions) {
413
- scriptElement.textContent += ` CSS.paintWorklet.addModule("${content}", ${JSON.stringify(workletOptions)});\n`;
413
+ scriptElement.textContent += ` CSS.paintWorklet.addModule("${name}", ${JSON.stringify(workletOptions)});\n`;
414
414
  } else {
415
- scriptElement.textContent += ` CSS.paintWorklet.addModule("${content}");\n`;
415
+ scriptElement.textContent += ` CSS.paintWorklet.addModule("${name}");\n`;
416
416
  }
417
417
  resources.worklets.set(indexResource, { name, workletOptions, content, extension, contentType, url: resourceURL });
418
418
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "single-file-core",
3
- "version": "1.5.7",
3
+ "version": "1.5.9",
4
4
  "description": "SingleFile Core",
5
5
  "author": "Gildas Lormeau",
6
6
  "license": "AGPL-3.0-or-later",