@blocklet/discuss-kit 2.0.52 → 2.0.53

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.
@@ -2,7 +2,6 @@
2
2
  const jsxRuntime = require("react/jsx-runtime");
3
3
  const react = require("react");
4
4
  const Theme = require("@arcblock/ux/lib/Theme");
5
- require("url-join");
6
5
  const PropTypes = require("prop-types");
7
6
  const SessionManager = require("@arcblock/did-connect/lib/SessionManager");
8
7
  const Session = require("@arcblock/did-connect/lib/Session");
@@ -103,6 +102,7 @@ const DiscussKitComments = react.forwardRef(
103
102
  const [apiAvailable, setApiAvailable] = react.useState(utils.isDiscussKitRunning);
104
103
  discussKitUx.useDefaultApiErrorHandler({
105
104
  request: api,
105
+ // eslint-disable-next-line consistent-return
106
106
  onError: (e) => {
107
107
  var _a;
108
108
  if (((_a = e.response) == null ? void 0 : _a.status) === 404) {
@@ -335,7 +335,8 @@ Wrapper.propTypes = {
335
335
  showProfileCard: PropTypes.bool,
336
336
  order: PropTypes.oneOf(["asc", "desc"]),
337
337
  interactive: PropTypes.bool,
338
- renderComments: PropTypes.func
338
+ renderComments: PropTypes.func,
339
+ renderDonation: PropTypes.any
339
340
  };
340
341
  Wrapper.defaultProps = {
341
342
  displayConnectButton: false,
@@ -1,7 +1,6 @@
1
1
  import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
2
  import { forwardRef, useState, useContext, useRef, useMemo, useEffect } from "react";
3
3
  import { styled } from "@arcblock/ux/lib/Theme";
4
- import "url-join";
5
4
  import PropTypes from "prop-types";
6
5
  import SessionManager from "@arcblock/did-connect/lib/SessionManager";
7
6
  import { SessionContext } from "@arcblock/did-connect/lib/Session";
@@ -102,6 +101,7 @@ const DiscussKitComments = forwardRef(
102
101
  const [apiAvailable, setApiAvailable] = useState(isDiscussKitRunning);
103
102
  useDefaultApiErrorHandler({
104
103
  request: api,
104
+ // eslint-disable-next-line consistent-return
105
105
  onError: (e) => {
106
106
  var _a;
107
107
  if (((_a = e.response) == null ? void 0 : _a.status) === 404) {
@@ -334,7 +334,8 @@ Wrapper.propTypes = {
334
334
  showProfileCard: PropTypes.bool,
335
335
  order: PropTypes.oneOf(["asc", "desc"]),
336
336
  interactive: PropTypes.bool,
337
- renderComments: PropTypes.func
337
+ renderComments: PropTypes.func,
338
+ renderDonation: PropTypes.any
338
339
  };
339
340
  Wrapper.defaultProps = {
340
341
  displayConnectButton: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/discuss-kit",
3
- "version": "2.0.52",
3
+ "version": "2.0.53",
4
4
  "description": "A react component for Discuss Kit blocklet.",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/es/index.js",
@@ -34,13 +34,10 @@
34
34
  "author": "Nate <nate@arcblock.io> (http://github.com/NateRobinson)",
35
35
  "license": "MIT",
36
36
  "dependencies": {
37
- "@arcblock/did-connect": "^2.10.1",
38
- "@arcblock/ux": "^2.10.1",
39
- "@arcblock/ws": "^1.18.123",
40
- "@blocklet/discuss-kit-ux": "2.0.52",
41
- "@blocklet/editor": "2.0.52",
37
+ "@arcblock/ws": "^1.18.126",
38
+ "@blocklet/discuss-kit-ux": "2.0.53",
39
+ "@blocklet/editor": "2.0.53",
42
40
  "@blocklet/js-sdk": "^1.16.28",
43
- "@blocklet/ui-react": "^2.10.1",
44
41
  "@emotion/react": "^11.10.5",
45
42
  "@emotion/styled": "^11.10.5",
46
43
  "@mui/icons-material": "^5.14.9",
@@ -60,6 +57,9 @@
60
57
  "url-join": "^4.0.1"
61
58
  },
62
59
  "peerDependencies": {
60
+ "@arcblock/did-connect": "^2.10.5",
61
+ "@arcblock/ux": "^2.10.5",
62
+ "@blocklet/ui-react": "^2.10.5",
63
63
  "react": ">=18.0.0",
64
64
  "react-dom": ">=18.0.0"
65
65
  },
@@ -78,5 +78,5 @@
78
78
  "vite-plugin-build": "^0.10.0",
79
79
  "vite-plugin-svgr": "^4.2.0"
80
80
  },
81
- "gitHead": "523f0dde92bb6c674f5135d8adbff0580c77630b"
81
+ "gitHead": "3b69eb3eff2c8d36d32eb61d4c4a98117bbc55c8"
82
82
  }