@meduza/ui-kit-2 0.1.60 → 0.1.62

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,5 +1,5 @@
1
1
  {
2
- "version": "0.1.60",
2
+ "version": "0.1.62",
3
3
  "license": "MIT",
4
4
  "description": "UIKit for Meduza",
5
5
  "repository": "https://github.com/meduza-corp/ui-kit-2.git",
package/src/types.ts CHANGED
@@ -16,8 +16,16 @@ export type CallToActions =
16
16
  | 'bookmark'
17
17
  | 'cross'
18
18
 
19
+ export type LightboxImage = {
20
+ original: string
21
+ w325: OptimizedImageItem
22
+ w520: OptimizedImageItem
23
+ w650: OptimizedImageItem
24
+ w980: OptimizedImageItem
25
+ w1335: OptimizedImageItem
26
+ }
19
27
  export interface LightboxContext {
20
- show: (image?: OptimizedImageItem, alt?: string) => void
28
+ show: (image: LightboxImage, alt?: string) => void
21
29
  hide: () => void
22
30
  visible: boolean
23
31
  }