@encatch/web-sdk 0.0.15 → 0.0.16
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-BxBicJ4d.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;
|
|
@@ -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
|
-
|
|
21537
|
+
lb(
|
|
21538
21538
|
Bb,
|
|
21539
21539
|
{
|
|
21540
21540
|
themeMode: {},
|
|
@@ -21555,7 +21555,7 @@ customElements.define("encatch-form", 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,7 +24043,11 @@ const eO = () => {
|
|
|
24043
24043
|
successMsg: u
|
|
24044
24044
|
};
|
|
24045
24045
|
}, al = "encatch_app_user";
|
|
24046
|
-
|
|
24046
|
+
try {
|
|
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
|
+
}
|
|
24047
24051
|
const lO = () => {
|
|
24048
24052
|
const [e, t] = Fe(window.encatch.apiKey), [r, n] = Fe({
|
|
24049
24053
|
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-B4-XISY9.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.16",
|
|
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",
|