@commentkit/comment-kit 0.6.4 → 0.6.6
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/CHANGELOG.md +12 -0
- package/dist/angular/{comment-kit-ui-DlWdgxZJ.js → comment-kit-ui-D8YIOzCe.js} +2 -2
- package/dist/angular/mount-ui-CFdFsqXl.js +72 -0
- package/dist/angular.es.js +3 -3
- package/dist/comment-kit.es.js +3 -3
- package/dist/core/{comment-kit-ui-CwoXDJXR.js → comment-kit-ui-CYYImlEM.js} +2 -2
- package/dist/core/mount-ui-BULAlAAF.js +72 -0
- package/dist/preact/{comment-kit-ui-CIeAiL3D.js → comment-kit-ui-fCVNh5Gq.js} +2 -2
- package/dist/preact/mount-ui-rOHCwIhK.js +72 -0
- package/dist/preact.es.js +3 -3
- package/dist/qwik/{comment-kit-ui-CT3GZ8ry.js → comment-kit-ui-BVoctltC.js} +2 -2
- package/dist/qwik/mount-ui-DsGe8vVw.js +72 -0
- package/dist/qwik.es.js +3 -3
- package/dist/react.es.js +4 -4
- package/dist/solid/{comment-kit-ui-BXcJmq6H.js → comment-kit-ui-CnlHcwzZ.js} +2 -2
- package/dist/solid/mount-ui-D15-Kp1w.js +72 -0
- package/dist/solid.es.js +3 -3
- package/dist/svelte/{comment-kit-ui-C-8rQmBN.js → comment-kit-ui-BFWous-b.js} +2 -2
- package/dist/svelte/mount-ui-7Uc8joAI.js +72 -0
- package/dist/svelte.es.js +3 -3
- package/dist/vue/{comment-kit-ui-Cq30Cmvs.js → comment-kit-ui-oPTLTwxG.js} +2 -2
- package/dist/vue/mount-ui-CG9QrYe9.js +72 -0
- package/dist/vue.es.js +3 -3
- package/package.json +1 -1
- package/dist/angular/mount-ui-Q_U4OkMo.js +0 -55
- package/dist/core/mount-ui-D-pILMLR.js +0 -55
- package/dist/preact/mount-ui-8BL4DWNw.js +0 -55
- package/dist/qwik/mount-ui-DQ22eQbu.js +0 -55
- package/dist/solid/mount-ui-DmrWIA8O.js +0 -55
- package/dist/svelte/mount-ui-CDgJuoAF.js +0 -55
- package/dist/vue/mount-ui-Dqz0_jd_.js +0 -55
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.6.6] - 2026-10-11
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- The widget mounts in Vue and other Vite apps whose optimizer exposes React only as a default export.
|
|
15
|
+
|
|
16
|
+
## [0.6.5] - 2026-10-11
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- The comments panel shows Log out only after a successful sign-in.
|
|
21
|
+
|
|
10
22
|
## [0.6.4] - 2026-10-11
|
|
11
23
|
|
|
12
24
|
### Changed
|
|
@@ -17723,9 +17723,9 @@ function iS({ core: e, state: t }) {
|
|
|
17723
17723
|
onSaveEdit: async (t, n) => {
|
|
17724
17724
|
nS(await Vx(e, t, n));
|
|
17725
17725
|
},
|
|
17726
|
-
onLogout: () => {
|
|
17726
|
+
onLogout: t.isAuthenticated ? () => {
|
|
17727
17727
|
e.logout();
|
|
17728
|
-
}
|
|
17728
|
+
} : void 0
|
|
17729
17729
|
}) : null] });
|
|
17730
17730
|
}
|
|
17731
17731
|
var aS = {
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
function e(e, t) {
|
|
2
|
+
try {
|
|
3
|
+
return e[t];
|
|
4
|
+
} catch {
|
|
5
|
+
return;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
function t(t, n) {
|
|
9
|
+
let r = e(t, n);
|
|
10
|
+
if (typeof r == "function") return r;
|
|
11
|
+
let i = e(t, "default");
|
|
12
|
+
if (i && typeof i == "object") {
|
|
13
|
+
let e = i[n];
|
|
14
|
+
if (typeof e == "function") return e;
|
|
15
|
+
}
|
|
16
|
+
throw TypeError(`React module did not provide ${n}`);
|
|
17
|
+
}
|
|
18
|
+
function n(e) {
|
|
19
|
+
let t = e;
|
|
20
|
+
if (!t || typeof t.getState != "function" || typeof t.on != "function") throw TypeError("CommentKit UI requires a valid CommentKitCore instance");
|
|
21
|
+
}
|
|
22
|
+
function r() {
|
|
23
|
+
if (typeof document > "u" || !document.body) throw Error("CommentKit UI requires a browser document body");
|
|
24
|
+
return document.body;
|
|
25
|
+
}
|
|
26
|
+
function i(e) {
|
|
27
|
+
return typeof e == "function";
|
|
28
|
+
}
|
|
29
|
+
async function a(e) {
|
|
30
|
+
n(e);
|
|
31
|
+
let a = await import("react"), o = await import("react-dom/client"), s = t(a, "createElement"), c = t(o, "createRoot"), { default: l } = await import("./styles-CmEq782M.js"), { ShadowContainer: u } = await import("./shadow-root-C7wgghDv.js"), { ErrorBoundary: d } = await import("./error-boundary-CxhCm8iF.js"), { CommentKitUI: f } = await import("./comment-kit-ui-D8YIOzCe.js"), p = typeof e.getConfig == "function" ? e.getConfig() : void 0, m = u, h = d, g = r();
|
|
32
|
+
if (g.querySelector("[data-commentkit], [data-commentkit-host]")) return console.warn("[CommentKit] UI is already mounted on this page — skipping duplicate mount. Destroy the existing instance first if you need to remount."), { unmount() {} };
|
|
33
|
+
let _ = document.createElement("div");
|
|
34
|
+
_.setAttribute("data-commentkit", ""), g.appendChild(_);
|
|
35
|
+
let v = !0, y = null, b = null, x = () => {
|
|
36
|
+
if (v = !1, b) {
|
|
37
|
+
try {
|
|
38
|
+
b();
|
|
39
|
+
} catch {}
|
|
40
|
+
b = null;
|
|
41
|
+
}
|
|
42
|
+
if (y) {
|
|
43
|
+
try {
|
|
44
|
+
y.unmount();
|
|
45
|
+
} catch {}
|
|
46
|
+
y = null;
|
|
47
|
+
}
|
|
48
|
+
_.remove();
|
|
49
|
+
}, S = (t) => {
|
|
50
|
+
if (!v || !y) return;
|
|
51
|
+
let n = s(f, {
|
|
52
|
+
core: e,
|
|
53
|
+
state: t
|
|
54
|
+
}), r = s(m, {
|
|
55
|
+
styles: l,
|
|
56
|
+
config: p
|
|
57
|
+
}, n);
|
|
58
|
+
y.render(s(h, null, r));
|
|
59
|
+
};
|
|
60
|
+
try {
|
|
61
|
+
y = c(_), S(e.getState());
|
|
62
|
+
let t = e.on("state:changed", S);
|
|
63
|
+
if (!i(t)) throw TypeError("CommentKit core subscription did not return an unsubscribe function");
|
|
64
|
+
b = t;
|
|
65
|
+
} catch (e) {
|
|
66
|
+
throw x(), e;
|
|
67
|
+
}
|
|
68
|
+
return { unmount() {
|
|
69
|
+
x();
|
|
70
|
+
} };
|
|
71
|
+
}
|
|
72
|
+
export { a as mountCommentKitUI };
|
package/dist/angular.es.js
CHANGED
|
@@ -2730,7 +2730,7 @@ var Z = typeof window < "u", xi = new Set([
|
|
|
2730
2730
|
"screenshot",
|
|
2731
2731
|
"select",
|
|
2732
2732
|
null
|
|
2733
|
-
]), Ci = 256, wi = "0.6.
|
|
2733
|
+
]), Ci = 256, wi = "0.6.6";
|
|
2734
2734
|
function Ti(e) {
|
|
2735
2735
|
let t = e.trim().match(/^v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:[-+].*)?$/);
|
|
2736
2736
|
return t ? [
|
|
@@ -2860,7 +2860,7 @@ var Oi = class extends le {
|
|
|
2860
2860
|
};
|
|
2861
2861
|
}
|
|
2862
2862
|
let n = e.project?.sdkLatestVersion;
|
|
2863
|
-
n && Di(n, "0.6.
|
|
2863
|
+
n && Di(n, "0.6.6") && (console.warn(`[CommentKit] You are using v${wi}. Update to v${n}: npm update @commentkit/comment-kit`), this.emit("sdk:outdated", {
|
|
2864
2864
|
current: wi,
|
|
2865
2865
|
latest: n
|
|
2866
2866
|
})), this.setState({
|
|
@@ -3602,7 +3602,7 @@ var $ = class {
|
|
|
3602
3602
|
}
|
|
3603
3603
|
async mountSharedUI(e, t, n) {
|
|
3604
3604
|
try {
|
|
3605
|
-
let { mountCommentKitUI: n } = await import("./angular/mount-ui-
|
|
3605
|
+
let { mountCommentKitUI: n } = await import("./angular/mount-ui-CFdFsqXl.js");
|
|
3606
3606
|
if (this.core !== e || this.lifecycleId !== t) return;
|
|
3607
3607
|
let r = await n(e);
|
|
3608
3608
|
if (this.core !== e || this.lifecycleId !== t) {
|
package/dist/comment-kit.es.js
CHANGED
|
@@ -2539,7 +2539,7 @@ var vi = typeof window < "u", yi = new Set([
|
|
|
2539
2539
|
"screenshot",
|
|
2540
2540
|
"select",
|
|
2541
2541
|
null
|
|
2542
|
-
]), xi = 256, Q = "0.6.
|
|
2542
|
+
]), xi = 256, Q = "0.6.6";
|
|
2543
2543
|
function Si(e) {
|
|
2544
2544
|
let t = e.trim().match(/^v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:[-+].*)?$/);
|
|
2545
2545
|
return t ? [
|
|
@@ -2669,7 +2669,7 @@ var Ti = class extends it {
|
|
|
2669
2669
|
};
|
|
2670
2670
|
}
|
|
2671
2671
|
let n = e.project?.sdkLatestVersion;
|
|
2672
|
-
n && wi(n, "0.6.
|
|
2672
|
+
n && wi(n, "0.6.6") && (console.warn(`[CommentKit] You are using v${Q}. Update to v${n}: npm update @commentkit/comment-kit`), this.emit("sdk:outdated", {
|
|
2673
2673
|
current: Q,
|
|
2674
2674
|
latest: n
|
|
2675
2675
|
})), this.setState({
|
|
@@ -3185,7 +3185,7 @@ var Ti = class extends it {
|
|
|
3185
3185
|
async mount() {
|
|
3186
3186
|
let e = this.core;
|
|
3187
3187
|
try {
|
|
3188
|
-
let { mountCommentKitUI: t } = await import("./core/mount-ui-
|
|
3188
|
+
let { mountCommentKitUI: t } = await import("./core/mount-ui-BULAlAAF.js");
|
|
3189
3189
|
if (this.destroyed) return;
|
|
3190
3190
|
let n = await t(e);
|
|
3191
3191
|
if (this.destroyed) {
|
|
@@ -17723,9 +17723,9 @@ function iS({ core: e, state: t }) {
|
|
|
17723
17723
|
onSaveEdit: async (t, n) => {
|
|
17724
17724
|
nS(await Vx(e, t, n));
|
|
17725
17725
|
},
|
|
17726
|
-
onLogout: () => {
|
|
17726
|
+
onLogout: t.isAuthenticated ? () => {
|
|
17727
17727
|
e.logout();
|
|
17728
|
-
}
|
|
17728
|
+
} : void 0
|
|
17729
17729
|
}) : null] });
|
|
17730
17730
|
}
|
|
17731
17731
|
var aS = {
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
function e(e, t) {
|
|
2
|
+
try {
|
|
3
|
+
return e[t];
|
|
4
|
+
} catch {
|
|
5
|
+
return;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
function t(t, n) {
|
|
9
|
+
let r = e(t, n);
|
|
10
|
+
if (typeof r == "function") return r;
|
|
11
|
+
let i = e(t, "default");
|
|
12
|
+
if (i && typeof i == "object") {
|
|
13
|
+
let e = i[n];
|
|
14
|
+
if (typeof e == "function") return e;
|
|
15
|
+
}
|
|
16
|
+
throw TypeError(`React module did not provide ${n}`);
|
|
17
|
+
}
|
|
18
|
+
function n(e) {
|
|
19
|
+
let t = e;
|
|
20
|
+
if (!t || typeof t.getState != "function" || typeof t.on != "function") throw TypeError("CommentKit UI requires a valid CommentKitCore instance");
|
|
21
|
+
}
|
|
22
|
+
function r() {
|
|
23
|
+
if (typeof document > "u" || !document.body) throw Error("CommentKit UI requires a browser document body");
|
|
24
|
+
return document.body;
|
|
25
|
+
}
|
|
26
|
+
function i(e) {
|
|
27
|
+
return typeof e == "function";
|
|
28
|
+
}
|
|
29
|
+
async function a(e) {
|
|
30
|
+
n(e);
|
|
31
|
+
let a = await import("react"), o = await import("react-dom/client"), s = t(a, "createElement"), c = t(o, "createRoot"), { default: l } = await import("./styles-Dzn_nEz7.js"), { ShadowContainer: u } = await import("./shadow-root-09zwHxly.js"), { ErrorBoundary: d } = await import("./error-boundary-CN_BGsYl.js"), { CommentKitUI: f } = await import("./comment-kit-ui-CYYImlEM.js"), p = typeof e.getConfig == "function" ? e.getConfig() : void 0, m = u, h = d, g = r();
|
|
32
|
+
if (g.querySelector("[data-commentkit], [data-commentkit-host]")) return console.warn("[CommentKit] UI is already mounted on this page — skipping duplicate mount. Destroy the existing instance first if you need to remount."), { unmount() {} };
|
|
33
|
+
let _ = document.createElement("div");
|
|
34
|
+
_.setAttribute("data-commentkit", ""), g.appendChild(_);
|
|
35
|
+
let v = !0, y = null, b = null, x = () => {
|
|
36
|
+
if (v = !1, b) {
|
|
37
|
+
try {
|
|
38
|
+
b();
|
|
39
|
+
} catch {}
|
|
40
|
+
b = null;
|
|
41
|
+
}
|
|
42
|
+
if (y) {
|
|
43
|
+
try {
|
|
44
|
+
y.unmount();
|
|
45
|
+
} catch {}
|
|
46
|
+
y = null;
|
|
47
|
+
}
|
|
48
|
+
_.remove();
|
|
49
|
+
}, S = (t) => {
|
|
50
|
+
if (!v || !y) return;
|
|
51
|
+
let n = s(f, {
|
|
52
|
+
core: e,
|
|
53
|
+
state: t
|
|
54
|
+
}), r = s(m, {
|
|
55
|
+
styles: l,
|
|
56
|
+
config: p
|
|
57
|
+
}, n);
|
|
58
|
+
y.render(s(h, null, r));
|
|
59
|
+
};
|
|
60
|
+
try {
|
|
61
|
+
y = c(_), S(e.getState());
|
|
62
|
+
let t = e.on("state:changed", S);
|
|
63
|
+
if (!i(t)) throw TypeError("CommentKit core subscription did not return an unsubscribe function");
|
|
64
|
+
b = t;
|
|
65
|
+
} catch (e) {
|
|
66
|
+
throw x(), e;
|
|
67
|
+
}
|
|
68
|
+
return { unmount() {
|
|
69
|
+
x();
|
|
70
|
+
} };
|
|
71
|
+
}
|
|
72
|
+
export { a as mountCommentKitUI };
|
|
@@ -17723,9 +17723,9 @@ function iS({ core: e, state: t }) {
|
|
|
17723
17723
|
onSaveEdit: async (t, n) => {
|
|
17724
17724
|
nS(await Vx(e, t, n));
|
|
17725
17725
|
},
|
|
17726
|
-
onLogout: () => {
|
|
17726
|
+
onLogout: t.isAuthenticated ? () => {
|
|
17727
17727
|
e.logout();
|
|
17728
|
-
}
|
|
17728
|
+
} : void 0
|
|
17729
17729
|
}) : null] });
|
|
17730
17730
|
}
|
|
17731
17731
|
var aS = {
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
function e(e, t) {
|
|
2
|
+
try {
|
|
3
|
+
return e[t];
|
|
4
|
+
} catch {
|
|
5
|
+
return;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
function t(t, n) {
|
|
9
|
+
let r = e(t, n);
|
|
10
|
+
if (typeof r == "function") return r;
|
|
11
|
+
let i = e(t, "default");
|
|
12
|
+
if (i && typeof i == "object") {
|
|
13
|
+
let e = i[n];
|
|
14
|
+
if (typeof e == "function") return e;
|
|
15
|
+
}
|
|
16
|
+
throw TypeError(`React module did not provide ${n}`);
|
|
17
|
+
}
|
|
18
|
+
function n(e) {
|
|
19
|
+
let t = e;
|
|
20
|
+
if (!t || typeof t.getState != "function" || typeof t.on != "function") throw TypeError("CommentKit UI requires a valid CommentKitCore instance");
|
|
21
|
+
}
|
|
22
|
+
function r() {
|
|
23
|
+
if (typeof document > "u" || !document.body) throw Error("CommentKit UI requires a browser document body");
|
|
24
|
+
return document.body;
|
|
25
|
+
}
|
|
26
|
+
function i(e) {
|
|
27
|
+
return typeof e == "function";
|
|
28
|
+
}
|
|
29
|
+
async function a(e) {
|
|
30
|
+
n(e);
|
|
31
|
+
let a = await import("react"), o = await import("react-dom/client"), s = t(a, "createElement"), c = t(o, "createRoot"), { default: l } = await import("./styles-ECCK6Z_C.js"), { ShadowContainer: u } = await import("./shadow-root-DAhpHo_W.js"), { ErrorBoundary: d } = await import("./error-boundary-B4-Bfy3g.js"), { CommentKitUI: f } = await import("./comment-kit-ui-fCVNh5Gq.js"), p = typeof e.getConfig == "function" ? e.getConfig() : void 0, m = u, h = d, g = r();
|
|
32
|
+
if (g.querySelector("[data-commentkit], [data-commentkit-host]")) return console.warn("[CommentKit] UI is already mounted on this page — skipping duplicate mount. Destroy the existing instance first if you need to remount."), { unmount() {} };
|
|
33
|
+
let _ = document.createElement("div");
|
|
34
|
+
_.setAttribute("data-commentkit", ""), g.appendChild(_);
|
|
35
|
+
let v = !0, y = null, b = null, x = () => {
|
|
36
|
+
if (v = !1, b) {
|
|
37
|
+
try {
|
|
38
|
+
b();
|
|
39
|
+
} catch {}
|
|
40
|
+
b = null;
|
|
41
|
+
}
|
|
42
|
+
if (y) {
|
|
43
|
+
try {
|
|
44
|
+
y.unmount();
|
|
45
|
+
} catch {}
|
|
46
|
+
y = null;
|
|
47
|
+
}
|
|
48
|
+
_.remove();
|
|
49
|
+
}, S = (t) => {
|
|
50
|
+
if (!v || !y) return;
|
|
51
|
+
let n = s(f, {
|
|
52
|
+
core: e,
|
|
53
|
+
state: t
|
|
54
|
+
}), r = s(m, {
|
|
55
|
+
styles: l,
|
|
56
|
+
config: p
|
|
57
|
+
}, n);
|
|
58
|
+
y.render(s(h, null, r));
|
|
59
|
+
};
|
|
60
|
+
try {
|
|
61
|
+
y = c(_), S(e.getState());
|
|
62
|
+
let t = e.on("state:changed", S);
|
|
63
|
+
if (!i(t)) throw TypeError("CommentKit core subscription did not return an unsubscribe function");
|
|
64
|
+
b = t;
|
|
65
|
+
} catch (e) {
|
|
66
|
+
throw x(), e;
|
|
67
|
+
}
|
|
68
|
+
return { unmount() {
|
|
69
|
+
x();
|
|
70
|
+
} };
|
|
71
|
+
}
|
|
72
|
+
export { a as mountCommentKitUI };
|
package/dist/preact.es.js
CHANGED
|
@@ -2728,7 +2728,7 @@ var $ = typeof window < "u", gi = new Set([
|
|
|
2728
2728
|
"screenshot",
|
|
2729
2729
|
"select",
|
|
2730
2730
|
null
|
|
2731
|
-
]), vi = 256, yi = "0.6.
|
|
2731
|
+
]), vi = 256, yi = "0.6.6";
|
|
2732
2732
|
function bi(e) {
|
|
2733
2733
|
let t = e.trim().match(/^v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:[-+].*)?$/);
|
|
2734
2734
|
return t ? [
|
|
@@ -2858,7 +2858,7 @@ var Ci = class extends ae {
|
|
|
2858
2858
|
};
|
|
2859
2859
|
}
|
|
2860
2860
|
let n = e.project?.sdkLatestVersion;
|
|
2861
|
-
n && Si(n, "0.6.
|
|
2861
|
+
n && Si(n, "0.6.6") && (console.warn(`[CommentKit] You are using v${yi}. Update to v${n}: npm update @commentkit/comment-kit`), this.emit("sdk:outdated", {
|
|
2862
2862
|
current: yi,
|
|
2863
2863
|
latest: n
|
|
2864
2864
|
})), this.setState({
|
|
@@ -3398,7 +3398,7 @@ function wi(e) {
|
|
|
3398
3398
|
}
|
|
3399
3399
|
}, d = async (e) => {
|
|
3400
3400
|
try {
|
|
3401
|
-
let { mountCommentKitUI: r } = await import("./preact/mount-ui-
|
|
3401
|
+
let { mountCommentKitUI: r } = await import("./preact/mount-ui-rOHCwIhK.js");
|
|
3402
3402
|
if (i || t.current !== e) return;
|
|
3403
3403
|
let a = await r(e);
|
|
3404
3404
|
if (i || t.current !== e) {
|
|
@@ -17723,9 +17723,9 @@ function iS({ core: e, state: t }) {
|
|
|
17723
17723
|
onSaveEdit: async (t, n) => {
|
|
17724
17724
|
nS(await Vx(e, t, n));
|
|
17725
17725
|
},
|
|
17726
|
-
onLogout: () => {
|
|
17726
|
+
onLogout: t.isAuthenticated ? () => {
|
|
17727
17727
|
e.logout();
|
|
17728
|
-
}
|
|
17728
|
+
} : void 0
|
|
17729
17729
|
}) : null] });
|
|
17730
17730
|
}
|
|
17731
17731
|
var aS = {
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
function e(e, t) {
|
|
2
|
+
try {
|
|
3
|
+
return e[t];
|
|
4
|
+
} catch {
|
|
5
|
+
return;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
function t(t, n) {
|
|
9
|
+
let r = e(t, n);
|
|
10
|
+
if (typeof r == "function") return r;
|
|
11
|
+
let i = e(t, "default");
|
|
12
|
+
if (i && typeof i == "object") {
|
|
13
|
+
let e = i[n];
|
|
14
|
+
if (typeof e == "function") return e;
|
|
15
|
+
}
|
|
16
|
+
throw TypeError(`React module did not provide ${n}`);
|
|
17
|
+
}
|
|
18
|
+
function n(e) {
|
|
19
|
+
let t = e;
|
|
20
|
+
if (!t || typeof t.getState != "function" || typeof t.on != "function") throw TypeError("CommentKit UI requires a valid CommentKitCore instance");
|
|
21
|
+
}
|
|
22
|
+
function r() {
|
|
23
|
+
if (typeof document > "u" || !document.body) throw Error("CommentKit UI requires a browser document body");
|
|
24
|
+
return document.body;
|
|
25
|
+
}
|
|
26
|
+
function i(e) {
|
|
27
|
+
return typeof e == "function";
|
|
28
|
+
}
|
|
29
|
+
async function a(e) {
|
|
30
|
+
n(e);
|
|
31
|
+
let a = await import("react"), o = await import("react-dom/client"), s = t(a, "createElement"), c = t(o, "createRoot"), { default: l } = await import("./styles-CMcDFAyE.js"), { ShadowContainer: u } = await import("./shadow-root-tLjXys-_.js"), { ErrorBoundary: d } = await import("./error-boundary-C4hlYQwS.js"), { CommentKitUI: f } = await import("./comment-kit-ui-BVoctltC.js"), p = typeof e.getConfig == "function" ? e.getConfig() : void 0, m = u, h = d, g = r();
|
|
32
|
+
if (g.querySelector("[data-commentkit], [data-commentkit-host]")) return console.warn("[CommentKit] UI is already mounted on this page — skipping duplicate mount. Destroy the existing instance first if you need to remount."), { unmount() {} };
|
|
33
|
+
let _ = document.createElement("div");
|
|
34
|
+
_.setAttribute("data-commentkit", ""), g.appendChild(_);
|
|
35
|
+
let v = !0, y = null, b = null, x = () => {
|
|
36
|
+
if (v = !1, b) {
|
|
37
|
+
try {
|
|
38
|
+
b();
|
|
39
|
+
} catch {}
|
|
40
|
+
b = null;
|
|
41
|
+
}
|
|
42
|
+
if (y) {
|
|
43
|
+
try {
|
|
44
|
+
y.unmount();
|
|
45
|
+
} catch {}
|
|
46
|
+
y = null;
|
|
47
|
+
}
|
|
48
|
+
_.remove();
|
|
49
|
+
}, S = (t) => {
|
|
50
|
+
if (!v || !y) return;
|
|
51
|
+
let n = s(f, {
|
|
52
|
+
core: e,
|
|
53
|
+
state: t
|
|
54
|
+
}), r = s(m, {
|
|
55
|
+
styles: l,
|
|
56
|
+
config: p
|
|
57
|
+
}, n);
|
|
58
|
+
y.render(s(h, null, r));
|
|
59
|
+
};
|
|
60
|
+
try {
|
|
61
|
+
y = c(_), S(e.getState());
|
|
62
|
+
let t = e.on("state:changed", S);
|
|
63
|
+
if (!i(t)) throw TypeError("CommentKit core subscription did not return an unsubscribe function");
|
|
64
|
+
b = t;
|
|
65
|
+
} catch (e) {
|
|
66
|
+
throw x(), e;
|
|
67
|
+
}
|
|
68
|
+
return { unmount() {
|
|
69
|
+
x();
|
|
70
|
+
} };
|
|
71
|
+
}
|
|
72
|
+
export { a as mountCommentKitUI };
|
package/dist/qwik.es.js
CHANGED
|
@@ -2728,7 +2728,7 @@ var gi = typeof window < "u", _i = new Set([
|
|
|
2728
2728
|
"screenshot",
|
|
2729
2729
|
"select",
|
|
2730
2730
|
null
|
|
2731
|
-
]), yi = 256, bi = "0.6.
|
|
2731
|
+
]), yi = 256, bi = "0.6.6";
|
|
2732
2732
|
function xi(e) {
|
|
2733
2733
|
let t = e.trim().match(/^v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:[-+].*)?$/);
|
|
2734
2734
|
return t ? [
|
|
@@ -2858,7 +2858,7 @@ var wi = class extends se {
|
|
|
2858
2858
|
};
|
|
2859
2859
|
}
|
|
2860
2860
|
let n = e.project?.sdkLatestVersion;
|
|
2861
|
-
n && Ci(n, "0.6.
|
|
2861
|
+
n && Ci(n, "0.6.6") && (console.warn(`[CommentKit] You are using v${bi}. Update to v${n}: npm update @commentkit/comment-kit`), this.emit("sdk:outdated", {
|
|
2862
2862
|
current: bi,
|
|
2863
2863
|
latest: n
|
|
2864
2864
|
})), this.setState({
|
|
@@ -3402,7 +3402,7 @@ function Ti(e) {
|
|
|
3402
3402
|
}
|
|
3403
3403
|
}, _ = async (e) => {
|
|
3404
3404
|
try {
|
|
3405
|
-
let { mountCommentKitUI: t } = await import("./qwik/mount-ui-
|
|
3405
|
+
let { mountCommentKitUI: t } = await import("./qwik/mount-ui-DsGe8vVw.js");
|
|
3406
3406
|
if (d || a.value !== e) return;
|
|
3407
3407
|
let n = await t(e);
|
|
3408
3408
|
if (d || a.value !== e) {
|
package/dist/react.es.js
CHANGED
|
@@ -2725,7 +2725,7 @@ var Vi = typeof window < "u", Hi = new Set([
|
|
|
2725
2725
|
"screenshot",
|
|
2726
2726
|
"select",
|
|
2727
2727
|
null
|
|
2728
|
-
]), Wi = 256, Gi = "0.6.
|
|
2728
|
+
]), Wi = 256, Gi = "0.6.6";
|
|
2729
2729
|
function Ki(e) {
|
|
2730
2730
|
let t = e.trim().match(/^v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:[-+].*)?$/);
|
|
2731
2731
|
return t ? [
|
|
@@ -2855,7 +2855,7 @@ var Yi = class extends H {
|
|
|
2855
2855
|
};
|
|
2856
2856
|
}
|
|
2857
2857
|
let n = e.project?.sdkLatestVersion;
|
|
2858
|
-
n && Ji(n, "0.6.
|
|
2858
|
+
n && Ji(n, "0.6.6") && (console.warn(`[CommentKit] You are using v${Gi}. Update to v${n}: npm update @commentkit/comment-kit`), this.emit("sdk:outdated", {
|
|
2859
2859
|
current: Gi,
|
|
2860
2860
|
latest: n
|
|
2861
2861
|
})), this.setState({
|
|
@@ -21085,9 +21085,9 @@ function CD({ core: e, state: t }) {
|
|
|
21085
21085
|
onSaveEdit: async (t, n) => {
|
|
21086
21086
|
xD(await oD(e, t, n));
|
|
21087
21087
|
},
|
|
21088
|
-
onLogout: () => {
|
|
21088
|
+
onLogout: t.isAuthenticated ? () => {
|
|
21089
21089
|
e.logout();
|
|
21090
|
-
}
|
|
21090
|
+
} : void 0
|
|
21091
21091
|
}) : null] });
|
|
21092
21092
|
}
|
|
21093
21093
|
var wD = class extends _.Component {
|
|
@@ -17723,9 +17723,9 @@ function iS({ core: e, state: t }) {
|
|
|
17723
17723
|
onSaveEdit: async (t, n) => {
|
|
17724
17724
|
nS(await Vx(e, t, n));
|
|
17725
17725
|
},
|
|
17726
|
-
onLogout: () => {
|
|
17726
|
+
onLogout: t.isAuthenticated ? () => {
|
|
17727
17727
|
e.logout();
|
|
17728
|
-
}
|
|
17728
|
+
} : void 0
|
|
17729
17729
|
}) : null] });
|
|
17730
17730
|
}
|
|
17731
17731
|
var aS = {
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
function e(e, t) {
|
|
2
|
+
try {
|
|
3
|
+
return e[t];
|
|
4
|
+
} catch {
|
|
5
|
+
return;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
function t(t, n) {
|
|
9
|
+
let r = e(t, n);
|
|
10
|
+
if (typeof r == "function") return r;
|
|
11
|
+
let i = e(t, "default");
|
|
12
|
+
if (i && typeof i == "object") {
|
|
13
|
+
let e = i[n];
|
|
14
|
+
if (typeof e == "function") return e;
|
|
15
|
+
}
|
|
16
|
+
throw TypeError(`React module did not provide ${n}`);
|
|
17
|
+
}
|
|
18
|
+
function n(e) {
|
|
19
|
+
let t = e;
|
|
20
|
+
if (!t || typeof t.getState != "function" || typeof t.on != "function") throw TypeError("CommentKit UI requires a valid CommentKitCore instance");
|
|
21
|
+
}
|
|
22
|
+
function r() {
|
|
23
|
+
if (typeof document > "u" || !document.body) throw Error("CommentKit UI requires a browser document body");
|
|
24
|
+
return document.body;
|
|
25
|
+
}
|
|
26
|
+
function i(e) {
|
|
27
|
+
return typeof e == "function";
|
|
28
|
+
}
|
|
29
|
+
async function a(e) {
|
|
30
|
+
n(e);
|
|
31
|
+
let a = await import("react"), o = await import("react-dom/client"), s = t(a, "createElement"), c = t(o, "createRoot"), { default: l } = await import("./styles-Be_8-1ZV.js"), { ShadowContainer: u } = await import("./shadow-root-D5nErAFI.js"), { ErrorBoundary: d } = await import("./error-boundary-9mimpbZA.js"), { CommentKitUI: f } = await import("./comment-kit-ui-CnlHcwzZ.js"), p = typeof e.getConfig == "function" ? e.getConfig() : void 0, m = u, h = d, g = r();
|
|
32
|
+
if (g.querySelector("[data-commentkit], [data-commentkit-host]")) return console.warn("[CommentKit] UI is already mounted on this page — skipping duplicate mount. Destroy the existing instance first if you need to remount."), { unmount() {} };
|
|
33
|
+
let _ = document.createElement("div");
|
|
34
|
+
_.setAttribute("data-commentkit", ""), g.appendChild(_);
|
|
35
|
+
let v = !0, y = null, b = null, x = () => {
|
|
36
|
+
if (v = !1, b) {
|
|
37
|
+
try {
|
|
38
|
+
b();
|
|
39
|
+
} catch {}
|
|
40
|
+
b = null;
|
|
41
|
+
}
|
|
42
|
+
if (y) {
|
|
43
|
+
try {
|
|
44
|
+
y.unmount();
|
|
45
|
+
} catch {}
|
|
46
|
+
y = null;
|
|
47
|
+
}
|
|
48
|
+
_.remove();
|
|
49
|
+
}, S = (t) => {
|
|
50
|
+
if (!v || !y) return;
|
|
51
|
+
let n = s(f, {
|
|
52
|
+
core: e,
|
|
53
|
+
state: t
|
|
54
|
+
}), r = s(m, {
|
|
55
|
+
styles: l,
|
|
56
|
+
config: p
|
|
57
|
+
}, n);
|
|
58
|
+
y.render(s(h, null, r));
|
|
59
|
+
};
|
|
60
|
+
try {
|
|
61
|
+
y = c(_), S(e.getState());
|
|
62
|
+
let t = e.on("state:changed", S);
|
|
63
|
+
if (!i(t)) throw TypeError("CommentKit core subscription did not return an unsubscribe function");
|
|
64
|
+
b = t;
|
|
65
|
+
} catch (e) {
|
|
66
|
+
throw x(), e;
|
|
67
|
+
}
|
|
68
|
+
return { unmount() {
|
|
69
|
+
x();
|
|
70
|
+
} };
|
|
71
|
+
}
|
|
72
|
+
export { a as mountCommentKitUI };
|
package/dist/solid.es.js
CHANGED
|
@@ -2728,7 +2728,7 @@ var hi = typeof window < "u", gi = new Set([
|
|
|
2728
2728
|
"screenshot",
|
|
2729
2729
|
"select",
|
|
2730
2730
|
null
|
|
2731
|
-
]), vi = 256, yi = "0.6.
|
|
2731
|
+
]), vi = 256, yi = "0.6.6";
|
|
2732
2732
|
function bi(e) {
|
|
2733
2733
|
let t = e.trim().match(/^v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:[-+].*)?$/);
|
|
2734
2734
|
return t ? [
|
|
@@ -2858,7 +2858,7 @@ var Ci = class extends oe {
|
|
|
2858
2858
|
};
|
|
2859
2859
|
}
|
|
2860
2860
|
let n = e.project?.sdkLatestVersion;
|
|
2861
|
-
n && Si(n, "0.6.
|
|
2861
|
+
n && Si(n, "0.6.6") && (console.warn(`[CommentKit] You are using v${yi}. Update to v${n}: npm update @commentkit/comment-kit`), this.emit("sdk:outdated", {
|
|
2862
2862
|
current: yi,
|
|
2863
2863
|
latest: n
|
|
2864
2864
|
})), this.setState({
|
|
@@ -3388,7 +3388,7 @@ function wi(e) {
|
|
|
3388
3388
|
}
|
|
3389
3389
|
}, ye = async (e) => {
|
|
3390
3390
|
try {
|
|
3391
|
-
let { mountCommentKitUI: t } = await import("./solid/mount-ui-
|
|
3391
|
+
let { mountCommentKitUI: t } = await import("./solid/mount-ui-D15-Kp1w.js");
|
|
3392
3392
|
if (v || d !== e) return;
|
|
3393
3393
|
let n = await t(e);
|
|
3394
3394
|
if (v || d !== e) {
|
|
@@ -17723,9 +17723,9 @@ function iS({ core: e, state: t }) {
|
|
|
17723
17723
|
onSaveEdit: async (t, n) => {
|
|
17724
17724
|
nS(await Vx(e, t, n));
|
|
17725
17725
|
},
|
|
17726
|
-
onLogout: () => {
|
|
17726
|
+
onLogout: t.isAuthenticated ? () => {
|
|
17727
17727
|
e.logout();
|
|
17728
|
-
}
|
|
17728
|
+
} : void 0
|
|
17729
17729
|
}) : null] });
|
|
17730
17730
|
}
|
|
17731
17731
|
var aS = {
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
function e(e, t) {
|
|
2
|
+
try {
|
|
3
|
+
return e[t];
|
|
4
|
+
} catch {
|
|
5
|
+
return;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
function t(t, n) {
|
|
9
|
+
let r = e(t, n);
|
|
10
|
+
if (typeof r == "function") return r;
|
|
11
|
+
let i = e(t, "default");
|
|
12
|
+
if (i && typeof i == "object") {
|
|
13
|
+
let e = i[n];
|
|
14
|
+
if (typeof e == "function") return e;
|
|
15
|
+
}
|
|
16
|
+
throw TypeError(`React module did not provide ${n}`);
|
|
17
|
+
}
|
|
18
|
+
function n(e) {
|
|
19
|
+
let t = e;
|
|
20
|
+
if (!t || typeof t.getState != "function" || typeof t.on != "function") throw TypeError("CommentKit UI requires a valid CommentKitCore instance");
|
|
21
|
+
}
|
|
22
|
+
function r() {
|
|
23
|
+
if (typeof document > "u" || !document.body) throw Error("CommentKit UI requires a browser document body");
|
|
24
|
+
return document.body;
|
|
25
|
+
}
|
|
26
|
+
function i(e) {
|
|
27
|
+
return typeof e == "function";
|
|
28
|
+
}
|
|
29
|
+
async function a(e) {
|
|
30
|
+
n(e);
|
|
31
|
+
let a = await import("react"), o = await import("react-dom/client"), s = t(a, "createElement"), c = t(o, "createRoot"), { default: l } = await import("./styles-B863Tn5m.js"), { ShadowContainer: u } = await import("./shadow-root-Cz-v-rYe.js"), { ErrorBoundary: d } = await import("./error-boundary-C3GWI_IX.js"), { CommentKitUI: f } = await import("./comment-kit-ui-BFWous-b.js"), p = typeof e.getConfig == "function" ? e.getConfig() : void 0, m = u, h = d, g = r();
|
|
32
|
+
if (g.querySelector("[data-commentkit], [data-commentkit-host]")) return console.warn("[CommentKit] UI is already mounted on this page — skipping duplicate mount. Destroy the existing instance first if you need to remount."), { unmount() {} };
|
|
33
|
+
let _ = document.createElement("div");
|
|
34
|
+
_.setAttribute("data-commentkit", ""), g.appendChild(_);
|
|
35
|
+
let v = !0, y = null, b = null, x = () => {
|
|
36
|
+
if (v = !1, b) {
|
|
37
|
+
try {
|
|
38
|
+
b();
|
|
39
|
+
} catch {}
|
|
40
|
+
b = null;
|
|
41
|
+
}
|
|
42
|
+
if (y) {
|
|
43
|
+
try {
|
|
44
|
+
y.unmount();
|
|
45
|
+
} catch {}
|
|
46
|
+
y = null;
|
|
47
|
+
}
|
|
48
|
+
_.remove();
|
|
49
|
+
}, S = (t) => {
|
|
50
|
+
if (!v || !y) return;
|
|
51
|
+
let n = s(f, {
|
|
52
|
+
core: e,
|
|
53
|
+
state: t
|
|
54
|
+
}), r = s(m, {
|
|
55
|
+
styles: l,
|
|
56
|
+
config: p
|
|
57
|
+
}, n);
|
|
58
|
+
y.render(s(h, null, r));
|
|
59
|
+
};
|
|
60
|
+
try {
|
|
61
|
+
y = c(_), S(e.getState());
|
|
62
|
+
let t = e.on("state:changed", S);
|
|
63
|
+
if (!i(t)) throw TypeError("CommentKit core subscription did not return an unsubscribe function");
|
|
64
|
+
b = t;
|
|
65
|
+
} catch (e) {
|
|
66
|
+
throw x(), e;
|
|
67
|
+
}
|
|
68
|
+
return { unmount() {
|
|
69
|
+
x();
|
|
70
|
+
} };
|
|
71
|
+
}
|
|
72
|
+
export { a as mountCommentKitUI };
|
package/dist/svelte.es.js
CHANGED
|
@@ -2729,7 +2729,7 @@ var _i = typeof window < "u", vi = new Set([
|
|
|
2729
2729
|
"screenshot",
|
|
2730
2730
|
"select",
|
|
2731
2731
|
null
|
|
2732
|
-
]), bi = 256, xi = "0.6.
|
|
2732
|
+
]), bi = 256, xi = "0.6.6";
|
|
2733
2733
|
function Si(e) {
|
|
2734
2734
|
let t = e.trim().match(/^v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:[-+].*)?$/);
|
|
2735
2735
|
return t ? [
|
|
@@ -2859,7 +2859,7 @@ var Ti = class extends se {
|
|
|
2859
2859
|
};
|
|
2860
2860
|
}
|
|
2861
2861
|
let n = e.project?.sdkLatestVersion;
|
|
2862
|
-
n && wi(n, "0.6.
|
|
2862
|
+
n && wi(n, "0.6.6") && (console.warn(`[CommentKit] You are using v${xi}. Update to v${n}: npm update @commentkit/comment-kit`), this.emit("sdk:outdated", {
|
|
2863
2863
|
current: xi,
|
|
2864
2864
|
latest: n
|
|
2865
2865
|
})), this.setState({
|
|
@@ -3387,7 +3387,7 @@ function $(e) {
|
|
|
3387
3387
|
} catch {}
|
|
3388
3388
|
}, de = async (e) => {
|
|
3389
3389
|
try {
|
|
3390
|
-
let { mountCommentKitUI: n } = await import("./svelte/mount-ui-
|
|
3390
|
+
let { mountCommentKitUI: n } = await import("./svelte/mount-ui-7Uc8joAI.js");
|
|
3391
3391
|
if (w || g(t) !== e) return;
|
|
3392
3392
|
let r = await n(e);
|
|
3393
3393
|
if (w || g(t) !== e) {
|
|
@@ -17723,9 +17723,9 @@ function iS({ core: e, state: t }) {
|
|
|
17723
17723
|
onSaveEdit: async (t, n) => {
|
|
17724
17724
|
nS(await Vx(e, t, n));
|
|
17725
17725
|
},
|
|
17726
|
-
onLogout: () => {
|
|
17726
|
+
onLogout: t.isAuthenticated ? () => {
|
|
17727
17727
|
e.logout();
|
|
17728
|
-
}
|
|
17728
|
+
} : void 0
|
|
17729
17729
|
}) : null] });
|
|
17730
17730
|
}
|
|
17731
17731
|
var aS = {
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
function e(e, t) {
|
|
2
|
+
try {
|
|
3
|
+
return e[t];
|
|
4
|
+
} catch {
|
|
5
|
+
return;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
function t(t, n) {
|
|
9
|
+
let r = e(t, n);
|
|
10
|
+
if (typeof r == "function") return r;
|
|
11
|
+
let i = e(t, "default");
|
|
12
|
+
if (i && typeof i == "object") {
|
|
13
|
+
let e = i[n];
|
|
14
|
+
if (typeof e == "function") return e;
|
|
15
|
+
}
|
|
16
|
+
throw TypeError(`React module did not provide ${n}`);
|
|
17
|
+
}
|
|
18
|
+
function n(e) {
|
|
19
|
+
let t = e;
|
|
20
|
+
if (!t || typeof t.getState != "function" || typeof t.on != "function") throw TypeError("CommentKit UI requires a valid CommentKitCore instance");
|
|
21
|
+
}
|
|
22
|
+
function r() {
|
|
23
|
+
if (typeof document > "u" || !document.body) throw Error("CommentKit UI requires a browser document body");
|
|
24
|
+
return document.body;
|
|
25
|
+
}
|
|
26
|
+
function i(e) {
|
|
27
|
+
return typeof e == "function";
|
|
28
|
+
}
|
|
29
|
+
async function a(e) {
|
|
30
|
+
n(e);
|
|
31
|
+
let a = await import("react"), o = await import("react-dom/client"), s = t(a, "createElement"), c = t(o, "createRoot"), { default: l } = await import("./styles-C4t8gcea.js"), { ShadowContainer: u } = await import("./shadow-root-SLTVf5yk.js"), { ErrorBoundary: d } = await import("./error-boundary-DW6uGR8U.js"), { CommentKitUI: f } = await import("./comment-kit-ui-oPTLTwxG.js"), p = typeof e.getConfig == "function" ? e.getConfig() : void 0, m = u, h = d, g = r();
|
|
32
|
+
if (g.querySelector("[data-commentkit], [data-commentkit-host]")) return console.warn("[CommentKit] UI is already mounted on this page — skipping duplicate mount. Destroy the existing instance first if you need to remount."), { unmount() {} };
|
|
33
|
+
let _ = document.createElement("div");
|
|
34
|
+
_.setAttribute("data-commentkit", ""), g.appendChild(_);
|
|
35
|
+
let v = !0, y = null, b = null, x = () => {
|
|
36
|
+
if (v = !1, b) {
|
|
37
|
+
try {
|
|
38
|
+
b();
|
|
39
|
+
} catch {}
|
|
40
|
+
b = null;
|
|
41
|
+
}
|
|
42
|
+
if (y) {
|
|
43
|
+
try {
|
|
44
|
+
y.unmount();
|
|
45
|
+
} catch {}
|
|
46
|
+
y = null;
|
|
47
|
+
}
|
|
48
|
+
_.remove();
|
|
49
|
+
}, S = (t) => {
|
|
50
|
+
if (!v || !y) return;
|
|
51
|
+
let n = s(f, {
|
|
52
|
+
core: e,
|
|
53
|
+
state: t
|
|
54
|
+
}), r = s(m, {
|
|
55
|
+
styles: l,
|
|
56
|
+
config: p
|
|
57
|
+
}, n);
|
|
58
|
+
y.render(s(h, null, r));
|
|
59
|
+
};
|
|
60
|
+
try {
|
|
61
|
+
y = c(_), S(e.getState());
|
|
62
|
+
let t = e.on("state:changed", S);
|
|
63
|
+
if (!i(t)) throw TypeError("CommentKit core subscription did not return an unsubscribe function");
|
|
64
|
+
b = t;
|
|
65
|
+
} catch (e) {
|
|
66
|
+
throw x(), e;
|
|
67
|
+
}
|
|
68
|
+
return { unmount() {
|
|
69
|
+
x();
|
|
70
|
+
} };
|
|
71
|
+
}
|
|
72
|
+
export { a as mountCommentKitUI };
|
package/dist/vue.es.js
CHANGED
|
@@ -2534,7 +2534,7 @@ var ui = typeof window < "u", di = new Set([
|
|
|
2534
2534
|
"screenshot",
|
|
2535
2535
|
"select",
|
|
2536
2536
|
null
|
|
2537
|
-
]), pi = 256, mi = "0.6.
|
|
2537
|
+
]), pi = 256, mi = "0.6.6";
|
|
2538
2538
|
function hi(e) {
|
|
2539
2539
|
let t = e.trim().match(/^v?(\d+)(?:\.(\d+))?(?:\.(\d+))?(?:[-+].*)?$/);
|
|
2540
2540
|
return t ? [
|
|
@@ -2664,7 +2664,7 @@ var vi = class extends ee {
|
|
|
2664
2664
|
};
|
|
2665
2665
|
}
|
|
2666
2666
|
let n = e.project?.sdkLatestVersion;
|
|
2667
|
-
n && _i(n, "0.6.
|
|
2667
|
+
n && _i(n, "0.6.6") && (console.warn(`[CommentKit] You are using v${mi}. Update to v${n}: npm update @commentkit/comment-kit`), this.emit("sdk:outdated", {
|
|
2668
2668
|
current: mi,
|
|
2669
2669
|
latest: n
|
|
2670
2670
|
})), this.setState({
|
|
@@ -3382,7 +3382,7 @@ function Ei(e) {
|
|
|
3382
3382
|
} catch {}
|
|
3383
3383
|
}, se = async (e) => {
|
|
3384
3384
|
try {
|
|
3385
|
-
let { mountCommentKitUI: t } = await import("./vue/mount-ui-
|
|
3385
|
+
let { mountCommentKitUI: t } = await import("./vue/mount-ui-CG9QrYe9.js");
|
|
3386
3386
|
if (T || o.value !== e) return;
|
|
3387
3387
|
let n = await t(e);
|
|
3388
3388
|
if (T || o.value !== e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commentkit/comment-kit",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.6",
|
|
4
4
|
"description": "Figma-style collaborative commenting, drawing, and feedback tools for any website. Works with React, Vue, Svelte, Angular, and Vanilla JS.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
function e(e) {
|
|
2
|
-
let t = e;
|
|
3
|
-
if (!t || typeof t.getState != "function" || typeof t.on != "function") throw TypeError("CommentKit UI requires a valid CommentKitCore instance");
|
|
4
|
-
}
|
|
5
|
-
function t() {
|
|
6
|
-
if (typeof document > "u" || !document.body) throw Error("CommentKit UI requires a browser document body");
|
|
7
|
-
return document.body;
|
|
8
|
-
}
|
|
9
|
-
function n(e) {
|
|
10
|
-
return typeof e == "function";
|
|
11
|
-
}
|
|
12
|
-
async function r(r) {
|
|
13
|
-
e(r);
|
|
14
|
-
let i = await import("react"), { createRoot: a } = await import("react-dom/client"), { default: o } = await import("./styles-CmEq782M.js"), { ShadowContainer: s } = await import("./shadow-root-C7wgghDv.js"), { ErrorBoundary: c } = await import("./error-boundary-CxhCm8iF.js"), { CommentKitUI: l } = await import("./comment-kit-ui-DlWdgxZJ.js"), u = typeof r.getConfig == "function" ? r.getConfig() : void 0, d = s, f = c, p = t();
|
|
15
|
-
if (p.querySelector("[data-commentkit], [data-commentkit-host]")) return console.warn("[CommentKit] UI is already mounted on this page — skipping duplicate mount. Destroy the existing instance first if you need to remount."), { unmount() {} };
|
|
16
|
-
let m = document.createElement("div");
|
|
17
|
-
m.setAttribute("data-commentkit", ""), p.appendChild(m);
|
|
18
|
-
let h = !0, g = null, _ = null, v = () => {
|
|
19
|
-
if (h = !1, _) {
|
|
20
|
-
try {
|
|
21
|
-
_();
|
|
22
|
-
} catch {}
|
|
23
|
-
_ = null;
|
|
24
|
-
}
|
|
25
|
-
if (g) {
|
|
26
|
-
try {
|
|
27
|
-
g.unmount();
|
|
28
|
-
} catch {}
|
|
29
|
-
g = null;
|
|
30
|
-
}
|
|
31
|
-
m.remove();
|
|
32
|
-
}, y = (e) => {
|
|
33
|
-
if (!h || !g) return;
|
|
34
|
-
let t = i.createElement(l, {
|
|
35
|
-
core: r,
|
|
36
|
-
state: e
|
|
37
|
-
}), n = i.createElement(d, {
|
|
38
|
-
styles: o,
|
|
39
|
-
config: u
|
|
40
|
-
}, t);
|
|
41
|
-
g.render(i.createElement(f, null, n));
|
|
42
|
-
};
|
|
43
|
-
try {
|
|
44
|
-
g = a(m), y(r.getState());
|
|
45
|
-
let e = r.on("state:changed", y);
|
|
46
|
-
if (!n(e)) throw TypeError("CommentKit core subscription did not return an unsubscribe function");
|
|
47
|
-
_ = e;
|
|
48
|
-
} catch (e) {
|
|
49
|
-
throw v(), e;
|
|
50
|
-
}
|
|
51
|
-
return { unmount() {
|
|
52
|
-
v();
|
|
53
|
-
} };
|
|
54
|
-
}
|
|
55
|
-
export { r as mountCommentKitUI };
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
function e(e) {
|
|
2
|
-
let t = e;
|
|
3
|
-
if (!t || typeof t.getState != "function" || typeof t.on != "function") throw TypeError("CommentKit UI requires a valid CommentKitCore instance");
|
|
4
|
-
}
|
|
5
|
-
function t() {
|
|
6
|
-
if (typeof document > "u" || !document.body) throw Error("CommentKit UI requires a browser document body");
|
|
7
|
-
return document.body;
|
|
8
|
-
}
|
|
9
|
-
function n(e) {
|
|
10
|
-
return typeof e == "function";
|
|
11
|
-
}
|
|
12
|
-
async function r(r) {
|
|
13
|
-
e(r);
|
|
14
|
-
let i = await import("react"), { createRoot: a } = await import("react-dom/client"), { default: o } = await import("./styles-Dzn_nEz7.js"), { ShadowContainer: s } = await import("./shadow-root-09zwHxly.js"), { ErrorBoundary: c } = await import("./error-boundary-CN_BGsYl.js"), { CommentKitUI: l } = await import("./comment-kit-ui-CwoXDJXR.js"), u = typeof r.getConfig == "function" ? r.getConfig() : void 0, d = s, f = c, p = t();
|
|
15
|
-
if (p.querySelector("[data-commentkit], [data-commentkit-host]")) return console.warn("[CommentKit] UI is already mounted on this page — skipping duplicate mount. Destroy the existing instance first if you need to remount."), { unmount() {} };
|
|
16
|
-
let m = document.createElement("div");
|
|
17
|
-
m.setAttribute("data-commentkit", ""), p.appendChild(m);
|
|
18
|
-
let h = !0, g = null, _ = null, v = () => {
|
|
19
|
-
if (h = !1, _) {
|
|
20
|
-
try {
|
|
21
|
-
_();
|
|
22
|
-
} catch {}
|
|
23
|
-
_ = null;
|
|
24
|
-
}
|
|
25
|
-
if (g) {
|
|
26
|
-
try {
|
|
27
|
-
g.unmount();
|
|
28
|
-
} catch {}
|
|
29
|
-
g = null;
|
|
30
|
-
}
|
|
31
|
-
m.remove();
|
|
32
|
-
}, y = (e) => {
|
|
33
|
-
if (!h || !g) return;
|
|
34
|
-
let t = i.createElement(l, {
|
|
35
|
-
core: r,
|
|
36
|
-
state: e
|
|
37
|
-
}), n = i.createElement(d, {
|
|
38
|
-
styles: o,
|
|
39
|
-
config: u
|
|
40
|
-
}, t);
|
|
41
|
-
g.render(i.createElement(f, null, n));
|
|
42
|
-
};
|
|
43
|
-
try {
|
|
44
|
-
g = a(m), y(r.getState());
|
|
45
|
-
let e = r.on("state:changed", y);
|
|
46
|
-
if (!n(e)) throw TypeError("CommentKit core subscription did not return an unsubscribe function");
|
|
47
|
-
_ = e;
|
|
48
|
-
} catch (e) {
|
|
49
|
-
throw v(), e;
|
|
50
|
-
}
|
|
51
|
-
return { unmount() {
|
|
52
|
-
v();
|
|
53
|
-
} };
|
|
54
|
-
}
|
|
55
|
-
export { r as mountCommentKitUI };
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
function e(e) {
|
|
2
|
-
let t = e;
|
|
3
|
-
if (!t || typeof t.getState != "function" || typeof t.on != "function") throw TypeError("CommentKit UI requires a valid CommentKitCore instance");
|
|
4
|
-
}
|
|
5
|
-
function t() {
|
|
6
|
-
if (typeof document > "u" || !document.body) throw Error("CommentKit UI requires a browser document body");
|
|
7
|
-
return document.body;
|
|
8
|
-
}
|
|
9
|
-
function n(e) {
|
|
10
|
-
return typeof e == "function";
|
|
11
|
-
}
|
|
12
|
-
async function r(r) {
|
|
13
|
-
e(r);
|
|
14
|
-
let i = await import("react"), { createRoot: a } = await import("react-dom/client"), { default: o } = await import("./styles-ECCK6Z_C.js"), { ShadowContainer: s } = await import("./shadow-root-DAhpHo_W.js"), { ErrorBoundary: c } = await import("./error-boundary-B4-Bfy3g.js"), { CommentKitUI: l } = await import("./comment-kit-ui-CIeAiL3D.js"), u = typeof r.getConfig == "function" ? r.getConfig() : void 0, d = s, f = c, p = t();
|
|
15
|
-
if (p.querySelector("[data-commentkit], [data-commentkit-host]")) return console.warn("[CommentKit] UI is already mounted on this page — skipping duplicate mount. Destroy the existing instance first if you need to remount."), { unmount() {} };
|
|
16
|
-
let m = document.createElement("div");
|
|
17
|
-
m.setAttribute("data-commentkit", ""), p.appendChild(m);
|
|
18
|
-
let h = !0, g = null, _ = null, v = () => {
|
|
19
|
-
if (h = !1, _) {
|
|
20
|
-
try {
|
|
21
|
-
_();
|
|
22
|
-
} catch {}
|
|
23
|
-
_ = null;
|
|
24
|
-
}
|
|
25
|
-
if (g) {
|
|
26
|
-
try {
|
|
27
|
-
g.unmount();
|
|
28
|
-
} catch {}
|
|
29
|
-
g = null;
|
|
30
|
-
}
|
|
31
|
-
m.remove();
|
|
32
|
-
}, y = (e) => {
|
|
33
|
-
if (!h || !g) return;
|
|
34
|
-
let t = i.createElement(l, {
|
|
35
|
-
core: r,
|
|
36
|
-
state: e
|
|
37
|
-
}), n = i.createElement(d, {
|
|
38
|
-
styles: o,
|
|
39
|
-
config: u
|
|
40
|
-
}, t);
|
|
41
|
-
g.render(i.createElement(f, null, n));
|
|
42
|
-
};
|
|
43
|
-
try {
|
|
44
|
-
g = a(m), y(r.getState());
|
|
45
|
-
let e = r.on("state:changed", y);
|
|
46
|
-
if (!n(e)) throw TypeError("CommentKit core subscription did not return an unsubscribe function");
|
|
47
|
-
_ = e;
|
|
48
|
-
} catch (e) {
|
|
49
|
-
throw v(), e;
|
|
50
|
-
}
|
|
51
|
-
return { unmount() {
|
|
52
|
-
v();
|
|
53
|
-
} };
|
|
54
|
-
}
|
|
55
|
-
export { r as mountCommentKitUI };
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
function e(e) {
|
|
2
|
-
let t = e;
|
|
3
|
-
if (!t || typeof t.getState != "function" || typeof t.on != "function") throw TypeError("CommentKit UI requires a valid CommentKitCore instance");
|
|
4
|
-
}
|
|
5
|
-
function t() {
|
|
6
|
-
if (typeof document > "u" || !document.body) throw Error("CommentKit UI requires a browser document body");
|
|
7
|
-
return document.body;
|
|
8
|
-
}
|
|
9
|
-
function n(e) {
|
|
10
|
-
return typeof e == "function";
|
|
11
|
-
}
|
|
12
|
-
async function r(r) {
|
|
13
|
-
e(r);
|
|
14
|
-
let i = await import("react"), { createRoot: a } = await import("react-dom/client"), { default: o } = await import("./styles-CMcDFAyE.js"), { ShadowContainer: s } = await import("./shadow-root-tLjXys-_.js"), { ErrorBoundary: c } = await import("./error-boundary-C4hlYQwS.js"), { CommentKitUI: l } = await import("./comment-kit-ui-CT3GZ8ry.js"), u = typeof r.getConfig == "function" ? r.getConfig() : void 0, d = s, f = c, p = t();
|
|
15
|
-
if (p.querySelector("[data-commentkit], [data-commentkit-host]")) return console.warn("[CommentKit] UI is already mounted on this page — skipping duplicate mount. Destroy the existing instance first if you need to remount."), { unmount() {} };
|
|
16
|
-
let m = document.createElement("div");
|
|
17
|
-
m.setAttribute("data-commentkit", ""), p.appendChild(m);
|
|
18
|
-
let h = !0, g = null, _ = null, v = () => {
|
|
19
|
-
if (h = !1, _) {
|
|
20
|
-
try {
|
|
21
|
-
_();
|
|
22
|
-
} catch {}
|
|
23
|
-
_ = null;
|
|
24
|
-
}
|
|
25
|
-
if (g) {
|
|
26
|
-
try {
|
|
27
|
-
g.unmount();
|
|
28
|
-
} catch {}
|
|
29
|
-
g = null;
|
|
30
|
-
}
|
|
31
|
-
m.remove();
|
|
32
|
-
}, y = (e) => {
|
|
33
|
-
if (!h || !g) return;
|
|
34
|
-
let t = i.createElement(l, {
|
|
35
|
-
core: r,
|
|
36
|
-
state: e
|
|
37
|
-
}), n = i.createElement(d, {
|
|
38
|
-
styles: o,
|
|
39
|
-
config: u
|
|
40
|
-
}, t);
|
|
41
|
-
g.render(i.createElement(f, null, n));
|
|
42
|
-
};
|
|
43
|
-
try {
|
|
44
|
-
g = a(m), y(r.getState());
|
|
45
|
-
let e = r.on("state:changed", y);
|
|
46
|
-
if (!n(e)) throw TypeError("CommentKit core subscription did not return an unsubscribe function");
|
|
47
|
-
_ = e;
|
|
48
|
-
} catch (e) {
|
|
49
|
-
throw v(), e;
|
|
50
|
-
}
|
|
51
|
-
return { unmount() {
|
|
52
|
-
v();
|
|
53
|
-
} };
|
|
54
|
-
}
|
|
55
|
-
export { r as mountCommentKitUI };
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
function e(e) {
|
|
2
|
-
let t = e;
|
|
3
|
-
if (!t || typeof t.getState != "function" || typeof t.on != "function") throw TypeError("CommentKit UI requires a valid CommentKitCore instance");
|
|
4
|
-
}
|
|
5
|
-
function t() {
|
|
6
|
-
if (typeof document > "u" || !document.body) throw Error("CommentKit UI requires a browser document body");
|
|
7
|
-
return document.body;
|
|
8
|
-
}
|
|
9
|
-
function n(e) {
|
|
10
|
-
return typeof e == "function";
|
|
11
|
-
}
|
|
12
|
-
async function r(r) {
|
|
13
|
-
e(r);
|
|
14
|
-
let i = await import("react"), { createRoot: a } = await import("react-dom/client"), { default: o } = await import("./styles-Be_8-1ZV.js"), { ShadowContainer: s } = await import("./shadow-root-D5nErAFI.js"), { ErrorBoundary: c } = await import("./error-boundary-9mimpbZA.js"), { CommentKitUI: l } = await import("./comment-kit-ui-BXcJmq6H.js"), u = typeof r.getConfig == "function" ? r.getConfig() : void 0, d = s, f = c, p = t();
|
|
15
|
-
if (p.querySelector("[data-commentkit], [data-commentkit-host]")) return console.warn("[CommentKit] UI is already mounted on this page — skipping duplicate mount. Destroy the existing instance first if you need to remount."), { unmount() {} };
|
|
16
|
-
let m = document.createElement("div");
|
|
17
|
-
m.setAttribute("data-commentkit", ""), p.appendChild(m);
|
|
18
|
-
let h = !0, g = null, _ = null, v = () => {
|
|
19
|
-
if (h = !1, _) {
|
|
20
|
-
try {
|
|
21
|
-
_();
|
|
22
|
-
} catch {}
|
|
23
|
-
_ = null;
|
|
24
|
-
}
|
|
25
|
-
if (g) {
|
|
26
|
-
try {
|
|
27
|
-
g.unmount();
|
|
28
|
-
} catch {}
|
|
29
|
-
g = null;
|
|
30
|
-
}
|
|
31
|
-
m.remove();
|
|
32
|
-
}, y = (e) => {
|
|
33
|
-
if (!h || !g) return;
|
|
34
|
-
let t = i.createElement(l, {
|
|
35
|
-
core: r,
|
|
36
|
-
state: e
|
|
37
|
-
}), n = i.createElement(d, {
|
|
38
|
-
styles: o,
|
|
39
|
-
config: u
|
|
40
|
-
}, t);
|
|
41
|
-
g.render(i.createElement(f, null, n));
|
|
42
|
-
};
|
|
43
|
-
try {
|
|
44
|
-
g = a(m), y(r.getState());
|
|
45
|
-
let e = r.on("state:changed", y);
|
|
46
|
-
if (!n(e)) throw TypeError("CommentKit core subscription did not return an unsubscribe function");
|
|
47
|
-
_ = e;
|
|
48
|
-
} catch (e) {
|
|
49
|
-
throw v(), e;
|
|
50
|
-
}
|
|
51
|
-
return { unmount() {
|
|
52
|
-
v();
|
|
53
|
-
} };
|
|
54
|
-
}
|
|
55
|
-
export { r as mountCommentKitUI };
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
function e(e) {
|
|
2
|
-
let t = e;
|
|
3
|
-
if (!t || typeof t.getState != "function" || typeof t.on != "function") throw TypeError("CommentKit UI requires a valid CommentKitCore instance");
|
|
4
|
-
}
|
|
5
|
-
function t() {
|
|
6
|
-
if (typeof document > "u" || !document.body) throw Error("CommentKit UI requires a browser document body");
|
|
7
|
-
return document.body;
|
|
8
|
-
}
|
|
9
|
-
function n(e) {
|
|
10
|
-
return typeof e == "function";
|
|
11
|
-
}
|
|
12
|
-
async function r(r) {
|
|
13
|
-
e(r);
|
|
14
|
-
let i = await import("react"), { createRoot: a } = await import("react-dom/client"), { default: o } = await import("./styles-B863Tn5m.js"), { ShadowContainer: s } = await import("./shadow-root-Cz-v-rYe.js"), { ErrorBoundary: c } = await import("./error-boundary-C3GWI_IX.js"), { CommentKitUI: l } = await import("./comment-kit-ui-C-8rQmBN.js"), u = typeof r.getConfig == "function" ? r.getConfig() : void 0, d = s, f = c, p = t();
|
|
15
|
-
if (p.querySelector("[data-commentkit], [data-commentkit-host]")) return console.warn("[CommentKit] UI is already mounted on this page — skipping duplicate mount. Destroy the existing instance first if you need to remount."), { unmount() {} };
|
|
16
|
-
let m = document.createElement("div");
|
|
17
|
-
m.setAttribute("data-commentkit", ""), p.appendChild(m);
|
|
18
|
-
let h = !0, g = null, _ = null, v = () => {
|
|
19
|
-
if (h = !1, _) {
|
|
20
|
-
try {
|
|
21
|
-
_();
|
|
22
|
-
} catch {}
|
|
23
|
-
_ = null;
|
|
24
|
-
}
|
|
25
|
-
if (g) {
|
|
26
|
-
try {
|
|
27
|
-
g.unmount();
|
|
28
|
-
} catch {}
|
|
29
|
-
g = null;
|
|
30
|
-
}
|
|
31
|
-
m.remove();
|
|
32
|
-
}, y = (e) => {
|
|
33
|
-
if (!h || !g) return;
|
|
34
|
-
let t = i.createElement(l, {
|
|
35
|
-
core: r,
|
|
36
|
-
state: e
|
|
37
|
-
}), n = i.createElement(d, {
|
|
38
|
-
styles: o,
|
|
39
|
-
config: u
|
|
40
|
-
}, t);
|
|
41
|
-
g.render(i.createElement(f, null, n));
|
|
42
|
-
};
|
|
43
|
-
try {
|
|
44
|
-
g = a(m), y(r.getState());
|
|
45
|
-
let e = r.on("state:changed", y);
|
|
46
|
-
if (!n(e)) throw TypeError("CommentKit core subscription did not return an unsubscribe function");
|
|
47
|
-
_ = e;
|
|
48
|
-
} catch (e) {
|
|
49
|
-
throw v(), e;
|
|
50
|
-
}
|
|
51
|
-
return { unmount() {
|
|
52
|
-
v();
|
|
53
|
-
} };
|
|
54
|
-
}
|
|
55
|
-
export { r as mountCommentKitUI };
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
function e(e) {
|
|
2
|
-
let t = e;
|
|
3
|
-
if (!t || typeof t.getState != "function" || typeof t.on != "function") throw TypeError("CommentKit UI requires a valid CommentKitCore instance");
|
|
4
|
-
}
|
|
5
|
-
function t() {
|
|
6
|
-
if (typeof document > "u" || !document.body) throw Error("CommentKit UI requires a browser document body");
|
|
7
|
-
return document.body;
|
|
8
|
-
}
|
|
9
|
-
function n(e) {
|
|
10
|
-
return typeof e == "function";
|
|
11
|
-
}
|
|
12
|
-
async function r(r) {
|
|
13
|
-
e(r);
|
|
14
|
-
let i = await import("react"), { createRoot: a } = await import("react-dom/client"), { default: o } = await import("./styles-C4t8gcea.js"), { ShadowContainer: s } = await import("./shadow-root-SLTVf5yk.js"), { ErrorBoundary: c } = await import("./error-boundary-DW6uGR8U.js"), { CommentKitUI: l } = await import("./comment-kit-ui-Cq30Cmvs.js"), u = typeof r.getConfig == "function" ? r.getConfig() : void 0, d = s, f = c, p = t();
|
|
15
|
-
if (p.querySelector("[data-commentkit], [data-commentkit-host]")) return console.warn("[CommentKit] UI is already mounted on this page — skipping duplicate mount. Destroy the existing instance first if you need to remount."), { unmount() {} };
|
|
16
|
-
let m = document.createElement("div");
|
|
17
|
-
m.setAttribute("data-commentkit", ""), p.appendChild(m);
|
|
18
|
-
let h = !0, g = null, _ = null, v = () => {
|
|
19
|
-
if (h = !1, _) {
|
|
20
|
-
try {
|
|
21
|
-
_();
|
|
22
|
-
} catch {}
|
|
23
|
-
_ = null;
|
|
24
|
-
}
|
|
25
|
-
if (g) {
|
|
26
|
-
try {
|
|
27
|
-
g.unmount();
|
|
28
|
-
} catch {}
|
|
29
|
-
g = null;
|
|
30
|
-
}
|
|
31
|
-
m.remove();
|
|
32
|
-
}, y = (e) => {
|
|
33
|
-
if (!h || !g) return;
|
|
34
|
-
let t = i.createElement(l, {
|
|
35
|
-
core: r,
|
|
36
|
-
state: e
|
|
37
|
-
}), n = i.createElement(d, {
|
|
38
|
-
styles: o,
|
|
39
|
-
config: u
|
|
40
|
-
}, t);
|
|
41
|
-
g.render(i.createElement(f, null, n));
|
|
42
|
-
};
|
|
43
|
-
try {
|
|
44
|
-
g = a(m), y(r.getState());
|
|
45
|
-
let e = r.on("state:changed", y);
|
|
46
|
-
if (!n(e)) throw TypeError("CommentKit core subscription did not return an unsubscribe function");
|
|
47
|
-
_ = e;
|
|
48
|
-
} catch (e) {
|
|
49
|
-
throw v(), e;
|
|
50
|
-
}
|
|
51
|
-
return { unmount() {
|
|
52
|
-
v();
|
|
53
|
-
} };
|
|
54
|
-
}
|
|
55
|
-
export { r as mountCommentKitUI };
|