@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/README.md +1 -1
- package/dist/glare.css +1 -1
- package/dist/glare.esm.js +460 -398
- package/dist/glare.esm.js.map +1 -1
- package/dist/glare.js +3 -3
- package/dist/glare.js.map +1 -1
- package/dist/icons.d.ts +1 -0
- package/dist/types.d.ts +5 -2
- package/package.json +1 -1
package/dist/icons.d.ts
CHANGED
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;
|