flicker-alerts 1.0.28 → 1.0.30
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/index.js +14 -0
- package/package.json +2 -2
package/index.js
CHANGED
@@ -1,3 +1,17 @@
|
|
1
|
+
|
2
|
+
if (typeof document !== 'undefined') {
|
3
|
+
const existingLink = document.getElementById('dynamic-stylesheet');
|
4
|
+
if (!existingLink) {
|
5
|
+
const link = document.createElement('link');
|
6
|
+
link.id = 'dynamic-stylesheet';
|
7
|
+
link.rel = 'stylesheet';
|
8
|
+
link.type = 'text/css';
|
9
|
+
link.href = './style.css'; // Caminho para o seu arquivo CSS
|
10
|
+
document.head.appendChild(link);
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
|
1
15
|
const FlickerAlerts = {
|
2
16
|
showAlert: function ({ type, title, message, timer = 3000, position = 'top-right' }) {
|
3
17
|
if (typeof window !== 'undefined' && typeof document !== 'undefined') {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "flicker-alerts",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.30",
|
4
4
|
"description": "Biblioteca para alertas animados",
|
5
5
|
"main": "index.js",
|
6
6
|
"types": "index.d.ts",
|
@@ -16,6 +16,6 @@
|
|
16
16
|
"author": "https://www.linkedin.com/in/bruno-carneiro-9a51aa190/",
|
17
17
|
"license": "MIT",
|
18
18
|
"dependencies": {
|
19
|
-
"flicker-alerts": "^1.0.
|
19
|
+
"flicker-alerts": "^1.0.30"
|
20
20
|
}
|
21
21
|
}
|