react-component-instance 0.0.15 → 0.0.17

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-component-instance",
3
- "version": "0.0.15",
3
+ "version": "0.0.17",
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.46",
39
- "@sequencemedia/eslint-config-typescript": "^0.1.67",
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",
@@ -49,7 +49,7 @@
49
49
  "husky": "^9.1.7",
50
50
  "jest": "^29.7.0",
51
51
  "jest-environment-jsdom": "^29.7.0",
52
- "react": "^19.0.0"
52
+ "react": "^19.1.0"
53
53
  },
54
54
  "imports": {
55
55
  "#react-component-instance": "./src/index.mjs"
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) : React.Component<any, any> | HTMLElement | Text | null
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
@@ -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) : boolean
6
+ export function isReactFiberKey (key: PropertyKey): boolean
7
7
 
8
- export function isReactPropsKey (key: PropertyKey) : boolean
8
+ export function isReactPropsKey (key: PropertyKey): boolean
9
9
 
10
10
  export function isReactContainerFiberKey (key: PropertyKey): boolean
11
11
 
@@ -1,20 +0,0 @@
1
- # Publish to NPM
2
-
3
- For CircleCI or the shell
4
-
5
- If you need an _authentication token_ to publish then you should resolve that before executing this script
6
-
7
- ```bash
8
- echo ".publish/publish.sh" >> .npmignore
9
- git clone https://github.com/modernpoacher/publish.git .publish
10
- .publish/publish.sh
11
- ```
12
-
13
- A Gist with the same content as `publish.sh` may need an additional step
14
-
15
- ```bash
16
- echo ".publish/publish.sh" >> .npmignore
17
- git clone https://gist.github.com/efd85e2b8da1ee830dd637f134994a9d.git .publish
18
- chmod +x .publish/publish.sh
19
- .publish/publish.sh
20
- ```