@blocklet/discuss-kit 1.5.120 → 1.5.122
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 +7 -0
- package/lib/es/comments.js +7 -0
- package/package.json +4 -4
package/lib/cjs/comments.js
CHANGED
|
@@ -180,6 +180,13 @@ function DiscussKitComments({
|
|
|
180
180
|
add(formatComment(data));
|
|
181
181
|
onChange == null ? void 0 : onChange();
|
|
182
182
|
},
|
|
183
|
+
UPDATE_COMMENT: (data) => {
|
|
184
|
+
updateCommentState(data.id, (current) => {
|
|
185
|
+
current.content = data.content;
|
|
186
|
+
current.updatedAt = data.updatedAt;
|
|
187
|
+
return current;
|
|
188
|
+
});
|
|
189
|
+
},
|
|
183
190
|
RATING: () => objectRatingState.retry(),
|
|
184
191
|
RATING_COMMENT: async ({
|
|
185
192
|
commentId
|
package/lib/es/comments.js
CHANGED
|
@@ -168,6 +168,13 @@ function DiscussKitComments({
|
|
|
168
168
|
add(formatComment(data));
|
|
169
169
|
onChange == null ? void 0 : onChange();
|
|
170
170
|
},
|
|
171
|
+
UPDATE_COMMENT: (data) => {
|
|
172
|
+
updateCommentState(data.id, (current) => {
|
|
173
|
+
current.content = data.content;
|
|
174
|
+
current.updatedAt = data.updatedAt;
|
|
175
|
+
return current;
|
|
176
|
+
});
|
|
177
|
+
},
|
|
171
178
|
RATING: () => objectRatingState.retry(),
|
|
172
179
|
RATING_COMMENT: async ({
|
|
173
180
|
commentId
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/discuss-kit",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.122",
|
|
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.7.21",
|
|
38
38
|
"@arcblock/ux": "^2.7.21",
|
|
39
39
|
"@arcblock/ws": "^1.18.90",
|
|
40
|
-
"@blocklet/discuss-kit-ux": "1.5.
|
|
41
|
-
"@blocklet/editor": "1.5.
|
|
40
|
+
"@blocklet/discuss-kit-ux": "1.5.122",
|
|
41
|
+
"@blocklet/editor": "1.5.122",
|
|
42
42
|
"@emotion/react": "^11.10.5",
|
|
43
43
|
"@emotion/styled": "^11.10.5",
|
|
44
44
|
"@mui/icons-material": "^5.14.9",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"vite-plugin-build": "^0.7.1",
|
|
78
78
|
"vite-plugin-svgr": "^2.2.2"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "4f9df40a61822b5cbe603be2387b4a642579e326"
|
|
81
81
|
}
|