@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 CHANGED
@@ -1,14 +1,16 @@
1
1
  # @lynx-js/web-core
2
2
 
3
- ## 0.19.6-canary-20260121150015-9d8f2629b5ffc32444ce876dadecfb55f88aec4f
3
+ ## 0.19.6-canary-20260122112014-5b589ab53b01a8e2357d3ccbb159edab004086d3
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - 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)]:
8
- - @lynx-js/web-constants@0.19.6-canary-20260121150015-9d8f2629b5ffc32444ce876dadecfb55f88aec4f
9
- - @lynx-js/web-mainthread-apis@0.19.6-canary-20260121150015-9d8f2629b5ffc32444ce876dadecfb55f88aec4f
10
- - @lynx-js/web-worker-runtime@0.19.6-canary-20260121150015-9d8f2629b5ffc32444ce876dadecfb55f88aec4f
11
- - @lynx-js/web-worker-rpc@0.19.6-canary-20260121150015-9d8f2629b5ffc32444ce876dadecfb55f88aec4f
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
 
@@ -406,6 +406,9 @@ export class LynxView extends HTMLElement {
406
406
  }));
407
407
  },
408
408
  customTemplateLoader: this.customTemplateLoader,
409
+ reload: () => {
410
+ this.reload();
411
+ },
409
412
  },
410
413
  ssr: ssrData
411
414
  ? JSON.parse(decodeURI(ssrData))
@@ -0,0 +1,2 @@
1
+ import type { Rpc } from '@lynx-js/web-worker-rpc';
2
+ export declare function registerReloadHandler(rpc: Rpc, reloadHandler: () => void): void;
@@ -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-20260121-9d8f2629",
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-20260121-9d8f2629",
29
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.6-canary-20260121-9d8f2629",
30
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.6-canary-20260121-9d8f2629",
31
- "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.19.6-canary-20260121-9d8f2629"
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",