@revolugo/elements 7.19.0-rc.3 → 7.19.0
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 +1 -1
- 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 +3 -3
package/dist/index.es.min.js
CHANGED
|
@@ -20,7 +20,7 @@ var a = class extends Error {
|
|
|
20
20
|
}, E = (t, e) => {
|
|
21
21
|
let r = t ? "ELEMENTS_NEXT_ENTRY_URL" : "ELEMENTS_ENTRY_URL", n = process.env[r];
|
|
22
22
|
if (!n) throw new a("Missing elements entry URL env var", { envVar: r });
|
|
23
|
-
let o = e || "7.19.0
|
|
23
|
+
let o = e || "7.19.0", s = o ? n.replace("7.19.0", o) : n, c = [...document.querySelectorAll("script")].find((l) => l.src.includes(s));
|
|
24
24
|
return new Promise((l) => {
|
|
25
25
|
if (c) {
|
|
26
26
|
l(!0);
|
package/dist/index.es.min.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.min.js","names":[],"sources":["../../core/dist/index.script.js","../src/index.ts"],"sourcesContent":["//#region ../../../shared/common/src/errors/contextual-error.ts\nvar e = class extends Error {\n\tcontext;\n\tconstructor(e, t = {}) {\n\t\tsuper(e), this.name = \"ContextualError\", this.context = t;\n\t}\n}, t = (e) => {\n\twindow.RevolugoElements = {\n\t\t...window.RevolugoElements,\n\t\tready: (e) => {\n\t\t\tlet t = window.RevolugoElements?._ready;\n\t\t\twindow.RevolugoElements._ready = () => {\n\t\t\t\tt && t(), e();\n\t\t\t};\n\t\t}\n\t};\n\tlet t = document.createElement(\"script\");\n\tt.src = e, t.type = \"module\", t.async = !1;\n\tlet [n] = document.querySelectorAll(\"script\");\n\treturn n ? n?.parentNode?.insertBefore(t, n) : document.head.append(t), t;\n}, n = (n, r) => {\n\tlet i = n ? \"ELEMENTS_NEXT_ENTRY_URL\" : \"ELEMENTS_ENTRY_URL\", a = process.env[i];\n\tif (!a) throw new e(\"Missing elements entry URL env var\", { envVar: i });\n\tlet o = r || \"7.19.0
|
|
1
|
+
{"version":3,"file":"index.es.min.js","names":[],"sources":["../../core/dist/index.script.js","../src/index.ts"],"sourcesContent":["//#region ../../../shared/common/src/errors/contextual-error.ts\nvar e = class extends Error {\n\tcontext;\n\tconstructor(e, t = {}) {\n\t\tsuper(e), this.name = \"ContextualError\", this.context = t;\n\t}\n}, t = (e) => {\n\twindow.RevolugoElements = {\n\t\t...window.RevolugoElements,\n\t\tready: (e) => {\n\t\t\tlet t = window.RevolugoElements?._ready;\n\t\t\twindow.RevolugoElements._ready = () => {\n\t\t\t\tt && t(), e();\n\t\t\t};\n\t\t}\n\t};\n\tlet t = document.createElement(\"script\");\n\tt.src = e, t.type = \"module\", t.async = !1;\n\tlet [n] = document.querySelectorAll(\"script\");\n\treturn n ? n?.parentNode?.insertBefore(t, n) : document.head.append(t), t;\n}, n = (n, r) => {\n\tlet i = n ? \"ELEMENTS_NEXT_ENTRY_URL\" : \"ELEMENTS_ENTRY_URL\", a = process.env[i];\n\tif (!a) throw new e(\"Missing elements entry URL env var\", { envVar: i });\n\tlet o = r || \"7.19.0\", s = o ? a.replace(\"7.19.0\", o) : a, c = [...document.querySelectorAll(\"script\")].find((e) => e.src.includes(s));\n\treturn new Promise((e) => {\n\t\tif (c) {\n\t\t\te(!0);\n\t\t\treturn;\n\t\t}\n\t\tt(s).addEventListener(\"load\", () => {\n\t\t\te(!0);\n\t\t});\n\t});\n};\n//#endregion\nexport { t as injectScript, n as loadScript };\n\n//# sourceMappingURL=index.script.js.map","import { loadScript } from '@revolugo/elements-core/script'\n\n// eslint-disable-next-line no-console\nloadScript().catch((error: unknown) => console.error(error))\n"],"mappings":"AACA,IAAI,IAAI,cAAc,MAAM;AAAA,EAC3B;AAAA,EACA,YAAY,GAAG,IAAI,CAAC,GAAG;AACtB,UAAM,CAAC,GAAG,KAAK,OAAO,mBA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l=class extends Error{context;constructor(n,e={}){super(n),this.name="ContextualError",this.context=e}},d=n=>{window.RevolugoElements={...window.RevolugoElements,ready:r=>{let o=window.RevolugoElements?._ready;window.RevolugoElements._ready=()=>{o&&o(),r()}}};let e=document.createElement("script");e.src=n,e.type="module",e.async=!1;let[t]=document.querySelectorAll("script");return t?t?.parentNode?.insertBefore(e,t):document.head.append(e),e},i=(n,e)=>{let t=n?"ELEMENTS_NEXT_ENTRY_URL":"ELEMENTS_ENTRY_URL",r=process.env[t];if(!r)throw new l("Missing elements entry URL env var",{envVar:t});let o=e||"7.19.0
|
|
1
|
+
(function(l){typeof define=="function"&&define.amd?define([],l):l()})(function(){var l=class extends Error{context;constructor(n,e={}){super(n),this.name="ContextualError",this.context=e}},d=n=>{window.RevolugoElements={...window.RevolugoElements,ready:r=>{let o=window.RevolugoElements?._ready;window.RevolugoElements._ready=()=>{o&&o(),r()}}};let e=document.createElement("script");e.src=n,e.type="module",e.async=!1;let[t]=document.querySelectorAll("script");return t?t?.parentNode?.insertBefore(e,t):document.head.append(e),e},i=(n,e)=>{let t=n?"ELEMENTS_NEXT_ENTRY_URL":"ELEMENTS_ENTRY_URL",r=process.env[t];if(!r)throw new l("Missing elements entry URL env var",{envVar:t});let o=e||"7.19.0",c=o?r.replace("7.19.0",o):r,a=[...document.querySelectorAll("script")].find(s=>s.src.includes(c));return new Promise(s=>{if(a){s(!0);return}d(c).addEventListener("load",()=>{s(!0)})})};i().catch(n=>console.error(n))});
|
|
2
2
|
|
|
3
3
|
//# sourceMappingURL=index.min.js.map
|
package/dist/index.min.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.min.js","names":[],"sources":["../../core/dist/index.script.js","../src/index.ts"],"sourcesContent":["//#region ../../../shared/common/src/errors/contextual-error.ts\nvar e = class extends Error {\n\tcontext;\n\tconstructor(e, t = {}) {\n\t\tsuper(e), this.name = \"ContextualError\", this.context = t;\n\t}\n}, t = (e) => {\n\twindow.RevolugoElements = {\n\t\t...window.RevolugoElements,\n\t\tready: (e) => {\n\t\t\tlet t = window.RevolugoElements?._ready;\n\t\t\twindow.RevolugoElements._ready = () => {\n\t\t\t\tt && t(), e();\n\t\t\t};\n\t\t}\n\t};\n\tlet t = document.createElement(\"script\");\n\tt.src = e, t.type = \"module\", t.async = !1;\n\tlet [n] = document.querySelectorAll(\"script\");\n\treturn n ? n?.parentNode?.insertBefore(t, n) : document.head.append(t), t;\n}, n = (n, r) => {\n\tlet i = n ? \"ELEMENTS_NEXT_ENTRY_URL\" : \"ELEMENTS_ENTRY_URL\", a = process.env[i];\n\tif (!a) throw new e(\"Missing elements entry URL env var\", { envVar: i });\n\tlet o = r || \"7.19.0
|
|
1
|
+
{"version":3,"file":"index.min.js","names":[],"sources":["../../core/dist/index.script.js","../src/index.ts"],"sourcesContent":["//#region ../../../shared/common/src/errors/contextual-error.ts\nvar e = class extends Error {\n\tcontext;\n\tconstructor(e, t = {}) {\n\t\tsuper(e), this.name = \"ContextualError\", this.context = t;\n\t}\n}, t = (e) => {\n\twindow.RevolugoElements = {\n\t\t...window.RevolugoElements,\n\t\tready: (e) => {\n\t\t\tlet t = window.RevolugoElements?._ready;\n\t\t\twindow.RevolugoElements._ready = () => {\n\t\t\t\tt && t(), e();\n\t\t\t};\n\t\t}\n\t};\n\tlet t = document.createElement(\"script\");\n\tt.src = e, t.type = \"module\", t.async = !1;\n\tlet [n] = document.querySelectorAll(\"script\");\n\treturn n ? n?.parentNode?.insertBefore(t, n) : document.head.append(t), t;\n}, n = (n, r) => {\n\tlet i = n ? \"ELEMENTS_NEXT_ENTRY_URL\" : \"ELEMENTS_ENTRY_URL\", a = process.env[i];\n\tif (!a) throw new e(\"Missing elements entry URL env var\", { envVar: i });\n\tlet o = r || \"7.19.0\", s = o ? a.replace(\"7.19.0\", o) : a, c = [...document.querySelectorAll(\"script\")].find((e) => e.src.includes(s));\n\treturn new Promise((e) => {\n\t\tif (c) {\n\t\t\te(!0);\n\t\t\treturn;\n\t\t}\n\t\tt(s).addEventListener(\"load\", () => {\n\t\t\te(!0);\n\t\t});\n\t});\n};\n//#endregion\nexport { t as injectScript, n as loadScript };\n\n//# sourceMappingURL=index.script.js.map","import { loadScript } from '@revolugo/elements-core/script'\n\n// eslint-disable-next-line no-console\nloadScript().catch((error: unknown) => console.error(error))\n"],"mappings":"iFACA,IAAI,EAAI,cAAc,KAAM,CAC3B,QACA,YAAY,EAAG,EAAI,CAAC,EAAG,CACtB,MAAM,CAAC,EAAG,KAAK,KAAO,kBAAmB,KAAK,QAAU,CACzD,CACD,EAAG,EAAK,GAAM,CACb,OAAO,iBAAmB,CACzB,GAAG,OAAO,iBACV,MAAQ,GAAM,CACb,IAAI,EAAI,OAAO,kBAAkB,OACjC,OAAO,iBAAiB,OAAA,IAAe,CACtC,GAAK,EAAE,EAAG,EAAE,CACb,CACD,CACD,EACA,IAAI,EAAI,SAAS,cAAc,QAAQ,EACvC,EAAE,IAAM,EAAG,EAAE,KAAO,SAAU,EAAE,MAAQ,GACxC,GAAI,CAAC,CAAA,EAAK,SAAS,iBAAiB,QAAQ,EAC5C,OAAO,EAAI,GAAG,YAAY,aAAa,EAAG,CAAC,EAAI,SAAS,KAAK,OAAO,CAAC,EAAG,CACzE,EAAG,EAAA,CAAK,EAAG,IAAM,CAChB,IAAI,EAAI,EAAI,0BAA4B,qBAAsB,EAAI,QAAQ,IAAI,CAAA,EAC9E,GAAI,CAAC,EAAG,MAAM,IAAI,EAAE,qCAAsC,CAAE,OAAQ,CAAE,CAAC,EACvE,IAAI,EAAI,GAAK,0BAA2B,EAAI,EAAI,EAAE,QAAQ,0BAA2B,CAAC,EAAI,EAAG,EAAI,CAAC,GAAG,SAAS,iBAAiB,QAAQ,CAAC,EAAE,KAAM,GAAM,EAAE,IAAI,SAAS,CAAC,CAAC,EACvK,OAAO,IAAI,QAAS,GAAM,CACzB,GAAI,EAAG,CACN,EAAE,EAAE,EACJ,MACD,CACA,EAAE,CAAC,EAAE,iBAAiB,OAAA,IAAc,CACnC,EAAE,EAAE,CACL,CAAC,CACF,CAAC,CACF,EC9BA,EAAW,EAAE,MAAO,GAAmB,QAAQ,MAAM,CAAK,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revolugo/elements",
|
|
3
|
-
"version": "7.19.0
|
|
3
|
+
"version": "7.19.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Revolugo Elements UI library",
|
|
6
6
|
"author": "Revolugo",
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
18
|
"@revolugo/booking-api-client": "7.19.0",
|
|
19
|
+
"@revolugo/common": "7.19.0",
|
|
19
20
|
"@revolugo/elements-core": "7.19.0",
|
|
20
|
-
"@revolugo/elements-documentation": "7.19.0"
|
|
21
|
-
"@revolugo/common": "7.19.0"
|
|
21
|
+
"@revolugo/elements-documentation": "7.19.0"
|
|
22
22
|
},
|
|
23
23
|
"engines": {
|
|
24
24
|
"node": ">=26.4.0 <27"
|