yet-another-react-lightbox 1.2.0 → 1.2.1
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/dist/Lightbox.d.ts +2 -2
- package/package.json +3 -3
package/dist/Lightbox.d.ts
CHANGED
|
@@ -39,11 +39,11 @@ declare const LightboxComponent: {
|
|
|
39
39
|
on: import("./types.js").Callbacks;
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
|
-
declare type
|
|
42
|
+
declare type LightboxComponentProps<T> = T extends React.ComponentType<infer P> | React.Component<infer P> ? JSX.LibraryManagedAttributes<T, P> : never;
|
|
43
43
|
declare type MakePartial<T> = T extends object ? Partial<T> : T;
|
|
44
44
|
declare type NestedPartial<T extends object> = {
|
|
45
45
|
[P in keyof T]?: MakePartial<T[P]>;
|
|
46
46
|
};
|
|
47
47
|
declare type NestedOptional<T, K extends keyof T> = Omit<T, K> & NestedPartial<Pick<T, K>>;
|
|
48
|
-
export declare const Lightbox: (props: NestedOptional<
|
|
48
|
+
export declare const Lightbox: (props: NestedOptional<LightboxComponentProps<typeof LightboxComponent>, "carousel" | "animation">) => JSX.Element;
|
|
49
49
|
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yet-another-react-lightbox",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Modern lightbox component for React",
|
|
5
5
|
"author": "Igor Danchenko",
|
|
6
6
|
"license": "MIT",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"test": "jest"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"prop-types": "^15.
|
|
67
|
+
"prop-types": "^15.5.7"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
70
|
"react": ">=16.8.0",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@semantic-release/changelog": "^6.0.1",
|
|
77
77
|
"@semantic-release/github": "^8.0.4",
|
|
78
78
|
"@testing-library/jest-dom": "^5.16.4",
|
|
79
|
-
"@testing-library/react": "^13.
|
|
79
|
+
"@testing-library/react": "^13.3.0",
|
|
80
80
|
"@testing-library/user-event": "^14.2.0",
|
|
81
81
|
"@types/jest": "^27.5.1",
|
|
82
82
|
"@types/react": "^18.0.9",
|