layerpro 0.9.30 → 0.9.40

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/package.json CHANGED
@@ -1,21 +1,15 @@
1
1
  {
2
2
  "name": "layerpro",
3
- "displayName": "layerpro",
4
- "version": "0.9.30",
3
+ "version": "0.9.40",
5
4
  "description": "Custom popups, alert, confirmn, prompt... by Dario Passariello",
6
5
  "copyright": "Dario Passariello",
7
6
  "license": "MIT",
8
- "relaseType": "gold",
9
- "port": 3000,
10
- "code": "wind",
11
- "codeRelease": "layerpro",
12
7
  "folder": "/",
13
- "appPort": "",
14
- "target": "web",
15
- "logo": "",
8
+ "main": "./index.js",
16
9
  "typeID": 0,
17
10
  "theme": "default",
18
11
  "deprecated": false,
12
+ "target": "web",
19
13
  "targets": "web",
20
14
  "preferGlobal": true,
21
15
  "language": {
@@ -25,10 +19,9 @@
25
19
  "port": 3000,
26
20
  "code": "layerpro",
27
21
  "name": "layerpro",
22
+ "relaseType": "gold",
28
23
  "type": "beta",
29
24
  "folder": "/",
30
- "appPort": "",
31
- "main": "index.ts",
32
25
  "target": "web",
33
26
  "proxy": {
34
27
  "api": {
@@ -52,7 +45,6 @@
52
45
  "cdn": {}
53
46
  },
54
47
  "homepage": "https://github.com/passariello/layerpro",
55
- "main": "./index.ts",
56
48
  "author": {
57
49
  "name": "Dario Passariello",
58
50
  "url": "https://github.com/passariello/",
@@ -77,6 +69,16 @@
77
69
  "workspaces": [
78
70
  "mcp"
79
71
  ],
72
+ "npmName": "dphelper",
73
+ "npmFileMap": [
74
+ {
75
+ "basePath": "./dist/",
76
+ "files": [
77
+ "*.js"
78
+ ]
79
+ }
80
+ ],
81
+ "types": "./index.d.ts",
80
82
  "typings": "./types/*",
81
83
  "globals": {
82
84
  "layerpro": {}
@@ -110,12 +112,19 @@
110
112
  "popup",
111
113
  "modal",
112
114
  "passariello",
113
- "layerpro"
115
+ "layerpro",
116
+ "alert",
117
+ "confirmation",
118
+ "prompt",
119
+ "custom",
120
+ "dock",
121
+ "multi",
122
+ "window"
114
123
  ],
115
124
  "repository": {
116
125
  "type": "git",
117
- "url": "git+https://github.com/passariello/layerpro.git",
118
- "help": "git+https://github.com/passariello/layerpro.git#readme"
126
+ "url": "https://github.com/passariello/layerpro",
127
+ "help": "https://github.com/passariello/layerpro#readme"
119
128
  },
120
129
  "bugs": {
121
130
  "url": "https://github.com/passariello/layerpro/issues"
@@ -140,26 +149,20 @@
140
149
  "git": "git push --all -u && git add . && git commit -m \"update\" && git pull && git push --all",
141
150
  "---------": "",
142
151
  "update": "cd mcp/node && node npmUpdate",
143
- "backup": "cd mcp/backup && run.bat",
144
- "optimizeSVG": "cd mcp/node && node optimizeSVG.js"
152
+ "backup": "cd mcp/backup && run.bat"
145
153
  },
146
154
  "engines": {
147
155
  "node": ">=18"
148
156
  },
149
157
  "devDependencies": {
150
- "@babel/core": "^7.26.0",
151
- "@babel/preset-react": "7.26.3",
152
- "@babel/preset-typescript": "7.26.0",
153
158
  "@types/webpack-env": "1.18.5",
154
- "babel-loader": "9.2.1",
155
159
  "copy-webpack-plugin": "^12.0.2",
156
160
  "css-loader": "7.1.2",
157
161
  "file-loader": "6.2.0",
158
162
  "jquery": "3.7.1",
159
- "process": "0.11.10",
160
163
  "react": "19.0.0",
161
164
  "react-dom": "19.0.0",
162
- "sass": "^1.82.0",
165
+ "sass": "^1.83.0",
163
166
  "sass-loader": "^16.0.4",
164
167
  "style-loader": "^4.0.0",
165
168
  "terser-webpack-plugin": "^5.3.10",
@@ -169,6 +172,6 @@
169
172
  "typescript": "5.7.2",
170
173
  "webpack": "^5.97.1",
171
174
  "webpack-cli": "5.1.4",
172
- "webpack-dev-server": "^5.1.0"
175
+ "webpack-dev-server": "^5.2.0"
173
176
  }
174
177
  }
package/types/cache.d.ts CHANGED
@@ -3,7 +3,22 @@ Copyright: © 2019 Dario Passariello <dariopassariello@gmail.com>
3
3
  License: MIT
4
4
  */
5
5
 
6
- declare var cache: any
7
- type cache = { [key: Any]: Any }
6
+ /**
7
+ * Cache is used for internal use only... but you can use if you need.
8
+ * @return Some stuff you cache... usually used for dynamic imports from dpHelper.
9
+ */
10
+ interface dpCache {
11
+
12
+ /**
13
+ * Create a cache, please use state instead!
14
+ *
15
+ * @example
16
+ * cache.myCache = any
17
+ *
18
+ * @since dpHelper 1.0.6
19
+ */
20
+ [key: string]: any
21
+ }
8
22
 
9
- cache = {}
23
+ declare var cache: dpCache
24
+ type cache = dpCache
package/types/jquery.d.ts CHANGED
@@ -3,21 +3,16 @@ Copyright: © 2019 Dario Passariello <dariopassariello@gmail.com>
3
3
  License: MIT
4
4
  */
5
5
 
6
- type $ = {}
7
- type jQuery = {}
8
-
9
6
  declare var $: any
10
7
  declare var jQuery: any
11
8
  declare module 'jquery'
12
9
 
13
10
  // ////////////////////////////////////////////////////////////////
14
11
 
15
- declare global {
16
- interface globalThis {
17
- $: any
18
- jQuery: any
19
- }
12
+ interface window {
13
+ $: any
14
+ jQuery: any
20
15
  }
21
16
 
22
- $ = globalThis.$ || {}
23
- jQuery = globalThis.jQuery || {}
17
+ type $ = {}
18
+ type jQuery = {}
@@ -3,23 +3,21 @@ Copyright: © 2019 Dario Passariello <dariopassariello@gmail.com>
3
3
  License: MIT
4
4
  */
5
5
 
6
- declare module 'layerpro' { }
7
-
8
6
  /** Generate custom alert using alert([text]) */
9
- declare function alert(f1?)
7
+ declare function alert(f1?: string): any
10
8
 
11
9
  /** Generate custom confirm using confirm([text],[callback for YES],[optional callback for NO]) */
12
- declare function confirm(f1?, func1?, func2?)
10
+ declare function confirm(message: string, func1: Function, func2?: Function): boolean
13
11
 
14
12
  /** Generate custom message using message([text],[callback]) and option callback */
15
- declare function message(f1?, func1?)
13
+ declare function message(f1?: string, func1?: Function): any
16
14
 
17
15
  /** Generate custom message using message([text],[callback]) and option callback */
18
- declare function prompt(f1?, string?)
16
+ declare function prompt(f1?: string, string?: string): any
19
17
 
20
18
  ////////////////////////////////////////////////////////////////////////////////////
21
19
 
22
- declare var pupop: Object
20
+ // declare var pupop: Object
23
21
 
24
22
  interface openProp {
25
23
  /** Add identificator */
@@ -88,7 +86,7 @@ interface openProp {
88
86
  style?: string
89
87
  }
90
88
 
91
- interface dpLayerPro {
89
+ interface _layerpro {
92
90
 
93
91
  readonly alert: (txt: String) => any
94
92
  readonly prompt: (txt: String, function_: Function, event: Event) => any
@@ -98,6 +96,7 @@ interface dpLayerPro {
98
96
  readonly credits: (txt: Any) => any
99
97
 
100
98
  readonly popup: {
99
+
101
100
  [key: string]: any
102
101
 
103
102
  /** Open a popup with rules! */
@@ -121,8 +120,7 @@ interface dpLayerPro {
121
120
  }
122
121
  }
123
122
 
124
- declare var layerpro: dpLayerPro
125
-
126
- type layerpro = dpLayerPro
123
+ declare var layerpro: _layerpro
124
+ type layerpro = _layerpro
127
125
 
128
- layerpro = {}
126
+ type process = {}