@lynx-js/web-constants-canary 0.19.2 → 0.19.3-canary-20251223-986761dd

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,5 +1,12 @@
1
1
  # @lynx-js/web-constants
2
2
 
3
+ ## 0.19.3-canary-20251223134821-986761dd1e9e631f8118faec68188f29f78e9236
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [[`986761d`](https://github.com/lynx-family/lynx-stack/commit/986761dd1e9e631f8118faec68188f29f78e9236)]:
8
+ - @lynx-js/web-worker-rpc@0.19.3-canary-20251223134821-986761dd1e9e631f8118faec68188f29f78e9236
9
+
3
10
  ## 0.19.2
4
11
 
5
12
  ### Patch Changes
@@ -287,25 +294,25 @@
287
294
  lynxView.initI18nResources = [
288
295
  {
289
296
  options: {
290
- locale: 'en',
291
- channel: '1',
292
- fallback_url: '',
297
+ locale: "en",
298
+ channel: "1",
299
+ fallback_url: "",
293
300
  },
294
301
  resource: {
295
- hello: 'hello',
296
- lynx: 'lynx web platform1',
302
+ hello: "hello",
303
+ lynx: "lynx web platform1",
297
304
  },
298
305
  },
299
306
  ];
300
- lynxView.addEventListener('i18nResourceMissed', (e) => {
307
+ lynxView.addEventListener("i18nResourceMissed", (e) => {
301
308
  console.log(e);
302
309
  });
303
310
 
304
311
  // mts
305
312
  _I18nResourceTranslation({
306
- locale: 'en',
307
- channel: '1',
308
- fallback_url: '',
313
+ locale: "en",
314
+ channel: "1",
315
+ fallback_url: "",
309
316
  });
310
317
  ```
311
318
 
@@ -544,8 +551,8 @@
544
551
  }
545
552
  };`,
546
553
  ],
547
- { type: 'text/javascript' },
548
- ),
554
+ { type: "text/javascript" }
555
+ )
549
556
  ),
550
557
  };
551
558
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -631,8 +638,8 @@
631
638
  };
632
639
  };`,
633
640
  ],
634
- { type: 'text/javascript' },
635
- ),
641
+ { type: "text/javascript" }
642
+ )
636
643
  );
637
644
 
638
645
  const color_methods = URL.createObjectURL(
@@ -647,8 +654,8 @@
647
654
  };
648
655
  };`,
649
656
  ],
650
- { type: 'text/javascript' },
651
- ),
657
+ { type: "text/javascript" }
658
+ )
652
659
  );
653
660
 
654
661
  lynxView.napiModuleMap = {
@@ -665,7 +672,7 @@
665
672
 
666
673
  ```js
667
674
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
668
- if (name === 'getColor' && moduleName === 'color_methods') {
675
+ if (name === "getColor" && moduleName === "color_methods") {
669
676
  return data.color;
670
677
  }
671
678
  };
@@ -729,8 +736,8 @@
729
736
  }
730
737
  };`,
731
738
  ],
732
- { type: 'text/javascript' },
733
- ),
739
+ { type: "text/javascript" }
740
+ )
734
741
  );
735
742
  ```
736
743
 
@@ -742,7 +749,7 @@
742
749
 
743
750
  ```js
