layerpro 0.5.4 → 0.6.7

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.
@@ -1,3 +1,14 @@
1
+ /*!
2
+ * jQuery JavaScript Library v3.7.1
3
+ * https://jquery.com/
4
+ *
5
+ * Copyright OpenJS Foundation and other contributors
6
+ * Released under the MIT license
7
+ * https://jquery.org/license
8
+ *
9
+ * Date: 2023-08-28T13:37Z
10
+ */
11
+
1
12
  /**
2
13
  * @license React
3
14
  * react-dom.production.min.js
package/package.json CHANGED
@@ -1,51 +1,25 @@
1
1
  {
2
2
  "name": "layerpro",
3
3
  "displayName": "layerpro",
4
- "version": "0.5.4",
4
+ "version": "0.6.7",
5
5
  "description": "Manage your popups and customize them",
6
6
  "copyright": "Dario Passariello",
7
- "deprecated": false,
8
7
  "license": "MIT",
9
- "homepage": "https://github.com/passariello/layerpro",
8
+ "relaseType": "gold",
9
+ "port": 3000,
10
+ "code": "wind",
11
+ "codeRelease": "layerpro",
12
+ "folder": "/",
13
+ "appPort": "",
14
+ "target": "web",
15
+ "logo": "",
16
+ "typeID": 0,
17
+ "theme": "default",
18
+ "deprecated": false,
10
19
  "targets": "web",
11
- "main": "./index.ts",
12
20
  "preferGlobal": true,
13
- "author": {
14
- "name": "Dario Passariello",
15
- "url": "https://github.com/passariello/",
16
- "email": "dariopassariello@gmail.com"
17
- },
18
- "support": {
19
- "name": "Dario Passariello",
20
- "url": "https://github.com/passariello/",
21
- "email": "dariopassariello@gmail.com"
22
- },
23
- "company": {},
24
- "contributors": [
25
- {
26
- "name": "Valeria Cala Scaglitta",
27
- "email": "valeriacalascaglitta@gmail.com"
28
- }
29
- ],
30
- "workspaces": [
31
- "mcp"
32
- ],
33
- "PROJECTS": {
34
- "LAYERPRO": {
35
- "API": {
36
- "DIR": "/api/",
37
- "LOCAL": "//api.biglogic.ca",
38
- "PROD": "//api.biglogic.ca",
39
- "DEV": "//api.biglogic.ca"
40
- },
41
- "BASE_PATH": "/",
42
- "TITLE": "LayerPro",
43
- "DESCRIPTION": "",
44
- "PORT": 3000,
45
- "THEME": "default",
46
- "LANGUAGE": "en",
47
- "LOGO": ""
48
- }
21
+ "language": {
22
+ "en": {}
49
23
  },
50
24
  "app": {
51
25
  "port": 3000,
@@ -58,9 +32,14 @@
58
32
  "target": "web",
59
33
  "proxy": {},
60
34
  "api": {
61
- "folder": "api",
62
- "dev": "",
63
- "prod": ""
35
+ "dir": "/api/",
36
+ "local": "//api.biglogic.ca",
37
+ "prod": "//api.biglogic.ca",
38
+ "dev": "//api.biglogic.ca"
39
+ },
40
+ "socket": {
41
+ "test": "https://ws.biglogic.ca",
42
+ "dev": "https://ws.biglogic.ca"
64
43
  },
65
44
  "url": {
66
45
  "dev": "http://localhost"
@@ -70,12 +49,34 @@
70
49
  "code": "layerpro",
71
50
  "codeRelease": "layerpro"
72
51
  },
73
- "socket": {
74
- "test": "",
75
- "dev": ""
76
- },
77
52
  "cdn": {}
78
53
  },
54
+ "homepage": "https://github.com/passariello/layerpro",
55
+ "main": "./index.ts",
56
+ "author": {
57
+ "name": "Dario Passariello",
58
+ "url": "https://github.com/passariello/",
59
+ "email": "dariopassariello@gmail.com"
60
+ },
61
+ "support": {
62
+ "name": "Dario Passariello",
63
+ "url": "https://github.com/passariello/",
64
+ "email": "dariopassariello@gmail.com"
65
+ },
66
+ "company": {},
67
+ "contributors": [
68
+ {
69
+ "name": "Dario Passariello",
70
+ "email": "dariopassarielloa@gmail.com"
71
+ },
72
+ {
73
+ "name": "Valeria Cala Scaglitta",
74
+ "email": "valeriacalascaglitta@gmail.com"
75
+ }
76
+ ],
77
+ "workspaces": [
78
+ "mcp"
79
+ ],
79
80
  "cordova": {
80
81
  "platforms": [
81
82
  "android"
@@ -83,9 +84,9 @@
83
84
  },
84
85
  "typings": "./types/*",
85
86
  "globals": {
87
+ "layerpro": {},
86
88
  "jQuery": {},
87
- "$": {},
88
- "layerpro": {}
89
+ "$": {}
89
90
  },
90
91
  "browserslist": {
91
92
  "production": [
@@ -112,7 +113,7 @@
112
113
  ]
113
114
  },
114
115
  "engines": {
115
- "node": ">=12.0.0"
116
+ "node": ">=18.0.0"
116
117
  },
117
118
  "keywords": [
118
119
  "layer",
@@ -129,12 +130,18 @@
129
130
  "bugs": {
130
131
  "url": "https://github.com/passariello/layerpro/issues"
131
132
  },
133
+ "funding": [
134
+ {
135
+ "type": "patreon",
136
+ "url": "https://www.patreon.com/passariello"
137
+ }
138
+ ],
132
139
  "typing": [
133
140
  "types/*"
134
141
  ],
135
142
  "scripts": {
136
- "make-dist": "webpack --env NAME=LAYERPRO --env MODE=PROD --config webpack.ts && cd dist",
137
- "watch": "npm run dist && webpack --watch --mode development --config webpack.ts ",
143
+ "make-dist": "webpack --progress --color --mode production --config webpack.ts",
144
+ "watch": "webpack --watch --progress --color --mode production --config webpack.ts",
138
145
  "optimizeSVG": "cd mcp/node && node optimizeSVG.js",
139
146
  "------": "",
140
147
  "git": "git add . && git commit -m \"update\" && git pull && git push --all",
@@ -152,46 +159,59 @@
152
159
  "oxlint": "oxlint --config=./.eslintrc.json --tsconfig=./tsconfig.json"
153
160
  },
154
161
  "devDependencies": {
155
- "@babel/core": "7.24.7",
162
+ "@babel/cli": "7.24.8",
163
+ "@babel/core": "7.25.2",
156
164
  "@babel/plugin-transform-runtime": "7.24.7",
157
- "@babel/preset-env": "7.24.7",
165
+ "@babel/preset-env": "7.25.3",
158
166
  "@babel/preset-react": "7.24.7",
159
167
  "@babel/preset-typescript": "7.24.7",
160
- "@types/jquery": "3.5.30",
161
- "@types/node": "^20.14.2",
162
- "@types/react": "18.3.3",
163
- "@types/react-dom": "18.3.0",
164
- "@types/webpack": "5.28.5",
168
+ "@babel/runtime": "^7.25.0",
169
+ "@types/node": "22.1.0",
170
+ "@types/react": "^18.3.3",
171
+ "@types/react-dom": "^18.3.0",
172
+ "@types/webpack-env": "1.18.5",
165
173
  "babel-loader": "9.1.3",
174
+ "child_process": "^1.0.2",
166
175
  "classnames": "2.5.1",
167
176
  "cli-confirm": "1.0.1",
168
177
  "compression-webpack-plugin": "11.1.0",
169
178
  "concurrently": "8.2.2",
170
- "copy-webpack-plugin": "12.0.2",
179
+ "copy-webpack-plugin": "^12.0.2",
180
+ "crypto-js": "4.2.0",
171
181
  "css": "3.0.0",
172
- "css-loader": "7.1.2",
173
- "dotenv": "16.4.5",
182
+ "css-loader": "^7.1.2",
183
+ "docdash": "2.0.2",
184
+ "dotenv": "^16.4.5",
174
185
  "file-loader": "6.2.0",
175
186
  "fs": "0.0.1-security",
176
187
  "html-webpack-plugin": "5.6.0",
177
188
  "jquery": "3.7.1",
189
+ "jsdoc": "4.0.3",
190
+ "jsdoc-babel": "0.5.0",
191
+ "jsdoc-to-markdown": "8.0.3",
178
192
  "jsdom-worker": "0.3.0",
193
+ "jshint": "^2.13.6",
179
194
  "less": "4.2.0",
180
- "less-loader": "12.2.0",
181
- "moment": "2.30.1",
182
- "oxlint": "0.4.2",
183
- "path": "0.12.7",
195
+ "less-loader": "^12.2.0",
196
+ "oxlint": "0.7.0",
197
+ "path": "^0.12.7",
184
198
  "progress-bar-webpack-plugin": "2.1.0",
185
199
  "react": "18.3.1",
186
200
  "react-dom": "18.3.1",
187
- "sass": "1.77.4",
188
- "sass-loader": "14.2.1",
189
- "style-loader": "4.0.0",
190
- "terser-webpack-plugin": "5.3.10",
201
+ "react-router": "^6.26.0",
202
+ "react-router-dom": "^6.26.0",
203
+ "sass": "^1.77.8",
204
+ "sass-loader": "^16.0.0",
205
+ "style-loader": "^4.0.0",
206
+ "terser-webpack-plugin": "^5.3.10",
207
+ "ts-loader": "^9.5.1",
191
208
  "ts-node": "10.9.2",
192
- "typescript": "5.4.5",
193
- "webpack": "5.91.0",
194
- "webpack-cli": "5.1.4",
195
- "webpack-dev-server": "5.0.4"
209
+ "typescript": "5.5.4",
210
+ "webpack": "^5.93.0",
211
+ "webpack-cli": "^5.1.4",
212
+ "webpack-dev-server": "^5.0.4"
213
+ },
214
+ "dependencies": {
215
+ "moment": "2.30.1"
196
216
  }
197
217
  }
@@ -0,0 +1,9 @@
1
+ /*
2
+ Copyright: © 2019 Dario Passariello <dariopassariello@gmail.com>
3
+ License: MIT
4
+ */
5
+
6
+ declare var cache: any
7
+ type cache = { [key: Any]: Any }
8
+
9
+ cache = {}
@@ -3,22 +3,77 @@ Copyright: © 2019 Dario Passariello <dariopassariello@gmail.com>
3
3
  License: MIT
