layerpro 0.3.0 → 0.3.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/package.json CHANGED
@@ -1,14 +1,15 @@
1
1
  {
2
2
  "name": "layerpro",
3
3
  "displayName": "layerpro",
4
- "version": "0.3.0",
4
+ "version": "0.3.2",
5
5
  "description": "Manage your popups and customize them",
6
6
  "copyright": "Dario Passariello",
7
7
  "deprecated": false,
8
8
  "license": "MIT",
9
9
  "homepage": "https://github.com/passariello/layerpro",
10
10
  "targets": "web",
11
- "main": "index.tsx",
11
+ "main": "./index.tsx",
12
+ "preferGlobal": true,
12
13
  "author": {
13
14
  "name": "Dario Passariello",
14
15
  "url": "https://github.com/passariello/",
@@ -80,6 +81,7 @@
80
81
  "android"
81
82
  ]
82
83
  },
84
+ "typings": "./typings/*",
83
85
  "globals": {
84
86
  "jQuery": {},
85
87
  "$": {},
@@ -138,7 +140,7 @@
138
140
  "typings/*"
139
141
  ],
140
142
  "scripts": {
141
- "make-dist": "webpack --env NAME=LAYERPRO --env MODE=PROD --config webpack.ts && cd dist && npm pack",
143
+ "make-dist": "webpack --env NAME=LAYERPRO --env MODE=PROD --config webpack.ts && cd dist",
142
144
  "watch": "npm run dist && webpack --watch --mode development --config webpack.ts ",
143
145
  "optimizeSVG": "cd mcp/node && node optimizeSVG.js",
144
146
  ">-": "--------------",
@@ -162,12 +164,12 @@
162
164
  "@babel/preset-react": "7.23.3",
163
165
  "@babel/preset-typescript": "7.23.3",
164
166
  "@types/jquery": "3.5.29",
165
- "@types/node": "^20.11.19",
166
- "@types/react": "18.2.56",
167
+ "@types/node": "^20.11.20",
168
+ "@types/react": "18.2.58",
167
169
  "@types/react-dom": "18.2.19",
168
170
  "@types/webpack": "5.28.5",
169
- "@typescript-eslint/eslint-plugin": "7.0.1",
170
- "@typescript-eslint/parser": "7.0.1",
171
+ "@typescript-eslint/eslint-plugin": "7.0.2",
172
+ "@typescript-eslint/parser": "7.0.2",
171
173
  "babel-loader": "9.1.3",
172
174
  "classnames": "2.5.1",
173
175
  "cli-confirm": "1.0.1",
@@ -176,8 +178,8 @@
176
178
  "copy-webpack-plugin": "12.0.2",
177
179
  "css": "3.0.0",
178
180
  "css-loader": "6.10.0",
179
- "dotenv": "16.4.4",
180
- "eslint": "^8.56.0",
181
+ "dotenv": "16.4.5",
182
+ "eslint": "^8.57.0",
181
183
  "eslint-plugin-import": "2.29.1",
182
184
  "eslint-plugin-node": "11.1.0",
183
185
  "eslint-plugin-promise": "6.1.1",
@@ -196,13 +198,13 @@
196
198
  "progress-bar-webpack-plugin": "2.1.0",
197
199
  "react": "18.2.0",
198
200
  "react-dom": "18.2.0",
199
- "sass": "1.71.0",
200
- "sass-loader": "14.1.0",
201
+ "sass": "1.71.1",
202
+ "sass-loader": "14.1.1",
201
203
  "style-loader": "3.3.4",
202
204
  "terser-webpack-plugin": "5.3.10",
203
205
  "ts-node": "10.9.2",
204
206
  "typescript": "5.3.3",
205
- "webpack": "5.90.2",
207
+ "webpack": "5.90.3",
206
208
  "webpack-cli": "5.1.4",
207
209
  "webpack-dev-server": "5.0.2"
208
210
  }
