@blocklet/discuss-kit 2.0.28 → 2.0.30
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/lib/cjs/comments.js +6 -2
- package/lib/cjs/locales/en.js +17 -1
- package/lib/cjs/locales/zh.js +17 -1
- package/lib/es/comments.js +6 -2
- package/lib/es/locales/en.js +17 -1
- package/lib/es/locales/zh.js +17 -1
- package/package.json +4 -4
package/lib/cjs/comments.js
CHANGED
|
@@ -262,6 +262,7 @@ function Wrapper({
|
|
|
262
262
|
allowCopyLink,
|
|
263
263
|
showProfileCard,
|
|
264
264
|
interactive,
|
|
265
|
+
renderComments,
|
|
265
266
|
...rest
|
|
266
267
|
}) {
|
|
267
268
|
if (!(target == null ? void 0 : target.id)) {
|
|
@@ -304,6 +305,7 @@ function Wrapper({
|
|
|
304
305
|
showProfileCard,
|
|
305
306
|
interactive,
|
|
306
307
|
containerRef,
|
|
308
|
+
renderComments,
|
|
307
309
|
children: /* @__PURE__ */ jsxRuntime.jsx(DiscussKitComments, { ...rest, object, ref: containerRef })
|
|
308
310
|
}
|
|
309
311
|
) }) }) }) }) }) });
|
|
@@ -326,7 +328,8 @@ Wrapper.propTypes = {
|
|
|
326
328
|
disabledSend: PropTypes.bool,
|
|
327
329
|
showProfileCard: PropTypes.bool,
|
|
328
330
|
order: PropTypes.oneOf(["asc", "desc"]),
|
|
329
|
-
interactive: PropTypes.bool
|
|
331
|
+
interactive: PropTypes.bool,
|
|
332
|
+
renderComments: PropTypes.func
|
|
330
333
|
};
|
|
331
334
|
Wrapper.defaultProps = {
|
|
332
335
|
displayConnectButton: false,
|
|
@@ -341,7 +344,8 @@ Wrapper.defaultProps = {
|
|
|
341
344
|
disabledSend: void 0,
|
|
342
345
|
showProfileCard: false,
|
|
343
346
|
order: void 0,
|
|
344
|
-
interactive: true
|
|
347
|
+
interactive: true,
|
|
348
|
+
renderComments: null
|
|
345
349
|
};
|
|
346
350
|
const Container = Theme.styled("div")`
|
|
347
351
|
width: 100%;
|
package/lib/cjs/locales/en.js
CHANGED
|
@@ -21,6 +21,22 @@ const en = flat({
|
|
|
21
21
|
readMore: "Read More",
|
|
22
22
|
showMoreReplies: "Show more replies",
|
|
23
23
|
deleted: "This comment has been deleted",
|
|
24
|
-
emptyContent: "No comment yet"
|
|
24
|
+
emptyContent: "No comment yet",
|
|
25
|
+
userActionLog: {
|
|
26
|
+
added: "added the",
|
|
27
|
+
removed: "removed the",
|
|
28
|
+
label: "label",
|
|
29
|
+
assigned: "assigned",
|
|
30
|
+
unassigned: "unassigned",
|
|
31
|
+
selfAssigned: "self-assigned this",
|
|
32
|
+
selfUnassigned: "self-unassigned this",
|
|
33
|
+
published: "published this",
|
|
34
|
+
unpublished: "unpublished this",
|
|
35
|
+
changeTitle: "changed the title",
|
|
36
|
+
edited: "edited",
|
|
37
|
+
created: "created",
|
|
38
|
+
changeBoard: "changed the board",
|
|
39
|
+
mention: "mentioned this"
|
|
40
|
+
}
|
|
25
41
|
});
|
|
26
42
|
module.exports = en;
|
package/lib/cjs/locales/zh.js
CHANGED
|
@@ -21,6 +21,22 @@ const zh = flat({
|
|
|
21
21
|
readMore: "更多内容",
|
|
22
22
|
showMoreReplies: "显示更多回复",
|
|
23
23
|
deleted: "该评论已被删除",
|
|
24
|
-
emptyContent: "暂无评论内容"
|
|
24
|
+
emptyContent: "暂无评论内容",
|
|
25
|
+
userActionLog: {
|
|
26
|
+
added: "添加",
|
|
27
|
+
removed: "移除",
|
|
28
|
+
label: "标签",
|
|
29
|
+
assigned: "分配给",
|
|
30
|
+
unassigned: "取消分配给",
|
|
31
|
+
selfAssigned: "分配给自己",
|
|
32
|
+
selfUnassigned: "取消分配给自己",
|
|
33
|
+
published: "发布",
|
|
34
|
+
unpublished: "取消发布",
|
|
35
|
+
changeTitle: "修改标题",
|
|
36
|
+
edited: "编辑于",
|
|
37
|
+
created: "创建于",
|
|
38
|
+
changeBoard: "修改板块",
|
|
39
|
+
mention: "提到"
|
|
40
|
+
}
|
|
25
41
|
});
|
|
26
42
|
module.exports = zh;
|
package/lib/es/comments.js
CHANGED
|
@@ -261,6 +261,7 @@ function Wrapper({
|
|
|
261
261
|
allowCopyLink,
|
|
262
262
|
showProfileCard,
|
|
263
263
|
interactive,
|
|
264
|
+
renderComments,
|
|
264
265
|
...rest
|
|
265
266
|
}) {
|
|
266
267
|
if (!(target == null ? void 0 : target.id)) {
|
|
@@ -303,6 +304,7 @@ function Wrapper({
|
|
|
303
304
|
showProfileCard,
|
|
304
305
|
interactive,
|
|
305
306
|
containerRef,
|
|
307
|
+
renderComments,
|
|
306
308
|
children: /* @__PURE__ */ jsx(DiscussKitComments, { ...rest, object, ref: containerRef })
|
|
307
309
|
}
|
|
308
310
|
) }) }) }) }) }) });
|
|
@@ -325,7 +327,8 @@ Wrapper.propTypes = {
|
|
|
325
327
|
disabledSend: PropTypes.bool,
|
|
326
328
|
showProfileCard: PropTypes.bool,
|
|
327
329
|
order: PropTypes.oneOf(["asc", "desc"]),
|
|
328
|
-
interactive: PropTypes.bool
|
|
330
|
+
interactive: PropTypes.bool,
|
|
331
|
+
renderComments: PropTypes.func
|
|
329
332
|
};
|
|
330
333
|
Wrapper.defaultProps = {
|
|
331
334
|
displayConnectButton: false,
|
|
@@ -340,7 +343,8 @@ Wrapper.defaultProps = {
|
|
|
340
343
|
disabledSend: void 0,
|
|
341
344
|
showProfileCard: false,
|
|
342
345
|
order: void 0,
|
|
343
|
-
interactive: true
|
|
346
|
+
interactive: true,
|
|
347
|
+
renderComments: null
|
|
344
348
|
};
|
|
345
349
|
const Container = styled("div")`
|
|
346
350
|
width: 100%;
|
package/lib/es/locales/en.js
CHANGED
|
@@ -20,7 +20,23 @@ const en = flat({
|
|
|
20
20
|
readMore: "Read More",
|
|
21
21
|
showMoreReplies: "Show more replies",
|
|
22
22
|
deleted: "This comment has been deleted",
|
|
23
|
-
emptyContent: "No comment yet"
|
|
23
|
+
emptyContent: "No comment yet",
|
|
24
|
+
userActionLog: {
|
|
25
|
+
added: "added the",
|
|
26
|
+
removed: "removed the",
|
|
27
|
+
label: "label",
|
|
28
|
+
assigned: "assigned",
|
|
29
|
+
unassigned: "unassigned",
|
|
30
|
+
selfAssigned: "self-assigned this",
|
|
31
|
+
selfUnassigned: "self-unassigned this",
|
|
32
|
+
published: "published this",
|
|
33
|
+
unpublished: "unpublished this",
|
|
34
|
+
changeTitle: "changed the title",
|
|
35
|
+
edited: "edited",
|
|
36
|
+
created: "created",
|
|
37
|
+
changeBoard: "changed the board",
|
|
38
|
+
mention: "mentioned this"
|
|
39
|
+
}
|
|
24
40
|
});
|
|
25
41
|
export {
|
|
26
42
|
en as default
|
package/lib/es/locales/zh.js
CHANGED
|
@@ -20,7 +20,23 @@ const zh = flat({
|
|
|
20
20
|
readMore: "更多内容",
|
|
21
21
|
showMoreReplies: "显示更多回复",
|
|
22
22
|
deleted: "该评论已被删除",
|
|
23
|
-
emptyContent: "暂无评论内容"
|
|
23
|
+
emptyContent: "暂无评论内容",
|
|
24
|
+
userActionLog: {
|
|
25
|
+
added: "添加",
|
|
26
|
+
removed: "移除",
|
|
27
|
+
label: "标签",
|
|
28
|
+
assigned: "分配给",
|
|
29
|
+
unassigned: "取消分配给",
|
|
30
|
+
selfAssigned: "分配给自己",
|
|
31
|
+
selfUnassigned: "取消分配给自己",
|
|
32
|
+
published: "发布",
|
|
33
|
+
unpublished: "取消发布",
|
|
34
|
+
changeTitle: "修改标题",
|
|
35
|
+
edited: "编辑于",
|
|
36
|
+
created: "创建于",
|
|
37
|
+
changeBoard: "修改板块",
|
|
38
|
+
mention: "提到"
|
|
39
|
+
}
|
|
24
40
|
});
|
|
25
41
|
export {
|
|
26
42
|
zh as default
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/discuss-kit",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.30",
|
|
4
4
|
"description": "A react component for Discuss Kit blocklet.",
|
|
5
5
|
"main": "./lib/cjs/index.js",
|
|
6
6
|
"module": "./lib/es/index.js",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"@arcblock/did-connect": "^2.10.1",
|
|
38
38
|
"@arcblock/ux": "^2.10.1",
|
|
39
39
|
"@arcblock/ws": "^1.18.123",
|
|
40
|
-
"@blocklet/discuss-kit-ux": "2.0.
|
|
41
|
-
"@blocklet/editor": "2.0.
|
|
40
|
+
"@blocklet/discuss-kit-ux": "2.0.30",
|
|
41
|
+
"@blocklet/editor": "2.0.30",
|
|
42
42
|
"@blocklet/js-sdk": "^1.16.28",
|
|
43
43
|
"@blocklet/ui-react": "^2.10.1",
|
|
44
44
|
"@emotion/react": "^11.10.5",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"vite-plugin-build": "^0.10.0",
|
|
79
79
|
"vite-plugin-svgr": "^4.2.0"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "af5244086d8945315aa554858ad12dcdde6bf102"
|
|
82
82
|
}
|