layerpro 0.8.1 → 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 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.1","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.8.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.80.4","sass-loader":"^16.0.2","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.95.0","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,7 +1,7 @@
1
1
  {
2
2
  "name": "layerpro",
3
3
  "displayName": "layerpro",
4
- "version": "0.8.1",
4
+ "version": "0.8.5",
5
5
  "description": "Custom popups, alert, confirmn, prompt... by Dario Passariello",
6
6
  "copyright": "Dario Passariello",
7
7
  "license": "MIT",
@@ -164,7 +164,7 @@
164
164
  "@babel/preset-react": "7.25.9",
165
165
  "@babel/preset-typescript": "7.26.0",
166
166
  "@babel/runtime": "^7.26.0",
167
- "@types/node": "22.8.1",
167
+ "@types/node": "22.9.1",
168
168
  "@types/react": "^18.3.12",
169
169
  "@types/react-dom": "^18.3.1",
170
170
  "@types/webpack-env": "1.18.5",
@@ -186,14 +186,14 @@
186
186
  "progress-bar-webpack-plugin": "2.1.0",
187
187
  "react": "18.3.1",
188
188
  "react-dom": "18.3.1",
189
- "sass": "^1.80.4",
190
- "sass-loader": "^16.0.2",
189
+ "sass": "^1.81.0",
190
+ "sass-loader": "^16.0.3",
191
191
  "style-loader": "^4.0.0",
192
192
  "terser-webpack-plugin": "^5.3.10",
193
193
  "ts-loader": "^9.5.1",
194
194
  "ts-node": "10.9.2",
195
195
  "typescript": "5.6.3",
196
- "webpack": "^5.95.0",
196
+ "webpack": "^5.96.1",
197
197
  "webpack-cli": "^5.1.4",
198
198
  "webpack-dev-server": "^5.1.0"
199
199
  }
@@ -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.
@@ -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
- ]
@@ -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.
@@ -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
- [![TypeScript](https://img.shields.io/badge/TypeScript-006b98?logo=TypeScript&logoColor=white)](#)
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: "&#9888;", // 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
@@ -1,3 +0,0 @@
1
- # Security
2
-
3
- Please email [@passariello](https://github.com/passariello) or see https://dario.passariello.ca/contact/ if you have a potential security vulnerability to report.