@commentkit/comment-kit 0.7.2 → 0.7.4
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 +14 -0
- package/dist/angular.es.js +2 -2
- package/dist/comment-kit.es.js +3 -3
- package/dist/demo.es.js +2 -2
- package/dist/headless.es.js +2 -2
- package/dist/preact.es.js +2 -2
- package/dist/qwik.qwik.mjs +2 -2
- package/dist/react.es.js +2 -2
- package/dist/shared/{annotation-toolbar-CZI1KVdW.js → annotation-toolbar-CpPKy0oq.js} +2 -2
- package/dist/shared/{attachment-refresh-mQw-L7hB.js → attachment-refresh-DmVkfPtl.js} +1 -1
- package/dist/shared/{capture-colors-CxSLsU5-.js → capture-colors-D0uLr-vZ.js} +12 -2
- package/dist/shared/{comment-drawing-canvas-CYFFKgCm.js → comment-drawing-canvas-zIPS1dnW.js} +2 -2
- package/dist/shared/{comment-image-lightbox-DmTNxuqX.js → comment-image-lightbox-CdMNf0_y.js} +2 -2
- package/dist/shared/{comment-images-content-BX4DQ9Ol.js → comment-images-content-DqeqmQnb.js} +3 -3
- package/dist/shared/{comment-kit-core-VuIidMeu.js → comment-kit-core-C-0JJS2i.js} +8 -8
- package/dist/shared/{comment-kit-ui-BjJ1ZLiv.js → comment-kit-ui-CBaz7L3u.js} +370 -357
- package/dist/shared/{comment-screenshot-annotator-CMOG1md7.js → comment-screenshot-annotator-CuYmKafz.js} +2 -2
- package/dist/shared/{comment-screenshot-overlay-iWW-V-Iw.js → comment-screenshot-overlay-Dw81osel.js} +16 -13
- package/dist/shared/{dev-export-panel-CrRENbMn.js → dev-export-panel-D08M2LKD.js} +1 -1
- package/dist/shared/{dev-grab-Ca4MlS2Y.js → dev-grab-BJLZZ2xU.js} +1 -1
- package/dist/shared/{element-selector-g1bTvdEA.js → element-selector-Biyn2cpR.js} +2 -2
- package/dist/shared/{mount-ui-Dz5QLq4W.js → mount-ui-DXdL3p9b.js} +4 -4
- package/dist/shared/{pusher-ue0D83de.js → pusher-D4M5K6Dk.js} +1 -1
- package/dist/shared/{realtime-CieWAnsW.js → realtime-BTqYEy8s.js} +2 -2
- package/dist/shared/{shadow-root-Cv1aLuFf.js → shadow-root-C58Ap5Nu.js} +1 -1
- package/dist/shared/{token-session-CPQpt3-u.js → token-session-D0Y_HZw0.js} +1 -1
- package/dist/shared/{websocket-manager-BnK55c3U.js → websocket-manager-BFKa95TO.js} +2 -2
- package/dist/solid.es.js +2 -2
- package/dist/svelte.es.js +2 -2
- package/dist/vue.es.js +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "./annotation-toolbar-
|
|
2
|
-
import { N as r, _ as i, a, g as o, i as s } from "./comment-kit-ui-
|
|
1
|
+
import { n as e, r as t, t as n } from "./annotation-toolbar-CpPKy0oq.js";
|
|
2
|
+
import { N as r, _ as i, a, g as o, i as s } from "./comment-kit-ui-CBaz7L3u.js";
|
|
3
3
|
import * as c from "react";
|
|
4
4
|
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
5
5
|
function d(e) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { u as e } from "./comment-kit-core-
|
|
1
|
+
import { u as e } from "./comment-kit-core-C-0JJS2i.js";
|
|
2
2
|
import { t } from "./capture-privacy-DUROnio5.js";
|
|
3
3
|
import { t as n } from "./button-By0hGrJK.js";
|
|
4
|
-
import { g as r, j as i, v as a } from "./comment-kit-ui-
|
|
4
|
+
import { g as r, j as i, v as a } from "./comment-kit-ui-CBaz7L3u.js";
|
|
5
5
|
import { d as o, i as s } from "./annotation-icons-Dh-bmNYK.js";
|
|
6
6
|
import * as c from "react";
|
|
7
7
|
import { useCallback as l, useEffect as u, useRef as d, useState as f } from "react";
|
|
@@ -33,11 +33,14 @@ function b(e) {
|
|
|
33
33
|
a(!0), s(null);
|
|
34
34
|
try {
|
|
35
35
|
let a = await Promise.race([(async () => {
|
|
36
|
+
if (t(document.body)) throw Error("Page capture is disabled");
|
|
36
37
|
let r = {
|
|
37
38
|
width: Math.max(document.documentElement.scrollWidth, document.body?.scrollWidth ?? 0, window.innerWidth),
|
|
38
39
|
height: Math.max(document.documentElement.scrollHeight, document.body?.scrollHeight ?? 0, window.innerHeight),
|
|
39
40
|
scrollX: window.scrollX,
|
|
40
|
-
scrollY: window.scrollY
|
|
41
|
+
scrollY: window.scrollY,
|
|
42
|
+
windowWidth: window.innerWidth,
|
|
43
|
+
windowHeight: window.innerHeight
|
|
41
44
|
};
|
|
42
45
|
if (e) {
|
|
43
46
|
let t = await e();
|
|
@@ -51,23 +54,23 @@ function b(e) {
|
|
|
51
54
|
throw Error("Screenshot requires either a custom screenshotProvider in config or html2canvas installed. Install html2canvas: npm install html2canvas — or provide config.screenshotProvider.");
|
|
52
55
|
}
|
|
53
56
|
if (i !== c.current) return null;
|
|
54
|
-
let o =
|
|
55
|
-
if (
|
|
57
|
+
let o = n?.width ?? r.width, s = n?.height ?? r.height;
|
|
58
|
+
if (o > 16384 || s > 16384 || o * s > v) throw Error("Selected area is too large to capture");
|
|
56
59
|
return (await a(document.body, {
|
|
57
60
|
useCORS: !0,
|
|
58
61
|
allowTaint: !1,
|
|
59
62
|
scale: 1,
|
|
60
63
|
logging: !1,
|
|
61
64
|
ignoreElements: t,
|
|
62
|
-
onclone: (e) => import("./capture-colors-
|
|
65
|
+
onclone: (e) => import("./capture-colors-D0uLr-vZ.js").then(({ normalizeCaptureColors: t }) => t(e)),
|
|
63
66
|
x: n ? n.x + r.scrollX : 0,
|
|
64
67
|
y: n ? n.y + r.scrollY : 0,
|
|
65
|
-
width:
|
|
66
|
-
height:
|
|
67
|
-
windowWidth:
|
|
68
|
-
windowHeight:
|
|
69
|
-
scrollX:
|
|
70
|
-
scrollY:
|
|
68
|
+
width: o,
|
|
69
|
+
height: s,
|
|
70
|
+
windowWidth: r.windowWidth,
|
|
71
|
+
windowHeight: r.windowHeight,
|
|
72
|
+
scrollX: r.scrollX,
|
|
73
|
+
scrollY: r.scrollY
|
|
71
74
|
})).toDataURL("image/png");
|
|
72
75
|
})(), new Promise((e, t) => {
|
|
73
76
|
m.current = setTimeout(() => t(/* @__PURE__ */ Error("Screenshot timed out")), _);
|
|
@@ -85,7 +88,7 @@ function b(e) {
|
|
|
85
88
|
}, [])
|
|
86
89
|
};
|
|
87
90
|
}
|
|
88
|
-
var x = () => import("./comment-screenshot-annotator-
|
|
91
|
+
var x = () => import("./comment-screenshot-annotator-CuYmKafz.js");
|
|
89
92
|
function S({ capturePage: t, availableUsers: l = [], onSave: u, onCancel: d }) {
|
|
90
93
|
let { imageUrl: f, capturing: p, error: g, capture: _, reset: v } = b(t), y = c.useRef(null), [S, C] = c.useState(null), [w, T] = c.useState(null), E = S !== null, D = c.useMemo(() => !S || !w ? null : {
|
|
91
94
|
x: Math.min(S.x, w.x),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./button-By0hGrJK.js";
|
|
2
2
|
import { i as t, o as n, r, t as i } from "./separator-aphZiRoJ.js";
|
|
3
3
|
import { t as a } from "./createReactComponent-BZHeRbD0.js";
|
|
4
|
-
import { C as o, H as s, U as c, W as l, u } from "./comment-kit-ui-
|
|
4
|
+
import { C as o, H as s, U as c, W as l, u } from "./comment-kit-ui-CBaz7L3u.js";
|
|
5
5
|
import * as d from "react";
|
|
6
6
|
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
7
7
|
var h = a("outline", "refresh", "Refresh", [["path", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { f as e, g as t, p as n, r } from "./comment-kit-core-
|
|
1
|
+
import { f as e, g as t, p as n, r } from "./comment-kit-core-C-0JJS2i.js";
|
|
2
2
|
import { a as i, i as a, o } from "./dom-Bhf4WFtY.js";
|
|
3
3
|
import { n as s, t as c } from "./capture-privacy-DUROnio5.js";
|
|
4
4
|
import { a as l, n as u, t as d } from "./text-B4HHZNaa.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { u as e } from "./comment-kit-core-
|
|
1
|
+
import { u as e } from "./comment-kit-core-C-0JJS2i.js";
|
|
2
2
|
import { a as t, i as n, m as r, n as i, o as a } from "./dom-Bhf4WFtY.js";
|
|
3
3
|
import { n as o } from "./dist-De294MVF.js";
|
|
4
4
|
import { t as s } from "./button-By0hGrJK.js";
|
|
5
5
|
import { t as c } from "./createReactComponent-BZHeRbD0.js";
|
|
6
|
-
import { G as l, K as ee, S as te, V as u, n as ne } from "./comment-kit-ui-
|
|
6
|
+
import { G as l, K as ee, S as te, V as u, n as ne } from "./comment-kit-ui-CBaz7L3u.js";
|
|
7
7
|
import * as d from "react";
|
|
8
8
|
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
9
9
|
var re = c("outline", "paperclip", "Paperclip", [["path", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { o as e } from "./websocket-manager-
|
|
2
|
-
import { u as t } from "./comment-kit-core-
|
|
1
|
+
import { o as e } from "./websocket-manager-BFKa95TO.js";
|
|
2
|
+
import { u as t } from "./comment-kit-core-C-0JJS2i.js";
|
|
3
3
|
import { n } from "./errors-Bu5ajEmB.js";
|
|
4
4
|
var r = null, i = /* @__PURE__ */ new Set();
|
|
5
5
|
function a() {
|
|
@@ -150,9 +150,9 @@ async function b(e, r = {}) {
|
|
|
150
150
|
import("react"),
|
|
151
151
|
import("react-dom/client"),
|
|
152
152
|
import("./styles-CnYsLS2f.js"),
|
|
153
|
-
import("./shadow-root-
|
|
153
|
+
import("./shadow-root-C58Ap5Nu.js"),
|
|
154
154
|
import("./error-boundary-D3PD74vI.js"),
|
|
155
|
-
import("./comment-kit-ui-
|
|
155
|
+
import("./comment-kit-ui-CBaz7L3u.js").then((e) => e.t)
|
|
156
156
|
]);
|
|
157
157
|
if (!h || t !== w) return;
|
|
158
158
|
let f = g(n, "createElement"), p = g(r, "createRoot"), m = l.ShadowContainer, _ = u.ErrorBoundary;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as e } from "./websocket-manager-
|
|
1
|
+
import { a as e } from "./websocket-manager-BFKa95TO.js";
|
|
2
2
|
var t = /* @__PURE__ */ e(((e, t) => {
|
|
3
3
|
(function(n, r) {
|
|
4
4
|
typeof e == "object" && typeof t == "object" ? t.exports = r() : typeof define == "function" && define.amd ? define([], r) : typeof e == "object" ? e.Pusher = r() : n.Pusher = r();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "./websocket-manager-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "./websocket-manager-BFKa95TO.js";
|
|
2
2
|
import { a as i, d as a, i as o, l as s, o as c } from "./validation-3wbbbuX0.js";
|
|
3
|
-
import { s as l } from "./comment-kit-core-
|
|
3
|
+
import { s as l } from "./comment-kit-core-C-0JJS2i.js";
|
|
4
4
|
import { o as u } from "./dom-Bhf4WFtY.js";
|
|
5
5
|
import { i as d } from "./text-B4HHZNaa.js";
|
|
6
6
|
var f = l.ID, p = l.CONTENT, m = l.NAME, h = l.EMAIL, g = l.PAGE, _ = l.EMOJI, v = l.ONLINE_USERS, y = l.REACTION_COUNT, b = 33, x = 1e3, S = l.CURSOR_EMITS_PER_SEC;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { o as e, r as t } from "./mount-ui-
|
|
1
|
+
import { o as e, r as t } from "./mount-ui-DXdL3p9b.js";
|
|
2
2
|
import { i as n, n as r, t as i } from "./ShadowRootContext-CjciYxVN.js";
|
|
3
3
|
import * as a from "react";
|
|
4
4
|
import { useCallback as o, useEffect as s, useMemo as c, useRef as l, useState as u } from "react";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { f as e } from "./validation-3wbbbuX0.js";
|
|
2
|
-
import { _ as t, a as n, i as r, o as i } from "./comment-kit-core-
|
|
2
|
+
import { _ as t, a as n, i as r, o as i } from "./comment-kit-core-C-0JJS2i.js";
|
|
3
3
|
async function a(a, o, s, c) {
|
|
4
4
|
if (!s()) return !1;
|
|
5
5
|
if (!e(o, 4096)) throw Error("Invalid member session token");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { d as e, f as t, i as n, l as r, o as i, p as a } from "./validation-3wbbbuX0.js";
|
|
2
|
-
import { s as o } from "./comment-kit-core-
|
|
2
|
+
import { s as o } from "./comment-kit-core-C-0JJS2i.js";
|
|
3
3
|
import { i as s } from "./text-B4HHZNaa.js";
|
|
4
4
|
var c = Object.create, l = Object.defineProperty, u = Object.getOwnPropertyDescriptor, d = Object.getOwnPropertyNames, f = Object.getPrototypeOf, p = Object.prototype.hasOwnProperty, m = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), h = (e, t) => {
|
|
5
5
|
let n = {};
|
|
@@ -57,7 +57,7 @@ function S(e) {
|
|
|
57
57
|
}
|
|
58
58
|
var C = null;
|
|
59
59
|
function w() {
|
|
60
|
-
return C ||= import("./pusher-
|
|
60
|
+
return C ||= import("./pusher-D4M5K6Dk.js").then((e) => /* @__PURE__ */ _(e.default, 1)).then((e) => e.default ?? e), C;
|
|
61
61
|
}
|
|
62
62
|
var T = o.ID, E = o.NAME, D = o.EMAIL, O = o.PAGE, k = o.COLOR, A = o.DRAWING_PATH_DATA, j = o.DRAWING_TEXT, M = o.ONLINE_USERS, N = {
|
|
63
63
|
id: "unknown",
|
package/dist/solid.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./shared/comment-kit-core-
|
|
1
|
+
import { t as e } from "./shared/comment-kit-core-C-0JJS2i.js";
|
|
2
2
|
import { n as t, r as n, t as r } from "./shared/bridge-CJoGYngu.js";
|
|
3
3
|
import { n as i, t as a } from "./shared/errors-Bu5ajEmB.js";
|
|
4
4
|
import { createMemo as o, createSignal as s, onCleanup as c, onMount as l } from "solid-js";
|
|
@@ -24,7 +24,7 @@ function u(u) {
|
|
|
24
24
|
}
|
|
25
25
|
}, K = async (e) => {
|
|
26
26
|
try {
|
|
27
|
-
let { mountCommentKitUI: t } = await import("./shared/mount-ui-
|
|
27
|
+
let { mountCommentKitUI: t } = await import("./shared/mount-ui-DXdL3p9b.js").then((e) => e.n);
|
|
28
28
|
if (w || x !== e) return;
|
|
29
29
|
let n = await t(e);
|
|
30
30
|
if (w || x !== e) {
|
package/dist/svelte.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./shared/comment-kit-core-
|
|
1
|
+
import { t as e } from "./shared/comment-kit-core-C-0JJS2i.js";
|
|
2
2
|
import { n as t, r as n, t as r } from "./shared/bridge-CJoGYngu.js";
|
|
3
3
|
import { n as i, t as a } from "./shared/errors-Bu5ajEmB.js";
|
|
4
4
|
import { onDestroy as o } from "svelte";
|
|
@@ -23,7 +23,7 @@ function d(o) {
|
|
|
23
23
|
} catch {}
|
|
24
24
|
}, B = async (e) => {
|
|
25
25
|
try {
|
|
26
|
-
let { mountCommentKitUI: t } = await import("./shared/mount-ui-
|
|
26
|
+
let { mountCommentKitUI: t } = await import("./shared/mount-ui-DXdL3p9b.js").then((e) => e.n);
|
|
27
27
|
if (I || c(d) !== e) return;
|
|
28
28
|
let n = await t(e);
|
|
29
29
|
if (I || c(d) !== e) {
|
package/dist/vue.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./shared/comment-kit-core-
|
|
1
|
+
import { t as e } from "./shared/comment-kit-core-C-0JJS2i.js";
|
|
2
2
|
import { n as t, r as n, t as r } from "./shared/bridge-CJoGYngu.js";
|
|
3
3
|
import { n as i, t as a } from "./shared/errors-Bu5ajEmB.js";
|
|
4
4
|
import { computed as o, h as s, onMounted as c, onUnmounted as l, shallowRef as u, watch as d } from "vue";
|
|
@@ -19,7 +19,7 @@ function f(s) {
|
|
|
19
19
|
} catch {}
|
|
20
20
|
}, V = async (e) => {
|
|
21
21
|
try {
|
|
22
|
-
let { mountCommentKitUI: t } = await import("./shared/mount-ui-
|
|
22
|
+
let { mountCommentKitUI: t } = await import("./shared/mount-ui-DXdL3p9b.js").then((e) => e.n);
|
|
23
23
|
if (L || _.value !== e) return;
|
|
24
24
|
let n = await t(e);
|
|
25
25
|
if (L || _.value !== e) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commentkit/comment-kit",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
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",
|