@lynx-js/web-constants-canary 0.19.5-canary-20260111-9646114b → 0.19.6-canary-20260112-6c2b51a6

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 CHANGED
@@ -1,11 +1,20 @@
1
1
  # @lynx-js/web-constants
2
2
 
3
- ## 0.19.5-canary-20260111163415-9646114ba965de25ef18230718c6df291f0ea479
3
+ ## 0.19.6-canary-20260112091442-6c2b51a661ae244eb40671f63f29ee971e084ed4
4
+
5
+ ### Patch Changes
6
+
7
+ - feat: support main thread invoke ui method ([#2104](https://github.com/lynx-family/lynx-stack/pull/2104))
8
+
9
+ - Updated dependencies []:
10
+ - @lynx-js/web-worker-rpc@0.19.6-canary-20260112091442-6c2b51a661ae244eb40671f63f29ee971e084ed4
11
+
12
+ ## 0.19.5
4
13
 
5
14
  ### Patch Changes
6
15
 
7
16
  - Updated dependencies [[`a91173c`](https://github.com/lynx-family/lynx-stack/commit/a91173c986ce3f358f1c11c788ca46a0529c701d)]:
8
- - @lynx-js/web-worker-rpc@0.19.5-canary-20260111163415-9646114ba965de25ef18230718c6df291f0ea479
17
+ - @lynx-js/web-worker-rpc@0.19.5
9
18
 
10
19
  ## 0.19.4
11
20
 
@@ -7,6 +7,7 @@ import type { I18nResourceTranslationOptions } from './index.js';
7
7
  import type { MainThreadLynx } from './MainThreadLynx.js';
8
8
  import type { ProcessDataCallback } from './ProcessDataCallback.js';
9
9
  import type { UpdateDataOptions } from './UpdateDataOptions.js';
10
+ import type { InvokeCallbackRes } from './NativeApp.js';
10
11
  type ElementPAPIEventHandler = string | {
11
12
  type: 'worklet';
12
13
  value: unknown;
@@ -99,6 +100,7 @@ export type QueryComponentPAPI = (source: string, resultCallback?: (result: {
99
100
  evalResult: unknown;
100
101
  };
101
102
  }) => void) => null;
103
+ export type InvokeUIMethodPAPI = (element: unknown, method: string, params: object, callback: (result: InvokeCallbackRes) => void) => void;
102
104
  export interface ElementPAPIs {
103
105
  __ElementFromBinary: ElementFromBinaryPAPI;
104
106
  __GetTemplateParts?: GetTemplatePartsPAPI;
@@ -157,6 +159,7 @@ export interface ElementPAPIs {
157
159
  __GetPageElement: GetPageElementPAPI;
158
160
  __GetAttributeByName: GetAttributeByNamePAPI;
159
161
  __FlushElementTree: (_subTree?: unknown, options?: FlushElementTreeOptions) => void;
162
+ __InvokeUIMethod: InvokeUIMethodPAPI;
160
163
  }
161
164
  export interface MainThreadGlobalThis extends ElementPAPIs {
162
165
  __globalProps: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-constants-canary",
3
- "version": "0.19.5-canary-20260111-9646114b",
3
+ "version": "0.19.6-canary-20260112-6c2b51a6",
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": "npm:@lynx-js/web-worker-rpc-canary@0.19.5-canary-20260111-9646114b"
26
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.6-canary-20260112-6c2b51a6"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4"