Socket
Socket
Sign inDemoInstall

yet-another-react-lightbox

Package Overview
Dependencies
Maintainers
1
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yet-another-react-lightbox - npm Package Compare versions

Comparing version 1.2.3 to 1.3.0

2

dist/index.d.ts

@@ -0,2 +1,4 @@

import { Lightbox } from "./Lightbox.js";
export * from "./types.js";
export * from "./Lightbox.js";
export default Lightbox;

@@ -0,2 +1,4 @@

import { Lightbox } from "./Lightbox.js";
export * from "./types.js";
export * from "./Lightbox.js";
export default Lightbox;

8

dist/Lightbox.d.ts
/// <reference types="react" />
import { LightboxProps } from "./types.js";
declare type MakePartial<T> = T extends object ? Partial<T> : T;
declare type NestedPartial<T extends object> = {
[P in keyof T]?: MakePartial<T[P]>;
declare type DeepPartial<T, K extends keyof T> = Omit<T, K> & {
[P in keyof Pick<T, K>]?: Partial<Pick<T, K>[P]>;
};
declare type NestedOptional<T, K extends keyof T> = Omit<T, K> & NestedPartial<Pick<T, K>>;
export declare const Lightbox: (props: NestedOptional<Partial<LightboxProps>, "carousel" | "animation" | "render" | "toolbar" | "on">) => JSX.Element;
export declare const Lightbox: (props: DeepPartial<Partial<LightboxProps>, "carousel" | "animation" | "render" | "toolbar" | "on">) => JSX.Element;
export {};
{
"name": "yet-another-react-lightbox",
"version": "1.2.3",
"description": "Modern lightbox component for React",
"version": "1.3.0",
"description": "Modern React lightbox component",
"author": "Igor Danchenko",

@@ -85,4 +85,4 @@ "license": "MIT",

"@types/react-dom": "^18.0.5",
"@typescript-eslint/eslint-plugin": "^5.26.0",
"@typescript-eslint/parser": "^5.26.0",
"@typescript-eslint/eslint-plugin": "^5.27.0",
"@typescript-eslint/parser": "^5.27.0",
"autoprefixer": "^10.4.7",

@@ -101,3 +101,3 @@ "eslint": "^8.16.0",

"jest-environment-jsdom": "^28.1.0",
"lint-staged": "^12.4.2",
"lint-staged": "^12.4.3",
"npm-run-all": "^4.1.5",

@@ -104,0 +104,0 @@ "postcss": "^8.4.14",

@@ -11,7 +11,5 @@ # Yet Another React Lightbox

Coming soon...
## Documentation
Coming soon...
[https://yet-another-react-lightbox.vercel.app/](https://yet-another-react-lightbox.vercel.app/)

@@ -34,6 +32,6 @@ ## Installation

import * as React from "react";
import { Lightbox } from "yet-another-react-lightbox";
import Lightbox from "yet-another-react-lightbox";
import "yet-another-react-lightbox/styles.css";
const Page = () => {
const App = () => {
const [open, setOpen] = React.useState(false);

@@ -60,3 +58,3 @@

export default Page;
export default App;
```

@@ -63,0 +61,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc