Skip to content

Commit 9c1028c

Browse files
committed
feat(package.json): tweak published files
1 parent b26cd62 commit 9c1028c

File tree

3 files changed

+49
-1
lines changed

3 files changed

+49
-1
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
/node_modules
33

44
# Production
5-
/dist
65
/**/*.js
76
/**/*.js.map
87

dist/index.d.ts

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
/// <reference types="react" />
2+
import * as React from "react";
3+
4+
export enum Interaction {
5+
None = "NONE",
6+
Hover = "HOVER",
7+
Active = "ACTIVE",
8+
Resize = "RESIZE",
9+
}
10+
11+
export interface ILayeredImageProps extends React.HTMLProps<HTMLDivElement> {
12+
layers: Array<string>;
13+
aspectRatio: number;
14+
borderRadius?: React.CSSProperties["borderRadius"];
15+
transitionDuration?: React.CSSProperties["transitionDuration"];
16+
transitionTimingFunction?: React.CSSProperties["transitionTimingFunction"];
17+
lightColor?: React.CSSProperties["color"];
18+
lightOpacity?: React.CSSProperties["opacity"];
19+
shadowColor?: React.CSSProperties["color"];
20+
shadowOpacity?: React.CSSProperties["opacity"];
21+
}
22+
23+
export interface ILayeredImageState {
24+
width?: React.CSSProperties["width"];
25+
height?: React.CSSProperties["height"];
26+
interaction: Interaction;
27+
loaded: number;
28+
error: number;
29+
}
30+
31+
export default class LayeredImage extends React.Component<ILayeredImageProps, ILayeredImageState> {
32+
static defaultProps: Partial<ILayeredImageProps>;
33+
state: ILayeredImageState;
34+
private elements;
35+
private refHandlers;
36+
private images;
37+
render(): JSX.Element;
38+
componentDidMount(): void;
39+
componentWillReceiveProps(nextProps: ILayeredImageProps): void;
40+
componentWillUnmount(): void;
41+
private handleMouseInteraction;
42+
private handleTouchInteraction;
43+
private handleInteractionEnd;
44+
private handleWindowResize;
45+
private getDimensions;
46+
private computeStyles;
47+
private applyStyles;
48+
}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"dev": "webpack-dev-server --open --config webpack.dev.js",
1515
"test": "echo \"Error: no test specified\" && exit 0",
1616
"build": "webpack --config webpack.prod.js",
17+
"push": "npm run build && git push",
1718
"semantic-release": "./node_modules/.bin/semantic-release",
1819
"release": "npm run semantic-release pre && npm publish && npm run semantic-release post"
1920
},

0 commit comments

Comments
 (0)