744
751
  lynxView.onNativeModulesCall = (name, data, callback) => {
745
- if (name === 'getColor') {
752
+ if (name === "getColor") {
746
753
  callback(data.color);
747
754
  }
748
755
  };
@@ -752,7 +759,7 @@
752
759
 
753
760
  ```js
754
761
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
755
- if (name === 'getColor' && moduleName === 'bridge') {
762
+ if (name === "getColor" && moduleName === "bridge") {
756
763
  return data.color;
757
764
  }
758
765
  };
@@ -5,64 +5,64 @@ import type { IdentifierType, InvokeCallbackRes } from './types/NativeApp.js';
5
5
  import type { ElementAnimationOptions } from './types/Element.js';
6
6
  import type { BackMainThreadContextConfig, LynxTemplate, MarkTiming } from './types/index.js';
7
7
  import type { UpdateDataOptions } from './types/UpdateDataOptions.js';
8
- export declare const postExposureEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[{
8
+ export declare const postExposureEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsyncVoid<[{
9
9
  exposures: ExposureWorkerEvent[];
10
10
  disExposures: ExposureWorkerEvent[];
11
11
  }]>;
12
- export declare const publicComponentEventEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[componentId: string, hname: string, LynxCrossThreadEvent<{
12
+ export declare const publicComponentEventEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsyncVoid<[componentId: string, hname: string, LynxCrossThreadEvent<{
13
13
  [key: string]: string | number | null | undefined;
14
14
  }>]>;
15
- export declare const publishEventEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[string, LynxCrossThreadEvent<{
15
+ export declare const publishEventEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsyncVoid<[string, LynxCrossThreadEvent<{
16
16
  [key: string]: string | number | null | undefined;
17
17
  }>]>;
18
- export declare const postOffscreenEventEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[eventType: string, targetUniqueId: number, bubbles: boolean, unknown]>;
19
- export declare const switchExposureServiceEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[boolean, boolean]>;
20
- export declare const mainThreadStartEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[StartMainThreadContextConfig]>;
21
- export declare const updateDataEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[Cloneable, UpdateDataOptions | undefined], void>;
22
- export declare const sendGlobalEventEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[string, Cloneable[] | undefined]>;
23
- export declare const disposeEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[], void>;
24
- export declare const BackgroundThreadStartEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[BackMainThreadContextConfig], void>;
18
+ export declare const postOffscreenEventEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsyncVoid<[eventType: string, targetUniqueId: number, bubbles: boolean, unknown]>;
19
+ export declare const switchExposureServiceEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsyncVoid<[boolean, boolean]>;
20
+ export declare const mainThreadStartEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsyncVoid<[StartMainThreadContextConfig]>;
21
+ export declare const updateDataEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsync<[Cloneable, UpdateDataOptions | undefined], void>;
22
+ export declare const sendGlobalEventEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsyncVoid<[string, Cloneable[] | undefined]>;
23
+ export declare const disposeEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsync<[], void>;
24
+ export declare const BackgroundThreadStartEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsync<[BackMainThreadContextConfig], void>;
25
25
  /**
26
26
  * Error message, info
27
27
  */
28
- export declare const reportErrorEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[Error, unknown, string]>;
29
- export declare const flushElementTreeEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[operations: (string | number)[]], void>;
30
- export declare const callLepusMethodEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[name: string, data: unknown], void>;
31
- export declare const multiThreadExposureChangedEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[string[]]>;
32
- export declare const invokeUIMethodEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[type: IdentifierType, identifier: string, component_id: string, method: string, params: object, root_unique_id: number | undefined], InvokeCallbackRes>;
33
- export declare const setNativePropsEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[type: IdentifierType, identifier: string, component_id: string, first_only: boolean, native_props: object, root_unique_id: number | undefined], void>;
34
- export declare const getPathInfoEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[type: IdentifierType, identifier: string, component_id: string, first_only: boolean, root_unique_id?: number | undefined], InvokeCallbackRes>;
35
- export declare const nativeModulesCallEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[name: string, data: Cloneable, moduleName: string], any>;
36
- export declare const napiModulesCallEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncWithTransfer<[name: string, data: Cloneable, moduleName: string], any>;
37
- export declare const getCustomSectionsEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[string], Cloneable>;
38
- export declare const markTimingEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[MarkTiming[]]>;
39
- export declare const postTimingFlagsEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[timingFlags: string[], pipelineId: string | undefined]>;
40
- export declare const triggerComponentEventEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[id: string, params: {
28
+ export declare const reportErrorEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsyncVoid<[Error, unknown, string]>;
29
+ export declare const flushElementTreeEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsync<[operations: (string | number)[]], void>;
30
+ export declare const callLepusMethodEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsync<[name: string, data: unknown], void>;
31
+ export declare const multiThreadExposureChangedEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsyncVoid<[string[]]>;
32
+ export declare const invokeUIMethodEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsync<[type: IdentifierType, identifier: string, component_id: string, method: string, params: object, root_unique_id: number | undefined], InvokeCallbackRes>;
33
+ export declare const setNativePropsEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsync<[type: IdentifierType, identifier: string, component_id: string, first_only: boolean, native_props: object, root_unique_id: number | undefined], void>;
34
+ export declare const getPathInfoEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsync<[type: IdentifierType, identifier: string, component_id: string, first_only: boolean, root_unique_id?: number | undefined], InvokeCallbackRes>;
35
+ export declare const nativeModulesCallEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsync<[name: string, data: Cloneable, moduleName: string], any>;
36
+ export declare const napiModulesCallEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsyncWithTransfer<[name: string, data: Cloneable, moduleName: string], any>;
37
+ export declare const getCustomSectionsEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsync<[string], Cloneable>;
38
+ export declare const markTimingEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsyncVoid<[MarkTiming[]]>;
39
+ export declare const postTimingFlagsEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsyncVoid<[timingFlags: string[], pipelineId: string | undefined]>;
40
+ export declare const triggerComponentEventEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsyncVoid<[id: string, params: {
41
41
  eventDetail: CloneableObject;
42
42
  eventOption: CloneableObject;
43
43
  componentId: string;
44
44
  }]>;
45
- export declare const selectComponentEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[componentId: string, idSelector: string, single: boolean], void>;
46
- export declare const dispatchLynxViewEventEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[eventType: string, detail: CloneableObject]>;
47
- export declare const dispatchNapiModuleEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[data: Cloneable]>;
48
- export declare const dispatchCoreContextOnBackgroundEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[{
45
+ export declare const selectComponentEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsync<[componentId: string, idSelector: string, single: boolean], void>;
46
+ export declare const dispatchLynxViewEventEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsyncVoid<[eventType: string, detail: CloneableObject]>;
47
+ export declare const dispatchNapiModuleEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsyncVoid<[data: Cloneable]>;
48
+ export declare const dispatchCoreContextOnBackgroundEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsyncVoid<[{
49
49
  type: string;
50
50
  data: Cloneable;
51
51
  }]>;
52
- export declare const dispatchJSContextOnMainThreadEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[{
52
+ export declare const dispatchJSContextOnMainThreadEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsyncVoid<[{
53
53
  type: string;
54
54
  data: Cloneable;
55
55
  }]>;
56
- export declare const triggerElementMethodEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[method: string, id: string, options: ElementAnimationOptions]>;
57
- export declare const updateGlobalPropsEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[Cloneable]>;
58
- export declare const updateI18nResourcesEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[Cloneable]>;
59
- export declare const updateI18nResourceEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[Cloneable]>;
60
- export declare const dispatchI18nResourceEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[Cloneable]>;
61
- export declare const queryComponentEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[string], {
56
+ export declare const triggerElementMethodEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsyncVoid<[method: string, id: string, options: ElementAnimationOptions]>;
57
+ export declare const updateGlobalPropsEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsyncVoid<[Cloneable]>;
58
+ export declare const updateI18nResourcesEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsyncVoid<[Cloneable]>;
59
+ export declare const updateI18nResourceEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsyncVoid<[Cloneable]>;
60
+ export declare const dispatchI18nResourceEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsyncVoid<[Cloneable]>;
61
+ export declare const queryComponentEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsync<[string], {
62
62
  code: number;
63
63
  detail: {
64
64
  schema: string;
65
65
  };
66
66
  }>;
67
- export declare const updateBTSTemplateCacheEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[string, LynxTemplate], void>;
68
- export declare const loadTemplateMultiThread: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[string], LynxTemplate>;
67
+ export declare const updateBTSTemplateCacheEndpoint: import("@lynx-js/web-worker-rpc").RpcEndpointAsync<[string, LynxTemplate], void>;
68
+ export declare const loadTemplateMultiThread: import("@lynx-js/web-worker-rpc").RpcEndpointAsync<[string], LynxTemplate>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-constants-canary",
3
- "version": "0.19.2",
3
+ "version": "0.19.3-canary-20251223-986761dd",
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.2"
26
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.3-canary-20251223-986761dd"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4"