@redot-src/glare 1.1.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/icons.d.ts CHANGED
@@ -11,4 +11,5 @@ export declare const icons: {
11
11
  readonly pause: string;
12
12
  readonly fullscreen: string;
13
13
  readonly fullscreenExit: string;
14
+ readonly more: string;
14
15
  };
package/dist/types.d.ts CHANGED
@@ -3,14 +3,14 @@ import type { Fullscreen } from './modules/fullscreen';
3
3
  import type { Share } from './modules/share';
4
4
  import type { Slideshow } from './modules/slideshow';
5
5
  import type { Thumbs } from './modules/thumbs';
6
- export type ContentType = 'image' | 'video' | 'iframe' | 'inline' | 'ajax' | 'html';
6
+ export type ContentType = 'image' | 'video' | 'embed' | 'iframe' | 'inline' | 'ajax' | 'html';
7
7
  /** Effect played when the lightbox opens. */
8
8
  export type AnimationEffect = false | 'fade' | 'zoom';
9
9
  /** Effect played when moving between slides. */
10
10
  export type TransitionEffect = false | 'fade' | 'slide' | 'circular' | 'tube' | 'zoom-in-out' | 'rotate';
11
11
  export type ClickActionName = 'close' | 'next' | 'nextOrClose' | 'toggleControls' | 'zoom';
12
12
  export type ClickAction = false | ClickActionName | ((current: SlideItem, event: Event) => ClickActionName | false | void);
13
- export type ToolbarButton = 'zoom' | 'slideshow' | 'thumbs' | 'share' | 'download' | 'fullscreen' | 'close' | (string & {});
13
+ export type ToolbarButton = 'zoom' | 'slideshow' | 'thumbs' | 'share' | 'download' | 'fullscreen' | 'more' | 'close' | (string & {});
14
14
  export interface MediaProvider {
15
15
  matcher: RegExp;
16
16
  type?: ContentType;
@@ -30,6 +30,8 @@ export interface SlideSource {
30
30
  thumb?: string;
31
31
  width?: number | string;
32
32
  height?: number | string;
33
+ /** Video/embed ratio, such as `16 / 9`. Explicit width and height take precedence. */
34
+ ratio?: number | string;
33
35
  poster?: string;
34
36
  format?: string;
35
37
  autoStart?: boolean;
@@ -107,6 +109,7 @@ export type I18nDict = {
107
109
  THUMBS: string;
108
110
  DOWNLOAD: string;
109
111
  SHARE: string;
112
+ MORE: string;
110
113
  COPY: string;
111
114
  ZOOM: string;
112
115
  ZOOM_OUT: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redot-src/glare",
3
- "version": "1.1.0",
3
+ "version": "1.2.1",
4
4
  "description": "Modern, touch-enabled, fully customizable lightbox for the web — zero dependencies.",
5
5
  "type": "module",
6
6
  "license": "MIT",