reviewdeck-ui 0.3.0 → 0.3.1
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/reviewdeck-ui.js +37 -21
- package/package.json +3 -3
package/dist/reviewdeck-ui.js
CHANGED
|
@@ -15444,7 +15444,8 @@ var Om = tp("rd:inline-flex rd:items-center rd:justify-center rd:rounded-full rd
|
|
|
15444
15444
|
default: "rd:bg-primary-muted rd:text-primary",
|
|
15445
15445
|
secondary: "rd:bg-muted/60 rd:text-muted-foreground",
|
|
15446
15446
|
success: "rd:bg-success/12 rd:text-success",
|
|
15447
|
-
destructive: "rd:bg-destructive/12 rd:text-destructive"
|
|
15447
|
+
destructive: "rd:bg-destructive/12 rd:text-destructive",
|
|
15448
|
+
outline: "rd:border rd:border-border rd:text-muted-foreground"
|
|
15448
15449
|
},
|
|
15449
15450
|
size: {
|
|
15450
15451
|
default: "rd:px-2 rd:py-0.5 rd:text-[11px]",
|
|
@@ -15796,24 +15797,35 @@ function Vm({ fileDiff: e, comments: t, draftComments: n, diffStyle: r, viewed:
|
|
|
15796
15797
|
r,
|
|
15797
15798
|
a,
|
|
15798
15799
|
o
|
|
15799
|
-
]), y = i((t) =>
|
|
15800
|
-
|
|
15801
|
-
|
|
15802
|
-
|
|
15803
|
-
|
|
15804
|
-
|
|
15805
|
-
|
|
15806
|
-
|
|
15807
|
-
|
|
15808
|
-
|
|
15809
|
-
|
|
15810
|
-
|
|
15811
|
-
|
|
15812
|
-
|
|
15813
|
-
|
|
15814
|
-
|
|
15815
|
-
|
|
15816
|
-
|
|
15800
|
+
]), y = i((t) => {
|
|
15801
|
+
if (t.metadata.kind === "pending") return o ? null : /* @__PURE__ */ p(Fm, {
|
|
15802
|
+
onSubmit: (n) => {
|
|
15803
|
+
s({
|
|
15804
|
+
file: e.name,
|
|
15805
|
+
line: t.lineNumber,
|
|
15806
|
+
side: t.side,
|
|
15807
|
+
body: n
|
|
15808
|
+
}), g(null);
|
|
15809
|
+
},
|
|
15810
|
+
onCancel: () => g(null)
|
|
15811
|
+
});
|
|
15812
|
+
if (t.metadata.kind === "draft") {
|
|
15813
|
+
let { draft: e } = t.metadata;
|
|
15814
|
+
return /* @__PURE__ */ p(Lm, {
|
|
15815
|
+
draft: e,
|
|
15816
|
+
onSetStatus: (t) => u(e.id, t),
|
|
15817
|
+
readOnly: o
|
|
15818
|
+
});
|
|
15819
|
+
}
|
|
15820
|
+
if (t.metadata.kind === "comment") {
|
|
15821
|
+
let { comment: e, commentIndex: n } = t.metadata;
|
|
15822
|
+
return /* @__PURE__ */ p(Im, {
|
|
15823
|
+
comment: e,
|
|
15824
|
+
onDelete: () => c(n)
|
|
15825
|
+
});
|
|
15826
|
+
}
|
|
15827
|
+
return null;
|
|
15828
|
+
}, [
|
|
15817
15829
|
e.name,
|
|
15818
15830
|
s,
|
|
15819
15831
|
c,
|
|
@@ -15992,8 +16004,12 @@ function Um(e) {
|
|
|
15992
16004
|
status: t
|
|
15993
16005
|
} : n));
|
|
15994
16006
|
}, []), ne = l(() => Rm(r, s), [r, s]), re = i(async () => {
|
|
15995
|
-
await Nm(w, ne), x(ne.comments.length), y(!0);
|
|
15996
|
-
}, [
|
|
16007
|
+
await Nm(w, ne), x(ne.comments.length), y(!0), e.onSubmit?.(ne);
|
|
16008
|
+
}, [
|
|
16009
|
+
w,
|
|
16010
|
+
ne,
|
|
16011
|
+
e.onSubmit
|
|
16012
|
+
]), ie = i((e, t) => {
|
|
15997
16013
|
ee((n) => {
|
|
15998
16014
|
let r = new Map(n), i = new Set(r.get(e) ?? []);
|
|
15999
16015
|
return i.has(t) ? i.delete(t) : i.add(t), r.set(e, i), r;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reviewdeck-ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Embeddable React component for reviewdeck code review UI.",
|
|
5
5
|
"homepage": "https://github.com/neutree-ai/reviewdeck",
|
|
6
6
|
"repository": {
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"import": "./dist/reviewdeck-ui.js",
|
|
20
20
|
"types": "./dist/index.d.ts"
|
|
21
21
|
},
|
|
22
|
-
"./style.css": "./dist/
|
|
22
|
+
"./style.css": "./dist/reviewdeck-ui.css"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
|
-
"build": "vp build",
|
|
25
|
+
"build": "vp build && tsc --emitDeclarationOnly --outDir dist",
|
|
26
26
|
"test": "true"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|