@redot-src/glare 1.3.0 → 1.4.0

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,12 @@ export declare const icons: {
11
11
  readonly fullscreen: string;
12
12
  readonly fullscreenExit: string;
13
13
  readonly more: string;
14
+ readonly thumbImage: string;
15
+ readonly thumbVideo: string;
16
+ readonly thumbEmbed: string;
17
+ readonly thumbIframe: string;
18
+ readonly thumbInline: string;
19
+ readonly thumbAjax: string;
20
+ readonly thumbHtml: string;
21
+ readonly thumbSlide: string;
14
22
  };
package/dist/types.d.ts CHANGED
@@ -145,6 +145,8 @@ export interface GlareOptions extends EventHandlers {
145
145
  trapFocus?: boolean;
146
146
  defaultType?: ContentType;
147
147
  parentEl?: string | HTMLElement;
148
+ /** Same-origin window (e.g. `window.parent`) whose own `window.Glare` opens the lightbox instead. */
149
+ delegate?: Window;
148
150
  baseClass?: string;
149
151
  slideClass?: string;
150
152
  arrows?: boolean;
@@ -183,7 +185,7 @@ export interface GlareOptions extends EventHandlers {
183
185
  spinnerTpl?: string;
184
186
  errorTpl?: string;
185
187
  }
186
- type DefaultedKey = Exclude<keyof GlareOptions, keyof EventHandlers | 'caption'>;
188
+ type DefaultedKey = Exclude<keyof GlareOptions, keyof EventHandlers | 'caption' | 'delegate'>;
187
189
  /** Options after the defaults have been merged in: everything but callbacks is present. */
188
190
  export type ResolvedOptions = GlareOptions & Required<Pick<GlareOptions, DefaultedKey>> & {
189
191
  image: Required<ImageOptions>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redot-src/glare",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "Modern, touch-enabled, fully customizable lightbox for the web — zero dependencies.",
5
5
  "type": "module",
6
6
  "license": "MIT",