@lynx-js/web-core-wasm-canary 0.0.0 → 0.0.1-canary-20260116-ce265e8f

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.
Files changed (204) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/{LICENSE → LICENSE.txt} +1 -1
  3. package/Notice.txt +1 -0
  4. package/README.md +1 -0
  5. package/binary/client/client.d.ts +263 -0
  6. package/binary/client/client.js +1339 -0
  7. package/binary/client/client_bg.wasm +0 -0
  8. package/binary/client/client_bg.wasm.d.ts +70 -0
  9. package/binary/client/client_debug.d.ts +263 -0
  10. package/binary/client/client_debug.js +1339 -0
  11. package/binary/client/client_debug_bg.wasm +0 -0
  12. package/binary/client/client_debug_bg.wasm.d.ts +70 -0
  13. package/binary/encode/encode.d.ts +157 -0
  14. package/binary/encode/encode.js +17 -0
  15. package/binary/encode/encode_bg.js +749 -0
  16. package/binary/encode/encode_bg.wasm +0 -0
  17. package/binary/encode/encode_bg.wasm.d.ts +50 -0
  18. package/binary/encode/encode_debug.d.ts +157 -0
  19. package/binary/encode/encode_debug.js +17 -0
  20. package/binary/encode/encode_debug_bg.js +822 -0
  21. package/binary/encode/encode_debug_bg.wasm +0 -0
  22. package/binary/encode/encode_debug_bg.wasm.d.ts +50 -0
  23. package/binary/encode/package.json +4 -0
  24. package/css/in_shadow.css +10 -0
  25. package/css/index.css +119 -0
  26. package/dist/client/LynxCrossThreadContext.d.ts +22 -0
  27. package/dist/client/LynxCrossThreadContext.js +44 -0
  28. package/dist/client/background/background-apis/createBackgroundLynx.d.ts +24 -0
  29. package/dist/client/background/background-apis/createBackgroundLynx.js +38 -0
  30. package/dist/client/background/background-apis/createChunkLoading.d.ts +7 -0
  31. package/dist/client/background/background-apis/createChunkLoading.js +66 -0
  32. package/dist/client/background/background-apis/createElement.d.ts +5 -0
  33. package/dist/client/background/background-apis/createElement.js +18 -0
  34. package/dist/client/background/background-apis/createNapiLoader.d.ts +5 -0
  35. package/dist/client/background/background-apis/createNapiLoader.js +23 -0
  36. package/dist/client/background/background-apis/createNativeApp.d.ts +4 -0
  37. package/dist/client/background/background-apis/createNativeApp.js +98 -0
  38. package/dist/client/background/background-apis/createNativeModules.d.ts +3 -0
  39. package/dist/client/background/background-apis/createNativeModules.js +33 -0
  40. package/dist/client/background/background-apis/createPerformanceApis.d.ts +3 -0
  41. package/dist/client/background/background-apis/createPerformanceApis.js +47 -0
  42. package/dist/client/background/background-apis/createTimingSystem.d.ts +8 -0
  43. package/dist/client/background/background-apis/createTimingSystem.js +86 -0
  44. package/dist/client/background/background-apis/crossThreadHandlers/createGetCustomSection.d.ts +3 -0
  45. package/dist/client/background/background-apis/crossThreadHandlers/createGetCustomSection.js +14 -0
  46. package/dist/client/background/background-apis/crossThreadHandlers/createGetPathInfo.d.ts +3 -0
  47. package/dist/client/background/background-apis/crossThreadHandlers/createGetPathInfo.js +23 -0
  48. package/dist/client/background/background-apis/crossThreadHandlers/createInvokeUIMethod.d.ts +3 -0
  49. package/dist/client/background/background-apis/crossThreadHandlers/createInvokeUIMethod.js +24 -0
  50. package/dist/client/background/background-apis/crossThreadHandlers/createJSObjectDestructionObserver.d.ts +2 -0
  51. package/dist/client/background/background-apis/crossThreadHandlers/createJSObjectDestructionObserver.js +12 -0
  52. package/dist/client/background/background-apis/crossThreadHandlers/registerDisposeHandler.d.ts +3 -0
  53. package/dist/client/background/background-apis/crossThreadHandlers/registerDisposeHandler.js +9 -0
  54. package/dist/client/background/background-apis/crossThreadHandlers/registerPublicComponentEventHandler.d.ts +3 -0
  55. package/dist/client/background/background-apis/crossThreadHandlers/registerPublicComponentEventHandler.js +8 -0
  56. package/dist/client/background/background-apis/crossThreadHandlers/registerPublishEventHandler.d.ts +3 -0
  57. package/dist/client/background/background-apis/crossThreadHandlers/registerPublishEventHandler.js +8 -0
  58. package/dist/client/background/background-apis/crossThreadHandlers/registerSendGlobalEvent.d.ts +3 -0
  59. package/dist/client/background/background-apis/crossThreadHandlers/registerSendGlobalEvent.js +10 -0
  60. package/dist/client/background/background-apis/crossThreadHandlers/registerUpdateDataHandler.d.ts +3 -0
  61. package/dist/client/background/background-apis/crossThreadHandlers/registerUpdateDataHandler.js +5 -0
  62. package/dist/client/background/background-apis/crossThreadHandlers/registerUpdateGlobalPropsHandler.d.ts +3 -0
  63. package/dist/client/background/background-apis/crossThreadHandlers/registerUpdateGlobalPropsHandler.js +5 -0
  64. package/dist/client/background/background-apis/crossThreadHandlers/registerUpdateI18nResource.d.ts +3 -0
  65. package/dist/client/background/background-apis/crossThreadHandlers/registerUpdateI18nResource.js +9 -0
  66. package/dist/client/background/background-apis/startBackgroundThread.d.ts +2 -0
  67. package/dist/client/background/background-apis/startBackgroundThread.js +42 -0
  68. package/dist/client/background/index.d.ts +1 -0
  69. package/dist/client/background/index.js +15 -0
  70. package/dist/client/decodeWorker/cssLoader.d.ts +12 -0
  71. package/dist/client/decodeWorker/cssLoader.js +96 -0
  72. package/dist/client/decodeWorker/decode.worker.d.ts +1 -0
  73. package/dist/client/decodeWorker/decode.worker.js +338 -0
  74. package/dist/client/decodeWorker/types.d.ts +32 -0
  75. package/dist/client/decodeWorker/types.js +2 -0
  76. package/dist/client/endpoints.d.ts +53 -0
  77. package/dist/client/endpoints.js +37 -0
  78. package/dist/client/index.d.ts +3 -0
  79. package/dist/client/index.js +3 -0
  80. package/dist/client/mainthread/Background.d.ts +30 -0
  81. package/dist/client/mainthread/Background.js +207 -0
  82. package/dist/client/mainthread/ExposureServices.d.ts +11 -0
  83. package/dist/client/mainthread/ExposureServices.js +211 -0
  84. package/dist/client/mainthread/I18n.d.ts +9 -0
  85. package/dist/client/mainthread/I18n.js +44 -0
  86. package/dist/client/mainthread/LynxView.d.ts +170 -0
  87. package/dist/client/mainthread/LynxView.js +367 -0
  88. package/dist/client/mainthread/LynxViewInstance.d.ts +56 -0
  89. package/dist/client/mainthread/LynxViewInstance.js +196 -0
  90. package/dist/client/mainthread/StyleManager.d.ts +15 -0
  91. package/dist/client/mainthread/StyleManager.js +72 -0
  92. package/dist/client/mainthread/TemplateManager.d.ts +11 -0
  93. package/dist/client/mainthread/TemplateManager.js +257 -0
  94. package/dist/client/mainthread/createIFrameRealm.d.ts +6 -0
  95. package/dist/client/mainthread/createIFrameRealm.js +68 -0
  96. package/dist/client/mainthread/createMainThreadGlobalAPIs.d.ts +3 -0
  97. package/dist/client/mainthread/createMainThreadGlobalAPIs.js +82 -0
  98. package/dist/client/mainthread/crossThreadHandlers/queryNodes.d.ts +3 -0
  99. package/dist/client/mainthread/crossThreadHandlers/queryNodes.js +74 -0
  100. package/dist/client/mainthread/crossThreadHandlers/registerGetPathInfoHandler.d.ts +3 -0
  101. package/dist/client/mainthread/crossThreadHandlers/registerGetPathInfoHandler.js +51 -0
  102. package/dist/client/mainthread/crossThreadHandlers/registerInvokeUIMethodHandler.d.ts +3 -0
  103. package/dist/client/mainthread/crossThreadHandlers/registerInvokeUIMethodHandler.js +49 -0
  104. package/dist/client/mainthread/crossThreadHandlers/registerNapiModulesCallHandler.d.ts +3 -0
  105. package/dist/client/mainthread/crossThreadHandlers/registerNapiModulesCallHandler.js +8 -0
  106. package/dist/client/mainthread/crossThreadHandlers/registerNativeModulesCallHandler.d.ts +3 -0
  107. package/dist/client/mainthread/crossThreadHandlers/registerNativeModulesCallHandler.js +7 -0
  108. package/dist/client/mainthread/crossThreadHandlers/registerSelectComponentHandler.d.ts +3 -0
  109. package/dist/client/mainthread/crossThreadHandlers/registerSelectComponentHandler.js +20 -0
  110. package/dist/client/mainthread/crossThreadHandlers/registerSetNativePropsHandler.d.ts +3 -0
  111. package/dist/client/mainthread/crossThreadHandlers/registerSetNativePropsHandler.js +28 -0
  112. package/dist/client/mainthread/crossThreadHandlers/registerTriggerComponentEventHandler.d.ts +3 -0
  113. package/dist/client/mainthread/crossThreadHandlers/registerTriggerComponentEventHandler.js +12 -0
  114. package/dist/client/mainthread/crossThreadHandlers/registerTriggerElementMethodEndpointHandler.d.ts +3 -0
  115. package/dist/client/mainthread/crossThreadHandlers/registerTriggerElementMethodEndpointHandler.js +29 -0
  116. package/dist/client/mainthread/elementAPIs/WASMJSBinding.d.ts +38 -0
  117. package/dist/client/mainthread/elementAPIs/WASMJSBinding.js +122 -0
  118. package/dist/client/mainthread/elementAPIs/createCrossThreadEvent.d.ts +2 -0
  119. package/dist/client/mainthread/elementAPIs/createCrossThreadEvent.js +77 -0
  120. package/dist/client/mainthread/elementAPIs/createElementAPI.d.ts +3 -0
  121. package/dist/client/mainthread/elementAPIs/createElementAPI.js +346 -0
  122. package/dist/client/mainthread/elementAPIs/index.d.ts +2 -0
  123. package/dist/client/mainthread/elementAPIs/index.js +3 -0
  124. package/dist/client/mainthread/elementAPIs/pureElementPAPIs.d.ts +26 -0
  125. package/dist/client/mainthread/elementAPIs/pureElementPAPIs.js +85 -0
  126. package/dist/client/mainthread/utils/convertLengthToPx.d.ts +1 -0
  127. package/dist/client/mainthread/utils/convertLengthToPx.js +25 -0
  128. package/dist/client/wasm.d.ts +11 -0
  129. package/dist/client/wasm.js +52 -0
  130. package/dist/client/webElementsDynamicLoader.d.ts +8 -0
  131. package/dist/client/webElementsDynamicLoader.js +80 -0
  132. package/dist/client_prod/static/css/async/web-core-main-chunk.css +1 -0
  133. package/dist/client_prod/static/css/client.css +1 -0
  134. package/dist/client_prod/static/js/async/lynx-core-chunk.js +3 -0
  135. package/dist/client_prod/static/js/async/web-core-main-chunk.js +303 -0
  136. package/dist/client_prod/static/js/async/web-core-template-loader-thread.js +8 -0
  137. package/dist/client_prod/static/js/async/web-core-worker-chunk.js +1 -0
  138. package/dist/client_prod/static/js/async/web-elements-audio.js +1 -0
  139. package/dist/client_prod/static/js/async/web-elements-foldview.js +1 -0
  140. package/dist/client_prod/static/js/async/web-elements-input.js +1 -0
  141. package/dist/client_prod/static/js/async/web-elements-list.js +1 -0
  142. package/dist/client_prod/static/js/async/web-elements-overlay.js +1 -0
  143. package/dist/client_prod/static/js/async/web-elements-refrshview.js +1 -0
  144. package/dist/client_prod/static/js/async/web-elements-swiper.js +1 -0
  145. package/dist/client_prod/static/js/async/web-elements-textarea.js +1 -0
  146. package/dist/client_prod/static/js/async/web-elements-viewpager.js +1 -0
  147. package/dist/client_prod/static/js/client.js +2 -0
  148. package/dist/client_prod/static/wasm/7ff75609.module.wasm +0 -0
  149. package/dist/constants.d.ts +58 -0
  150. package/dist/constants.js +114 -0
  151. package/dist/encode/encodeCSS.d.ts +3 -0
  152. package/dist/encode/encodeCSS.js +99 -0
  153. package/dist/encode/encodeElementTemplate.d.ts +2 -0
  154. package/dist/encode/encodeElementTemplate.js +52 -0
  155. package/dist/encode/index.d.ts +1 -0
  156. package/dist/encode/index.js +7 -0
  157. package/dist/encode/webEncoder.d.ts +21 -0
  158. package/dist/encode/webEncoder.js +125 -0
  159. package/dist/types/BTSChunk.d.ts +3 -0
  160. package/dist/types/BTSChunk.js +5 -0
  161. package/dist/types/Cloneable.d.ts +2 -0
  162. package/dist/types/Cloneable.js +2 -0
  163. package/dist/types/DecodedTemplate.d.ts +10 -0
  164. package/dist/types/DecodedTemplate.js +7 -0
  165. package/dist/types/Element.d.ts +35 -0
  166. package/dist/types/Element.js +5 -0
  167. package/dist/types/ElementTemplateData.d.ts +15 -0
  168. package/dist/types/ElementTemplateData.js +7 -0
  169. package/dist/types/EventType.d.ts +56 -0
  170. package/dist/types/EventType.js +5 -0
  171. package/dist/types/I18nTypes.d.ts +21 -0
  172. package/dist/types/I18nTypes.js +2 -0
  173. package/dist/types/IElementPAPI.d.ts +184 -0
  174. package/dist/types/IElementPAPI.js +2 -0
  175. package/dist/types/IMtsBinding.d.ts +11 -0
  176. package/dist/types/IMtsBinding.js +7 -0
  177. package/dist/types/JSRealm.d.ts +5 -0
  178. package/dist/types/JSRealm.js +7 -0
  179. package/dist/types/LynxContextEventTarget.d.ts +12 -0
  180. package/dist/types/LynxContextEventTarget.js +5 -0
  181. package/dist/types/MainThreadLynx.d.ts +15 -0
  182. package/dist/types/MainThreadLynx.js +2 -0
  183. package/dist/types/NapiModules.d.ts +9 -0
  184. package/dist/types/NapiModules.js +5 -0
  185. package/dist/types/NativeApp.d.ts +120 -0
  186. package/dist/types/NativeApp.js +5 -0
  187. package/dist/types/NativeModules.d.ts +2 -0
  188. package/dist/types/NativeModules.js +5 -0
  189. package/dist/types/PageConfig.d.ts +9 -0
  190. package/dist/types/PageConfig.js +2 -0
  191. package/dist/types/ProcessDataCallback.d.ts +1 -0
  192. package/dist/types/ProcessDataCallback.js +2 -0
  193. package/dist/types/TimingAPIs.d.ts +32 -0
  194. package/dist/types/TimingAPIs.js +5 -0
  195. package/dist/types/UpdateDataOptions.d.ts +8 -0
  196. package/dist/types/UpdateDataOptions.js +6 -0
  197. package/dist/types/WorkerStartMessage.d.ts +14 -0
  198. package/dist/types/WorkerStartMessage.js +5 -0
  199. package/dist/types/index.d.ts +20 -0
  200. package/dist/types/index.js +7 -0
  201. package/eslint.config.js +34 -0
  202. package/package.json +87 -4
  203. package/index.js +0 -1
  204. package/selfIdentity.plist +0 -0
