@octanejs/transition-group 0.0.20 → 0.0.22

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": "@octanejs/transition-group",
3
- "version": "0.0.20",
3
+ "version": "0.0.22",
4
4
  "license": "BSD-3-Clause",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -41,14 +41,14 @@
41
41
  "./config": "./src/config.ts"
42
42
  },
43
43
  "peerDependencies": {
44
- "octane": "^0.4.0"
44
+ "octane": "^0.6.0"
45
45
  },
46
46
  "devDependencies": {
47
47
  "@babel/core": "^7.28.0",
48
48
  "@babel/preset-env": "^7.28.0",
49
49
  "@babel/preset-react": "^7.27.1",
50
50
  "@testing-library/react": "^14.3.1",
51
- "@tsrx/react": "^0.3.0",
51
+ "@tsrx/react": "^0.3.7",
52
52
  "@types/react": "^19.2.17",
53
53
  "@types/react-dom": "^19.2.3",
54
54
  "babel-jest": "30.4.1",
@@ -66,8 +66,8 @@
66
66
  "typescript": "^5.9.3",
67
67
  "vitest": "^4.1.10",
68
68
  "@types/react-transition-group": "^4.4.12",
69
- "@octanejs/testing-library": "0.1.53",
70
- "octane": "0.4.0"
69
+ "@octanejs/testing-library": "0.1.55",
70
+ "octane": "0.6.0"
71
71
  },
72
72
  "scripts": {
73
73
  "test": "pnpm upstream:check && pnpm upstream:verify && pnpm test:upstream && vitest run --root ../.. --project transition-group --project transition-group-ssr",
@@ -7,6 +7,7 @@ import {
7
7
  useLayoutEffect,
8
8
  useRef,
9
9
  useState,
10
+ type ElementDescriptor,
10
11
  type OctaneNode,
11
12
  } from 'octane';
12
13
  import config from './config.ts';
@@ -251,7 +252,7 @@ function TransitionImpl(props: TransitionProps) @{
251
252
  ? children(status, childProps)
252
253
  : isChildrenBlock(children)
253
254
  ? children
254
- : cloneElement(Children.only(children), childProps);
255
+ : cloneElement(Children.only(children) as ElementDescriptor, childProps);
255
256
  }
256
257
 
257
258
  <TransitionGroupContext value={null}>{rendered}</TransitionGroupContext>