react-component-instance 0.0.15 → 0.0.16
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 +3 -3
- package/src/index.d.mts +1 -1
- package/src/utils/index.d.mts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-component-instance",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.16",
|
|
4
4
|
"description": "Get a React class component instance from its DOM Element",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"@babel/eslint-parser": "^7.27.0",
|
|
36
36
|
"@babel/preset-env": "^7.26.9",
|
|
37
37
|
"@babel/preset-react": "^7.26.3",
|
|
38
|
-
"@sequencemedia/eslint-config-standard": "^0.2.
|
|
39
|
-
"@sequencemedia/eslint-config-typescript": "^0.1.
|
|
38
|
+
"@sequencemedia/eslint-config-standard": "^0.2.47",
|
|
39
|
+
"@sequencemedia/eslint-config-typescript": "^0.1.69",
|
|
40
40
|
"@testing-library/jest-dom": "^6.6.3",
|
|
41
41
|
"@testing-library/react": "^16.2.0",
|
|
42
42
|
"@types/debug": "^4.1.12",
|
package/src/index.d.mts
CHANGED
|
@@ -22,6 +22,6 @@ export function getInstanceFromContainerElement (containerElement?: Element | nu
|
|
|
22
22
|
|
|
23
23
|
export function getInstanceFromComponentElement (componentElement?: Element | null): React.Component<any, any> | HTMLElement | Text | null
|
|
24
24
|
|
|
25
|
-
export function findInstanceFor (element: Element | null | undefined, Component: (() => React.JSX.Element) | typeof React.Component)
|
|
25
|
+
export function findInstanceFor (element: Element | null | undefined, Component: (() => React.JSX.Element) | typeof React.Component): React.Component<any, any> | HTMLElement | Text | null
|
|
26
26
|
|
|
27
27
|
export function getInstance (render: RenderType): React.Component<any, any> | HTMLElement | Text | null
|
package/src/utils/index.d.mts
CHANGED
|
@@ -3,9 +3,9 @@ import type React from 'react'
|
|
|
3
3
|
type FiberRootNode = ReactComponentInstanceTypes.FiberRootNode
|
|
4
4
|
type FiberNode = ReactComponentInstanceTypes.FiberNode
|
|
5
5
|
|
|
6
|
-
export function isReactFiberKey (key: PropertyKey)
|
|
6
|
+
export function isReactFiberKey (key: PropertyKey): boolean
|
|
7
7
|
|
|
8
|
-
export function isReactPropsKey (key: PropertyKey)
|
|
8
|
+
export function isReactPropsKey (key: PropertyKey): boolean
|
|
9
9
|
|
|
10
10
|
export function isReactContainerFiberKey (key: PropertyKey): boolean
|
|
11
11
|
|