diff --git a/esm/attributes-to-props.d.mts b/esm/attributes-to-props.d.mts new file mode 100644 index 00000000..76cda8c7 --- /dev/null +++ b/esm/attributes-to-props.d.mts @@ -0,0 +1 @@ +export { default } from '../lib/attributes-to-props'; diff --git a/esm/dom-to-react.d.mts b/esm/dom-to-react.d.mts new file mode 100644 index 00000000..35068a7f --- /dev/null +++ b/esm/dom-to-react.d.mts @@ -0,0 +1 @@ +export { default } from '../lib/dom-to-react'; diff --git a/esm/index.d.mts b/esm/index.d.mts new file mode 100644 index 00000000..b0bd7bf8 --- /dev/null +++ b/esm/index.d.mts @@ -0,0 +1,2 @@ +export * from '../lib/index'; +export { default } from '../lib/index'; diff --git a/esm/index.mjs b/esm/index.mjs index 572a9d98..147e38e5 100644 --- a/esm/index.mjs +++ b/esm/index.mjs @@ -1,13 +1,5 @@ import HTMLReactParser from '../lib/index.js'; -export { - Comment, - Element, - ProcessingInstruction, - Text, - attributesToProps, - domToReact, - htmlToDOM, -} from '../lib/index.js'; +export * from '../lib/index.js'; export default HTMLReactParser.default || HTMLReactParser; diff --git a/esm/utilities.d.mts b/esm/utilities.d.mts new file mode 100644 index 00000000..1d32cb49 --- /dev/null +++ b/esm/utilities.d.mts @@ -0,0 +1 @@ +export * from '../lib/utilities'; diff --git a/esm/utilities.mjs b/esm/utilities.mjs index 281cb293..c8b878fd 100644 --- a/esm/utilities.mjs +++ b/esm/utilities.mjs @@ -1,8 +1 @@ -export { - isCustomComponent, - setStyleProp, - PRESERVE_CUSTOM_ATTRIBUTES, - ELEMENTS_WITH_NO_TEXT_CHILDREN, - canTextBeChildOfNode, - returnFirstArg, -} from '../lib/utilities.js'; +export * from '../lib/utilities.js'; diff --git a/package.json b/package.json index fb0c908d..a5997030 100644 --- a/package.json +++ b/package.json @@ -5,15 +5,12 @@ "author": "Mark ", "main": "./lib/index.js", "module": "./esm/index.mjs", - "types": "./lib/index.d.ts", "exports": { ".": { - "types": "./lib/index.d.ts", "import": "./esm/index.mjs", "require": "./lib/index.js" }, "./lib/*": { - "types": "./lib/*.d.ts", "import": "./esm/*.mjs", "default": "./lib/*.js" }