@lvce-editor/virtual-dom 1.0.0 → 1.0.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/dist/index.d.ts CHANGED
@@ -10,9 +10,9 @@ export const setIpc: (ipc: any) => void
10
10
 
11
11
  export const setComponentUid: ($Element: HTMLElement, uid: number) => void
12
12
 
13
- export const getComponentUid: ($Element: HTMLElement) => void
13
+ export const getComponentUid: ($Element: HTMLElement) => number
14
14
 
15
- export const getComponentUidFromEvent: (event: Event) => void
15
+ export const getComponentUidFromEvent: (event: Event) => number
16
16
 
17
17
  export const rememberFocus: (
18
18
  $Viewlet: HTMLElement,
package/dist/index.js CHANGED
@@ -302,7 +302,7 @@ var attachEvent = ($Node, eventMap, key, value) => {
302
302
  console.warn("listener not found", value);
303
303
  return;
304
304
  }
305
- const options = getEventListenerOptions(eventMap);
305
+ const options = getEventListenerOptions(key);
306
306
  const wrapped = getWrappedListener(
307
307
  listener,
308
308
  eventMap.returnValue
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/virtual-dom",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "main": "dist/index.js",
5
5
  "type": "module",
6
6
  "keywords": [],
@@ -1,4 +1,4 @@
1
- import * as GetEventListeneroptions from '../GetEventListenerOptions/GetEventListenerOptions.ts'
1
+ import * as GetEventListenerOptions from '../GetEventListenerOptions/GetEventListenerOptions.ts'
2
2
  import * as GetWrappedListener from '../GetWrappedListener/GetWrappedListener.ts'
3
3
 
4
4
  export const attachEvent = (
@@ -12,7 +12,7 @@ export const attachEvent = (
12
12
  console.warn('listener not found', value)
13
13
  return
14
14
  }
15
- const options = GetEventListeneroptions.getEventListenerOptions(eventMap)
15
+ const options = GetEventListenerOptions.getEventListenerOptions(key)
16
16
  const wrapped = GetWrappedListener.getWrappedListener(
17
17
  listener,
18
18
  eventMap.returnValue,