glass-easel 0.10.1 → 0.10.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/glass_easel.d.ts
CHANGED
|
@@ -2233,6 +2233,8 @@ type ElementForDomLike = {
|
|
|
2233
2233
|
};
|
|
2234
2234
|
interface Context$3<Ctx, Elem> {
|
|
2235
2235
|
createContext(options: unknown, cb: (ContextWrapper: GetWrapper<Partial<Context$3<Ctx, Elem> & Ctx>>) => void): void;
|
|
2236
|
+
addPriorEventListener(listener: (target: Element$4, type: string, detail: unknown, options: EventOptions) => EventBubbleStatus | void): void;
|
|
2237
|
+
removePriorEventListener(listener: (target: Element$4, type: string, detail: unknown, options: EventOptions) => EventBubbleStatus | void): void;
|
|
2236
2238
|
setFocusedNode(target: Elem): void;
|
|
2237
2239
|
getFocusedNode(cb: (node: Elem | null) => void): void;
|
|
2238
2240
|
onWindowResize(cb: (res: {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "glass-easel",
|
|
3
3
|
"description": "The core module of the glass-easel project",
|
|
4
|
-
"version": "0.10.
|
|
4
|
+
"version": "0.10.2",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/wechat-miniprogram/glass-easel.git"
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"module": "dist/glass_easel.all.es.js",
|
|
20
20
|
"types": "dist/glass_easel.d.ts",
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"glass-easel-template-compiler": "0.10.
|
|
22
|
+
"glass-easel-template-compiler": "0.10.2"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"doc": "typedoc src/index.ts --excludePrivate --excludeProtected --excludeInternal",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type Element as GlassEaselElement } from '../element'
|
|
2
|
+
import { type EventBubbleStatus, type EventOptions } from '../event'
|
|
2
3
|
import {
|
|
3
4
|
type BoundingClientRect,
|
|
4
5
|
type GetAllComputedStylesResponses,
|
|
@@ -50,6 +51,23 @@ export interface Context<Ctx, Elem> {
|
|
|
50
51
|
cb: (ContextWrapper: GetWrapper<Partial<Context<Ctx, Elem> & Ctx>>) => void,
|
|
51
52
|
): void
|
|
52
53
|
|
|
54
|
+
addPriorEventListener(
|
|
55
|
+
listener: (
|
|
56
|
+
target: GlassEaselElement,
|
|
57
|
+
type: string,
|
|
58
|
+
detail: unknown,
|
|
59
|
+
options: EventOptions,
|
|
60
|
+
) => EventBubbleStatus | void,
|
|
61
|
+
): void
|
|
62
|
+
removePriorEventListener(
|
|
63
|
+
listener: (
|
|
64
|
+
target: GlassEaselElement,
|
|
65
|
+
type: string,
|
|
66
|
+
detail: unknown,
|
|
67
|
+
options: EventOptions,
|
|
68
|
+
) => EventBubbleStatus | void,
|
|
69
|
+
): void
|
|
70
|
+
|
|
53
71
|
setFocusedNode(target: Elem): void
|
|
54
72
|
getFocusedNode(cb: (node: Elem | null) => void): void
|
|
55
73
|
|