@vigla/svelte 5.57.5 → 5.57.6

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.
@@ -6,7 +6,7 @@ export { format } from '../shared/format.ts';
6
6
  export { print, type PrintOptions, type Printed } from '../front/index.ts';
7
7
  export { preprocess, type MarkupPreprocessor, type Preprocessor, type PreprocessorGroup, type Processed } from './preprocess/index.ts';
8
8
  export type { AST };
9
- export declare const VERSION = "5.57.5";
9
+ export declare const VERSION = "5.57.6";
10
10
  export interface Experimental {
11
11
  async?: boolean;
12
12
  }
@@ -8,7 +8,7 @@ export { CompileError, CompileWarning } from './diagnostics.js';
8
8
  export { format } from '../shared/format.js';
9
9
  export { print } from '../front/index.js';
10
10
  export { preprocess } from './preprocess/index.js';
11
- export const VERSION = '5.57.5';
11
+ export const VERSION = '5.57.6';
12
12
  const stores = ['svelte/store'];
13
13
  const runtime = {
14
14
  client: 'svelte/internal/client',
package/elements.d.ts CHANGED
@@ -245,8 +245,41 @@ interface TransitionEventMap {
245
245
  outroend: CustomEvent<null>;
246
246
  }
247
247
 
248
+ interface DeclaredEventMap {
249
+ input: Event;
250
+ load: Event;
251
+ error: Event;
252
+ abort: Event;
253
+ progress: Event;
254
+ encrypted: Event;
255
+ auxclick: MouseEvent;
256
+ click: MouseEvent;
257
+ contextmenu: MouseEvent;
258
+ scroll: UIEvent;
259
+ scrollend: UIEvent;
260
+ contentvisibilityautostatechange: ContentVisibilityAutoStateChangeEvent;
261
+ dragexit: DragEvent;
262
+ gamepadconnected: GamepadEvent;
263
+ gamepaddisconnected: GamepadEvent;
264
+ message: MessageEvent;
265
+ messageerror: MessageEvent;
266
+ visibilitychange: Event;
267
+ fullscreenchange: Event;
268
+ fullscreenerror: Event;
269
+ }
270
+
271
+ type Declared<Events> = Omit<Events, keyof DeclaredEventMap> & DeclaredEventMap;
272
+
273
+ interface WindowOnlyEventMap {
274
+ beforeinstallprompt: Event;
275
+ devicelight: Event;
276
+ deviceproximity: Event;
277
+ paint: Event;
278
+ userproximity: Event;
279
+ }
280
+
248
281
  export interface DOMAttributes<T extends EventTarget> extends Handlers<
249
- HTMLElementEventMap & TransitionEventMap,
282
+ Declared<HTMLElementEventMap> & TransitionEventMap,
250
283
  T
251
284
  > {
252
285
  children?: Snippet;
@@ -632,8 +665,8 @@ export interface HTMLMenuAttributes extends HTMLAttributes<HTMLMenuElement> {
632
665
 
633
666
  export interface HTMLMediaAttributes<T extends HTMLMediaElement>
634
667
  extends
635
- Omit<HTMLAttributes<T>, keyof Handlers<HTMLMediaElementEventMap, T>>,
636
- Handlers<HTMLMediaElementEventMap, T> {
668
+ Omit<HTMLAttributes<T>, keyof Handlers<Declared<HTMLMediaElementEventMap>, T>>,
669
+ Handlers<Declared<HTMLMediaElementEventMap>, T> {
637
670
  autoplay?: boolean | Nullish;
638
671
  controls?: boolean | Nullish;
639
672
  controlslist?:
@@ -676,9 +709,9 @@ export interface HTMLVideoAttributes
676
709
  extends
677
710
  Omit<
678
711
  HTMLMediaAttributes<HTMLVideoElement>,
679
- keyof Handlers<HTMLVideoElementEventMap, HTMLVideoElement>
712
+ keyof Handlers<Declared<HTMLVideoElementEventMap>, HTMLVideoElement>
680
713
  >,
681
- Handlers<HTMLVideoElementEventMap, HTMLVideoElement> {
714
+ Handlers<Declared<HTMLVideoElementEventMap>, HTMLVideoElement> {
682
715
  disablepictureinpicture?: boolean | Nullish;
683
716
  height?: Numberish | Nullish;
684
717
  playsinline?: boolean | Nullish;
@@ -873,7 +906,10 @@ export interface HTMLTrackAttributes extends HTMLAttributes<HTMLTrackElement> {
873
906
  srclang?: string | Nullish;
874
907
  }
875
908
 
876
- export interface SvelteWindowAttributes extends Handlers<WindowEventMap, Window> {
909
+ export interface SvelteWindowAttributes extends Handlers<
910
+ Declared<WindowEventMap> & WindowOnlyEventMap,
911
+ Window
912
+ > {
877
913
  readonly 'bind:innerWidth'?: Window['innerWidth'] | Nullish;
878
914
  readonly 'bind:innerHeight'?: Window['innerHeight'] | Nullish;
879
915
  readonly 'bind:outerWidth'?: Window['outerWidth'] | Nullish;
@@ -884,7 +920,7 @@ export interface SvelteWindowAttributes extends Handlers<WindowEventMap, Window>
884
920
  'bind:scrollY'?: Window['scrollY'] | Nullish;
885
921
  }
886
922
 
887
- export interface SvelteDocumentAttributes extends Handlers<DocumentEventMap, Document> {
923
+ export interface SvelteDocumentAttributes extends Handlers<Declared<DocumentEventMap>, Document> {
888
924
  readonly 'bind:activeElement'?: Document['activeElement'] | Nullish;
889
925
  readonly 'bind:fullscreenElement'?: Document['fullscreenElement'] | Nullish;
890
926
  readonly 'bind:pointerLockElement'?: Document['pointerLockElement'] | Nullish;
@@ -926,8 +962,8 @@ interface SvelteOptionsAttributes {
926
962
  export interface SVGAttributes<T extends EventTarget>
927
963
  extends
928
964
  AriaAttributes,
929
- Omit<DOMAttributes<T>, keyof Handlers<HTMLElementEventMap, T>>,
930
- Handlers<SVGElementEventMap, T>,
965
+ Omit<DOMAttributes<T>, keyof Handlers<Declared<HTMLElementEventMap>, T>>,
966
+ Handlers<Declared<SVGElementEventMap>, T>,
931
967
  ElementBindings {
932
968
  class?: ClassValue | Nullish;
933
969
  id?: string | Nullish;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vigla/svelte",
3
- "version": "5.57.5",
3
+ "version": "5.57.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/runlith/vigla.git",
@@ -123,7 +123,7 @@
123
123
  "@sveltejs/acorn-typescript": "^1.0.13",
124
124
  "@types/estree": "^1.0.9",
125
125
  "acorn": "^8.18.0",
126
- "vigla": "0.2.1",
126
+ "vigla": "0.2.2",
127
127
  "esrap": "^2.3.6"
128
128
  }
129
129
  }
@@ -40,7 +40,7 @@ export {
40
40
  } from './preprocess/index.ts';
41
41
  export type { AST };
42
42
 
43
- export const VERSION = '5.57.5';
43
+ export const VERSION = '5.57.6';
44
44
 
45
45
  export interface Experimental {
46
46
  async?: boolean;