@@ -0,0 +1,15 @@
1
+ import type { Cloneable } from './Cloneable.js';
2
+ import type { LynxContextEventTarget } from './LynxContextEventTarget.js';
3
+ export interface MainThreadLynx {
4
+ getJSContext: () => LynxContextEventTarget;
5
+ requestAnimationFrame: (cb: () => void) => number;
6
+ cancelAnimationFrame: (handler: number) => void;
7
+ __globalProps: unknown;
8
+ getCustomSectionSync: (key: string) => Cloneable;
9
+ markPipelineTiming: (pipelineId: string, timingKey: string) => void;
10
+ SystemInfo: Cloneable;
11
+ setTimeout: typeof setTimeout;
12
+ clearTimeout: typeof clearTimeout;
13
+ setInterval: typeof setInterval;
14
+ clearInterval: typeof clearInterval;
15
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=MainThreadLynx.js.map
@@ -0,0 +1,9 @@
1
+ import type { Cloneable } from './Cloneable.js';
2
+ export type NapiModulesMap = Record<string, string>;
3
+ export type NapiModulesCall = (name: string, data: any, moduleName: string, dispatchNapiModules: (data: Cloneable) => void) => Promise<{
4
+ data: unknown;
5
+ transfer?: unknown[];
6
+ } | undefined> | {
7
+ data: unknown;
8
+ transfer?: unknown[];
9
+ } | undefined | Promise<undefined>;
@@ -0,0 +1,5 @@
1
+ // Copyright 2023 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
+ export {};
5
+ //# sourceMappingURL=NapiModules.js.map
@@ -0,0 +1,120 @@
1
+ import type { ErrorCode, IdentifierType } from '../constants.js';
2
+ import type { CloneableObject } from './Cloneable.js';
3
+ import type { LynxContextEventTarget } from './LynxContextEventTarget.js';
4
+ import type { PerformancePipelineOptions } from './TimingAPIs.js';
5
+ import type { II18nResource } from './I18nTypes.js';
6
+ export type LynxKernelInject = {
7
+ init: (opt: {
8
+ tt: LynxKernelInject;
9
+ }) => void;
10
+ buildVersion?: string;
11
+ };
12
+ export interface EventEmitter {
13
+ addListener(eventName: string, listener: (...args: unknown[]) => void, context?: object): void;
14
+ removeListener(eventName: string, listener: (...args: unknown[]) => void): void;
15
+ emit(eventName: string, data: unknown): void;
16
+ removeAllListeners(eventName?: string): void;
17
+ trigger(eventName: string, params: string | Record<any, any>): void;
18
+ toggle(eventName: string, ...data: unknown[]): void;
19
+ }
20
+ export type NativeLynx = {
21
+ __globalProps: CloneableObject;
22
+ getJSModule(_moduleName: string): unknown;
23
+ getNativeApp(): NativeApp;
24
+ getCoreContext(): LynxContextEventTarget;
25
+ getCustomSectionSync(key: string): CloneableObject;
26
+ getCustomSection(key: string): Promise<CloneableObject>;
27
+ };
28
+ export type NativeTTObject = {
29
+ lynx: NativeLynx;
30
+ OnLifecycleEvent: (...args: unknown[]) => void;
31
+ publicComponentEvent(componentId: string, handlerName: string, eventData?: unknown): void;
32
+ publishEvent(handlerName: string, data?: unknown): void;
33
+ GlobalEventEmitter: EventEmitter;
34
+ lynxCoreInject: any;
35
+ updateCardData: (newData: Record<string, any>, options?: Record<string, any>) => void;
36
+ onNativeAppReady: () => void;
37
+ globalThis?: {
38
+ tt: NativeTTObject;
39
+ };
40
+ updateGlobalProps: (newData: Record<string, any>) => void;
41
+ };
42
+ export type BundleInitReturnObj = {
43
+ /**
44
+ * On the web platform
45
+ * @param opt
46
+ * @returns
47
+ */
48
+ init: (opt: {
49
+ tt: NativeTTObject;
50
+ }) => unknown;
51
+ buildVersion?: string;
52
+ };
53
+ export interface InvokeCallbackRes {
54
+ code: ErrorCode;
55
+ data?: unknown;
56
+ }
57
+ export interface NativeApp {
58
+ id: string;
59
+ callLepusMethod(name: string, data: unknown, callback: (ret: unknown) => void): void;
60
+ setTimeout: typeof setTimeout;
61
+ setInterval: typeof setInterval;
62
+ clearTimeout: typeof clearTimeout;
63
+ clearInterval: typeof clearInterval;
64
+ requestAnimationFrame: (cb: () => void) => void;
65
+ cancelAnimationFrame: (id: number) => void;
66
+ readScript: (sourceURL: string, entryName?: string) => string;
67
+ loadScript: (sourceURL: string, entryName?: string) => BundleInitReturnObj;
68
+ loadScriptAsync(sourceURL: string, callback: (message: string | null, exports?: BundleInitReturnObj) => void, entryName?: string): void;
69
+ nativeModuleProxy: Record<string, any>;
70
+ setNativeProps: (type: IdentifierType, identifier: string, component_id: string, first_only: boolean, native_props: Record<string, unknown>, root_unique_id: number | undefined) => void;
71
+ invokeUIMethod: (type: IdentifierType, identifier: string, component_id: string, method: string, params: object, callback: (ret: InvokeCallbackRes) => void, root_unique_id: number) => void;
72
+ getPathInfo: (type: IdentifierType, identifier: string, component_id: string, first_only: boolean, callback: (ret: InvokeCallbackRes) => void, root_unique_id?: number) => void;
73
+ setCard(tt: NativeTTObject): void;
74
+ generatePipelineOptions: () => PerformancePipelineOptions;
75
+ onPipelineStart: (pipeline_id: string) => void;
76
+ markPipelineTiming: (pipeline_id: string, timing_key: string) => void;
77
+ bindPipelineIdWithTimingFlag: (pipeline_id: string, timing_flag: string) => void;
78
+ /**
79
+ * Support from Lynx 3.0
80
+ */
81
+ profileStart: (traceName: string, option?: unknown) => void;
82
+ /**
83
+ * Support from Lynx 3.0
84
+ */
85
+ profileEnd: () => void;
86
+ /***
87
+ * Support from Lynx 3.0
88
+ */
89
+ profileMark: () => void;
90
+ /**
91
+ * Support from Lynx 3.0
92
+ */
93
+ profileFlowId: () => number;
94
+ /**
95
+ * Support from Lynx 2.18
96
+ */
97
+ isProfileRecording: () => boolean;
98
+ triggerComponentEvent(id: string, params: {
99
+ eventDetail: CloneableObject;
100
+ eventOption: CloneableObject;
101
+ componentId: string;
102
+ }): void;
103
+ selectComponent(componentId: string, idSelector: string, single: boolean, callback?: () => void): void;
104
+ createJSObjectDestructionObserver(callback: (...args: unknown[]) => unknown): {};
105
+ setSharedData<T>(dataKey: string, dataVal: T): void;
106
+ getSharedData<T = unknown>(dataKey: string): T | undefined;
107
+ i18nResource: II18nResource;
108
+ reportException: (error: Error, _: unknown) => void;
109
+ __SetSourceMapRelease: (err: Error) => void;
110
+ __GetSourceMapRelease: (url: string) => string | undefined;
111
+ queryComponent: (source: string, callback: (ret: {
112
+ __hasReady: boolean;
113
+ } | {
114
+ code: number;
115
+ detail?: {
116
+ schema: string;
117
+ };
118
+ }) => void) => void;
119
+ tt: NativeTTObject | null;
120
+ }
@@ -0,0 +1,5 @@
1
+ // Copyright 2023 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
+ export {};
5
+ //# sourceMappingURL=NativeApp.js.map
@@ -0,0 +1,2 @@
1
+ export type NativeModulesMap = Record<string, string>;
2
+ export type NativeModulesCall = (name: string, data: any, moduleName: string) => Promise<any> | any;
@@ -0,0 +1,5 @@
1
+ // Copyright 2023 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
+ export {};
5
+ //# sourceMappingURL=NativeModules.js.map
@@ -0,0 +1,9 @@
1
+ export interface PageConfig {
2
+ enableCSSSelector: 'true' | 'false';
3
+ enableRemoveCSSScope: 'true' | 'false';
4
+ defaultDisplayLinear: 'true' | 'false';
5
+ defaultOverflowVisible: 'true' | 'false';
6
+ enableJSDataProcessor: 'true' | 'false';
7
+ isLazy: 'true' | 'false';
8
+ cardType: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=PageConfig.js.map
@@ -0,0 +1 @@
1
+ export type ProcessDataCallback = (data: any, processorName?: string) => any;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ProcessDataCallback.js.map
@@ -0,0 +1,32 @@
1
+ export interface SetupTimingInfo {
2
+ [key: string]: unknown;
3
+ }
4
+ export interface UpdateTimingInfo {
5
+ [key: string]: unknown;
6
+ }
7
+ export interface ExtraTimingInfo {
8
+ [key: string]: unknown;
9
+ }
10
+ export interface MetricsTimingInfo {
11
+ }
12
+ export interface TimingInfo {
13
+ extra_timing: ExtraTimingInfo;
14
+ setup_timing: SetupTimingInfo;
15
+ update_timings: {
16
+ [key: string]: UpdateTimingInfo;
17
+ };
18
+ metrics: MetricsTimingInfo;
19
+ has_reload: boolean;
20
+ thread_strategy: number;
21
+ url: string;
22
+ [key: string]: unknown;
23
+ }
24
+ export interface PerformancePipelineOptions {
25
+ pipelineID: string;
26
+ needTimestamps: boolean;
27
+ }
28
+ export interface TimingEntry {
29
+ timingKey: string;
30
+ pipelineId?: string;
31
+ timeStamp: number;
32
+ }
@@ -0,0 +1,5 @@
1
+ // Copyright 2024 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
+ export {};
5
+ //# sourceMappingURL=TimingAPIs.js.map
@@ -0,0 +1,8 @@
1
+ export declare const enum NativeUpdateDataType {
2
+ UPDATE = 0,
3
+ RESET = 1
4
+ }
5
+ export interface UpdateDataOptions {
6
+ type?: NativeUpdateDataType;
7
+ processorName?: string;
8
+ }
@@ -0,0 +1,6 @@
1
+ export var NativeUpdateDataType;
2
+ (function (NativeUpdateDataType) {
3
+ NativeUpdateDataType[NativeUpdateDataType["UPDATE"] = 0] = "UPDATE";
4
+ NativeUpdateDataType[NativeUpdateDataType["RESET"] = 1] = "RESET";
5
+ })(NativeUpdateDataType || (NativeUpdateDataType = {}));
6
+ //# sourceMappingURL=UpdateDataOptions.js.map
@@ -0,0 +1,14 @@
1
+ import type { Cloneable } from './Cloneable.js';
2
+ import type { NapiModulesMap } from './NapiModules.js';
3
+ import type { NativeModulesMap } from './NativeModules.js';
4
+ export interface WorkerStartMessage {
5
+ mainThreadMessagePort: MessagePort;
6
+ systemInfo?: Record<string, any>;
7
+ initData: Cloneable;
8
+ globalProps: Cloneable;
9
+ cardType: string;
10
+ customSections: Record<string, Cloneable>;
11
+ nativeModulesMap: NativeModulesMap;
12
+ napiModulesMap: NapiModulesMap;
13
+ entryTemplateUrl: string;
14
+ }
@@ -0,0 +1,5 @@
1
+ // Copyright 2023 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
+ export {};
5
+ //# sourceMappingURL=WorkerStartMessage.js.map
@@ -0,0 +1,20 @@
1
+ export type * from './Element.js';
2
+ export type * from './EventType.js';
3
+ export type * from './Cloneable.js';
4
+ export type * from './IElementPAPI.js';
5
+ export type * from './ElementTemplateData.js';
6
+ export type * from './NativeModules.js';
7
+ export type * from './NapiModules.js';
8
+ export type * from './I18nTypes.js';
9
+ export type * from './NativeApp.js';
10
+ export type * from './LynxContextEventTarget.js';
11
+ export type * from './MainThreadLynx.js';
12
+ export type * from './IMtsBinding.js';
13
+ export type * from './JSRealm.js';
14
+ export type * from './TimingAPIs.js';
15
+ export type * from './WorkerStartMessage.js';
16
+ export type * from './ProcessDataCallback.js';
17
+ export type * from './UpdateDataOptions.js';
18
+ export type * from './BTSChunk.js';
19
+ export type * from './PageConfig.js';
20
+ export type * from './DecodedTemplate.js';
@@ -0,0 +1,7 @@
1
+ /*
2
+ * Copyright 2025 The Lynx Authors. All rights reserved.
3
+ * Licensed under the Apache License Version 2.0 that can be found in the
4
+ * LICENSE file in the root directory of this source tree.
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,34 @@
1
+ import compat from 'eslint-plugin-compat';
2
+ import { defineConfig } from 'eslint/config';
3
+ import tseslint from 'typescript-eslint';
4
+ export default defineConfig(
5
+ compat.configs['flat/recommended'],
6
+ {
7
+ ignores: ['dist/**', 'binary/**', 'css/**', 'scripts/**', 'tests/**'],
8
+ },
9
+ {
10
+ files: ['**/*.ts'],
11
+ languageOptions: {
12
+ parser: tseslint.parser,
13
+ parserOptions: {
14
+ projectService: {
15
+ allowDefaultProject: ['*.js', '*.ts'],
16
+ },
17
+ tsconfigRootDir: import.meta.dirname,
18
+ },
19
+ },
20
+ settings: {
21
+ 'lintAllEsApis': true,
22
+ },
23
+ rules: {
24
+ 'no-restricted-syntax': [
25
+ 'error',
26
+ {
27
+ selector:
28
+ 'CallExpression[callee.object.name="Promise"][callee.property.name="withResolvers"]',
29
+ message: 'Promise.withResolvers is not supported in target browsers.',
30
+ },
31
+ ],
32
+ },
33
+ },
34
+ );
package/package.json CHANGED
@@ -1,9 +1,92 @@
1
1
  {
2
2
  "name": "@lynx-js/web-core-wasm-canary",
3
- "version": "0.0.0",
3
+ "version": "0.0.1-canary-20260116-ce265e8f",
4
4
  "description": "This is an internal experimental package, do not use",
5
- "keywords": [],
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "https://github.com/lynx-family/lynx-stack.git",
8
+ "directory": "packages/web-platform/web-core-wasm"
9
+ },
6
10
  "license": "Apache-2.0",
