@blocklet/discuss-kit 2.3.84 → 2.3.86

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.
@@ -298,6 +298,7 @@ function Wrapper({
298
298
  renderDonation,
299
299
  renderActions,
300
300
  renderEditorPlugins,
301
+ enableAutoTranslate,
301
302
  renderInnerFooter,
302
303
  ...rest
303
304
  }) {
@@ -338,6 +339,7 @@ function Wrapper({
338
339
  renderDonation,
339
340
  renderActions,
340
341
  renderEditorPlugins,
342
+ enableAutoTranslate,
341
343
  renderComments,
342
344
  renderInnerFooter,
343
345
  children: /* @__PURE__ */ jsxRuntime.jsx(DiscussKitComments, { ...rest, object, ref: containerRef })
@@ -366,6 +368,7 @@ Wrapper.propTypes = {
366
368
  renderDonation: PropTypes.any,
367
369
  renderActions: PropTypes.func,
368
370
  renderEditorPlugins: PropTypes.func,
371
+ enableAutoTranslate: PropTypes.bool,
369
372
  renderInnerFooter: PropTypes.func,
370
373
  sendComment: PropTypes.func,
371
374
  reactionAppend: PropTypes.any
@@ -387,6 +390,7 @@ Wrapper.defaultProps = {
387
390
  renderDonation: null,
388
391
  renderActions: null,
389
392
  renderEditorPlugins: null,
393
+ enableAutoTranslate: false,
390
394
  renderInnerFooter: null,
391
395
  sendComment: null,
392
396
  reactionAppend: null
package/lib/cjs/index.js CHANGED
@@ -1,9 +1,18 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const discussKitUx = require("@blocklet/discuss-kit-ux");
3
4
  const commentsInstaller = require("./comments-installer");
4
5
  const commentsWithSession = require("./comments-with-session");
5
6
  const commentListener = require("./hooks/comment-listener");
6
7
  const commentsDialog = require("./comments-dialog");
8
+ Object.defineProperty(exports, "AutoTranslateHeaderAddon", {
9
+ enumerable: true,
10
+ get: () => discussKitUx.AutoTranslateHeaderAddon
11
+ });
12
+ Object.defineProperty(exports, "Translate", {
13
+ enumerable: true,
14
+ get: () => discussKitUx.Translate
15
+ });
7
16
  exports.Comments = commentsInstaller;
8
17
  exports.CommentsWithSession = commentsWithSession;
9
18
  Object.defineProperty(exports, "useCommentsListener", {
@@ -297,6 +297,7 @@ function Wrapper({
297
297
  renderDonation,
298
298
  renderActions,
299
299
  renderEditorPlugins,
300
+ enableAutoTranslate,
300
301
  renderInnerFooter,
301
302
  ...rest
302
303
  }) {
@@ -337,6 +338,7 @@ function Wrapper({
337
338
  renderDonation,
338
339
  renderActions,
339
340
  renderEditorPlugins,
341
+ enableAutoTranslate,
340
342
  renderComments,
341
343
  renderInnerFooter,
342
344
  children: /* @__PURE__ */ jsx(DiscussKitComments, { ...rest, object, ref: containerRef })
@@ -365,6 +367,7 @@ Wrapper.propTypes = {
365
367
  renderDonation: PropTypes.any,
366
368
  renderActions: PropTypes.func,
367
369
  renderEditorPlugins: PropTypes.func,
370
+ enableAutoTranslate: PropTypes.bool,
368
371
  renderInnerFooter: PropTypes.func,
369
372
  sendComment: PropTypes.func,
370
373
  reactionAppend: PropTypes.any
@@ -386,6 +389,7 @@ Wrapper.defaultProps = {
386
389
  renderDonation: null,
387
390
  renderActions: null,
388
391
  renderEditorPlugins: null,
392
+ enableAutoTranslate: false,
389
393
  renderInnerFooter: null,
390
394
  sendComment: null,
391
395
  reactionAppend: null
package/lib/es/index.js CHANGED
@@ -1,10 +1,13 @@
1
+ import { AutoTranslateHeaderAddon, Translate } from "@blocklet/discuss-kit-ux";
1
2
  import { default as default2 } from "./comments-installer";
2
3
  import { default as default3 } from "./comments-with-session";
3
4
  import { useCommentsListener } from "./hooks/comment-listener";
4
5
  import { CommentsDialog } from "./comments-dialog";
5
6
  export {
7
+ AutoTranslateHeaderAddon,
6
8
  default2 as Comments,
7
9
  CommentsDialog,
8
10
  default3 as CommentsWithSession,
11
+ Translate,
9
12
  useCommentsListener
10
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/discuss-kit",
3
- "version": "2.3.84",
3
+ "version": "2.3.86",
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.84",
53
- "@blocklet/editor": "^2.3.84"
52
+ "@blocklet/discuss-kit-ux": "^2.3.86",
53
+ "@blocklet/editor": "^2.3.86"
54
54
  },
55
55
  "peerDependencies": {
56
56
  "@arcblock/did-connect": "^2.10.36",