@blocklet/discuss-kit 2.1.38 → 2.1.40

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.
@@ -275,6 +275,7 @@ function Wrapper({
275
275
  renderComments,
276
276
  renderDonation,
277
277
  renderActions,
278
+ renderEditorPlugins,
278
279
  ...rest
279
280
  }) {
280
281
  if (!(target == null ? void 0 : target.id)) {
@@ -313,6 +314,7 @@ function Wrapper({
313
314
  containerRef,
314
315
  renderDonation,
315
316
  renderActions,
317
+ renderEditorPlugins,
316
318
  renderComments,
317
319
  children: /* @__PURE__ */ jsxRuntime.jsx(DiscussKitComments, { ...rest, object, ref: containerRef })
318
320
  }
@@ -338,7 +340,8 @@ Wrapper.propTypes = {
338
340
  interactive: PropTypes.bool,
339
341
  renderComments: PropTypes.func,
340
342
  renderDonation: PropTypes.any,
341
- renderActions: PropTypes.func
343
+ renderActions: PropTypes.func,
344
+ renderEditorPlugins: PropTypes.func
342
345
  };
343
346
  Wrapper.defaultProps = {
344
347
  displayConnectButton: false,
@@ -355,7 +358,8 @@ Wrapper.defaultProps = {
355
358
  interactive: true,
356
359
  renderComments: null,
357
360
  renderDonation: null,
358
- renderActions: null
361
+ renderActions: null,
362
+ renderEditorPlugins: null
359
363
  };
360
364
  const Container = Theme.styled("div")`
361
365
  width: 100%;
@@ -274,6 +274,7 @@ function Wrapper({
274
274
  renderComments,
275
275
  renderDonation,
276
276
  renderActions,
277
+ renderEditorPlugins,
277
278
  ...rest
278
279
  }) {
279
280
  if (!(target == null ? void 0 : target.id)) {
@@ -312,6 +313,7 @@ function Wrapper({
312
313
  containerRef,
313
314
  renderDonation,
314
315
  renderActions,
316
+ renderEditorPlugins,
315
317
  renderComments,
316
318
  children: /* @__PURE__ */ jsx(DiscussKitComments, { ...rest, object, ref: containerRef })
317
319
  }
@@ -337,7 +339,8 @@ Wrapper.propTypes = {
337
339
  interactive: PropTypes.bool,
338
340
  renderComments: PropTypes.func,
339
341
  renderDonation: PropTypes.any,
340
- renderActions: PropTypes.func
342
+ renderActions: PropTypes.func,
343
+ renderEditorPlugins: PropTypes.func
341
344
  };
342
345
  Wrapper.defaultProps = {
343
346
  displayConnectButton: false,
@@ -354,7 +357,8 @@ Wrapper.defaultProps = {
354
357
  interactive: true,
355
358
  renderComments: null,
356
359
  renderDonation: null,
357
- renderActions: null
360
+ renderActions: null,
361
+ renderEditorPlugins: null
358
362
  };
359
363
  const Container = styled("div")`
360
364
  width: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/discuss-kit",
3
- "version": "2.1.38",
3
+ "version": "2.1.40",
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.38",
53
- "@blocklet/editor": "^2.1.38"
52
+ "@blocklet/discuss-kit-ux": "^2.1.40",
53
+ "@blocklet/editor": "^2.1.40"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@arcblock/did-connect": "^2.10.36",