@blocklet/discuss-kit 1.6.2 → 1.6.3
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 +24 -11
- package/lib/es/comments.js +24 -11
- package/package.json +4 -4
package/lib/cjs/comments.js
CHANGED
|
@@ -98,8 +98,11 @@ function DiscussKitComments({
|
|
|
98
98
|
onChange,
|
|
99
99
|
onSendComment,
|
|
100
100
|
commentInputPosition,
|
|
101
|
-
|
|
101
|
+
autoFocus,
|
|
102
|
+
disabledSend,
|
|
102
103
|
initialContent,
|
|
104
|
+
sendText,
|
|
105
|
+
sendIcon,
|
|
103
106
|
showTopbar
|
|
104
107
|
}) {
|
|
105
108
|
discussKitUx.useDefaultApiErrorHandler({ request: api });
|
|
@@ -187,9 +190,11 @@ function DiscussKitComments({
|
|
|
187
190
|
{
|
|
188
191
|
send: sendComment,
|
|
189
192
|
draftKey: `object-${object.id}`,
|
|
190
|
-
autoFocus
|
|
191
|
-
|
|
192
|
-
initialContent
|
|
193
|
+
autoFocus,
|
|
194
|
+
disabledSend,
|
|
195
|
+
initialContent,
|
|
196
|
+
sendText,
|
|
197
|
+
sendIcon
|
|
193
198
|
}
|
|
194
199
|
) })
|
|
195
200
|
] }),
|
|
@@ -229,9 +234,11 @@ function DiscussKitComments({
|
|
|
229
234
|
{
|
|
230
235
|
send: sendComment,
|
|
231
236
|
draftKey: `object-${object.id}`,
|
|
232
|
-
autoFocus
|
|
233
|
-
|
|
234
|
-
initialContent
|
|
237
|
+
autoFocus,
|
|
238
|
+
disabledSend,
|
|
239
|
+
initialContent,
|
|
240
|
+
sendText,
|
|
241
|
+
sendIcon
|
|
235
242
|
}
|
|
236
243
|
) })
|
|
237
244
|
] });
|
|
@@ -242,8 +249,11 @@ DiscussKitComments.propTypes = {
|
|
|
242
249
|
object: PropTypes.object.isRequired,
|
|
243
250
|
onChange: PropTypes.func,
|
|
244
251
|
onSendComment: PropTypes.func,
|
|
245
|
-
|
|
252
|
+
disabledSend: PropTypes.bool,
|
|
253
|
+
autoFocus: PropTypes.bool,
|
|
246
254
|
initialContent: PropTypes.string,
|
|
255
|
+
sendText: PropTypes.string,
|
|
256
|
+
sendIcon: PropTypes.node,
|
|
247
257
|
commentInputPosition: PropTypes.oneOf(["top", "bottom"]),
|
|
248
258
|
showTopbar: PropTypes.bool
|
|
249
259
|
};
|
|
@@ -254,8 +264,11 @@ DiscussKitComments.defaultProps = {
|
|
|
254
264
|
},
|
|
255
265
|
onSendComment: () => {
|
|
256
266
|
},
|
|
257
|
-
|
|
267
|
+
disabledSend: void 0,
|
|
268
|
+
autoFocus: false,
|
|
258
269
|
initialContent: "",
|
|
270
|
+
sendText: "",
|
|
271
|
+
sendIcon: null,
|
|
259
272
|
commentInputPosition: "top",
|
|
260
273
|
showTopbar: true
|
|
261
274
|
};
|
|
@@ -328,7 +341,7 @@ Wrapper.propTypes = {
|
|
|
328
341
|
autoCollapse: PropTypes.bool,
|
|
329
342
|
autoLoadComments: PropTypes.bool,
|
|
330
343
|
allowCopyLink: PropTypes.bool,
|
|
331
|
-
|
|
344
|
+
disabledSend: PropTypes.bool,
|
|
332
345
|
showProfileCard: PropTypes.bool,
|
|
333
346
|
order: PropTypes.oneOf(["asc", "desc"]),
|
|
334
347
|
interactive: PropTypes.bool
|
|
@@ -343,7 +356,7 @@ Wrapper.defaultProps = {
|
|
|
343
356
|
autoCollapse: false,
|
|
344
357
|
autoLoadComments: true,
|
|
345
358
|
allowCopyLink: false,
|
|
346
|
-
|
|
359
|
+
disabledSend: void 0,
|
|
347
360
|
showProfileCard: false,
|
|
348
361
|
order: void 0,
|
|
349
362
|
interactive: true
|
package/lib/es/comments.js
CHANGED
|
@@ -97,8 +97,11 @@ function DiscussKitComments({
|
|
|
97
97
|
onChange,
|
|
98
98
|
onSendComment,
|
|
99
99
|
commentInputPosition,
|
|
100
|
-
|
|
100
|
+
autoFocus,
|
|
101
|
+
disabledSend,
|
|
101
102
|
initialContent,
|
|
103
|
+
sendText,
|
|
104
|
+
sendIcon,
|
|
102
105
|
showTopbar
|
|
103
106
|
}) {
|
|
104
107
|
useDefaultApiErrorHandler({ request: api });
|
|
@@ -186,9 +189,11 @@ function DiscussKitComments({
|
|
|
186
189
|
{
|
|
187
190
|
send: sendComment,
|
|
188
191
|
draftKey: `object-${object.id}`,
|
|
189
|
-
autoFocus
|
|
190
|
-
|
|
191
|
-
initialContent
|
|
192
|
+
autoFocus,
|
|
193
|
+
disabledSend,
|
|
194
|
+
initialContent,
|
|
195
|
+
sendText,
|
|
196
|
+
sendIcon
|
|
192
197
|
}
|
|
193
198
|
) })
|
|
194
199
|
] }),
|
|
@@ -228,9 +233,11 @@ function DiscussKitComments({
|
|
|
228
233
|
{
|
|
229
234
|
send: sendComment,
|
|
230
235
|
draftKey: `object-${object.id}`,
|
|
231
|
-
autoFocus
|
|
232
|
-
|
|
233
|
-
initialContent
|
|
236
|
+
autoFocus,
|
|
237
|
+
disabledSend,
|
|
238
|
+
initialContent,
|
|
239
|
+
sendText,
|
|
240
|
+
sendIcon
|
|
234
241
|
}
|
|
235
242
|
) })
|
|
236
243
|
] });
|
|
@@ -241,8 +248,11 @@ DiscussKitComments.propTypes = {
|
|
|
241
248
|
object: PropTypes.object.isRequired,
|
|
242
249
|
onChange: PropTypes.func,
|
|
243
250
|
onSendComment: PropTypes.func,
|
|
244
|
-
|
|
251
|
+
disabledSend: PropTypes.bool,
|
|
252
|
+
autoFocus: PropTypes.bool,
|
|
245
253
|
initialContent: PropTypes.string,
|
|
254
|
+
sendText: PropTypes.string,
|
|
255
|
+
sendIcon: PropTypes.node,
|
|
246
256
|
commentInputPosition: PropTypes.oneOf(["top", "bottom"]),
|
|
247
257
|
showTopbar: PropTypes.bool
|
|
248
258
|
};
|
|
@@ -253,8 +263,11 @@ DiscussKitComments.defaultProps = {
|
|
|
253
263
|
},
|
|
254
264
|
onSendComment: () => {
|
|
255
265
|
},
|
|
256
|
-
|
|
266
|
+
disabledSend: void 0,
|
|
267
|
+
autoFocus: false,
|
|
257
268
|
initialContent: "",
|
|
269
|
+
sendText: "",
|
|
270
|
+
sendIcon: null,
|
|
258
271
|
commentInputPosition: "top",
|
|
259
272
|
showTopbar: true
|
|
260
273
|
};
|
|
@@ -327,7 +340,7 @@ Wrapper.propTypes = {
|
|
|
327
340
|
autoCollapse: PropTypes.bool,
|
|
328
341
|
autoLoadComments: PropTypes.bool,
|
|
329
342
|
allowCopyLink: PropTypes.bool,
|
|
330
|
-
|
|
343
|
+
disabledSend: PropTypes.bool,
|
|
331
344
|
showProfileCard: PropTypes.bool,
|
|
332
345
|
order: PropTypes.oneOf(["asc", "desc"]),
|
|
333
346
|
interactive: PropTypes.bool
|
|
@@ -342,7 +355,7 @@ Wrapper.defaultProps = {
|
|
|
342
355
|
autoCollapse: false,
|
|
343
356
|
autoLoadComments: true,
|
|
344
357
|
allowCopyLink: false,
|
|
345
|
-
|
|
358
|
+
disabledSend: void 0,
|
|
346
359
|
showProfileCard: false,
|
|
347
360
|
order: void 0,
|
|
348
361
|
interactive: true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/discuss-kit",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.3",
|
|
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.8.21",
|
|
38
38
|
"@arcblock/ux": "^2.8.21",
|
|
39
39
|
"@arcblock/ws": "^1.18.103",
|
|
40
|
-
"@blocklet/discuss-kit-ux": "1.6.
|
|
41
|
-
"@blocklet/editor": "1.6.
|
|
40
|
+
"@blocklet/discuss-kit-ux": "1.6.3",
|
|
41
|
+
"@blocklet/editor": "1.6.3",
|
|
42
42
|
"@emotion/react": "^11.10.5",
|
|
43
43
|
"@emotion/styled": "^11.10.5",
|
|
44
44
|
"@mui/icons-material": "^5.14.9",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"vite-plugin-build": "^0.10.0",
|
|
77
77
|
"vite-plugin-svgr": "^4.1.0"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "14ab368c74fc02f22ea8a2afe19cd67d16bad7d9"
|
|
80
80
|
}
|