@@ -0,0 +1,8 @@
1
+ /*
2
+ Copyright: © 2022 Dario Passariello <dariopassariello@gmail.com>
3
+ License: CC BY-NC-ND 4.0
4
+ */
5
+
6
+ declare module '*.mp3'
7
+ declare module '*.ogg'
8
+ declare module '*.mp3'
@@ -0,0 +1,21 @@
1
+ /*
2
+ Copyright: © 2022 Dario Passariello <dariopassariello@gmail.com>
3
+ License: CC BY-NC-ND 4.0
4
+ */
5
+
6
+ declare module '*.htm'
7
+ declare module '*.html'
8
+
9
+ ////////////////////////////////////////////////////////////////
10
+
11
+ declare module '*.js' {
12
+ const value: any
13
+ export default value
14
+ }
15
+
16
+ ////////////////////////////////////////////////////////////////
17
+
18
+ declare module "*.svg" {
19
+ const value: any
20
+ export default value
21
+ }
@@ -0,0 +1,22 @@
1
+ /*
2
+ Copyright: © 2022 Dario Passariello <dariopassariello@gmail.com>
3
+ License: CC BY-NC-ND 4.0
4
+ */
5
+
6
+ declare module 'icon'
7
+ declare var icon: any
8
+
9
+ ////////////////////////////////////////////////////////////////
10
+
11
+ declare global {
12
+ interface window {
13
+ icon: any
14
+ }
15
+ }
16
+
17
+ window.icon = window.icon || {}
18
+
19
+
20
+
21
+
22
+
@@ -0,0 +1,9 @@
1
+ /*
2
+ Copyright: © 2022 Dario Passariello <dariopassariello@gmail.com>
3
+ License: CC BY-NC-ND 4.0
4
+ */
5
+
6
+ declare module "*.svg" {
7
+ const value: any
8
+ export default value
9
+ }
@@ -0,0 +1,21 @@
1
+ /*
2
+ Copyright: © 2022 Dario Passariello <dariopassariello@gmail.com>
3
+ License: CC BY-NC-ND 4.0
4
+ */
5
+
6
+ declare var $: any
7
+ declare var JQuery: any
8
+ declare module 'jquery'
9
+
10
+ // ////////////////////////////////////////////////////////////////
11
+
12
+ declare global {
13
+ interface window {
14
+ $: any
15
+ JQuery: any
16
+ }
17
+ }
18
+
19
+ window.$ = window.$ || {}
20
+ window.JQuery = window.JQuery || {}
21
+
@@ -0,0 +1,22 @@
1
+ /*
2
+ Copyright: © 2022 Dario Passariello <dariopassariello@gmail.com>
3
+ License: MIT
4
+ */
5
+
6
+ declare module 'layerpro'
7
+ declare var layerpro: any
8
+
9
+ // Remove popup errors about number of paramentes or existence
10
+ declare function confirm(f1?, func1?, func2?)
11
+ declare function prompt(f1?, string?)
12
+ declare function message(f1?)
13
+
14
+ ////////////////////////////////////////////////////////////////
15
+
16
+ declare global {
17
+ interface window {
18
+ layerpro: any
19
+ }
20
+ }
21
+
22
+ window.layerpro = window.layerpro || {}
@@ -0,0 +1,22 @@
1
+ /*
2
+ Copyright: © 2022 Dario Passariello <dariopassariello@gmail.com>
3
+ License: CC BY-NC-ND 4.0
4
+ */
5
+ declare module '*.less' {
6
+ const resource: { [key: string]: any }
7
+ export = resource
8
+ }
9
+
10
+ ////////////////////////////////////////////////////////////////
11
+
12
+ declare module '*.scss' {
13
+ const resource: { [key: string]: any }
14
+ export = resource
15
+ }
16
+
17
+ ////////////////////////////////////////////////////////////////
18
+ declare module '*.sass' {
19
+ const resource: { [key: string]: any }
20
+ export = resource
21
+ }
22
+
Binary file