11
+ "sideEffects": true,
7
12
  "type": "module",
8
- "main": "index.js"
9
- }
13
+ "exports": {
14
+ "./encode": {
15
+ "types": "./dist/encode/index.d.ts",
16
+ "import": "./dist/encode/index.js",
17
+ "default": "./dist/encode/index.js"
18
+ },
19
+ "./client": {
20
+ "types": "./dist/client/index.d.ts",
21
+ "import": "./dist/client/index.js",
22
+ "default": "./dist/client/index.js"
23
+ },
24
+ "./client.prod.js": {
25
+ "default": "./dist/client_prod/client.js"
26
+ },
27
+ "./index.css": {
28
+ "default": "./css/index.css"
29
+ }
30
+ },
31
+ "main": "./dist/client/index.js",
32
+ "files": [
33
+ "dist",
34
+ "binary",
35
+ "css",
36
+ "!dist/**/*.js.map",
37
+ "*.d.ts",
38
+ "*.js",
39
+ "LICENSE.txt",
40
+ "Notice.txt",
41
+ "CHANGELOG.md",
42
+ "README.md"
43
+ ],
44
+ "browserslist": {
45
+ "production": [
46
+ "Chrome >= 92",
47
+ "Safari >= 16.4"
48
+ ],
49
+ "development": [
50
+ "last 1 chrome version"
51
+ ]
52
+ },
53
+ "dependencies": {
54
+ "@lynx-js/web-elements": "npm:@lynx-js/web-elements-canary@0.11.0",
55
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.6-canary-20260116-ce265e8f",
56
+ "hyphenate-style-name": "^1.1.0"
57
+ },
58
+ "devDependencies": {
59
+ "@lynx-js/lynx-core": "0.1.3",
60
+ "@rsbuild/core": "1.7.1",
61
+ "@rsbuild/plugin-eslint": "^1.2.0",
62
+ "@rsbuild/plugin-source-build": "^1.0.3",
63
+ "binaryen": "^125.0.0",
64
+ "eslint-plugin-compat": "^6.0.2",
65
+ "fb-dotslash": "^0.5.8",
66
+ "jsdom": "^27.4.0",
67
+ "tslib": "^2.8.1",
68
+ "wasm-feature-detect": "^1.8.0",
69
+ "@lynx-js/css-serializer": "npm:@lynx-js/css-serializer-canary@0.1.3"
70
+ },
71
+ "peerDependencies": {
72
+ "@lynx-js/css-serializer": "*",
73
+ "@lynx-js/lynx-core": "0.1.3",
74
+ "tslib": "^2.5.0"
75
+ },
76
+ "peerDependenciesMeta": {
77
+ "@lynx-js/css-serializer": {
78
+ "optional": true
79
+ },
80
+ "@lynx-js/lynx-core": {
81
+ "optional": true
82
+ },
83
+ "tslib": {
84
+ "optional": true
85
+ }
86
+ },
87
+ "scripts": {
88
+ "build": "rsbuild build",
89
+ "build:wasm": "node ./scripts/build.js",
90
+ "test": "vitest run"
91
+ }
92
+ }
package/index.js DELETED
@@ -1 +0,0 @@
1
- export {}
Binary file