html-react-parser 5.0.8 → 5.0.9

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/README.md CHANGED
@@ -388,7 +388,7 @@ parse('<br>', {
388
388
  ### htmlparser2
389
389
 
390
390
  > [!WARNING]
391
- > `htmlparser2` options _**do not** work on the client-side_ (browser) and the options _**only work** on the server-side_ (Node.js). By overriding the options, it could cause universal rendering to break.
391
+ > `htmlparser2` options _**don't work** on the client-side_ (browser) and they _**only work** on the server-side_ (Node.js). By overriding the options, it can break universal rendering.
392
392
 
393
393
  Default [htmlparser2 options](https://github.com/fb55/htmlparser2/wiki/Parser-options#option-xmlmode) can be overridden in >=[0.12.0](https://github.com/remarkablemark/html-react-parser/tree/v0.12.0).
394
394
 
@@ -0,0 +1 @@
1
+ export { default } from '../lib/attributes-to-props';
@@ -0,0 +1 @@
1
+ export { default } from '../lib/dom-to-react';
@@ -0,0 +1,2 @@
1
+ export * from '../lib/index';
2
+ export { default } from '../lib/index';
package/esm/index.mjs CHANGED
@@ -1,13 +1,5 @@
1
1
  import HTMLReactParser from '../lib/index.js';
2
2
 
3
- export {
4
- Comment,
5
- Element,
6
- ProcessingInstruction,
7
- Text,
8
- attributesToProps,
9
- domToReact,
10
- htmlToDOM,
11
- } from '../lib/index.js';
3
+ export * from '../lib/index.js';
12
4
 
13
5
  export default HTMLReactParser.default || HTMLReactParser;
@@ -0,0 +1 @@
1
+ export * from '../lib/utilities';
package/esm/utilities.mjs CHANGED
@@ -1,8 +1 @@
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';
1
+ export * from '../lib/utilities.js';
package/package.json CHANGED
@@ -1,19 +1,16 @@
1
1
  {
2
2
  "name": "html-react-parser",
3
- "version": "5.0.8",
3
+ "version": "5.0.9",
4
4
  "description": "HTML to React parser.",
5
5
  "author": "Mark <mark@remarkablemark.org>",
6
6
  "main": "./lib/index.js",
7
7
  "module": "./esm/index.mjs",
8
- "types": "./lib/index.d.ts",
9
8
  "exports": {
10
9
  ".": {
11
- "types": "./lib/index.d.ts",
12
10
  "import": "./esm/index.mjs",
13
11
  "require": "./lib/index.js"
14
12
  },
15
13
  "./lib/*": {
16
- "types": "./lib/*.d.ts",
17
14
  "import": "./esm/*.mjs",
18
15
  "default": "./lib/*.js"
19
16
  }