@mdbase-dev/ui 0.1.0-beta.210 → 0.1.0-beta.211
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/CommentsPanel.js +1 -1
- package/dist/comments.js +1 -1
- package/package.json +2 -2
package/dist/CommentsPanel.js
CHANGED
|
@@ -815,7 +815,7 @@ const Thread = memo(function Thread({
|
|
|
815
815
|
id: "M7SqjM",
|
|
816
816
|
message: "Reopen"
|
|
817
817
|
})
|
|
818
|
-
}),
|
|
818
|
+
}), thread.replies.every(r => r.deletedAt) && withdraw(root), onOpenRecord && _jsx("button", {
|
|
819
819
|
type: "button",
|
|
820
820
|
className: "mdbase-thread-action is-quiet",
|
|
821
821
|
onClick: () => onOpenRecord(root.path),
|
package/dist/comments.js
CHANGED
|
@@ -308,7 +308,7 @@ export function applySuggestion(body, target, replacement) {
|
|
|
308
308
|
if (!at || body.slice(at.from, at.to) !== target.quote.exact) return null;
|
|
309
309
|
return body.slice(0, at.from) + replacement + body.slice(at.to);
|
|
310
310
|
}
|
|
311
|
-
/** A thread shows unless its first comment was withdrawn and
|
|
311
|
+
/** A thread shows unless its first comment was withdrawn and no reply still stands. */
|
|
312
312
|
const shown = t => !t.root.deletedAt || t.replies.some(r => !r.deletedAt);
|
|
313
313
|
/** The threads whose first comment is on `record`. */
|
|
314
314
|
export function recordThreads(record, comments, paths) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mdbase-dev/ui",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.211",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -229,6 +229,6 @@
|
|
|
229
229
|
"typecheck": "node scripts/compile-catalogues.mjs && tsc -p tsconfig.json --noEmit"
|
|
230
230
|
},
|
|
231
231
|
"mdbaseRelease": {
|
|
232
|
-
"commit": "
|
|
232
|
+
"commit": "90e03df5a7014f153455fc4699ec224cc2781426"
|
|
233
233
|
}
|
|
234
234
|
}
|