react-highlight-me 1.2.0 → 1.2.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.
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  type Props = {
3
- children?: React.ReactElement | string | null;
3
+ children?: React.ReactNode;
4
4
  words?: string[] | string | RegExp | RegExp[];
5
5
  highlightStyle?: React.CSSProperties;
6
6
  caseSensitive?: boolean;
7
7
  isEscapePattern?: boolean;
8
8
  isWordBoundary?: boolean;
9
9
  };
10
- declare const TextHighlighter: ({ children, words, highlightStyle, caseSensitive, isEscapePattern, isWordBoundary, }: Props) => unknown;
10
+ declare const TextHighlighter: ({ children, words, highlightStyle, caseSensitive, isEscapePattern, isWordBoundary, }: Props) => React.ReactNode;
11
11
  export default TextHighlighter;
@@ -1,11 +1,11 @@
1
1
  import React from 'react';
2
2
  type Props = {
3
- children?: React.ReactElement | string | null;
3
+ children?: React.ReactNode;
4
4
  words?: string[] | string | RegExp | RegExp[];
5
5
  highlightStyle?: React.CSSProperties;
6
6
  caseSensitive?: boolean;
7
7
  isEscapePattern?: boolean;
8
8
  isWordBoundary?: boolean;
9
9
  };
10
- declare const TextHighlighter: ({ children, words, highlightStyle, caseSensitive, isEscapePattern, isWordBoundary, }: Props) => unknown;
10
+ declare const TextHighlighter: ({ children, words, highlightStyle, caseSensitive, isEscapePattern, isWordBoundary, }: Props) => React.ReactNode;
11
11
  export default TextHighlighter;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "react-highlight-me",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Highlight words in React components or text",
5
- "main": "dist/index.cjs.js",
6
- "module": "dist/index.esm.js",
5
+ "main": "dist/cjs/index.js",
6
+ "module": "dist/esm/index.js",
7
7
  "exports": {
8
8
  ".": {
9
- "import": "./dist/index.esm.js",
10
- "require": "./dist/index.cjs.js"
9
+ "import": "./dist/esm/index.js",
10
+ "require": "./dist/cjs/index.js"
11
11
  }
12
12
  },
13
13
  "files": [