@lynx-js/web-constants 0.19.7 → 0.19.9
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/CHANGELOG.md +16 -0
- package/dist/types/MainThreadGlobalThis.d.ts +7 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @lynx-js/web-constants
|
|
2
2
|
|
|
3
|
+
## 0.19.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Implement `__ElementAnimate` PAPI for web platform animation lifecycle ([#2329](https://github.com/lynx-family/lynx-stack/pull/2329))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies []:
|
|
10
|
+
- @lynx-js/web-worker-rpc@0.19.9
|
|
11
|
+
|
|
12
|
+
## 0.19.8
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- Updated dependencies []:
|
|
17
|
+
- @lynx-js/web-worker-rpc@0.19.8
|
|
18
|
+
|
|
3
19
|
## 0.19.7
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
|
@@ -100,6 +100,12 @@ export type QueryComponentPAPI = (source: string, resultCallback?: (result: {
|
|
|
100
100
|
}) => void) => null;
|
|
101
101
|
export type InvokeUIMethodPAPI = (element: HTMLElement, method: string, params: object, callback: (result: InvokeCallbackRes) => void) => void;
|
|
102
102
|
export type QuerySelectorPAPI = (element: HTMLElement, selector: string) => unknown;
|
|
103
|
+
export type ElementAnimatePAPI = (element: HTMLElement, args: [
|
|
104
|
+
operation: 0,
|
|
105
|
+
name: string,
|
|
106
|
+
keyframes: Record<string, string | number>[],
|
|
107
|
+
options?: Record<string, string | number>
|
|
108
|
+
] | [operation: 1 | 2 | 3 | 4, name: string]) => void;
|
|
103
109
|
export interface ElementPAPIs {
|
|
104
110
|
__ElementFromBinary: ElementFromBinaryPAPI;
|
|
105
111
|
__GetTemplateParts?: GetTemplatePartsPAPI;
|
|
@@ -160,6 +166,7 @@ export interface ElementPAPIs {
|
|
|
160
166
|
__FlushElementTree: (_subTree?: unknown, options?: FlushElementTreeOptions) => void;
|
|
161
167
|
__InvokeUIMethod: InvokeUIMethodPAPI;
|
|
162
168
|
__QuerySelector: QuerySelectorPAPI;
|
|
169
|
+
__ElementAnimate: ElementAnimatePAPI;
|
|
163
170
|
}
|
|
164
171
|
export interface MainThreadGlobalThis extends ElementPAPIs {
|
|
165
172
|
__globalProps: unknown;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-constants",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.9",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [],
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"**/*.css"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@lynx-js/web-worker-rpc": "0.19.
|
|
26
|
+
"@lynx-js/web-worker-rpc": "0.19.9"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@lynx-js/offscreen-document": "0.1.4"
|