layerpro 2.0.2 → 2.0.3
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/COPYRIGHT.md +9 -0
- package/README.md +33 -1
- package/SECURITY.md +3 -0
- package/index.cjs +34 -29
- package/index.css +1 -1
- package/index.js +28 -29
- package/package.json +49 -32
- package/types/layerpro.d.ts +10 -3
package/package.json
CHANGED
|
@@ -1,39 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "layerpro",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "2.0.3",
|
|
4
|
+
"description": "The real custom modals, alert, confirm, prompt... for your browser",
|
|
5
5
|
"main": "./index.cjs",
|
|
6
|
-
"
|
|
7
|
-
"support": {
|
|
8
|
-
"name": "Dario Passariello",
|
|
9
|
-
"url": "https://dario.passariello.ca/",
|
|
10
|
-
"email": "dariopassariello@gmail.com"
|
|
11
|
-
},
|
|
6
|
+
"browser": "./index.cjs",
|
|
12
7
|
"types": "./index.d.ts",
|
|
13
|
-
"typing":
|
|
14
|
-
|
|
15
|
-
],
|
|
16
|
-
"typings": "./index.d.ts",
|
|
17
|
-
"keywords": [
|
|
18
|
-
"layer",
|
|
19
|
-
"popup",
|
|
20
|
-
"modal",
|
|
21
|
-
"layerpro",
|
|
22
|
-
"alert",
|
|
23
|
-
"confirmation",
|
|
24
|
-
"prompt",
|
|
25
|
-
"custom",
|
|
26
|
-
"dock",
|
|
27
|
-
"multi",
|
|
28
|
-
"window"
|
|
29
|
-
],
|
|
30
|
-
"funding": [
|
|
31
|
-
{
|
|
32
|
-
"type": "patreon",
|
|
33
|
-
"url": "https://www.patreon.com/passariello"
|
|
34
|
-
}
|
|
35
|
-
],
|
|
8
|
+
"typing": "./types/*",
|
|
9
|
+
"homepage": "https://a51.gitbook.io/elements",
|
|
36
10
|
"license": "MIT",
|
|
11
|
+
"copyright": "Dario Passariello",
|
|
37
12
|
"author": "Dario Passariello",
|
|
38
13
|
"contributors": [
|
|
39
14
|
{
|
|
@@ -45,12 +20,53 @@
|
|
|
45
20
|
"email": "valeriacalascaglitta@gmail.com"
|
|
46
21
|
}
|
|
47
22
|
],
|
|
23
|
+
"keywords": [
|
|
24
|
+
"elements",
|
|
25
|
+
"ui",
|
|
26
|
+
"ux",
|
|
27
|
+
"inputs",
|
|
28
|
+
"buttons",
|
|
29
|
+
"frontend",
|
|
30
|
+
"gui",
|
|
31
|
+
"styles",
|
|
32
|
+
"customization"
|
|
33
|
+
],
|
|
34
|
+
"funding": [
|
|
35
|
+
{
|
|
36
|
+
"type": "patreon",
|
|
37
|
+
"url": "https://www.patreon.com/passariello"
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"engines": {
|
|
41
|
+
"node": ">=18.0.0"
|
|
42
|
+
},
|
|
43
|
+
"files": [
|
|
44
|
+
"**/*"
|
|
45
|
+
],
|
|
46
|
+
"repository": {
|
|
47
|
+
"type": "git",
|
|
48
|
+
"url": "git+https://github.com/a51-dev/a51.elements.git"
|
|
49
|
+
},
|
|
50
|
+
"bugs": {
|
|
51
|
+
"url": "https://github.com/a51-dev/a51.elements/issues"
|
|
52
|
+
},
|
|
53
|
+
"support": {
|
|
54
|
+
"name": "Dario Passariello",
|
|
55
|
+
"url": "https://dario.passariello.ca/",
|
|
56
|
+
"email": "dariopassariello@gmail.com"
|
|
57
|
+
},
|
|
58
|
+
"dependencies": {
|
|
59
|
+
"jquery": "4.0.0"
|
|
60
|
+
},
|
|
48
61
|
"peerDependenciesMeta": {
|
|
49
62
|
"react": {
|
|
50
63
|
"optional": false
|
|
51
64
|
},
|
|
52
65
|
"react-dom": {
|
|
53
66
|
"optional": false
|
|
67
|
+
},
|
|
68
|
+
"jquery": {
|
|
69
|
+
"optional": false
|
|
54
70
|
}
|
|
55
71
|
},
|
|
56
72
|
"module": "./index.js",
|
|
@@ -61,5 +77,6 @@
|
|
|
61
77
|
"types": "./index.d.ts"
|
|
62
78
|
},
|
|
63
79
|
"./types/*": "./types/*"
|
|
64
|
-
}
|
|
80
|
+
},
|
|
81
|
+
"typings": "./index.d.ts"
|
|
65
82
|
}
|
package/types/layerpro.d.ts
CHANGED
|
@@ -74,6 +74,8 @@ interface GenLayerProps {
|
|
|
74
74
|
*/
|
|
75
75
|
interface _layerpro {
|
|
76
76
|
|
|
77
|
+
[key: string]: any
|
|
78
|
+
|
|
77
79
|
readonly alert: (txt: string) => void
|
|
78
80
|
readonly prompt: (txt: string, callback: (input: string) => void, event: Event) => void
|
|
79
81
|
readonly message: (txt: string, callback: () => void) => void
|
|
@@ -105,8 +107,13 @@ interface _layerpro {
|
|
|
105
107
|
|
|
106
108
|
}
|
|
107
109
|
|
|
110
|
+
interface Window {
|
|
111
|
+
[key: string]: any
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
interface globalThis {
|
|
115
|
+
[key: string]: any
|
|
116
|
+
}
|
|
117
|
+
|
|
108
118
|
declare var layerpro: _layerpro
|
|
109
119
|
type layerpro = _layerpro
|
|
110
|
-
|
|
111
|
-
declare var process: any
|
|
112
|
-
type process = {}
|