@jimmy_harika/websitekit 0.5.1 → 0.5.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jimmy_harika/websitekit",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Snow Labs website builder engine. Block-agnostic, curated-section. One shared builder across every Snow Labs app — engine + design-system-agnostic blocks + per-industry catalogs (author, photographer, …). Each app plugs in a catalog + theme + persistence adapter.",
5
5
  "license": "UNLICENSED",
6
6
  "private": false,
@@ -14,6 +14,7 @@ import {
14
14
  useRef,
15
15
  useState,
16
16
  type ChangeEvent,
17
+ type DragEvent as ReactDragEvent,
17
18
  type ElementType,
18
19
  type FocusEvent as ReactFocusEvent,
19
20
  type KeyboardEvent as ReactKeyboardEvent,
@@ -138,17 +139,17 @@ function EditableImage({ field, src, alt, className, style, width, height, prior
138
139
  inputRef.current?.click();
139
140
  };
140
141
 
141
- const onDragOver = (e: React.DragEvent) => {
142
+ const onDragOver = (e: ReactDragEvent) => {
142
143
  e.preventDefault();
143
144
  e.stopPropagation();
144
145
  setDragOver(true);
145
146
  };
146
- const onDragLeave = (e: React.DragEvent) => {
147
+ const onDragLeave = (e: ReactDragEvent) => {
147
148
  e.preventDefault();
148
149
  e.stopPropagation();
149
150
  setDragOver(false);
150
151
  };
151
- const onDrop = (e: React.DragEvent) => {
152
+ const onDrop = (e: ReactDragEvent) => {
152
153
  e.preventDefault();
153
154
  e.stopPropagation();
154
155
  setDragOver(false);