ibp-max 3.1.13 → 3.1.14

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/aganimation.js CHANGED
@@ -1 +1 @@
1
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var a in n)("object"==typeof exports?exports:t)[a]=n[a]}}(self,(()=>(function(){var t=!1;function e(){var e=document.querySelectorAll("[ag-canvas-animation]:not([data-updated])");e.length>0&&function(e){t&&e();var n=document.createElement("script");n.type="text/javascript",n.onload=function(){t=!0,e()},n.src="https://cdn.jsdelivr.net/gh/ibp-max@latest/plugin/lottieanimation.js",document.head.appendChild(n)}((function(){e.forEach((t=>{!function(t){t.setAttribute("data-updated","true"),lottie.loadAnimation({container:t,renderer:"svg",loop:!0,autoplay:!0,path:`https://cdn.jsdelivr.net/npm/ibp-max@latest/animation/${t.getAttribute("ag-canvas-animation")}.json`})}(t)}))}))}window.agAnimation={refresh:e},e()}(),{})));
1
+ !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var a in n)("object"==typeof exports?exports:t)[a]=n[a]}}(self,(()=>(function(){var t=!1;function e(){var e=document.querySelectorAll("[ag-canvas-animation]:not([data-updated])");e.length>0&&function(e){t&&e();var n=document.createElement("script");n.type="text/javascript",n.onload=function(){t=!0,e()},n.src="https://cdn.jsdelivr.net/npm/ibp-max@latest/plugin/lottieanimation.js",document.head.appendChild(n)}((function(){e.forEach((t=>{!function(t){t.setAttribute("data-updated","true"),lottie.loadAnimation({container:t,renderer:"svg",loop:!0,autoplay:!0,path:`https://cdn.jsdelivr.net/npm/ibp-max@latest/animation/${t.getAttribute("ag-canvas-animation")}.json`})}(t)}))}))}window.agAnimation={refresh:e},e()}(),{})));
@@ -1 +1 @@
1
- {"version":3,"file":"aganimation.js","mappings":"CAAA,SAA2CA,EAAMC,GAChD,GAAsB,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,SACb,GAAqB,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,OACP,CACJ,IAAIK,EAAIL,IACR,IAAI,IAAIM,KAAKD,GAAuB,iBAAZJ,QAAuBA,QAAUF,GAAMO,GAAKD,EAAEC,EACvE,CACA,CATD,CASGC,MAAM,KCTT,WAEI,IAAIC,GAAiB,EAwBrB,SAASC,IAEL,IAAIC,EAWGC,SAASC,iBAAiB,6CAV9BF,EAAMG,OAAS,GA1BtB,SAAuBC,GAChBN,GAAeM,IAClB,IAAIC,EAASJ,SAASK,cAAc,UACpCD,EAAOE,KAAO,kBACdF,EAAOG,OAAS,WACZV,GAAiB,EACjBM,GACJ,EACAC,EAAOI,IAAM,uEACbR,SAASS,KAAKC,YAAYN,EAC9B,CAiBQO,EAAc,WACVZ,EAAMa,SAAQC,KAhB1B,SAAgBA,GACZA,EAAKC,aAAa,eAAgB,QAClCC,OAAOC,cAAc,CACjBC,UAAWJ,EACXK,SAAU,MACVC,MAAM,EACNC,UAAU,EACVC,KAAM,yDAAyDR,EAAKS,aAAa,+BAEzF,CAQgBC,CAAOV,EAAK,GAEpB,GAER,CAMAW,OAAOC,YAAc,CACjBC,QAAQ5B,GAGZA,GACH,CA/CD,G","sources":["webpack:///webpack/universalModuleDefinition","webpack:///./src/aganimation.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse {\n\t\tvar a = factory();\n\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n\t}\n})(self, () => {\nreturn ","(function(){\r\n\r\n var isScriptLoaded = false;\r\n function isRenderReady(callback){\r\n if(isScriptLoaded)callback();\r\n var script = document.createElement(\"script\")\r\n script.type = \"text/javascript\";\r\n script.onload = function(){\r\n isScriptLoaded = true;\r\n callback();\r\n };\r\n script.src = \"https://cdn.jsdelivr.net/gh/ibp-max@latest/plugin/lottieanimation.js\";\r\n document.head.appendChild(script);\r\n }\r\n\r\n function render(item){\r\n item.setAttribute('data-updated', 'true');\r\n lottie.loadAnimation({\r\n container: item,\r\n renderer: 'svg',\r\n loop: true,\r\n autoplay: true,\r\n path: `https://cdn.jsdelivr.net/npm/ibp-max@latest/animation/${item.getAttribute('ag-canvas-animation')}.json`\r\n });\r\n }\r\n\r\n function initialize()\r\n {\r\n var items = find();\r\n if(items.length > 0){\r\n isRenderReady(function(){\r\n items.forEach(item => {\r\n render(item); \r\n });\r\n });\r\n }\r\n }\r\n\r\n function find(){\r\n return document.querySelectorAll('[ag-canvas-animation]:not([data-updated])');\r\n }\r\n\r\n window.agAnimation = {\r\n refresh:initialize\r\n };\r\n\r\n initialize();\r\n})();"],"names":["root","factory","exports","module","define","amd","a","i","self","isScriptLoaded","initialize","items","document","querySelectorAll","length","callback","script","createElement","type","onload","src","head","appendChild","isRenderReady","forEach","item","setAttribute","lottie","loadAnimation","container","renderer","loop","autoplay","path","getAttribute","render","window","agAnimation","refresh"],"sourceRoot":""}
1
+ {"version":3,"file":"aganimation.js","mappings":"CAAA,SAA2CA,EAAMC,GAChD,GAAsB,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,SACb,GAAqB,mBAAXG,QAAyBA,OAAOC,IAC9CD,OAAO,GAAIH,OACP,CACJ,IAAIK,EAAIL,IACR,IAAI,IAAIM,KAAKD,GAAuB,iBAAZJ,QAAuBA,QAAUF,GAAMO,GAAKD,EAAEC,EACvE,CACA,CATD,CASGC,MAAM,KCTT,WAEI,IAAIC,GAAiB,EAwBrB,SAASC,IAEL,IAAIC,EAWGC,SAASC,iBAAiB,6CAV9BF,EAAMG,OAAS,GA1BtB,SAAuBC,GAChBN,GAAeM,IAClB,IAAIC,EAASJ,SAASK,cAAc,UACpCD,EAAOE,KAAO,kBACdF,EAAOG,OAAS,WACZV,GAAiB,EACjBM,GACJ,EACAC,EAAOI,IAAM,wEACbR,SAASS,KAAKC,YAAYN,EAC9B,CAiBQO,EAAc,WACVZ,EAAMa,SAAQC,KAhB1B,SAAgBA,GACZA,EAAKC,aAAa,eAAgB,QAClCC,OAAOC,cAAc,CACjBC,UAAWJ,EACXK,SAAU,MACVC,MAAM,EACNC,UAAU,EACVC,KAAM,yDAAyDR,EAAKS,aAAa,+BAEzF,CAQgBC,CAAOV,EAAK,GAEpB,GAER,CAMAW,OAAOC,YAAc,CACjBC,QAAQ5B,GAGZA,GACH,CA/CD,G","sources":["webpack:///webpack/universalModuleDefinition","webpack:///./src/aganimation.js"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse {\n\t\tvar a = factory();\n\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n\t}\n})(self, () => {\nreturn ","(function(){\r\n\r\n var isScriptLoaded = false;\r\n function isRenderReady(callback){\r\n if(isScriptLoaded)callback();\r\n var script = document.createElement(\"script\")\r\n script.type = \"text/javascript\";\r\n script.onload = function(){\r\n isScriptLoaded = true;\r\n callback();\r\n };\r\n script.src = \"https://cdn.jsdelivr.net/npm/ibp-max@latest/plugin/lottieanimation.js\";\r\n document.head.appendChild(script);\r\n }\r\n\r\n function render(item){\r\n item.setAttribute('data-updated', 'true');\r\n lottie.loadAnimation({\r\n container: item,\r\n renderer: 'svg',\r\n loop: true,\r\n autoplay: true,\r\n path: `https://cdn.jsdelivr.net/npm/ibp-max@latest/animation/${item.getAttribute('ag-canvas-animation')}.json`\r\n });\r\n }\r\n\r\n function initialize()\r\n {\r\n var items = find();\r\n if(items.length > 0){\r\n isRenderReady(function(){\r\n items.forEach(item => {\r\n render(item); \r\n });\r\n });\r\n }\r\n }\r\n\r\n function find(){\r\n return document.querySelectorAll('[ag-canvas-animation]:not([data-updated])');\r\n }\r\n\r\n window.agAnimation = {\r\n refresh:initialize\r\n };\r\n\r\n initialize();\r\n})();"],"names":["root","factory","exports","module","define","amd","a","i","self","isScriptLoaded","initialize","items","document","querySelectorAll","length","callback","script","createElement","type","onload","src","head","appendChild","isRenderReady","forEach","item","setAttribute","lottie","loadAnimation","container","renderer","loop","autoplay","path","getAttribute","render","window","agAnimation","refresh"],"sourceRoot":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ibp-max",
3
- "version": "3.1.13",
3
+ "version": "3.1.14",
4
4
  "description": "Style & JS optimized",
5
5
  "main": "index.js",
6
6
  "scripts": {