react-component-name 0.0.6 → 0.0.8
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 +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-component-name",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.8",
|
|
4
4
|
"description": "Get a React component name from Fiber",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"@babel/eslint-parser": "^7.27.0",
|
|
38
38
|
"@babel/preset-env": "^7.26.9",
|
|
39
39
|
"@babel/preset-react": "^7.26.3",
|
|
40
|
-
"@sequencemedia/eslint-config-standard": "^0.2.
|
|
41
|
-
"@sequencemedia/eslint-config-typescript": "^0.1.
|
|
40
|
+
"@sequencemedia/eslint-config-standard": "^0.2.47",
|
|
41
|
+
"@sequencemedia/eslint-config-typescript": "^0.1.69",
|
|
42
42
|
"@testing-library/jest-dom": "^6.6.3",
|
|
43
43
|
"@testing-library/react": "^16.2.0",
|
|
44
44
|
"@types/debug": "^4.1.12",
|
package/src/index.d.mts
CHANGED
|
@@ -12,15 +12,15 @@ declare function getElementFromContainerElement (containerElement: Element): Ele
|
|
|
12
12
|
|
|
13
13
|
export function isReactFiberKey (key: PropertyKey): boolean
|
|
14
14
|
|
|
15
|
-
export function isReactContainerFiberKey (key: PropertyKey)
|
|
15
|
+
export function isReactContainerFiberKey (key: PropertyKey): boolean
|
|
16
16
|
|
|
17
17
|
export function getReactFiberKey (element: Element): string | undefined
|
|
18
18
|
|
|
19
|
-
export function getReactContainerFiberKey (containerElement: Element)
|
|
19
|
+
export function getReactContainerFiberKey (containerElement: Element): string | undefined
|
|
20
20
|
|
|
21
21
|
export function getFiberFromRender (render: RenderType): FiberNode | null
|
|
22
22
|
|
|
23
|
-
export function getFiberFromElement (element: Element)
|
|
23
|
+
export function getFiberFromElement (element: Element): FiberNode | null
|
|
24
24
|
|
|
25
25
|
export function getContainerFiberFromContainerElement (containerElement: Element): FiberNode | null
|
|
26
26
|
|