layerpro 0.8.5 → 0.9.2
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/CODE_OF_CONDUCT.md +115 -0
- package/CONTRIBUTING.md +159 -0
- package/README.md +126 -37
- package/docs/_config.yml +1 -0
- package/docs/index.md +206 -0
- package/index.js +2 -38
- package/index.js.LICENSE.txt +40 -0
- package/package.json +11 -33
- package/types/layerpro.d.ts +11 -0
- /package/{LICENSE.txt → LICENSE.md} +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
|
|
12
|
+
/**
|
|
13
|
+
* @license React
|
|
14
|
+
* react-dom.production.min.js
|
|
15
|
+
*
|
|
16
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
17
|
+
*
|
|
18
|
+
* This source code is licensed under the MIT license found in the
|
|
19
|
+
* LICENSE file in the root directory of this source tree.
|
|
20
|
+
*/
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @license React
|
|
24
|
+
* react.production.min.js
|
|
25
|
+
*
|
|
26
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
27
|
+
*
|
|
28
|
+
* This source code is licensed under the MIT license found in the
|
|
29
|
+
* LICENSE file in the root directory of this source tree.
|
|
30
|
+
*/
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @license React
|
|
34
|
+
* scheduler.production.min.js
|
|
35
|
+
*
|
|
36
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
37
|
+
*
|
|
38
|
+
* This source code is licensed under the MIT license found in the
|
|
39
|
+
* LICENSE file in the root directory of this source tree.
|
|
40
|
+
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "layerpro",
|
|
3
3
|
"displayName": "layerpro",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.9.2",
|
|
5
5
|
"description": "Custom popups, alert, confirmn, prompt... by Dario Passariello",
|
|
6
6
|
"copyright": "Dario Passariello",
|
|
7
7
|
"license": "MIT",
|
|
@@ -140,61 +140,39 @@
|
|
|
140
140
|
"scripts": {
|
|
141
141
|
"watch": "webpack --watch --progress --color --mode production --config webpack.ts",
|
|
142
142
|
"dist": "webpack --progress --color --mode production --config webpack.ts",
|
|
143
|
+
"----": "",
|
|
144
|
+
"tsc": "tsc -b",
|
|
145
|
+
"eslint": "eslint",
|
|
146
|
+
"sandworm": "sandworm",
|
|
143
147
|
"------": "",
|
|
144
148
|
"git": "git add . && git commit -m \"update\" && git pull && git push --all",
|
|
145
|
-
"-------": "",
|
|
146
|
-
"goLive": "cd mcp/node && node goLive",
|
|
147
|
-
"--------": "",
|
|
148
|
-
"prepublish1": "tsc",
|
|
149
|
-
"compile-tests": "tsc -p . --outDir out",
|
|
150
|
-
"watch-tests": "tsc -p . -w --outDir out",
|
|
151
149
|
"---------": "",
|
|
152
150
|
"update": "cd mcp/node && node npmUpdate",
|
|
153
151
|
"backup": "cd mcp/backup && run.bat",
|
|
154
|
-
"optimizeSVG": "cd mcp/node && node optimizeSVG.js"
|
|
155
|
-
"----------": "",
|
|
156
|
-
"tsc": "tsc -b",
|
|
157
|
-
"oxlint": "oxlint --config=./.eslintrc.json --tsconfig=./tsconfig.json"
|
|
152
|
+
"optimizeSVG": "cd mcp/node && node optimizeSVG.js"
|
|
158
153
|
},
|
|
159
154
|
"devDependencies": {
|
|
160
|
-
"@babel/
|
|
161
|
-
"@babel/core": "7.26.0",
|
|
162
|
-
"@babel/plugin-transform-runtime": "7.25.9",
|
|
163
|
-
"@babel/preset-env": "7.26.0",
|
|
155
|
+
"@babel/core": "^7.26.0",
|
|
164
156
|
"@babel/preset-react": "7.25.9",
|
|
165
157
|
"@babel/preset-typescript": "7.26.0",
|
|
166
|
-
"@babel/runtime": "^7.26.0",
|
|
167
|
-
"@types/node": "22.9.1",
|
|
168
|
-
"@types/react": "^18.3.12",
|
|
169
|
-
"@types/react-dom": "^18.3.1",
|
|
170
158
|
"@types/webpack-env": "1.18.5",
|
|
171
159
|
"babel-loader": "9.2.1",
|
|
172
|
-
"child_process": "^1.0.2",
|
|
173
|
-
"cli-confirm": "1.0.1",
|
|
174
|
-
"compression-webpack-plugin": "11.1.0",
|
|
175
160
|
"copy-webpack-plugin": "^12.0.2",
|
|
176
|
-
"
|
|
177
|
-
"css": "3.0.0",
|
|
178
|
-
"css-loader": "^7.1.2",
|
|
179
|
-
"dotenv": "^16.4.5",
|
|
161
|
+
"css-loader": "7.1.2",
|
|
180
162
|
"file-loader": "6.2.0",
|
|
181
|
-
"html-webpack-plugin": "5.6.3",
|
|
182
163
|
"jquery": "3.7.1",
|
|
183
|
-
"jsdom-worker": "0.3.0",
|
|
184
|
-
"jshint": "^2.13.6",
|
|
185
|
-
"moment": "2.30.1",
|
|
186
|
-
"progress-bar-webpack-plugin": "2.1.0",
|
|
187
164
|
"react": "18.3.1",
|
|
188
165
|
"react-dom": "18.3.1",
|
|
189
166
|
"sass": "^1.81.0",
|
|
190
167
|
"sass-loader": "^16.0.3",
|
|
191
168
|
"style-loader": "^4.0.0",
|
|
192
169
|
"terser-webpack-plugin": "^5.3.10",
|
|
170
|
+
"thread-loader": "4.0.4",
|
|
193
171
|
"ts-loader": "^9.5.1",
|
|
194
172
|
"ts-node": "10.9.2",
|
|
195
|
-
"typescript": "5.
|
|
173
|
+
"typescript": "5.7.2",
|
|
196
174
|
"webpack": "^5.96.1",
|
|
197
|
-
"webpack-cli": "
|
|
175
|
+
"webpack-cli": "5.1.4",
|
|
198
176
|
"webpack-dev-server": "^5.1.0"
|
|
199
177
|
}
|
|
200
178
|
}
|
package/types/layerpro.d.ts
CHANGED
|
@@ -28,6 +28,17 @@ interface openProp {
|
|
|
28
28
|
name: string,
|
|
29
29
|
/** Add text / html or a React Component (no useEffect or useState) */
|
|
30
30
|
body: any,
|
|
31
|
+
/** Add buttons */
|
|
32
|
+
buttons?: {
|
|
33
|
+
confirm?: {
|
|
34
|
+
text: string,
|
|
35
|
+
cb?: func,
|
|
36
|
+
},
|
|
37
|
+
cancel?: {
|
|
38
|
+
text: string,
|
|
39
|
+
cb?: func,
|
|
40
|
+
}
|
|
41
|
+
},
|
|
31
42
|
/** Give the size in width px (exmple "500px") */
|
|
32
43
|
width: string | percentage,
|
|
33
44
|
/** Give the size in width px (exmple "300px") */
|
|
File without changes
|