@encatch/web-sdk 0.0.16 → 0.0.18
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as fa, x as Sv, k as lp, t as $v, u as Ds } from "./module-
|
|
1
|
+
import { l as fa, x as Sv, k as lp, t as $v, u as Ds } from "./module-M0aRX16H.js";
|
|
2
2
|
var os, Ot, yc, yd, ss = 0, up = [], Ut = fa, _d = Ut.__b, xd = Ut.__r, kd = Ut.diffed, Sd = Ut.__c, $d = Ut.unmount, Td = Ut.__;
|
|
3
3
|
function Vl(e, t) {
|
|
4
4
|
Ut.__h && Ut.__h(Ot, e, ss || t), ss = 0;
|
|
@@ -21350,7 +21350,7 @@ function aM(e, t) {
|
|
|
21350
21350
|
}
|
|
21351
21351
|
return j(R), wr(R, (x) => b(O, x), () => l(O)), N(e, R), Ve(U);
|
|
21352
21352
|
}
|
|
21353
|
-
lb(
|
|
21353
|
+
customElements.define("encatch-app", lb(
|
|
21354
21354
|
aM,
|
|
21355
21355
|
{
|
|
21356
21356
|
theme: {},
|
|
@@ -21378,7 +21378,7 @@ lb(
|
|
|
21378
21378
|
[],
|
|
21379
21379
|
[],
|
|
21380
21380
|
!0
|
|
21381
|
-
);
|
|
21381
|
+
));
|
|
21382
21382
|
var cM = /* @__PURE__ */ ne("<div><!></div>");
|
|
21383
21383
|
function Bb(e, t) {
|
|
21384
21384
|
Qe(t, !1);
|
|
@@ -21534,7 +21534,7 @@ function Bb(e, t) {
|
|
|
21534
21534
|
}
|
|
21535
21535
|
}), j(L), wr(L, (C) => b(S, C), () => l(S)), N(e, L), Ve(F);
|
|
21536
21536
|
}
|
|
21537
|
-
lb(
|
|
21537
|
+
customElements.define("encatch-form", lb(
|
|
21538
21538
|
Bb,
|
|
21539
21539
|
{
|
|
21540
21540
|
themeMode: {},
|
|
@@ -21555,7 +21555,7 @@ lb(
|
|
|
21555
21555
|
[],
|
|
21556
21556
|
[],
|
|
21557
21557
|
!0
|
|
21558
|
-
);
|
|
21558
|
+
));
|
|
21559
21559
|
const lM = Bb, uM = ({
|
|
21560
21560
|
apiKey: e,
|
|
21561
21561
|
hostUrl: t
|
|
@@ -24043,11 +24043,7 @@ const eO = () => {
|
|
|
24043
24043
|
successMsg: u
|
|
24044
24044
|
};
|
|
24045
24045
|
}, al = "encatch_app_user";
|
|
24046
|
-
|
|
24047
|
-
customElements.get("encatch-form") || customElements.define("encatch-form", lM);
|
|
24048
|
-
} catch (e) {
|
|
24049
|
-
e?.message?.includes("already been used") || e?.message?.includes("has already been defined") || console.debug("Custom element registration error:", e);
|
|
24050
|
-
}
|
|
24046
|
+
customElements.get("encatch-form") || customElements.define("encatch-form", lM);
|
|
24051
24047
|
const lO = () => {
|
|
24052
24048
|
const [e, t] = Fe(window.encatch.apiKey), [r, n] = Fe({
|
|
24053
24049
|
host: window.encatch.config.host,
|
|
@@ -319,7 +319,7 @@ async function Ee() {
|
|
|
319
319
|
if (!(te || typeof window > "u" || typeof document > "u")) {
|
|
320
320
|
te = !0;
|
|
321
321
|
try {
|
|
322
|
-
const { render: t } = await Promise.resolve().then(() => be), e = (await import("./core-wrapper-
|
|
322
|
+
const { render: t } = await Promise.resolve().then(() => be), e = (await import("./core-wrapper-CQ0WhLhZ.js")).default;
|
|
323
323
|
if (typeof document > "u") return;
|
|
324
324
|
let n = document.getElementById("enisght-root");
|
|
325
325
|
!n && document.body && (n = document.createElement("div"), n.id = "enisght-root", document.body.appendChild(n)), n && t(/* @__PURE__ */ Se(e, {}), n);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@encatch/web-sdk",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"description": "A powerful, lightweight JavaScript SDK for collecting user feedback and running surveys on web applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist-sdk/plugin/sdk/module.js",
|