@blocklet/discuss-kit 2.3.10 → 2.3.11
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 +8 -4
- package/lib/es/comments.js +8 -4
- package/package.json +3 -3
package/lib/cjs/comments.js
CHANGED
|
@@ -126,7 +126,8 @@ const DiscussKitComments = react.forwardRef(
|
|
|
126
126
|
onInput,
|
|
127
127
|
draftKey,
|
|
128
128
|
inputSx,
|
|
129
|
-
editorRef
|
|
129
|
+
editorRef,
|
|
130
|
+
disableCmdEnter
|
|
130
131
|
}, ref) => {
|
|
131
132
|
discussKitUx.useDefaultApiErrorHandler({
|
|
132
133
|
request: api
|
|
@@ -213,7 +214,8 @@ const DiscussKitComments = react.forwardRef(
|
|
|
213
214
|
sendText,
|
|
214
215
|
sendIcon,
|
|
215
216
|
renderInnerFooter,
|
|
216
|
-
onChange: onInput
|
|
217
|
+
onChange: onInput,
|
|
218
|
+
disableCmdEnter
|
|
217
219
|
}
|
|
218
220
|
);
|
|
219
221
|
};
|
|
@@ -281,7 +283,8 @@ DiscussKitComments.propTypes = {
|
|
|
281
283
|
onInput: PropTypes.func,
|
|
282
284
|
draftKey: PropTypes.string,
|
|
283
285
|
editorRef: PropTypes.object,
|
|
284
|
-
inputSx: PropTypes.object
|
|
286
|
+
inputSx: PropTypes.object,
|
|
287
|
+
disableCmdEnter: PropTypes.bool
|
|
285
288
|
};
|
|
286
289
|
DiscussKitComments.defaultProps = {
|
|
287
290
|
displayConnectButton: false,
|
|
@@ -305,7 +308,8 @@ DiscussKitComments.defaultProps = {
|
|
|
305
308
|
},
|
|
306
309
|
draftKey: "",
|
|
307
310
|
editorRef: null,
|
|
308
|
-
inputSx: {}
|
|
311
|
+
inputSx: {},
|
|
312
|
+
disableCmdEnter: false
|
|
309
313
|
};
|
|
310
314
|
function Wrapper({
|
|
311
315
|
target,
|
package/lib/es/comments.js
CHANGED
|
@@ -125,7 +125,8 @@ const DiscussKitComments = forwardRef(
|
|
|
125
125
|
onInput,
|
|
126
126
|
draftKey,
|
|
127
127
|
inputSx,
|
|
128
|
-
editorRef
|
|
128
|
+
editorRef,
|
|
129
|
+
disableCmdEnter
|
|
129
130
|
}, ref) => {
|
|
130
131
|
useDefaultApiErrorHandler({
|
|
131
132
|
request: api
|
|
@@ -212,7 +213,8 @@ const DiscussKitComments = forwardRef(
|
|
|
212
213
|
sendText,
|
|
213
214
|
sendIcon,
|
|
214
215
|
renderInnerFooter,
|
|
215
|
-
onChange: onInput
|
|
216
|
+
onChange: onInput,
|
|
217
|
+
disableCmdEnter
|
|
216
218
|
}
|
|
217
219
|
);
|
|
218
220
|
};
|
|
@@ -280,7 +282,8 @@ DiscussKitComments.propTypes = {
|
|
|
280
282
|
onInput: PropTypes.func,
|
|
281
283
|
draftKey: PropTypes.string,
|
|
282
284
|
editorRef: PropTypes.object,
|
|
283
|
-
inputSx: PropTypes.object
|
|
285
|
+
inputSx: PropTypes.object,
|
|
286
|
+
disableCmdEnter: PropTypes.bool
|
|
284
287
|
};
|
|
285
288
|
DiscussKitComments.defaultProps = {
|
|
286
289
|
displayConnectButton: false,
|
|
@@ -304,7 +307,8 @@ DiscussKitComments.defaultProps = {
|
|
|
304
307
|
},
|
|
305
308
|
draftKey: "",
|
|
306
309
|
editorRef: null,
|
|
307
|
-
inputSx: {}
|
|
310
|
+
inputSx: {},
|
|
311
|
+
disableCmdEnter: false
|
|
308
312
|
};
|
|
309
313
|
function Wrapper({
|
|
310
314
|
target,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/discuss-kit",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.11",
|
|
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.3.
|
|
53
|
-
"@blocklet/editor": "^2.3.
|
|
52
|
+
"@blocklet/discuss-kit-ux": "^2.3.11",
|
|
53
|
+
"@blocklet/editor": "^2.3.11"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@arcblock/did-connect": "^2.10.36",
|