layerpro 0.8.2 → 0.8.5
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 +1 -2
- package/index.js +1 -1
- package/package.json +198 -198
- package/.github/CHANGELOG.md +0 -9
- package/.github/FUNDING.yml +0 -16
- package/.github/HISTORY.md +0 -35
- package/.github/LICENSE.txt +0 -21
- package/.github/README.md +0 -118
- package/.github/SECURITY.md +0 -3
package/README.md
CHANGED
|
@@ -87,7 +87,6 @@ Another use:
|
|
|
87
87
|
layerpro.popup.open({
|
|
88
88
|
id: String,
|
|
89
89
|
body: String | Component / Module, // text or component
|
|
90
|
-
source: "", // TODO
|
|
91
90
|
width: Number,
|
|
92
91
|
height: Number,
|
|
93
92
|
name: String,
|
|
@@ -108,7 +107,7 @@ layerpro.popup.open({
|
|
|
108
107
|
minWidth: Number | Percentance,
|
|
109
108
|
minHeight: Number | Percentance,
|
|
110
109
|
fadeIn: 0, // Milliseconds
|
|
111
|
-
fadeOut: 0 // Milliseconds
|
|
110
|
+
fadeOut: 0, // Milliseconds
|
|
112
111
|
timer: 0 // Milliseconds
|
|
113
112
|
});
|
|
114
113
|
```
|
package/index.js
CHANGED
|
@@ -35,4 +35,4 @@
|
|
|
35
35
|
*
|
|
36
36
|
* This source code is licensed under the MIT license found in the
|
|
37
37
|
* LICENSE file in the root directory of this source tree.
|
|
38
|
-
*/function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var l=2*(r+1)-1,u=e[l],s=l+1,c=e[s];if(0>i(u,n))s<o&&0>i(c,u)?(e[r]=c,e[s]=n,r=s):(e[r]=u,e[l]=n,r=l);else{if(!(s<o&&0>i(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}var s=[],c=[],p=1,d=null,f=3,h=!1,g=!1,m=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(s,t)}t=r(c)}}function x(e){if(m=!1,w(e),!g)if(null!==r(s))g=!0,j(k);else{var t=r(c);null!==t&&L(x,t.startTime-e)}}function k(e,n){g=!1,m&&(m=!1,y(_),_=-1),h=!0;var i=f;try{for(w(n),d=r(s);null!==d&&(!(d.expirationTime>n)||e&&!A());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var l=a(d.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?d.callback=l:d===r(s)&&o(s),w(n)}else o(s);d=r(s)}if(null!==d)var u=!0;else{var p=r(c);null!==p&&L(x,p.startTime-n),u=!1}return u}finally{d=null,f=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var C,S=!1,I=null,_=-1,T=5,N=-1;function A(){return!(t.unstable_now()-N<T)}function E(){if(null!==I){var e=t.unstable_now();N=e;var n=!0;try{n=I(!0,e)}finally{n?C():(S=!1,I=null)}}else S=!1}if("function"==typeof b)C=function(){b(E)};else if("undefined"!=typeof MessageChannel){var z=new MessageChannel,M=z.port2;z.port1.onmessage=E,C=function(){M.postMessage(null)}}else C=function(){v(E,0)};function j(e){I=e,S||(S=!0,C())}function L(e,n){_=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||h||(g=!0,j(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(s)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:p++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(e.sortIndex=i,n(c,e),null===r(s)&&e===r(c)&&(m?(y(_),_=-1):m=!0,L(x,i-a))):(e.sortIndex=l,n(s,e),g||h||(g=!0,j(k))),e},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},982:(e,t,n)=>{"use strict";e.exports=n(463)},72:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},a=[],l=0;l<e.length;l++){var u=e[l],s=r.base?u[0]+r.base:u[0],c=i[s]||0,p="".concat(s," ").concat(c);i[s]=c+1;var d=n(p),f={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==d)t[d].references++,t[d].updater(f);else{var h=o(f,r);r.byIndex=l,t.splice(l,0,{identifier:p,updater:h,references:1})}a.push(p)}return a}function o(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var l=n(i[a]);t[l].references--}for(var u=r(e,o),s=0;s<i.length;s++){var c=n(i[s]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}i=u}}},659:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},159:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},223:(e,t,n)=>{var r={"./credits.ts":181,"./mouseCoords.ts":346,"./properties.ts":863,"./purge.ts":236,"./smoothScroll.ts":84,"./window.ts":983};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=223},330:e=>{"use strict";e.exports=JSON.parse('{"name":"layerpro","displayName":"layerpro","version":"0.8.2","description":"Custom popups, alert, confirmn, prompt... by Dario Passariello","copyright":"Dario Passariello","license":"MIT","relaseType":"gold","port":3000,"code":"wind","codeRelease":"layerpro","folder":"/","appPort":"","target":"web","logo":"","typeID":0,"theme":"default","deprecated":false,"targets":"web","preferGlobal":true,"language":{"en":{}},"app":{"port":3000,"code":"layerpro","name":"layerpro","type":"beta","folder":"/","appPort":"","main":"index.ts","target":"web","proxy":{"api":{"tst":"http://localhost:5003/","dev":"https://biglogic.ca/","pro":"https://biglogic.ca/"}},"socket":{"url":{"tst":"wss://ws.biglogic.ca/","dev":"wss://ws.biglogic.ca/","pro":"wss://ws.biglogic.ca/"}},"info":{"type":"gold","code":"layerpro","codeRelease":"layerpro"},"cdn":{}},"homepage":"https://github.com/passariello/layerpro","main":"./index.ts","author":{"name":"Dario Passariello","url":"https://github.com/passariello/","email":"dariopassariello@gmail.com"},"support":{"name":"Dario Passariello","url":"https://github.com/passariello/","email":"dariopassariello@gmail.com"},"company":{},"contributors":[{"name":"Dario Passariello","email":"dariopassarielloa@gmail.com"},{"name":"Valeria Cala Scaglitta","email":"valeriacalascaglitta@gmail.com"}],"workspaces":["mcp"],"cordova":{"platforms":["android"]},"typings":"./types/*","globals":{"layerpro":{}},"browserslist":{"production":["last 2 Chrome major versions","last 2 Firefox major versions","last 2 Safari major versions","last 2 Edge major versions","last 2 Opera versions","last 2 iOS major versions","last 1 Explorer major version","last 1 ChromeAndroid version","last 1 UCAndroid version","last 1 Samsung version","last 1 OperaMini version","Firefox ESR",">0.2%","not dead","not op_mini all"],"development":["last 1 chrome version","last 1 firefox version","last 1 safari version"]},"engines":{"node":">=18.0.0"},"keywords":["layer","popup","modal","passariello","layerpro"],"repository":{"type":"git","url":"git+https://github.com/passariello/layerpro.git","help":"git+https://github.com/passariello/layerpro.git#readme"},"bugs":{"url":"https://github.com/passariello/layerpro/issues"},"funding":[{"type":"patreon","url":"https://www.patreon.com/passariello"}],"typing":["types/*"],"scripts":{"watch":"webpack --watch --progress --color --mode production --config webpack.ts","dist":"webpack --progress --color --mode production --config webpack.ts","------":"","git":"git add . && git commit -m \\"update\\" && git pull && git push --all","-------":"","goLive":"cd mcp/node && node goLive","--------":"","prepublish1":"tsc","compile-tests":"tsc -p . --outDir out","watch-tests":"tsc -p . -w --outDir out","---------":"","update":"cd mcp/node && node npmUpdate","backup":"cd mcp/backup && run.bat","optimizeSVG":"cd mcp/node && node optimizeSVG.js","----------":"","tsc":"tsc -b","oxlint":"oxlint --config=./.eslintrc.json --tsconfig=./tsconfig.json"},"devDependencies":{"@babel/cli":"7.25.9","@babel/core":"7.26.0","@babel/plugin-transform-runtime":"7.25.9","@babel/preset-env":"7.26.0","@babel/preset-react":"7.25.9","@babel/preset-typescript":"7.26.0","@babel/runtime":"^7.26.0","@types/node":"22.9.0","@types/react":"^18.3.12","@types/react-dom":"^18.3.1","@types/webpack-env":"1.18.5","babel-loader":"9.2.1","child_process":"^1.0.2","cli-confirm":"1.0.1","compression-webpack-plugin":"11.1.0","copy-webpack-plugin":"^12.0.2","crypto-js":"4.2.0","css":"3.0.0","css-loader":"^7.1.2","dotenv":"^16.4.5","file-loader":"6.2.0","html-webpack-plugin":"5.6.3","jquery":"3.7.1","jsdom-worker":"0.3.0","jshint":"^2.13.6","moment":"2.30.1","progress-bar-webpack-plugin":"2.1.0","react":"18.3.1","react-dom":"18.3.1","sass":"^1.80.6","sass-loader":"^16.0.3","style-loader":"^4.0.0","terser-webpack-plugin":"^5.3.10","ts-loader":"^9.5.1","ts-node":"10.9.2","typescript":"5.6.3","webpack":"^5.96.1","webpack-cli":"^5.1.4","webpack-dev-server":"^5.1.0"}}')}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0,(()=>{"use strict";(()=>{if(globalThis.layerpro)return;n(900),n(34),n(370);const e=n(330);var t;globalThis.$=globalThis.jQuery=n(692),Object.defineProperty(globalThis,"layerpro",{value:{},writable:!1,configurable:!1,enumerable:!1}),globalThis.$=globalThis.jQuery=n(692),$.ajaxSetup({async:!0,cache:!0,global:!0}),(t=n(223)).keys().forEach((e=>cache[e]=t(e))),setTimeout((()=>{layerpro.credits(e),Object.freeze(layerpro)}),0)})()})()})();
|
|
38
|
+
*/function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,o=e[r];if(!(0<i(o,t)))break e;e[r]=t,e[n]=o,n=r}}function r(e){return 0===e.length?null:e[0]}function o(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,o=e.length,a=o>>>1;r<a;){var l=2*(r+1)-1,u=e[l],s=l+1,c=e[s];if(0>i(u,n))s<o&&0>i(c,u)?(e[r]=c,e[s]=n,r=s):(e[r]=u,e[l]=n,r=l);else{if(!(s<o&&0>i(c,n)))break e;e[r]=c,e[s]=n,r=s}}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var l=Date,u=l.now();t.unstable_now=function(){return l.now()-u}}var s=[],c=[],p=1,d=null,f=3,h=!1,g=!1,m=!1,v="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,b="undefined"!=typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)o(c);else{if(!(t.startTime<=e))break;o(c),t.sortIndex=t.expirationTime,n(s,t)}t=r(c)}}function x(e){if(m=!1,w(e),!g)if(null!==r(s))g=!0,j(k);else{var t=r(c);null!==t&&L(x,t.startTime-e)}}function k(e,n){g=!1,m&&(m=!1,y(_),_=-1),h=!0;var i=f;try{for(w(n),d=r(s);null!==d&&(!(d.expirationTime>n)||e&&!A());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var l=a(d.expirationTime<=n);n=t.unstable_now(),"function"==typeof l?d.callback=l:d===r(s)&&o(s),w(n)}else o(s);d=r(s)}if(null!==d)var u=!0;else{var p=r(c);null!==p&&L(x,p.startTime-n),u=!1}return u}finally{d=null,f=i,h=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var C,S=!1,I=null,_=-1,T=5,N=-1;function A(){return!(t.unstable_now()-N<T)}function E(){if(null!==I){var e=t.unstable_now();N=e;var n=!0;try{n=I(!0,e)}finally{n?C():(S=!1,I=null)}}else S=!1}if("function"==typeof b)C=function(){b(E)};else if("undefined"!=typeof MessageChannel){var z=new MessageChannel,M=z.port2;z.port1.onmessage=E,C=function(){M.postMessage(null)}}else C=function(){v(E,0)};function j(e){I=e,S||(S=!0,C())}function L(e,n){_=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){g||h||(g=!0,j(k))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):T=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(s)},t.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},t.unstable_scheduleCallback=function(e,o,i){var a=t.unstable_now();switch("object"==typeof i&&null!==i?i="number"==typeof(i=i.delay)&&0<i?a+i:a:i=a,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return e={id:p++,callback:o,priorityLevel:e,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(e.sortIndex=i,n(c,e),null===r(s)&&e===r(c)&&(m?(y(_),_=-1):m=!0,L(x,i-a))):(e.sortIndex=l,n(s,e),g||h||(g=!0,j(k))),e},t.unstable_shouldYield=A,t.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}},982:(e,t,n)=>{"use strict";e.exports=n(463)},72:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var i={},a=[],l=0;l<e.length;l++){var u=e[l],s=r.base?u[0]+r.base:u[0],c=i[s]||0,p="".concat(s," ").concat(c);i[s]=c+1;var d=n(p),f={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==d)t[d].references++,t[d].updater(f);else{var h=o(f,r);r.byIndex=l,t.splice(l,0,{identifier:p,updater:h,references:1})}a.push(p)}return a}function o(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,o){var i=r(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var l=n(i[a]);t[l].references--}for(var u=r(e,o),s=0;s<i.length;s++){var c=n(i[s]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}i=u}}},659:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},159:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},56:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},825:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},113:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},223:(e,t,n)=>{var r={"./credits.ts":181,"./mouseCoords.ts":346,"./properties.ts":863,"./purge.ts":236,"./smoothScroll.ts":84,"./window.ts":983};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=223},330:e=>{"use strict";e.exports=JSON.parse('{"name":"layerpro","displayName":"layerpro","version":"0.8.5","description":"Custom popups, alert, confirmn, prompt... by Dario Passariello","copyright":"Dario Passariello","license":"MIT","relaseType":"gold","port":3000,"code":"wind","codeRelease":"layerpro","folder":"/","appPort":"","target":"web","logo":"","typeID":0,"theme":"default","deprecated":false,"targets":"web","preferGlobal":true,"language":{"en":{}},"app":{"port":3000,"code":"layerpro","name":"layerpro","type":"beta","folder":"/","appPort":"","main":"index.ts","target":"web","proxy":{"api":{"tst":"http://localhost:5003/","dev":"https://biglogic.ca/","pro":"https://biglogic.ca/"}},"socket":{"url":{"tst":"wss://ws.biglogic.ca/","dev":"wss://ws.biglogic.ca/","pro":"wss://ws.biglogic.ca/"}},"info":{"type":"gold","code":"layerpro","codeRelease":"layerpro"},"cdn":{}},"homepage":"https://github.com/passariello/layerpro","main":"./index.ts","author":{"name":"Dario Passariello","url":"https://github.com/passariello/","email":"dariopassariello@gmail.com"},"support":{"name":"Dario Passariello","url":"https://github.com/passariello/","email":"dariopassariello@gmail.com"},"company":{},"contributors":[{"name":"Dario Passariello","email":"dariopassarielloa@gmail.com"},{"name":"Valeria Cala Scaglitta","email":"valeriacalascaglitta@gmail.com"}],"workspaces":["mcp"],"cordova":{"platforms":["android"]},"typings":"./types/*","globals":{"layerpro":{}},"browserslist":{"production":["last 2 Chrome major versions","last 2 Firefox major versions","last 2 Safari major versions","last 2 Edge major versions","last 2 Opera versions","last 2 iOS major versions","last 1 Explorer major version","last 1 ChromeAndroid version","last 1 UCAndroid version","last 1 Samsung version","last 1 OperaMini version","Firefox ESR",">0.2%","not dead","not op_mini all"],"development":["last 1 chrome version","last 1 firefox version","last 1 safari version"]},"engines":{"node":">=18.0.0"},"keywords":["layer","popup","modal","passariello","layerpro"],"repository":{"type":"git","url":"git+https://github.com/passariello/layerpro.git","help":"git+https://github.com/passariello/layerpro.git#readme"},"bugs":{"url":"https://github.com/passariello/layerpro/issues"},"funding":[{"type":"patreon","url":"https://www.patreon.com/passariello"}],"typing":["types/*"],"scripts":{"watch":"webpack --watch --progress --color --mode production --config webpack.ts","dist":"webpack --progress --color --mode production --config webpack.ts","------":"","git":"git add . && git commit -m \\"update\\" && git pull && git push --all","-------":"","goLive":"cd mcp/node && node goLive","--------":"","prepublish1":"tsc","compile-tests":"tsc -p . --outDir out","watch-tests":"tsc -p . -w --outDir out","---------":"","update":"cd mcp/node && node npmUpdate","backup":"cd mcp/backup && run.bat","optimizeSVG":"cd mcp/node && node optimizeSVG.js","----------":"","tsc":"tsc -b","oxlint":"oxlint --config=./.eslintrc.json --tsconfig=./tsconfig.json"},"devDependencies":{"@babel/cli":"7.25.9","@babel/core":"7.26.0","@babel/plugin-transform-runtime":"7.25.9","@babel/preset-env":"7.26.0","@babel/preset-react":"7.25.9","@babel/preset-typescript":"7.26.0","@babel/runtime":"^7.26.0","@types/node":"22.9.1","@types/react":"^18.3.12","@types/react-dom":"^18.3.1","@types/webpack-env":"1.18.5","babel-loader":"9.2.1","child_process":"^1.0.2","cli-confirm":"1.0.1","compression-webpack-plugin":"11.1.0","copy-webpack-plugin":"^12.0.2","crypto-js":"4.2.0","css":"3.0.0","css-loader":"^7.1.2","dotenv":"^16.4.5","file-loader":"6.2.0","html-webpack-plugin":"5.6.3","jquery":"3.7.1","jsdom-worker":"0.3.0","jshint":"^2.13.6","moment":"2.30.1","progress-bar-webpack-plugin":"2.1.0","react":"18.3.1","react-dom":"18.3.1","sass":"^1.81.0","sass-loader":"^16.0.3","style-loader":"^4.0.0","terser-webpack-plugin":"^5.3.10","ts-loader":"^9.5.1","ts-node":"10.9.2","typescript":"5.6.3","webpack":"^5.96.1","webpack-cli":"^5.1.4","webpack-dev-server":"^5.1.0"}}')}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nc=void 0,(()=>{"use strict";(()=>{if(globalThis.layerpro)return;n(900),n(34),n(370);const e=n(330);var t;globalThis.$=globalThis.jQuery=n(692),Object.defineProperty(globalThis,"layerpro",{value:{},writable:!1,configurable:!1,enumerable:!1}),globalThis.$=globalThis.jQuery=n(692),$.ajaxSetup({async:!0,cache:!0,global:!0}),(t=n(223)).keys().forEach((e=>cache[e]=t(e))),setTimeout((()=>{layerpro.credits(e),Object.freeze(layerpro)}),0)})()})()})();
|
package/package.json
CHANGED
|
@@ -1,200 +1,200 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
2
|
+
"name": "layerpro",
|
|
3
|
+
"displayName": "layerpro",
|
|
4
|
+
"version": "0.8.5",
|
|
5
|
+
"description": "Custom popups, alert, confirmn, prompt... by Dario Passariello",
|
|
6
|
+
"copyright": "Dario Passariello",
|
|
7
|
+
"license": "MIT",
|
|
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,
|
|
19
|
+
"targets": "web",
|
|
20
|
+
"preferGlobal": true,
|
|
21
|
+
"language": {
|
|
22
|
+
"en": {}
|
|
23
|
+
},
|
|
24
|
+
"app": {
|
|
25
|
+
"port": 3000,
|
|
26
|
+
"code": "layerpro",
|
|
27
|
+
"name": "layerpro",
|
|
28
|
+
"type": "beta",
|
|
29
|
+
"folder": "/",
|
|
30
|
+
"appPort": "",
|
|
31
|
+
"main": "index.ts",
|
|
32
|
+
"target": "web",
|
|
33
|
+
"proxy": {
|
|
34
|
+
"api": {
|
|
35
|
+
"tst": "http://localhost:5003/",
|
|
36
|
+
"dev": "https://biglogic.ca/",
|
|
37
|
+
"pro": "https://biglogic.ca/"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"socket": {
|
|
41
|
+
"url": {
|
|
42
|
+
"tst": "wss://ws.biglogic.ca/",
|
|
43
|
+
"dev": "wss://ws.biglogic.ca/",
|
|
44
|
+
"pro": "wss://ws.biglogic.ca/"
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"info": {
|
|
48
|
+
"type": "gold",
|
|
49
|
+
"code": "layerpro",
|
|
50
|
+
"codeRelease": "layerpro"
|
|
51
|
+
},
|
|
52
|
+
"cdn": {}
|
|
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
|
+
],
|
|
80
|
+
"cordova": {
|
|
81
|
+
"platforms": [
|
|
82
|
+
"android"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"typings": "./types/*",
|
|
86
|
+
"globals": {
|
|
87
|
+
"layerpro": {}
|
|
88
|
+
},
|
|
89
|
+
"browserslist": {
|
|
90
|
+
"production": [
|
|
91
|
+
"last 2 Chrome major versions",
|
|
92
|
+
"last 2 Firefox major versions",
|
|
93
|
+
"last 2 Safari major versions",
|
|
94
|
+
"last 2 Edge major versions",
|
|
95
|
+
"last 2 Opera versions",
|
|
96
|
+
"last 2 iOS major versions",
|
|
97
|
+
"last 1 Explorer major version",
|
|
98
|
+
"last 1 ChromeAndroid version",
|
|
99
|
+
"last 1 UCAndroid version",
|
|
100
|
+
"last 1 Samsung version",
|
|
101
|
+
"last 1 OperaMini version",
|
|
102
|
+
"Firefox ESR",
|
|
103
|
+
">0.2%",
|
|
104
|
+
"not dead",
|
|
105
|
+
"not op_mini all"
|
|
106
|
+
],
|
|
107
|
+
"development": [
|
|
108
|
+
"last 1 chrome version",
|
|
109
|
+
"last 1 firefox version",
|
|
110
|
+
"last 1 safari version"
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"engines": {
|
|
114
|
+
"node": ">=18.0.0"
|
|
115
|
+
},
|
|
116
|
+
"keywords": [
|
|
117
|
+
"layer",
|
|
118
|
+
"popup",
|
|
119
|
+
"modal",
|
|
120
|
+
"passariello",
|
|
121
|
+
"layerpro"
|
|
122
|
+
],
|
|
123
|
+
"repository": {
|
|
124
|
+
"type": "git",
|
|
125
|
+
"url": "git+https://github.com/passariello/layerpro.git",
|
|
126
|
+
"help": "git+https://github.com/passariello/layerpro.git#readme"
|
|
127
|
+
},
|
|
128
|
+
"bugs": {
|
|
129
|
+
"url": "https://github.com/passariello/layerpro/issues"
|
|
130
|
+
},
|
|
131
|
+
"funding": [
|
|
132
|
+
{
|
|
133
|
+
"type": "patreon",
|
|
134
|
+
"url": "https://www.patreon.com/passariello"
|
|
135
|
+
}
|
|
136
|
+
],
|
|
137
|
+
"typing": [
|
|
138
|
+
"types/*"
|
|
139
|
+
],
|
|
140
|
+
"scripts": {
|
|
141
|
+
"watch": "webpack --watch --progress --color --mode production --config webpack.ts",
|
|
142
|
+
"dist": "webpack --progress --color --mode production --config webpack.ts",
|
|
143
|
+
"------": "",
|
|
144
|
+
"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
|
+
"---------": "",
|
|
152
|
+
"update": "cd mcp/node && node npmUpdate",
|
|
153
|
+
"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"
|
|
158
|
+
},
|
|
159
|
+
"devDependencies": {
|
|
160
|
+
"@babel/cli": "7.25.9",
|
|
161
|
+
"@babel/core": "7.26.0",
|
|
162
|
+
"@babel/plugin-transform-runtime": "7.25.9",
|
|
163
|
+
"@babel/preset-env": "7.26.0",
|
|
164
|
+
"@babel/preset-react": "7.25.9",
|
|
165
|
+
"@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
|
+
"@types/webpack-env": "1.18.5",
|
|
171
|
+
"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
|
+
"copy-webpack-plugin": "^12.0.2",
|
|
176
|
+
"crypto-js": "4.2.0",
|
|
177
|
+
"css": "3.0.0",
|
|
178
|
+
"css-loader": "^7.1.2",
|
|
179
|
+
"dotenv": "^16.4.5",
|
|
180
|
+
"file-loader": "6.2.0",
|
|
181
|
+
"html-webpack-plugin": "5.6.3",
|
|
182
|
+
"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
|
+
"react": "18.3.1",
|
|
188
|
+
"react-dom": "18.3.1",
|
|
189
|
+
"sass": "^1.81.0",
|
|
190
|
+
"sass-loader": "^16.0.3",
|
|
191
|
+
"style-loader": "^4.0.0",
|
|
192
|
+
"terser-webpack-plugin": "^5.3.10",
|
|
193
|
+
"ts-loader": "^9.5.1",
|
|
194
|
+
"ts-node": "10.9.2",
|
|
195
|
+
"typescript": "5.6.3",
|
|
196
|
+
"webpack": "^5.96.1",
|
|
197
|
+
"webpack-cli": "^5.1.4",
|
|
198
|
+
"webpack-dev-server": "^5.1.0"
|
|
199
|
+
}
|
|
200
200
|
}
|
package/.github/CHANGELOG.md
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
New minor (feature) releases of this app/software are released every six months and
|
|
4
|
-
patch (bugfix) releases are released every month. More information on the
|
|
5
|
-
release cycle: see package.json
|
|
6
|
-
|
|
7
|
-
## Previous
|
|
8
|
-
|
|
9
|
-
Please see the git history for the details of previous versions.
|
package/.github/FUNDING.yml
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
# These are supported funding model platforms
|
|
2
|
-
|
|
3
|
-
github: passariello
|
|
4
|
-
patreon: passariello
|
|
5
|
-
open_collective: # Replace with a single Open Collective username
|
|
6
|
-
ko_fi: passariello
|
|
7
|
-
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
|
|
8
|
-
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
|
|
9
|
-
liberapay: passariello
|
|
10
|
-
issuehunt: passariello
|
|
11
|
-
otechie: # Replace with a single Otechie username
|
|
12
|
-
custom:
|
|
13
|
-
[
|
|
14
|
-
"https://dario.passariello.ca",
|
|
15
|
-
"https://www.indiegogo.com/individuals/28513718",
|
|
16
|
-
]
|
package/.github/HISTORY.md
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
## v0.7.1 / 2024-08-07
|
|
4
|
-
|
|
5
|
-
- NPM update [Dario Passariello](https://github.com/passariello) ()
|
|
6
|
-
- Added support for timer
|
|
7
|
-
|
|
8
|
-
## Previous
|
|
9
|
-
|
|
10
|
-
## v0.6.* / 2024-08-06
|
|
11
|
-
|
|
12
|
-
- NPM update [Dario Passariello](https://github.com/passariello) ()
|
|
13
|
-
|
|
14
|
-
## v0.2.0 / 2024-01-06
|
|
15
|
-
|
|
16
|
-
- NPM update [Dario Passariello](https://github.com/passariello) ()
|
|
17
|
-
|
|
18
|
-
## v0.1.9 / 2023-12-31
|
|
19
|
-
|
|
20
|
-
- NPM update [Dario Passariello](https://github.com/passariello) ()
|
|
21
|
-
|
|
22
|
-
## v0.1.8 / 2023-11-08
|
|
23
|
-
|
|
24
|
-
- NPM update [Dario Passariello](https://github.com/passariello) ()
|
|
25
|
-
|
|
26
|
-
## v0.1.7 / 2023-10-18
|
|
27
|
-
|
|
28
|
-
- NPM update [Dario Passariello](https://github.com/passariello) ()
|
|
29
|
-
|
|
30
|
-
## v0.1.6 / 2023-10-09
|
|
31
|
-
|
|
32
|
-
- Fix some minor bugs [Dario Passariello](https://github.com/passariello) ()
|
|
33
|
-
- NPM update [Dario Passariello](https://github.com/passariello) ()
|
|
34
|
-
|
|
35
|
-
Please see the git history for the details of previous versions.
|
package/.github/LICENSE.txt
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
# MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2019 Dario Passariello - <dariopassariello@gmail.com>
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
package/.github/README.md
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
# I am LayerPro
|
|
2
|
-
|
|
3
|
-
```
|
|
4
|
-
LayerPro by Dario Passariello
|
|
5
|
-
```
|
|
6
|
-
|
|
7
|
-
[](#)
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
## About
|
|
11
|
-
|
|
12
|
-
LayerPro give you a complete new way to customize web popups on your application. LP permit you also to have custom alert, promps, confirm and message and override the ugly browser popup.
|
|
13
|
-
|
|
14
|
-
Please, read the [LICENSE](/LICENSE.md) agreement before to implementing in your application.
|
|
15
|
-
|
|
16
|
-
## Live demo
|
|
17
|
-
|
|
18
|
-
[https://a51.dev/tests/](https://a51.dev/tests/)
|
|
19
|
-
|
|
20
|
-
You can see an HTML version where dpHelper and LayerPro works.
|
|
21
|
-
You can use with html, react, vue or any other frontend / library.
|
|
22
|
-
|
|
23
|
-
---
|
|
24
|
-
|
|
25
|
-
## Install for react + webpack projects
|
|
26
|
-
|
|
27
|
-
```
|
|
28
|
-
npm i layerpro --save-dev
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
or update:
|
|
32
|
-
|
|
33
|
-
```
|
|
34
|
-
npm i layerpro@latest --save-dev
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
in the index (and only there):
|
|
38
|
-
|
|
39
|
-
```javascript
|
|
40
|
-
import "layerpro";
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
or
|
|
44
|
-
|
|
45
|
-
```javascript
|
|
46
|
-
require("layerpro");
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
## Install for ejs or other type of projects (like html)
|
|
50
|
-
|
|
51
|
-
note: you don't need to use npm install in this case or you get an error
|
|
52
|
-
|
|
53
|
-
```html
|
|
54
|
-
<script src="https://unpkg.com/layerpro@latest/index.js"></script>
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
## How to use it
|
|
58
|
-
|
|
59
|
-
type 'layerpro' in your console to have a look about all available tools that you can use globaly!
|
|
60
|
-
You can call these from everywhere without import (just one at index).
|
|
61
|
-
If you type alert("hello, world!") you can see the result.
|
|
62
|
-
|
|
63
|
-
You can use these (also from console) as messages
|
|
64
|
-
|
|
65
|
-
```javascript
|
|
66
|
-
alert("Hello world"); // Normal alert
|
|
67
|
-
|
|
68
|
-
prompt("Your Name"); // Ask for input
|
|
69
|
-
|
|
70
|
-
confirm(
|
|
71
|
-
"Hello world",
|
|
72
|
-
()=>console.log("ciao"), // callback for YES / OK
|
|
73
|
-
()=>console.log("bye") // callback for NO / CANCEL (you can use null if you don't want CB)
|
|
74
|
-
);
|
|
75
|
-
|
|
76
|
-
message(
|
|
77
|
-
"Hello world",
|
|
78
|
-
()=>console.log("This happen after OK") // callback for YES / OK)
|
|
79
|
-
);
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
---
|
|
83
|
-
|
|
84
|
-
Another use:
|
|
85
|
-
|
|
86
|
-
```javascript
|
|
87
|
-
layerpro.popup.open({
|
|
88
|
-
id: String,
|
|
89
|
-
body: String | Component / Module, // text or component
|
|
90
|
-
source: "", // TODO
|
|
91
|
-
width: Number,
|
|
92
|
-
height: Number,
|
|
93
|
-
name: String,
|
|
94
|
-
icon: "⚠", // or from html symbols table
|
|
95
|
-
iconize: true | false,
|
|
96
|
-
maximize: true | false,
|
|
97
|
-
close: true | false,
|
|
98
|
-
isMaximize: true | false,
|
|
99
|
-
dockable: true | false,
|
|
100
|
-
raised: true | false,
|
|
101
|
-
movable: true | false,
|
|
102
|
-
resizable: true | false,
|
|
103
|
-
store: true | false,
|
|
104
|
-
top: Number | Percentance,
|
|
105
|
-
left: Number | Percentance,
|
|
106
|
-
right: Number | Percentance,
|
|
107
|
-
bottom: Number | Percentance,
|
|
108
|
-
minWidth: Number | Percentance,
|
|
109
|
-
minHeight: Number | Percentance,
|
|
110
|
-
fadeIn: 0, // Milliseconds
|
|
111
|
-
fadeOut: 0 // Milliseconds
|
|
112
|
-
timer: 0 // Milliseconds
|
|
113
|
-
});
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
---
|
|
117
|
-
|
|
118
|
-
copyright (c) 2019 - 2024 by Dario Passariello
|
package/.github/SECURITY.md
DELETED