@lynx-js/web-core-canary 0.19.6-canary-20260121-9d8f2629 → 0.19.6-canary-20260122-5b589ab5
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 +8 -6
- package/dist/apis/LynxView.js +3 -0
- package/dist/uiThread/crossThreadHandlers/registerReloadHandler.d.ts +2 -0
- package/dist/uiThread/crossThreadHandlers/registerReloadHandler.js +8 -0
- package/dist/uiThread/startBackground.js +2 -0
- package/dist/uiThread/startUIThread.d.ts +1 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
# @lynx-js/web-core
|
|
2
2
|
|
|
3
|
-
## 0.19.6-canary-
|
|
3
|
+
## 0.19.6-canary-20260122112014-5b589ab53b01a8e2357d3ccbb159edab004086d3
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
- @lynx-js/web-
|
|
11
|
-
- @lynx-js/web-
|
|
7
|
+
- feat: support lynx.reload() ([#2127](https://github.com/lynx-family/lynx-stack/pull/2127))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`179f984`](https://github.com/lynx-family/lynx-stack/commit/179f9844adf00ff4b2cd450ffb943649441c87d3), [`6c2b51a`](https://github.com/lynx-family/lynx-stack/commit/6c2b51a661ae244eb40671f63f29ee971e084ed4), [`556fe9f`](https://github.com/lynx-family/lynx-stack/commit/556fe9fded90945a7926093897288d5302c314d3), [`5b589ab`](https://github.com/lynx-family/lynx-stack/commit/5b589ab53b01a8e2357d3ccbb159edab004086d3)]:
|
|
10
|
+
- @lynx-js/web-constants@0.19.6-canary-20260122112014-5b589ab53b01a8e2357d3ccbb159edab004086d3
|
|
11
|
+
- @lynx-js/web-mainthread-apis@0.19.6-canary-20260122112014-5b589ab53b01a8e2357d3ccbb159edab004086d3
|
|
12
|
+
- @lynx-js/web-worker-runtime@0.19.6-canary-20260122112014-5b589ab53b01a8e2357d3ccbb159edab004086d3
|
|
13
|
+
- @lynx-js/web-worker-rpc@0.19.6-canary-20260122112014-5b589ab53b01a8e2357d3ccbb159edab004086d3
|
|
12
14
|
|
|
13
15
|
## 0.19.5
|
|
14
16
|
|
package/dist/apis/LynxView.js
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// Copyright 2026 The Lynx Authors. All rights reserved.
|
|
2
|
+
// Licensed under the Apache License Version 2.0 that can be found in the
|
|
3
|
+
// LICENSE file in the root directory of this source tree.
|
|
4
|
+
import { reloadEndpoint } from '@lynx-js/web-constants';
|
|
5
|
+
export function registerReloadHandler(rpc, reloadHandler) {
|
|
6
|
+
rpc.registerHandler(reloadEndpoint, reloadHandler);
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=registerReloadHandler.js.map
|
|
@@ -9,6 +9,7 @@ import { registerDispatchLynxViewEventHandler } from './crossThreadHandlers/regi
|
|
|
9
9
|
import { registerTriggerElementMethodEndpointHandler } from './crossThreadHandlers/registerTriggerElementMethodEndpointHandler.js';
|
|
10
10
|
import { registerReportErrorHandler } from './crossThreadHandlers/registerReportErrorHandler.js';
|
|
11
11
|
import { registerGetPathInfoHandler } from './crossThreadHandlers/registerGetPathInfoHandler.js';
|
|
12
|
+
import { registerReloadHandler } from './crossThreadHandlers/registerReloadHandler.js';
|
|
12
13
|
export function startBackground(backgroundRpc, shadowRoot, callbacks) {
|
|
13
14
|
registerInvokeUIMethodHandler(backgroundRpc, shadowRoot);
|
|
14
15
|
registerNativePropsHandler(backgroundRpc, shadowRoot);
|
|
@@ -20,6 +21,7 @@ export function startBackground(backgroundRpc, shadowRoot, callbacks) {
|
|
|
20
21
|
registerDispatchLynxViewEventHandler(backgroundRpc, shadowRoot);
|
|
21
22
|
registerTriggerElementMethodEndpointHandler(backgroundRpc, shadowRoot);
|
|
22
23
|
registerReportErrorHandler(backgroundRpc, 'app-service.js', callbacks.onError);
|
|
24
|
+
registerReloadHandler(backgroundRpc, callbacks.reload);
|
|
23
25
|
const sendGlobalEvent = backgroundRpc.createCall(sendGlobalEventEndpoint);
|
|
24
26
|
const markTiming = backgroundRpc.createCall(markTimingEndpoint);
|
|
25
27
|
const updateI18nResourceBackground = (data, options) => {
|
|
@@ -5,5 +5,6 @@ export type StartUIThreadCallbacks = {
|
|
|
5
5
|
napiModulesCall: NapiModulesCall;
|
|
6
6
|
onError?: (err: Error, release: string, fileName: string) => void;
|
|
7
7
|
customTemplateLoader?: TemplateLoader;
|
|
8
|
+
reload: () => void;
|
|
8
9
|
};
|
|
9
10
|
export declare function startUIThread(templateUrl: string, configs: Omit<StartMainThreadContextConfig, 'template'>, shadowRoot: ShadowRoot, lynxGroupId: number | undefined, threadStrategy: 'all-on-ui' | 'multi-thread', callbacks: StartUIThreadCallbacks, ssr?: SSRDumpInfo): LynxView;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-core-canary",
|
|
3
|
-
"version": "0.19.6-canary-
|
|
3
|
+
"version": "0.19.6-canary-20260122-5b589ab5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [],
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4",
|
|
28
|
-
"@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.19.6-canary-
|
|
29
|
-
"@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.6-canary-
|
|
30
|
-
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.6-canary-
|
|
31
|
-
"@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.19.6-canary-
|
|
28
|
+
"@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.19.6-canary-20260122-5b589ab5",
|
|
29
|
+
"@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.6-canary-20260122-5b589ab5",
|
|
30
|
+
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.6-canary-20260122-5b589ab5",
|
|
31
|
+
"@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.19.6-canary-20260122-5b589ab5"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@lynx-js/lynx-core": "0.1.3",
|