@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.
@@ -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;
@@ -0,0 +1,4 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const DiscussKitDid = "z8ia1WEiBZ7hxURf6LwH21Wpg99vophFwSJdu";
4
+ exports.DiscussKitDid = DiscussKitDid;
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 comments = require("./comments");
4
+ const commentsInstaller = require("./comments-installer");
5
5
  const commentsWithSession = require("./comments-with-session");
6
6
  exports.ThemeProvider = themeProvider;
7
- exports.Comments = 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
+ };
@@ -0,0 +1,4 @@
1
+ const DiscussKitDid = "z8ia1WEiBZ7hxURf6LwH21Wpg99vophFwSJdu";
2
+ export {
3
+ DiscussKitDid
4
+ };
package/lib/es/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { default as default2 } from "./theme-provider";
2
- import { default as default3 } from "./comments";
2
+ import { default as default3 } from "./comments-installer";
3
3
  import { default as default4 } from "./comments-with-session";
4
4
  export {
5
5
  default3 as Comments,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/discuss-kit",
3
- "version": "1.6.104",
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.20",
38
- "@arcblock/ux": "^2.9.20",
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.104",
41
- "@blocklet/editor": "1.6.104",
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": "c6a858bbcdb2d4246db33bc0769a1fe892bc167b"
79
+ "gitHead": "c0fad0824de505fa81a96c8d0b73e4ee0f04c9fe"
80
80
  }