layerpro 0.8.5 → 0.9.0
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/README.md +120 -37
- package/docs/_config.yml +1 -0
- package/docs/index.md +200 -0
- package/index.js +5 -5
- package/package.json +6 -26
- package/types/layerpro.d.ts +11 -0
- /package/{LICENSE.txt → LICENSE.md} +0 -0
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.0",
|
|
5
5
|
"description": "Custom popups, alert, confirmn, prompt... by Dario Passariello",
|
|
6
6
|
"copyright": "Dario Passariello",
|
|
7
7
|
"license": "MIT",
|
|
@@ -142,8 +142,6 @@
|
|
|
142
142
|
"dist": "webpack --progress --color --mode production --config webpack.ts",
|
|
143
143
|
"------": "",
|
|
144
144
|
"git": "git add . && git commit -m \"update\" && git pull && git push --all",
|
|
145
|
-
"-------": "",
|
|
146
|
-
"goLive": "cd mcp/node && node goLive",
|
|
147
145
|
"--------": "",
|
|
148
146
|
"prepublish1": "tsc",
|
|
149
147
|
"compile-tests": "tsc -p . --outDir out",
|
|
@@ -153,48 +151,30 @@
|
|
|
153
151
|
"backup": "cd mcp/backup && run.bat",
|
|
154
152
|
"optimizeSVG": "cd mcp/node && node optimizeSVG.js",
|
|
155
153
|
"----------": "",
|
|
156
|
-
"tsc": "tsc -b"
|
|
157
|
-
"oxlint": "oxlint --config=./.eslintrc.json --tsconfig=./tsconfig.json"
|
|
154
|
+
"tsc": "tsc -b"
|
|
158
155
|
},
|
|
159
156
|
"devDependencies": {
|
|
160
|
-
"@babel/
|
|
161
|
-
"@babel/core": "7.26.0",
|
|
162
|
-
"@babel/plugin-transform-runtime": "7.25.9",
|
|
163
|
-
"@babel/preset-env": "7.26.0",
|
|
157
|
+
"@babel/core": "^7.26.0",
|
|
164
158
|
"@babel/preset-react": "7.25.9",
|
|
165
159
|
"@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
160
|
"@types/webpack-env": "1.18.5",
|
|
171
161
|
"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
162
|
"copy-webpack-plugin": "^12.0.2",
|
|
176
|
-
"
|
|
177
|
-
"css": "3.0.0",
|
|
178
|
-
"css-loader": "^7.1.2",
|
|
179
|
-
"dotenv": "^16.4.5",
|
|
163
|
+
"css-loader": "7.1.2",
|
|
180
164
|
"file-loader": "6.2.0",
|
|
181
|
-
"html-webpack-plugin": "5.6.3",
|
|
182
165
|
"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
166
|
"react": "18.3.1",
|
|
188
167
|
"react-dom": "18.3.1",
|
|
189
168
|
"sass": "^1.81.0",
|
|
190
169
|
"sass-loader": "^16.0.3",
|
|
191
170
|
"style-loader": "^4.0.0",
|
|
192
171
|
"terser-webpack-plugin": "^5.3.10",
|
|
172
|
+
"thread-loader": "4.0.4",
|
|
193
173
|
"ts-loader": "^9.5.1",
|
|
194
174
|
"ts-node": "10.9.2",
|
|
195
175
|
"typescript": "5.6.3",
|
|
196
176
|
"webpack": "^5.96.1",
|
|
197
|
-
"webpack-cli": "
|
|
177
|
+
"webpack-cli": "5.1.4",
|
|
198
178
|
"webpack-dev-server": "^5.1.0"
|
|
199
179
|
}
|
|
200
180
|
}
|
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
|