@blocklet/discuss-kit 2.1.66 → 2.1.67

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.
@@ -112,7 +112,7 @@ const DiscussKitComments = react.forwardRef(
112
112
  });
113
113
  const { available } = useDiscussKitStatus();
114
114
  const { session } = react.useContext(Session.SessionContext) || {};
115
- const { state, sort, add, updateCommentState, interactive, findById } = discussKitUx.useCommentsContext();
115
+ const { state, sort, add, updateCommentState, interactive, findById, renderInnerFooter } = discussKitUx.useCommentsContext();
116
116
  const { total, order, initialized } = state;
117
117
  const { t } = context.useLocaleContext();
118
118
  const objectRatingState = useAsyncRetry(() => api.fetchRatings(object.id));
@@ -187,7 +187,8 @@ const DiscussKitComments = react.forwardRef(
187
187
  disabledSend,
188
188
  initialContent,
189
189
  sendText,
190
- sendIcon
190
+ sendIcon,
191
+ renderInnerFooter
191
192
  }
192
193
  );
193
194
  };
@@ -276,6 +277,7 @@ function Wrapper({
276
277
  renderDonation,
277
278
  renderActions,
278
279
  renderEditorPlugins,
280
+ renderInnerFooter,
279
281
  ...rest
280
282
  }) {
281
283
  if (!(target == null ? void 0 : target.id)) {
@@ -316,6 +318,7 @@ function Wrapper({
316
318
  renderActions,
317
319
  renderEditorPlugins,
318
320
  renderComments,
321
+ renderInnerFooter,
319
322
  children: /* @__PURE__ */ jsxRuntime.jsx(DiscussKitComments, { ...rest, object, ref: containerRef })
320
323
  }
321
324
  ) }) }) }) }) }) });
@@ -341,7 +344,8 @@ Wrapper.propTypes = {
341
344
  renderComments: PropTypes.func,
342
345
  renderDonation: PropTypes.any,
343
346
  renderActions: PropTypes.func,
344
- renderEditorPlugins: PropTypes.func
347
+ renderEditorPlugins: PropTypes.func,
348
+ renderInnerFooter: PropTypes.func
345
349
  };
346
350
  Wrapper.defaultProps = {
347
351
  displayConnectButton: false,
@@ -359,7 +363,8 @@ Wrapper.defaultProps = {
359
363
  renderComments: null,
360
364
  renderDonation: null,
361
365
  renderActions: null,
362
- renderEditorPlugins: null
366
+ renderEditorPlugins: null,
367
+ renderInnerFooter: null
363
368
  };
364
369
  const Container = Theme.styled("div")`
365
370
  width: 100%;
@@ -111,7 +111,7 @@ const DiscussKitComments = forwardRef(
111
111
  });
112
112
  const { available } = useDiscussKitStatus();
113
113
  const { session } = useContext(SessionContext) || {};
114
- const { state, sort, add, updateCommentState, interactive, findById } = useCommentsContext();
114
+ const { state, sort, add, updateCommentState, interactive, findById, renderInnerFooter } = useCommentsContext();
115
115
  const { total, order, initialized } = state;
116
116
  const { t } = useLocaleContext();
117
117
  const objectRatingState = useAsyncRetry(() => fetchRatings(object.id));
@@ -186,7 +186,8 @@ const DiscussKitComments = forwardRef(
186
186
  disabledSend,
187
187
  initialContent,
188
188
  sendText,
189
- sendIcon
189
+ sendIcon,
190
+ renderInnerFooter
190
191
  }
191
192
  );
192
193
  };
@@ -275,6 +276,7 @@ function Wrapper({
275
276
  renderDonation,
276
277
  renderActions,
277
278
  renderEditorPlugins,
279
+ renderInnerFooter,
278
280
  ...rest
279
281
  }) {
280
282
  if (!(target == null ? void 0 : target.id)) {
@@ -315,6 +317,7 @@ function Wrapper({
315
317
  renderActions,
316
318
  renderEditorPlugins,
317
319
  renderComments,
320
+ renderInnerFooter,
318
321
  children: /* @__PURE__ */ jsx(DiscussKitComments, { ...rest, object, ref: containerRef })
319
322
  }
320
323
  ) }) }) }) }) }) });
@@ -340,7 +343,8 @@ Wrapper.propTypes = {
340
343
  renderComments: PropTypes.func,
341
344
  renderDonation: PropTypes.any,
342
345
  renderActions: PropTypes.func,
343
- renderEditorPlugins: PropTypes.func
346
+ renderEditorPlugins: PropTypes.func,
347
+ renderInnerFooter: PropTypes.func
344
348
  };
345
349
  Wrapper.defaultProps = {
346
350
  displayConnectButton: false,
@@ -358,7 +362,8 @@ Wrapper.defaultProps = {
358
362
  renderComments: null,
359
363
  renderDonation: null,
360
364
  renderActions: null,
361
- renderEditorPlugins: null
365
+ renderEditorPlugins: null,
366
+ renderInnerFooter: null
362
367
  };
363
368
  const Container = styled("div")`
364
369
  width: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/discuss-kit",
3
- "version": "2.1.66",
3
+ "version": "2.1.67",
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.66",
53
- "@blocklet/editor": "^2.1.66"
52
+ "@blocklet/discuss-kit-ux": "^2.1.67",
53
+ "@blocklet/editor": "^2.1.67"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@arcblock/did-connect": "^2.10.36",