@mdbase-dev/ui 0.1.0-beta.210 → 0.1.0-beta.213
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 +5 -3
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.213",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -186,6 +186,8 @@
|
|
|
186
186
|
"@lingui/vite-plugin": "6.9.0",
|
|
187
187
|
"@mdbase-dev/sdk": "0.1.0-beta.188",
|
|
188
188
|
"@rolldown/plugin-babel": "^0.2.4",
|
|
189
|
+
"@types/jsdom": "^30.0.0",
|
|
190
|
+
"@types/node": "^24.0.0",
|
|
189
191
|
"@types/react": "^19.3.0",
|
|
190
192
|
"@types/react-dom": "^19.3.0",
|
|
191
193
|
"jsdom": "^29.1.1",
|
|
@@ -224,11 +226,11 @@
|
|
|
224
226
|
"i18n:extract": "mdbase-i18n extract",
|
|
225
227
|
"i18n:compile": "mdbase-i18n compile",
|
|
226
228
|
"i18n:check": "mdbase-i18n check",
|
|
227
|
-
"build": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\" && node scripts/compile-catalogues.mjs && tsc -p tsconfig.json && node scripts/compile-macros.mjs",
|
|
229
|
+
"build": "node -e \"require('node:fs').rmSync('dist',{recursive:true,force:true})\" && node scripts/compile-catalogues.mjs && tsc -p tsconfig.build.json && node scripts/compile-macros.mjs",
|
|
228
230
|
"test": "node scripts/compile-catalogues.mjs && node ../../scripts/ci/vitest.mjs",
|
|
229
231
|
"typecheck": "node scripts/compile-catalogues.mjs && tsc -p tsconfig.json --noEmit"
|
|
230
232
|
},
|
|
231
233
|
"mdbaseRelease": {
|
|
232
|
-
"commit": "
|
|
234
|
+
"commit": "24d959dd0a0499ff15a9cac8fb308a357519b4a2"
|
|
233
235
|
}
|
|
234
236
|
}
|