@blocklet/discuss-kit 1.6.104 → 1.6.106
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-installer.js +18 -0
- package/lib/cjs/constants.js +4 -0
- package/lib/cjs/index.js +2 -2
- package/lib/es/comments-installer.js +19 -0
- package/lib/es/constants.js +4 -0
- package/lib/es/index.js +1 -1
- package/package.json +6 -6
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
3
|
+
const uiReact = require("@blocklet/ui-react");
|
|
4
|
+
const PropTypes = require("prop-types");
|
|
5
|
+
const Comments = require("./comments");
|
|
6
|
+
const constants = require("./constants");
|
|
7
|
+
function CommentsInstaller({ installerProps, ...rest }) {
|
|
8
|
+
return /* @__PURE__ */ jsxRuntime.jsx(uiReact.ComponentInstaller, { did: constants.DiscussKitDid, ...installerProps, children: /* @__PURE__ */ jsxRuntime.jsx(Comments, { ...rest }) });
|
|
9
|
+
}
|
|
10
|
+
CommentsInstaller.propTypes = {
|
|
11
|
+
...Comments.propTypes,
|
|
12
|
+
installerProps: PropTypes.object
|
|
13
|
+
};
|
|
14
|
+
CommentsInstaller.defaultProps = {
|
|
15
|
+
...Comments.defaultProps,
|
|
16
|
+
installerProps: {}
|
|
17
|
+
};
|
|
18
|
+
module.exports = CommentsInstaller;
|
package/lib/cjs/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const themeProvider = require("./theme-provider");
|
|
4
|
-
const
|
|
4
|
+
const commentsInstaller = require("./comments-installer");
|
|
5
5
|
const commentsWithSession = require("./comments-with-session");
|
|
6
6
|
exports.ThemeProvider = themeProvider;
|
|
7
|
-
exports.Comments =
|
|
7
|
+
exports.Comments = commentsInstaller;
|
|
8
8
|
exports.CommentsWithSession = commentsWithSession;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ComponentInstaller } from "@blocklet/ui-react";
|
|
3
|
+
import PropTypes from "prop-types";
|
|
4
|
+
import Comments from "./comments";
|
|
5
|
+
import { DiscussKitDid } from "./constants";
|
|
6
|
+
function CommentsInstaller({ installerProps, ...rest }) {
|
|
7
|
+
return /* @__PURE__ */ jsx(ComponentInstaller, { did: DiscussKitDid, ...installerProps, children: /* @__PURE__ */ jsx(Comments, { ...rest }) });
|
|
8
|
+
}
|
|
9
|
+
CommentsInstaller.propTypes = {
|
|
10
|
+
...Comments.propTypes,
|
|
11
|
+
installerProps: PropTypes.object
|
|
12
|
+
};
|
|
13
|
+
CommentsInstaller.defaultProps = {
|
|
14
|
+
...Comments.defaultProps,
|
|
15
|
+
installerProps: {}
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
CommentsInstaller as default
|
|
19
|
+
};
|
package/lib/es/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blocklet/discuss-kit",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.106",
|
|
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,11 +34,11 @@
|
|
|
34
34
|
"author": "Nate <nate@arcblock.io> (http://github.com/NateRobinson)",
|
|
35
35
|
"license": "MIT",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@arcblock/did-connect": "^2.9.
|
|
38
|
-
"@arcblock/ux": "^2.9.
|
|
37
|
+
"@arcblock/did-connect": "^2.9.21",
|
|
38
|
+
"@arcblock/ux": "^2.9.21",
|
|
39
39
|
"@arcblock/ws": "^1.18.108",
|
|
40
|
-
"@blocklet/discuss-kit-ux": "1.6.
|
|
41
|
-
"@blocklet/editor": "1.6.
|
|
40
|
+
"@blocklet/discuss-kit-ux": "1.6.106",
|
|
41
|
+
"@blocklet/editor": "1.6.106",
|
|
42
42
|
"@emotion/react": "^11.10.5",
|
|
43
43
|
"@emotion/styled": "^11.10.5",
|
|
44
44
|
"@mui/icons-material": "^5.14.9",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"vite-plugin-build": "^0.10.0",
|
|
77
77
|
"vite-plugin-svgr": "^4.2.0"
|
|
78
78
|
},
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "c0fad0824de505fa81a96c8d0b73e4ee0f04c9fe"
|
|
80
80
|
}
|