4
4
  */
5
5
 
6
- type layerpro = {}
7
-
8
- declare module 'layerpro'
9
- declare var layerpro: any
6
+ declare module 'layerpro' { }
10
7
 
11
8
  // Remove popup errors about number of paramentes or existence
12
9
  declare function confirm(f1?, func1?, func2?)
13
10
  declare function message(f1?, func1?)
14
11
  declare function prompt(f1?, string?)
15
12
 
16
- ////////////////////////////////////////////////////////////////
13
+ interface dpLayerPro {
14
+
15
+ readonly credits: (name: string) => any
16
+ readonly purge: (name: Any) => any
17
+
18
+ readonly alert: (txt: String) => any
19
+ readonly prompt: (txt: String, function_: Function, event: Event) => any
20
+ readonly message: (txt: String, function_: Function) => any
21
+ readonly confirm: (txt: String, function_: Function, noFunction_: Func) => any
22
+
23
+ readonly popup: {
24
+ readonly close: (value: any) => {}
25
+ readonly center: (value: any) => {}
26
+ readonly maximize: (value: any) => {}
27
+ readonly iconize: (value: any) => {}
28
+ readonly raised: (value: any) => {}
29
+ readonly movable: (value: any) => {}
30
+ readonly resizable: (value: any) => {}
31
+ readonly dockable: (value: any) => {}
32
+ readonly store: (value: any) => {}
33
+ readonly index: (value: any) => {}
34
+ readonly zIndex: (value: any) => {}
35
+ readonly open: (prop: {
36
+ id: string
37
+ name: string
38
+ body: any
39
+ width: string | percentage
40
+ height: string | percentage
41
+ top: string | percentage
42
+ left: string | percentage
43
+
44
+ source?: ""
45
+ icon?: string
46
+ maximize?: boolean
47
+ iconize: boolean
48
+ close?: any
49
+ raised?: boolean
50
+ movable?: boolean
51
+ resizable?: boolean
52
+ isMaximize?: boolean
53
+ dockable?: bolean
54
+ store?: boolean
55
+ fadeIn?: number
56
+ fadeOut?: number
57
+
58
+ top?: number | percentage
59
+ left?: number | percentage
60
+ right?: number | percentage
61
+ bottom?: number | percentage
62
+ minWidth?: number | percentage
63
+ maxWidth?: number | percentage
64
+ minHeight?: number | percentage
65
+ maxHeight?: number | percentage
66
+
67
+ // TODO
68
+ className?: string
69
+ style?: string
70
+ }) => {}
17
71
 
18
- declare global {
19
- interface globalThis {
20
- layerpro: any
21
72
  }
22
73
  }
23
74
 
24
- layerpro = globalThis.layerpro || {}
75
+ declare var layerpro: dpLayerPro
76
+
77
+ layerpro = {}
78
+
79
+ type layerpro = dpLayerPro
package/index.html DELETED
@@ -1 +0,0 @@
1
- <!doctype html><html><head><meta charset="utf-8"><title>Webpack App</title><meta name="viewport" content="width=device-width,initial-scale=1"><script defer="defer" src="/index.js"></script></head><body></body></html>