@revolugo/elements 6.10.8-rc.3 → 6.10.8
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/dist/index.es.min.js +15 -15
- package/dist/index.es.min.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/package.json +1 -1
    
        package/dist/index.es.min.js
    CHANGED
    
    | @@ -1,28 +1,28 @@ | |
| 1 | 
            -
            const  | 
| 1 | 
            +
            const s = (o) => {
         | 
| 2 2 | 
             
              window.RevolugoElements = {
         | 
| 3 3 | 
             
                ...window.RevolugoElements,
         | 
| 4 | 
            -
                ready: ( | 
| 5 | 
            -
                  const  | 
| 4 | 
            +
                ready: (n) => {
         | 
| 5 | 
            +
                  const r = window.RevolugoElements?._ready;
         | 
| 6 6 | 
             
                  window.RevolugoElements._ready = () => {
         | 
| 7 | 
            -
                     | 
| 7 | 
            +
                    r && r(), n();
         | 
| 8 8 | 
             
                  };
         | 
| 9 9 | 
             
                }
         | 
| 10 10 | 
             
              };
         | 
| 11 11 | 
             
              const e = document.createElement("script");
         | 
| 12 | 
            -
              e.src =  | 
| 13 | 
            -
              const [ | 
| 14 | 
            -
              return  | 
| 15 | 
            -
            },  | 
| 16 | 
            -
              const e = "https://cdn.jsdelivr.net/npm/@revolugo/elements | 
| 17 | 
            -
              return new Promise(( | 
| 18 | 
            -
                if ( | 
| 19 | 
            -
                   | 
| 12 | 
            +
              e.src = o, e.type = "module", e.async = !1;
         | 
| 13 | 
            +
              const [t] = document.querySelectorAll("script");
         | 
| 14 | 
            +
              return t ? t?.parentNode?.insertBefore(e, t) : document.head.append(e), e;
         | 
| 15 | 
            +
            }, c = (o) => {
         | 
| 16 | 
            +
              const e = "https://cdn.jsdelivr.net/npm/@revolugo/elements@%V/dist/revolugo.min.js".replace("%V", "6.10.8"), t = [...document.querySelectorAll("script")].find((n) => n.src.includes(e));
         | 
| 17 | 
            +
              return new Promise((n) => {
         | 
| 18 | 
            +
                if (t) {
         | 
| 19 | 
            +
                  n(!0);
         | 
| 20 20 | 
             
                  return;
         | 
| 21 21 | 
             
                }
         | 
| 22 | 
            -
                 | 
| 23 | 
            -
                   | 
| 22 | 
            +
                s(e).addEventListener("load", () => {
         | 
| 23 | 
            +
                  n(!0);
         | 
| 24 24 | 
             
                });
         | 
| 25 25 | 
             
              });
         | 
| 26 26 | 
             
            };
         | 
| 27 | 
            -
             | 
| 27 | 
            +
            c().catch((o) => console.error(o));
         | 
| 28 28 | 
             
            //# sourceMappingURL=index.es.min.js.map
         | 
    
        package/dist/index.es.min.js.map
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            {"version":3,"file":"index.es.min.js","sources":["../../core/dist/index.script.js","../src/index.ts"],"sourcesContent":["const c = (o) => {\n  window.RevolugoElements = {\n    ...window.RevolugoElements,\n    ready: (s) => {\n      const  | 
| 1 | 
            +
            {"version":3,"file":"index.es.min.js","sources":["../../core/dist/index.script.js","../src/index.ts"],"sourcesContent":["const c = (o) => {\n  window.RevolugoElements = {\n    ...window.RevolugoElements,\n    ready: (s) => {\n      const n = window.RevolugoElements?._ready;\n      window.RevolugoElements._ready = () => {\n        n && n(), s();\n      };\n    }\n  };\n  const e = document.createElement(\"script\");\n  e.src = o, e.type = \"module\", e.async = !1;\n  const [t] = document.querySelectorAll(\"script\");\n  return t ? t?.parentNode?.insertBefore(e, t) : document.head.append(e), e;\n}, i = (o) => {\n  const t = (o ? process.env.ELEMENTS_NEXT_ENTRY_URL : \"https://cdn.jsdelivr.net/npm/@revolugo/elements@%V/dist/revolugo.min.js\").replace(\"%V\", \"6.10.8\"), n = [...document.querySelectorAll(\"script\")].find((r) => r.src.includes(t));\n  return new Promise((r) => {\n    if (n) {\n      r(!0);\n      return;\n    }\n    c(t).addEventListener(\"load\", () => {\n      r(!0);\n    });\n  });\n};\nexport {\n  c as injectScript,\n  i as loadScript\n};\n//# sourceMappingURL=index.script.js.map\n","import { loadScript } from '@revolugo/elements-core/script'\n\n// eslint-disable-next-line no-console\nloadScript().catch((error: unknown) => console.error(error))\n"],"names":["c","s","n","i","t","r","loadScript","error"],"mappings":"AAAA,MAAMA,IAAI,CAAC,MAAM;AACf,SAAO,mBAAmB;AAAA,IACxB,GAAG,OAAO;AAAA,IACV,OAAO,CAACC,MAAM;AACZ,YAAMC,IAAI,OAAO,kBAAkB;AACnC,aAAO,iBAAiB,SAAS,MAAM;AACrC,QAAAA,KAAKA,EAAC,GAAID,EAAC;AAAA,MACb;AAAA,IACF;AAAA,EACJ;AACE,QAAM,IAAI,SAAS,cAAc,QAAQ;AACzC,IAAE,MAAM,GAAG,EAAE,OAAO,UAAU,EAAE,QAAQ;AACxC,QAAM,CAAC,CAAC,IAAI,SAAS,iBAAiB,QAAQ;AAC9C,SAAO,IAAI,GAAG,YAAY,aAAa,GAAG,CAAC,IAAI,SAAS,KAAK,OAAO,CAAC,GAAG;AAC1E,GAAGE,IAAI,CAAC,MAAM;AACZ,QAAMC,IAA+C,0EAA2E,QAAQ,MAAM,QAAQ,GAAGF,IAAI,CAAC,GAAG,SAAS,iBAAiB,QAAQ,CAAC,EAAE,KAAK,CAACG,MAAMA,EAAE,IAAI,SAASD,CAAC,CAAC;AACnO,SAAO,IAAI,QAAQ,CAACC,MAAM;AACxB,QAAIH,GAAG;AACL,MAAAG,EAAE,EAAE;AACJ;AAAA,IACF;AACA,IAAAL,EAAEI,CAAC,EAAE,iBAAiB,QAAQ,MAAM;AAClC,MAAAC,EAAE,EAAE;AAAA,IACN,CAAC;AAAA,EACH,CAAC;AACH;ACtBAC,EAAA,EAAa,MAAM,CAACC,MAAmB,QAAQ,MAAMA,CAAK,CAAC;"}
         | 
    
        package/dist/index.min.js
    CHANGED
    
    | @@ -1,2 +1,2 @@ | |
| 1 | 
            -
            (function(o){typeof define=="function"&&define.amd?define(o):o()})((function(){"use strict";const o=r=>{window.RevolugoElements={...window.RevolugoElements,ready:n=>{const c=window.RevolugoElements?._ready;window.RevolugoElements._ready=()=>{c&&c(),n()}}};const e=document.createElement("script");e.src=r,e.type="module",e.async=!1;const[t]=document.querySelectorAll("script");return t?t?.parentNode?.insertBefore(e,t):document.head.append(e),e};(r=>{const e="https://cdn.jsdelivr.net/npm/@revolugo/elements | 
| 1 | 
            +
            (function(o){typeof define=="function"&&define.amd?define(o):o()})((function(){"use strict";const o=r=>{window.RevolugoElements={...window.RevolugoElements,ready:n=>{const c=window.RevolugoElements?._ready;window.RevolugoElements._ready=()=>{c&&c(),n()}}};const e=document.createElement("script");e.src=r,e.type="module",e.async=!1;const[t]=document.querySelectorAll("script");return t?t?.parentNode?.insertBefore(e,t):document.head.append(e),e};(r=>{const e="https://cdn.jsdelivr.net/npm/@revolugo/elements@%V/dist/revolugo.min.js".replace("%V","6.10.8"),t=[...document.querySelectorAll("script")].find(n=>n.src.includes(e));return new Promise(n=>{if(t){n(!0);return}o(e).addEventListener("load",()=>{n(!0)})})})().catch(r=>console.error(r))}));
         | 
| 2 2 | 
             
            //# sourceMappingURL=index.min.js.map
         | 
    
        package/dist/index.min.js.map
    CHANGED
    
    | @@ -1 +1 @@ | |
| 1 | 
            -
            {"version":3,"file":"index.min.js","sources":["../../core/dist/index.script.js","../src/index.ts"],"sourcesContent":["const c = (o) => {\n  window.RevolugoElements = {\n    ...window.RevolugoElements,\n    ready: (s) => {\n      const  | 
| 1 | 
            +
            {"version":3,"file":"index.min.js","sources":["../../core/dist/index.script.js","../src/index.ts"],"sourcesContent":["const c = (o) => {\n  window.RevolugoElements = {\n    ...window.RevolugoElements,\n    ready: (s) => {\n      const n = window.RevolugoElements?._ready;\n      window.RevolugoElements._ready = () => {\n        n && n(), s();\n      };\n    }\n  };\n  const e = document.createElement(\"script\");\n  e.src = o, e.type = \"module\", e.async = !1;\n  const [t] = document.querySelectorAll(\"script\");\n  return t ? t?.parentNode?.insertBefore(e, t) : document.head.append(e), e;\n}, i = (o) => {\n  const t = (o ? process.env.ELEMENTS_NEXT_ENTRY_URL : \"https://cdn.jsdelivr.net/npm/@revolugo/elements@%V/dist/revolugo.min.js\").replace(\"%V\", \"6.10.8\"), n = [...document.querySelectorAll(\"script\")].find((r) => r.src.includes(t));\n  return new Promise((r) => {\n    if (n) {\n      r(!0);\n      return;\n    }\n    c(t).addEventListener(\"load\", () => {\n      r(!0);\n    });\n  });\n};\nexport {\n  c as injectScript,\n  i as loadScript\n};\n//# sourceMappingURL=index.script.js.map\n","import { loadScript } from '@revolugo/elements-core/script'\n\n// eslint-disable-next-line no-console\nloadScript().catch((error: unknown) => console.error(error))\n"],"names":["c","o","s","n","t","r","error"],"mappings":"4FAAA,MAAMA,EAAKC,GAAM,CACf,OAAO,iBAAmB,CACxB,GAAG,OAAO,iBACV,MAAQC,GAAM,CACZ,MAAMC,EAAI,OAAO,kBAAkB,OACnC,OAAO,iBAAiB,OAAS,IAAM,CACrCA,GAAKA,EAAC,EAAID,EAAC,CACb,CACF,CACJ,EACE,MAAM,EAAI,SAAS,cAAc,QAAQ,EACzC,EAAE,IAAMD,EAAG,EAAE,KAAO,SAAU,EAAE,MAAQ,GACxC,KAAM,CAAC,CAAC,EAAI,SAAS,iBAAiB,QAAQ,EAC9C,OAAO,EAAI,GAAG,YAAY,aAAa,EAAG,CAAC,EAAI,SAAS,KAAK,OAAO,CAAC,EAAG,CAC1E,GAAQA,GAAM,CACZ,MAAMG,EAA+C,0EAA2E,QAAQ,KAAM,QAAQ,EAAGD,EAAI,CAAC,GAAG,SAAS,iBAAiB,QAAQ,CAAC,EAAE,KAAME,GAAMA,EAAE,IAAI,SAASD,CAAC,CAAC,EACnO,OAAO,IAAI,QAASC,GAAM,CACxB,GAAIF,EAAG,CACLE,EAAE,EAAE,EACJ,MACF,CACAL,EAAEI,CAAC,EAAE,iBAAiB,OAAQ,IAAM,CAClCC,EAAE,EAAE,CACN,CAAC,CACH,CAAC,CACH,GCtBA,EAAa,MAAOC,GAAmB,QAAQ,MAAMA,CAAK,CAAC"}
         |