@redot-src/glare 1.3.0 → 1.4.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/core/glare.d.ts +2 -0
- package/dist/glare.css +1 -1
- package/dist/glare.esm.js +394 -358
- package/dist/glare.esm.js.map +1 -1
- package/dist/glare.js +4 -4
- package/dist/glare.js.map +1 -1
- package/dist/icons.d.ts +8 -0
- package/dist/types.d.ts +3 -1
- package/package.json +1 -1
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>;
|