@octanejs/resizable-panels 0.0.10 → 0.0.12
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/resizable-panels",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
".": "./src/index.tsrx"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"octane": "^0.1.51 || ^0.2.0"
|
|
32
|
+
"octane": "^0.1.51 || ^0.2.0 || ^0.3.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@testing-library/jest-dom": "^6.9.1",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@testing-library/user-event": "^14.6.1",
|
|
38
38
|
"@types/react": "^19.2.17",
|
|
39
39
|
"@types/react-dom": "^19.2.3",
|
|
40
|
-
"@tsrx/react": "^0.
|
|
40
|
+
"@tsrx/react": "^0.3.0",
|
|
41
41
|
"jsdom": "26.1.0",
|
|
42
42
|
"playwright": "^1.61.1",
|
|
43
43
|
"react": "19.2.3",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"vite": "^8.1.5",
|
|
47
47
|
"vitest": "3.2.4",
|
|
48
48
|
"vitest-fail-on-console": "^0.10.1",
|
|
49
|
-
"@octanejs/testing-library": "0.1.
|
|
50
|
-
"octane": "0.
|
|
49
|
+
"@octanejs/testing-library": "0.1.52",
|
|
50
|
+
"octane": "0.3.0"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"test": "pnpm upstream:materialize && vitest run --root ../.. --project resizable-panels && vitest run --root ../.. --project resizable-panels-server && pnpm test:upstream && vitest run --root ../.. --project resizable-panels-browser",
|
|
@@ -219,7 +219,7 @@ export function Group(props: GroupProps) @{
|
|
|
219
219
|
group.mutableState.disableCursor = !!disableCursor;
|
|
220
220
|
}, [defaultLayout, disableCursor]);
|
|
221
221
|
|
|
222
|
-
return <GroupContext
|
|
222
|
+
return <GroupContext value={context}>
|
|
223
223
|
<div
|
|
224
224
|
{...rest}
|
|
225
225
|
className={className}
|
|
@@ -238,7 +238,7 @@ export function Group(props: GroupProps) @{
|
|
|
238
238
|
touchAction: orientation === 'horizontal' ? 'pan-y' : 'pan-x',
|
|
239
239
|
}}
|
|
240
240
|
>{children}</div>
|
|
241
|
-
</GroupContext
|
|
241
|
+
</GroupContext>;
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
(Group as { displayName?: string }).displayName = 'Group';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { OctaneNode } from 'octane';
|
|
1
|
+
import type { CSSProperties as DivStyle, OctaneNode } from 'octane';
|
|
2
2
|
import type { Octane } from 'octane/jsx-runtime';
|
|
3
3
|
import type { RegisteredPanel } from '../panel/types';
|
|
4
4
|
import type { RegisteredSeparator } from '../separator/types';
|
|
@@ -29,7 +29,6 @@ export interface GroupImperativeHandle {
|
|
|
29
29
|
setLayout(layout: Layout): Layout;
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
type DivStyle = Exclude<Octane.JSX.IntrinsicElements['div']['style'], string | undefined>;
|
|
33
32
|
type DivProps = Omit<Octane.JSX.IntrinsicElements['div'], 'children' | 'id' | 'ref' | 'style'>;
|
|
34
33
|
export type GroupProps = DivProps & {
|
|
35
34
|
children?: OctaneNode;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { OctaneNode } from 'octane';
|
|
1
|
+
import type { CSSProperties as DivStyle, OctaneNode } from 'octane';
|
|
2
2
|
import type { Octane } from 'octane/jsx-runtime';
|
|
3
3
|
|
|
4
4
|
export type PanelSize = { asPercentage: number; inPixels: number };
|
|
@@ -43,7 +43,6 @@ export interface PanelImperativeHandle {
|
|
|
43
43
|
isCollapsed(): boolean;
|
|
44
44
|
resize(size: number | string): void;
|
|
45
45
|
}
|
|
46
|
-
type DivStyle = Exclude<Octane.JSX.IntrinsicElements['div']['style'], string | undefined>;
|
|
47
46
|
type DivProps = Omit<
|
|
48
47
|
Octane.JSX.IntrinsicElements['div'],
|
|
49
48
|
'children' | 'id' | 'ref' | 'onResize' | 'style'
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import type { OctaneNode } from 'octane';
|
|
1
|
+
import type { CSSProperties as DivStyle, OctaneNode } from 'octane';
|
|
2
2
|
import type { Octane } from 'octane/jsx-runtime';
|
|
3
3
|
|
|
4
|
-
type DivStyle = Exclude<Octane.JSX.IntrinsicElements['div']['style'], string | undefined>;
|
|
5
4
|
type DivProps = Omit<
|
|
6
5
|
Octane.JSX.IntrinsicElements['div'],
|
|
7
6
|
'children' | 'id' | 'ref' | 'role' | 'tabIndex' | 'style'
|