html-react-parser 5.0.9 → 5.0.11

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/esm/index.mjs CHANGED
@@ -1,5 +1,13 @@
1
1
  import HTMLReactParser from '../lib/index.js';
2
2
 
3
- export * from '../lib/index.js';
3
+ export {
4
+ Comment,
5
+ Element,
6
+ ProcessingInstruction,
7
+ Text,
8
+ attributesToProps,
9
+ domToReact,
10
+ htmlToDOM,
11
+ } from '../lib/index.js';
4
12
 
5
13
  export default HTMLReactParser.default || HTMLReactParser;
package/esm/utilities.mjs CHANGED
@@ -1 +1,8 @@
1
- export * from '../lib/utilities.js';
1
+ export {
2
+ isCustomComponent,
3
+ setStyleProp,
4
+ PRESERVE_CUSTOM_ATTRIBUTES,
5
+ ELEMENTS_WITH_NO_TEXT_CHILDREN,
6
+ canTextBeChildOfNode,
7
+ returnFirstArg,
8
+ } from '../lib/utilities.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "html-react-parser",
3
- "version": "5.0.9",
3
+ "version": "5.0.11",
4
4
  "description": "HTML to React parser.",
5
5
  "author": "Mark <mark@remarkablemark.org>",
6
6
  "main": "./lib/index.js",
@@ -50,7 +50,7 @@
50
50
  ],
51
51
  "dependencies": {
52
52
  "domhandler": "5.0.3",
53
- "html-dom-parser": "5.0.5",
53
+ "html-dom-parser": "5.0.6",
54
54
  "react-property": "2.0.2",
55
55
  "style-to-js": "1.1.10"
56
56
  },
@@ -66,11 +66,11 @@
66
66
  "@types/jest": "29.5.11",
67
67
  "@types/react": "18.2.45",
68
68
  "@types/react-dom": "18.2.18",
69
- "@typescript-eslint/eslint-plugin": "6.14.0",
70
- "@typescript-eslint/parser": "6.14.0",
69
+ "@typescript-eslint/eslint-plugin": "6.15.0",
70
+ "@typescript-eslint/parser": "6.15.0",
71
71
  "benchmark": "2.1.4",
72
72
  "eslint": "8.56.0",
73
- "eslint-plugin-prettier": "5.0.1",
73
+ "eslint-plugin-prettier": "5.1.0",
74
74
  "husky": "8.0.3",
75
75
  "jest": "29.7.0",
76
76
  "jest-environment-jsdom": "29.7.0",