@blocklet/discuss-kit 2.1.195 → 2.1.196
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 +12 -6
- package/lib/es/comments.js +12 -6
- package/package.json +3 -3
package/lib/cjs/comments.js
CHANGED
|
@@ -119,7 +119,8 @@ const DiscussKitComments = react.forwardRef(
|
|
|
119
119
|
sendText,
|
|
120
120
|
sendIcon,
|
|
121
121
|
showTopbar,
|
|
122
|
-
sendComment
|
|
122
|
+
sendComment,
|
|
123
|
+
reactionAppend
|
|
123
124
|
}, ref) => {
|
|
124
125
|
discussKitUx.useDefaultApiErrorHandler({
|
|
125
126
|
request: api
|
|
@@ -216,7 +217,8 @@ const DiscussKitComments = react.forwardRef(
|
|
|
216
217
|
data: objectRatingState.value,
|
|
217
218
|
onRate: handleOnRate,
|
|
218
219
|
onUnrate: handleOnUnrate,
|
|
219
|
-
interactive
|
|
220
|
+
interactive,
|
|
221
|
+
append: reactionAppend
|
|
220
222
|
}
|
|
221
223
|
) }),
|
|
222
224
|
displayConnectButton && (session.user ? /* @__PURE__ */ jsxRuntime.jsx(SessionManager, { style: { padding: 0 }, showText: true, showRole: true, session }) : /* @__PURE__ */ jsxRuntime.jsx(Button, { size: "medium", variant: "contained", color: "primary", onClick: () => session.login(), children: t("connect") }))
|
|
@@ -263,7 +265,8 @@ DiscussKitComments.propTypes = {
|
|
|
263
265
|
sendIcon: PropTypes.node,
|
|
264
266
|
commentInputPosition: PropTypes.oneOf(["top", "bottom"]),
|
|
265
267
|
showTopbar: PropTypes.bool,
|
|
266
|
-
sendComment: PropTypes.func
|
|
268
|
+
sendComment: PropTypes.func,
|
|
269
|
+
reactionAppend: PropTypes.any
|
|
267
270
|
};
|
|
268
271
|
DiscussKitComments.defaultProps = {
|
|
269
272
|
displayConnectButton: false,
|
|
@@ -279,7 +282,8 @@ DiscussKitComments.defaultProps = {
|
|
|
279
282
|
sendIcon: null,
|
|
280
283
|
commentInputPosition: "top",
|
|
281
284
|
showTopbar: true,
|
|
282
|
-
sendComment: null
|
|
285
|
+
sendComment: null,
|
|
286
|
+
reactionAppend: null
|
|
283
287
|
};
|
|
284
288
|
function Wrapper({
|
|
285
289
|
target,
|
|
@@ -363,7 +367,8 @@ Wrapper.propTypes = {
|
|
|
363
367
|
renderActions: PropTypes.func,
|
|
364
368
|
renderEditorPlugins: PropTypes.func,
|
|
365
369
|
renderInnerFooter: PropTypes.func,
|
|
366
|
-
sendComment: PropTypes.func
|
|
370
|
+
sendComment: PropTypes.func,
|
|
371
|
+
reactionAppend: PropTypes.any
|
|
367
372
|
};
|
|
368
373
|
Wrapper.defaultProps = {
|
|
369
374
|
displayConnectButton: false,
|
|
@@ -383,7 +388,8 @@ Wrapper.defaultProps = {
|
|
|
383
388
|
renderActions: null,
|
|
384
389
|
renderEditorPlugins: null,
|
|
385
390
|
renderInnerFooter: null,
|
|
386
|
-
sendComment: null
|
|
391
|
+
sendComment: null,
|
|
392
|
+
reactionAppend: null
|
|
387
393
|
};
|
|
388
394
|
const Container = Theme.styled("div")`
|
|
389
395
|
width: 100%;
|
package/lib/es/comments.js
CHANGED
|
@@ -118,7 +118,8 @@ const DiscussKitComments = forwardRef(
|
|
|
118
118
|
sendText,
|
|
119
119
|
sendIcon,
|
|
120
120
|
showTopbar,
|
|
121
|
-
sendComment
|
|
121
|
+
sendComment,
|
|
122
|
+
reactionAppend
|
|
122
123
|
}, ref) => {
|
|
123
124
|
useDefaultApiErrorHandler({
|
|
124
125
|
request: api
|
|
@@ -215,7 +216,8 @@ const DiscussKitComments = forwardRef(
|
|
|
215
216
|
data: objectRatingState.value,
|
|
216
217
|
onRate: handleOnRate,
|
|
217
218
|
onUnrate: handleOnUnrate,
|
|
218
|
-
interactive
|
|
219
|
+
interactive,
|
|
220
|
+
append: reactionAppend
|
|
219
221
|
}
|
|
220
222
|
) }),
|
|
221
223
|
displayConnectButton && (session.user ? /* @__PURE__ */ jsx(SessionManager, { style: { padding: 0 }, showText: true, showRole: true, session }) : /* @__PURE__ */ jsx(Button, { size: "medium", variant: "contained", color: "primary", onClick: () => session.login(), children: t("connect") }))
|
|
@@ -262,7 +264,8 @@ DiscussKitComments.propTypes = {
|
|
|
262
264
|
sendIcon: PropTypes.node,
|
|
263
265
|
commentInputPosition: PropTypes.oneOf(["top", "bottom"]),
|
|
264
266
|
showTopbar: PropTypes.bool,
|
|
265
|
-
sendComment: PropTypes.func
|
|
267
|
+
sendComment: PropTypes.func,
|
|
268
|
+
reactionAppend: PropTypes.any
|
|
266
269
|
};
|
|
267
270
|
DiscussKitComments.defaultProps = {
|
|
268
271
|
displayConnectButton: false,
|
|
@@ -278,7 +281,8 @@ DiscussKitComments.defaultProps = {
|
|
|
278
281
|
sendIcon: null,
|
|
279
282
|
commentInputPosition: "top",
|
|
280
283
|
showTopbar: true,
|
|
281
|
-
sendComment: null
|
|
284
|
+
sendComment: null,
|
|
285
|
+
reactionAppend: null
|
|
282
286
|
};
|
|
283
287
|
function Wrapper({
|
|
284
288
|
target,
|
|
@@ -362,7 +366,8 @@ Wrapper.propTypes = {
|
|
|
362
366
|
renderActions: PropTypes.func,
|
|
363
367
|
renderEditorPlugins: PropTypes.func,
|
|
364
368
|
renderInnerFooter: PropTypes.func,
|
|
365
|
-
sendComment: PropTypes.func
|
|
369
|
+
sendComment: PropTypes.func,
|
|
370
|
+
reactionAppend: PropTypes.any
|
|
366
371
|
};
|
|
367
372
|
Wrapper.defaultProps = {
|
|
368
373
|
displayConnectButton: false,
|
|
@@ -382,7 +387,8 @@ Wrapper.defaultProps = {
|
|
|
382
387
|
renderActions: null,
|
|
383
388
|
renderEditorPlugins: null,
|
|
384
389
|
renderInnerFooter: null,
|
|
385
|
-
sendComment: null
|
|
390
|
+
sendComment: null,
|
|
391
|
+
reactionAppend: null
|
|
386
392
|
};
|
|
387
393
|
const Container = styled("div")`
|
|
388
394
|
width: 100%;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/discuss-kit",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.196",
|
|
4
4
|
"description": "A react component for Discuss Kit blocklet.",
|
|
5
5
|
"main": "./lib/cjs/index.js",
|
|
6
6
|
"module": "./lib/es/index.js",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"rehype-sanitize": "^5.0.1",
|
|
50
50
|
"timeago.js": "^4.0.2",
|
|
51
51
|
"url-join": "^4.0.1",
|
|
52
|
-
"@blocklet/discuss-kit-ux": "^2.1.
|
|
53
|
-
"@blocklet/editor": "^2.1.
|
|
52
|
+
"@blocklet/discuss-kit-ux": "^2.1.196",
|
|
53
|
+
"@blocklet/editor": "^2.1.196"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@arcblock/did-connect": "^2.10.36",
|