@readme/markdown 6.67.0-beta.2 → 6.68.0-beta.1

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@readme/markdown",
3
3
  "description": "ReadMe's React-based Markdown parser",
4
4
  "author": "Rafe Goldberg <rafe@readme.io>",
5
- "version": "6.67.0-beta.2",
5
+ "version": "6.68.0-beta.1",
6
6
  "main": "dist/main.node.js",
7
7
  "browser": "dist/main.js",
8
8
  "files": [
@@ -52,21 +52,17 @@
52
52
  "remark-slug": "^6.0.0",
53
53
  "remark-stringify": "^8.0.0",
54
54
  "trim": "^1.0.1",
55
- "unified": "9.2.0",
55
+ "unified": "^9.2.2",
56
56
  "unist-util-flatmap": "^1.0.0",
57
57
  "unist-util-map": "^3.1.2",
58
58
  "unist-util-select": "^4.0.0",
59
59
  "unist-util-visit": "^4.1.1"
60
60
  },
61
61
  "peerDependencies": {
62
- "@mdx-js/mdx": "^1.6.22",
63
- "@mdx-js/react": "^1.6.22",
64
- "@mdx-js/runtime": "^1.6.22",
65
62
  "@readme/variable": "^15.1.3",
66
63
  "@tippyjs/react": "^4.1.0",
67
64
  "react": "^16.14.0",
68
- "react-dom": "^16.14.0",
69
- "remark-mdx": "^1.6.22"
65
+ "react-dom": "^16.14.0"
70
66
  },
71
67
  "devDependencies": {
72
68
  "@babel/core": "^7.19.3",
@@ -87,11 +83,8 @@
87
83
  "@semantic-release/git": "^10.0.1",
88
84
  "@testing-library/jest-dom": "^5.16.5",
89
85
  "@testing-library/react": "^12.1.2",
90
- "@tippyjs/react": "^4.2.6",
91
- "assert": "^2.0.0",
92
86
  "babel-jest": "^29.2.1",
93
87
  "babel-loader": "^8.2.5",
94
- "browserify-fs": "^1.0.0",
95
88
  "codemirror": "^5.54.0",
96
89
  "core-js": "^3.25.5",
97
90
  "css-loader": "^6.7.1",
@@ -112,11 +105,9 @@
112
105
  "regenerator-runtime": "^0.13.10",
113
106
  "sass-loader": "^13.1.0",
114
107
  "semantic-release": "^19.0.5",
115
- "stream-browserify": "^3.0.0",
116
108
  "string.prototype.trimend": "^1.0.5",
117
109
  "stylelint": "^14.16.1",
118
110
  "terser-webpack-plugin": "^5.3.6",
119
- "util": "^0.12.5",
120
111
  "webpack": "^5.74.0",
121
112
  "webpack-cli": "^4.10.0",
122
113
  "webpack-dev-server": "^4.11.1",
@@ -1,31 +0,0 @@
1
- const PropTypes = require('prop-types');
2
- const React = require('react');
3
-
4
- /*
5
- * To get around hast/html sanitation, we pass custom components through using
6
- * className's. Then this Div component, can render the associated component
7
- * instead. This used to be done with a custom `React.createElement`, but for
8
- * mdx@v1.6, I don't see a way to customize that.
9
- */
10
-
11
- const Div = ({ components, theme, ...props }) => {
12
- if (Object.keys(components).includes(props.className)) {
13
- const Component = components[props.className];
14
- return <Component theme={theme} {...props} />;
15
- }
16
-
17
- // eslint-disable-next-line react/jsx-props-no-spreading
18
- return <div {...props} />;
19
- };
20
-
21
- Div.propTypes = {
22
- children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.any), PropTypes.object]),
23
- className: PropTypes.string,
24
- components: PropTypes.object,
25
- theme: PropTypes.string.isRequired,
26
- };
27
-
28
- module.exports =
29
- (components, { theme }) =>
30
- props =>
31
- <Div components={components} theme={theme} {...props} />;