Skip to content

Commit 95a1d22

Browse files
committed
Updated to latest dependencies
1 parent 15c6cb9 commit 95a1d22

14 files changed

+3749
-8443
lines changed

demo/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
.DS_Store
12
node_modules/
23
dist/

demo/package-lock.json

+2,133-4,575
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/package.json

+19-20
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,28 @@
1010
"author": "",
1111
"license": "ISC",
1212
"devDependencies": {
13-
"@types/react": "^16.9.36",
14-
"@types/react-dom": "^16.9.8",
15-
"@types/react-measure": "^2.0.6",
16-
"@types/recoil": "0.0.1",
17-
"@types/styled-components": "4.1.8",
18-
"@types/uuid": "^8.3.0",
19-
"awesome-typescript-loader": "^5.2.1",
20-
"css-loader": "^3.5.3",
21-
"html-webpack-plugin": "^4.3.0",
13+
"@types/react": ">=16.8.0 <19.0.0",
14+
"@types/react-dom": ">=16.8.0 <19.0.0",
15+
"@types/react-measure": "^2.0.8",
16+
"@types/styled-components": "^5.1.26",
17+
"@types/uuid": "^9.0.0",
18+
"ts-loader": "^9.4.2",
19+
"css-loader": "^6.7.3",
20+
"html-webpack-plugin": "^5.5.0",
2221
"html-webpack-template": "^6.2.0",
23-
"source-map-loader": "^1.0.0",
24-
"style-loader": "^1.2.1",
25-
"typescript": "3.7.5",
26-
"webpack": "^4.43.0",
27-
"webpack-cli": "^3.3.11"
22+
"source-map-loader": "^4.0.1",
23+
"style-loader": "^3.3.1",
24+
"typescript": "^4.9.4",
25+
"webpack": "^5.75.0 ",
26+
"webpack-cli": "^5.0.1"
2827
},
2928
"dependencies": {
30-
"@geoffcox/react-splitter": "^2.1.0",
31-
"react": "^16.13.1",
32-
"react-dom": "^16.13.1",
29+
"@geoffcox/react-splitter": "file:../package",
30+
"react": ">=16.8.0 <19.0.0",
31+
"react-dom": ">=16.8.0 <19.0.0",
3332
"react-measure": "^2.5.2",
34-
"recoil": "^0.1.2",
35-
"styled-components": "^5.1.1",
36-
"uuid": "^8.3.2"
33+
"recoil": "^0.7.6",
34+
"styled-components": "^5.3.5",
35+
"uuid": "^9.0.0"
3736
}
3837
}

demo/webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module.exports = {
3434
module: {
3535
rules: [
3636
// All files with a '.ts' or '.tsx' extension will be handled by 'awesome-typescript-loader'.
37-
{ test: /\.tsx?$/, loaders: ["awesome-typescript-loader"] },
37+
{ test: /\.tsx?$/, loader: "ts-loader" },
3838

3939
// All output '.js' files will have any sourcemaps re-processed by 'source-map-loader'.
4040
{ enforce: "pre", test: /\.js?$/, loader: "source-map-loader" },

package/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
.DS_Store
12
node_modules/
23
build/
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { RenderSplitterProps } from './RenderSplitterProps';
2+
import './defaultSplitter.css';
3+
type Props = RenderSplitterProps & {
4+
color?: string;
5+
hoverColor?: string;
6+
dragColor?: string;
7+
};
8+
/**
9+
* The default splitter which provides a thin line within a larger mouse hit area.
10+
*/
11+
export declare const DefaultSplitter: (props: Props) => JSX.Element;
12+
export {};
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* Props for the renderSplitter callback in Split
3+
*/
4+
export type RenderSplitterProps = {
5+
/**
6+
* The measured size of the splitter in pixels.
7+
*/
8+
pixelSize: number;
9+
/**
10+
* True if the splitter is horizontal (i.e. top/bottom); false otherwise.
11+
*/
12+
horizontal: boolean;
13+
/**
14+
* True if the user is currently dragging the splitter; false otherwise.
15+
*/
16+
dragging: boolean;
17+
};

package/dist/2.1.2/Split.d.ts

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
import * as React from 'react';
2+
import { RenderSplitterProps } from './RenderSplitterProps';
3+
import './split.css';
4+
export type SplitMeasuredSizes = {
5+
/**
6+
* The measured size of the primary pane in pixels.
7+
*/
8+
primary: number;
9+
/**
10+
* The measured size of the splitter in pixels.
11+
*/
12+
splitter: number;
13+
/**
14+
* The measured size of the secondary pane in pixels.
15+
*/
16+
secondary: number;
17+
};
18+
export type SplitProps = {
19+
/**
20+
* Add this attribute or set to true to create a top/bottom split.
21+
* Set to false to create a left|right split.
22+
*/
23+
horizontal?: boolean;
24+
/**
25+
* The initial width/height of the left/top pane.
26+
* Width is specified as a CSS unit (e.g. %, fr, px).
27+
* The default is 50%.
28+
*/
29+
initialPrimarySize?: string;
30+
/**
31+
* The preferred minimum width/height of the left/top pane.
32+
* Specified as a CSS unit (e.g. %, fr, px).
33+
* The default is 0.
34+
*/
35+
minPrimarySize?: string;
36+
/**
37+
* The preferred minimum width/height of the right/bottom pane.
38+
* Specified as a CSS unit (e.g. %, fr, px).
39+
* The default is 0.
40+
*/
41+
minSecondarySize?: string;
42+
/**
43+
* The width of the splitter between the panes.
44+
* Specified as a CSS unit (e.g. %, fr, px).
45+
* The default is 7px.
46+
*/
47+
splitterSize?: string;
48+
/**
49+
* Render props for the splitter.
50+
* @param pixelSize The measured size of the splitter in pixels.
51+
* @param horizontal True if the splitter is horizontal (i.e. top/bottom); false otherwise.
52+
*/
53+
renderSplitter?: (props: RenderSplitterProps) => React.ReactNode | undefined;
54+
/**
55+
* When true, if the user double clicks the splitter it will reset to its initial position.
56+
* The default is false.
57+
*/
58+
resetOnDoubleClick?: boolean;
59+
/**
60+
* The colors to use for the default splitter.
61+
* Only used when renderSplitter is undefined;
62+
* The defaults are silver, gray, and black
63+
*/
64+
defaultSplitterColors?: {
65+
color: string;
66+
hover: string;
67+
drag: string;
68+
};
69+
/**
70+
* Raised when the splitter moves to provide the primary size.
71+
* When the user has adjusted the splitter, this will be a percentage.
72+
* Otherwise, this will be the initialPrimarySize.
73+
*/
74+
onSplitChanged?: (primarySize: string) => void;
75+
/**
76+
* Raised whenever the primary, splitter, or secondary measured sizes change.
77+
* These values are debounced at 500ms to prevent spamming this event.
78+
*/
79+
onMeasuredSizesChanged?: (sizes: SplitMeasuredSizes) => void;
80+
};
81+
export declare const Split: (props: React.PropsWithChildren<SplitProps>) => JSX.Element;

package/dist/2.1.2/index.d.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export * from './DefaultSplitter';
2+
export * from './RenderSplitterProps';
3+
export * from './Split';

package/dist/2.1.2/index.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package/dist/2.1.2/index.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)