@nemigo/helpers 0.11.1 → 0.11.3

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.
Files changed (2) hide show
  1. package/dist/html.d.ts +2 -1
  2. package/package.json +2 -2
package/dist/html.d.ts CHANGED
@@ -56,6 +56,7 @@ export type TargetKeyboardEvent<N extends HTMLElement = HTMLDivElement> = Target
56
56
  * Проверяет, является ли событие клавиатурным.
57
57
  */
58
58
  export declare const isKeyboardEvent: (e: any) => e is KeyboardEvent;
59
+ export type MouseBoardEvent = MouseEvent | TargetKeyboardEvent;
59
60
  /**
60
61
  * Создаёт обработчик контекстного меню.
61
62
  *
@@ -75,7 +76,7 @@ export declare const ctxMenuHook: <N extends HTMLElement = HTMLDivElement>(call:
75
76
  } | {
76
77
  isKeyboardEvent: false;
77
78
  event: MouseEvent;
78
- }) => void) => (e: TargetKeyboardEvent<N> | MouseEvent) => void;
79
+ }) => void) => (e: MouseEvent | TargetKeyboardEvent<N>) => void;
79
80
  /**
80
81
  * Создаёт слушатель события на указанном элементе.
81
82
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nemigo/helpers",
3
- "version": "0.11.1",
3
+ "version": "0.11.3",
4
4
  "private": false,
5
5
  "author": {
6
6
  "name": "Vlad Logvin",
@@ -141,7 +141,7 @@
141
141
  }
142
142
  },
143
143
  "peerDependencies": {
144
- "@std/msgpack": "jsr:^1.0.0",
144
+ "@std/msgpack": ">=1.0.0",
145
145
  "zod": ">=4.0.0"
146
146
  },
147
147
  "peerDependenciesMeta": {