@lynx-js/web-constants 0.10.1 → 0.12.0
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 +37 -0
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +3 -0
- package/dist/endpoints.d.ts +9 -5
- package/dist/endpoints.js +3 -4
- package/dist/types/Cloneable.d.ts +1 -1
- package/dist/types/EventType.d.ts +10 -0
- package/dist/types/LynxContextEventTarget.d.ts +18 -0
- package/dist/types/LynxContextEventTarget.js +19 -0
- package/dist/types/NativeApp.d.ts +20 -14
- package/dist/types/NativeApp.js +0 -19
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +1 -1
- package/package.json +2 -2
- package/dist/types/LynxLifecycleEvent.d.ts +0 -1
- package/dist/types/LynxLifecycleEvent.js +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# @lynx-js/web-constants
|
|
2
2
|
|
|
3
|
+
## 0.12.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- feat: fully support MTS ([#569](https://github.com/lynx-family/lynx-stack/pull/569))
|
|
8
|
+
|
|
9
|
+
Now use support the following usage
|
|
10
|
+
|
|
11
|
+
- mainthread event
|
|
12
|
+
- mainthread ref
|
|
13
|
+
- runOnMainThread/runOnBackground
|
|
14
|
+
- ref.current.xx
|
|
15
|
+
|
|
16
|
+
- Updated dependencies []:
|
|
17
|
+
- @lynx-js/web-worker-rpc@0.12.0
|
|
18
|
+
|
|
19
|
+
## 0.11.0
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- feat: support mts event handler (1/n) ([#495](https://github.com/lynx-family/lynx-stack/pull/495))
|
|
24
|
+
|
|
25
|
+
now the main-thread:bind handler could be invoked. The params of the handler will be implemented later.
|
|
26
|
+
|
|
27
|
+
- feat: allow multi lynx-view to share bts worker ([#520](https://github.com/lynx-family/lynx-stack/pull/520))
|
|
28
|
+
|
|
29
|
+
Now we allow users to enable so-called "shared-context" feature on the Web Platform.
|
|
30
|
+
|
|
31
|
+
Similar to the same feature for Lynx iOS/Android, this feature let multi lynx cards to share one js context.
|
|
32
|
+
|
|
33
|
+
The `lynx.getSharedData` and `lynx.setSharedData` are also supported in this commit.
|
|
34
|
+
|
|
35
|
+
To enable this feature, set property `lynxGroupId` or attribute `lynx-group-id` before a lynx-view starts rendering. Those card with same context id will share one web worker for the bts scripts.
|
|
36
|
+
|
|
37
|
+
- Updated dependencies []:
|
|
38
|
+
- @lynx-js/web-worker-rpc@0.11.0
|
|
39
|
+
|
|
3
40
|
## 0.10.1
|
|
4
41
|
|
|
5
42
|
### Patch Changes
|
package/dist/constants.d.ts
CHANGED
|
@@ -5,4 +5,4 @@ export declare const lynxTagAttribute: "lynx-tag";
|
|
|
5
5
|
export declare const lynxDefaultDisplayLinearAttribute: "lynx-default-display-linear";
|
|
6
6
|
export declare const lynxDefaultOverflowVisibleAttribute: "lynx-default-overflow-visible";
|
|
7
7
|
export declare const __lynx_timing_flag: "__lynx_timing_flag";
|
|
8
|
-
export declare const globalMuteableVars: readonly ["registerDataProcessor"];
|
|
8
|
+
export declare const globalMuteableVars: readonly ["registerDataProcessor", "registerWorkletInternal", "lynxWorkletImpl", "runWorklet"];
|
package/dist/constants.js
CHANGED
|
@@ -10,5 +10,8 @@ export const lynxDefaultOverflowVisibleAttribute = 'lynx-default-overflow-visibl
|
|
|
10
10
|
export const __lynx_timing_flag = '__lynx_timing_flag';
|
|
11
11
|
export const globalMuteableVars = [
|
|
12
12
|
'registerDataProcessor',
|
|
13
|
+
'registerWorkletInternal',
|
|
14
|
+
'lynxWorkletImpl',
|
|
15
|
+
'runWorklet',
|
|
13
16
|
];
|
|
14
17
|
//# sourceMappingURL=constants.js.map
|
package/dist/endpoints.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { ExposureWorkerEvent, LynxCrossThreadEvent } from './types/EventType.js';
|
|
2
2
|
import type { Cloneable, CloneableObject } from './types/Cloneable.js';
|
|
3
3
|
import type { MainThreadStartConfigs } from './types/MainThreadStartConfigs.js';
|
|
4
|
-
import type { LynxLifecycleEvent } from './types/LynxLifecycleEvent.js';
|
|
5
4
|
import type { IdentifierType, InvokeCallbackRes } from './types/NativeApp.js';
|
|
6
5
|
import type { LynxTemplate } from './types/LynxModule.js';
|
|
7
6
|
import type { NapiModulesMap } from './types/NapiModules.js';
|
|
@@ -23,8 +22,6 @@ export declare const mainThreadStartEndpoint: import("@lynx-js/web-worker-rpc/di
|
|
|
23
22
|
export declare const updateDataEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[Cloneable, Record<string, string>], void>;
|
|
24
23
|
export declare const sendGlobalEventEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[string, Cloneable[] | undefined]>;
|
|
25
24
|
export declare const disposeEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[], void>;
|
|
26
|
-
export declare const uiThreadFpReadyEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[]>;
|
|
27
|
-
export declare const onLifecycleEventEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[LynxLifecycleEvent]>;
|
|
28
25
|
export declare const BackgroundThreadStartEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[{
|
|
29
26
|
initData: unknown;
|
|
30
27
|
globalProps: unknown;
|
|
@@ -39,7 +36,6 @@ export declare const BackgroundThreadStartEndpoint: import("@lynx-js/web-worker-
|
|
|
39
36
|
*/
|
|
40
37
|
export declare const reportErrorEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[string, unknown]>;
|
|
41
38
|
export declare const flushElementTreeEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[operations: ElementOperation[]], void>;
|
|
42
|
-
export declare const mainThreadChunkReadyEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[]>;
|
|
43
39
|
export declare const callLepusMethodEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[name: string, data: unknown], void>;
|
|
44
40
|
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>;
|
|
45
41
|
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>;
|
|
@@ -54,5 +50,13 @@ export declare const triggerComponentEventEndpoint: import("@lynx-js/web-worker-
|
|
|
54
50
|
componentId: string;
|
|
55
51
|
}]>;
|
|
56
52
|
export declare const selectComponentEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[componentId: string, idSelector: string, single: boolean], void>;
|
|
57
|
-
export declare const dispatchLynxViewEventEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").
|
|
53
|
+
export declare const dispatchLynxViewEventEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[eventType: string, detail: CloneableObject]>;
|
|
58
54
|
export declare const dispatchNapiModuleEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[data: Cloneable]>;
|
|
55
|
+
export declare const dispatchCoreContextOnBackgroundEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[{
|
|
56
|
+
type: string;
|
|
57
|
+
data: Cloneable;
|
|
58
|
+
}]>;
|
|
59
|
+
export declare const dispatchJSContextOnMainThreadEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[{
|
|
60
|
+
type: string;
|
|
61
|
+
data: Cloneable;
|
|
62
|
+
}]>;
|
package/dist/endpoints.js
CHANGED
|
@@ -11,15 +11,12 @@ export const mainThreadStartEndpoint = createRpcEndpoint('mainThreadStart', fals
|
|
|
11
11
|
export const updateDataEndpoint = createRpcEndpoint('updateData', false, true);
|
|
12
12
|
export const sendGlobalEventEndpoint = createRpcEndpoint('sendGlobalEventEndpoint', false, false);
|
|
13
13
|
export const disposeEndpoint = createRpcEndpoint('dispose', false, true);
|
|
14
|
-
export const uiThreadFpReadyEndpoint = createRpcEndpoint('uiThreadFpReady', false, false);
|
|
15
|
-
export const onLifecycleEventEndpoint = createRpcEndpoint('__OnLifecycleEvent', false, false);
|
|
16
14
|
export const BackgroundThreadStartEndpoint = createRpcEndpoint('start', false, true);
|
|
17
15
|
/**
|
|
18
16
|
* Error message, info
|
|
19
17
|
*/
|
|
20
18
|
export const reportErrorEndpoint = createRpcEndpoint('reportError', false, false);
|
|
21
19
|
export const flushElementTreeEndpoint = createRpcEndpoint('flushElementTree', false, true);
|
|
22
|
-
export const mainThreadChunkReadyEndpoint = createRpcEndpoint('mainThreadChunkReady', false, false);
|
|
23
20
|
export const callLepusMethodEndpoint = createRpcEndpoint('callLepusMethod', false, true);
|
|
24
21
|
export const invokeUIMethodEndpoint = createRpcEndpoint('__invokeUIMethod', false, true);
|
|
25
22
|
export const setNativePropsEndpoint = createRpcEndpoint('__setNativeProps', false, true);
|
|
@@ -30,6 +27,8 @@ export const markTimingEndpoint = createRpcEndpoint('markTiming', false, false);
|
|
|
30
27
|
export const postTimingFlagsEndpoint = createRpcEndpoint('postTimingFlags', false, false);
|
|
31
28
|
export const triggerComponentEventEndpoint = createRpcEndpoint('__triggerComponentEvent', false, false);
|
|
32
29
|
export const selectComponentEndpoint = createRpcEndpoint('__selectComponent', false, true);
|
|
33
|
-
export const dispatchLynxViewEventEndpoint = createRpcEndpoint('dispatchLynxViewEvent', false,
|
|
30
|
+
export const dispatchLynxViewEventEndpoint = createRpcEndpoint('dispatchLynxViewEvent', false, false);
|
|
34
31
|
export const dispatchNapiModuleEndpoint = createRpcEndpoint('dispatchNapiModule', false, false);
|
|
32
|
+
export const dispatchCoreContextOnBackgroundEndpoint = createRpcEndpoint('dispatchCoreContextOnBackground', false, false);
|
|
33
|
+
export const dispatchJSContextOnMainThreadEndpoint = createRpcEndpoint('dispatchJSContextOnMainThread', false, false);
|
|
35
34
|
//# sourceMappingURL=endpoints.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type Cloneable<T = string | number | null | undefined> = T | Record<string, T
|
|
1
|
+
export type Cloneable<T = string | number | null | undefined> = T | Record<string, T> | T[];
|
|
2
2
|
export type CloneableObject<T = string | number | null | undefined> = Record<string, T>;
|
|
@@ -17,6 +17,16 @@ export interface LynxCrossThreadEvent<T = {
|
|
|
17
17
|
detail: T;
|
|
18
18
|
[key: string]: string | number | undefined | null | {};
|
|
19
19
|
}
|
|
20
|
+
export interface MainThreadScriptEvent<T = {
|
|
21
|
+
[key: string]: string | number | undefined | null;
|
|
22
|
+
}> extends LynxCrossThreadEvent<T> {
|
|
23
|
+
target: LynxCrossThreadEventTarget & {
|
|
24
|
+
elementRefptr: unknown;
|
|
25
|
+
};
|
|
26
|
+
currentTarget: (LynxCrossThreadEventTarget & {
|
|
27
|
+
elementRefptr: unknown;
|
|
28
|
+
}) | null;
|
|
29
|
+
}
|
|
20
30
|
export type ExposureEventDetail = {
|
|
21
31
|
'exposure-id': string;
|
|
22
32
|
'exposure-scene': string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Cloneable } from './Cloneable.js';
|
|
2
|
+
export declare const DispatchEventResult: {
|
|
3
|
+
readonly NotCanceled: 0;
|
|
4
|
+
readonly CanceledByEventHandler: 1;
|
|
5
|
+
readonly CanceledByDefaultEventHandler: 2;
|
|
6
|
+
readonly CanceledBeforeDispatch: 3;
|
|
7
|
+
};
|
|
8
|
+
export type ContextCrossThreadEvent = {
|
|
9
|
+
type: string;
|
|
10
|
+
data: Cloneable;
|
|
11
|
+
};
|
|
12
|
+
export interface LynxContextEventTarget {
|
|
13
|
+
onTriggerEvent?: (event: ContextCrossThreadEvent) => void;
|
|
14
|
+
postMessage(message: any): void;
|
|
15
|
+
dispatchEvent(event: ContextCrossThreadEvent): typeof DispatchEventResult[keyof typeof DispatchEventResult];
|
|
16
|
+
addEventListener(type: string, listener: (event: Event) => void): void;
|
|
17
|
+
removeEventListener(type: string, listener: (event: Event) => void): void;
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export const DispatchEventResult = {
|
|
2
|
+
// Event was not canceled by event handler or default event handler.
|
|
3
|
+
NotCanceled: 0,
|
|
4
|
+
// Event was canceled by event handler; i.e. a script handler calling
|
|
5
|
+
// preventDefault.
|
|
6
|
+
CanceledByEventHandler: 1,
|
|
7
|
+
// Event was canceled by the default event handler; i.e. executing the default
|
|
8
|
+
// action. This result should be used sparingly as it deviates from the DOM
|
|
9
|
+
// Event Dispatch model. Default event handlers really shouldn't be invoked
|
|
10
|
+
// inside of dispatch.
|
|
11
|
+
CanceledByDefaultEventHandler: 2,
|
|
12
|
+
// Event was canceled but suppressed before dispatched to event handler. This
|
|
13
|
+
// result should be used sparingly; and its usage likely indicates there is
|
|
14
|
+
// potential for a bug. Trusted events may return this code; but untrusted
|
|
15
|
+
// events likely should always execute the event handler the developer intends
|
|
16
|
+
// to execute.
|
|
17
|
+
CanceledBeforeDispatch: 3,
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=LynxContextEventTarget.js.map
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CloneableObject } from './Cloneable.js';
|
|
2
|
+
import type { LynxContextEventTarget } from './LynxContextEventTarget.js';
|
|
2
3
|
import type { PerformancePipelineOptions } from './Performance.js';
|
|
3
4
|
export declare const enum IdentifierType {
|
|
4
5
|
ID_SELECTOR = 0,// css selector
|
|
@@ -22,8 +23,16 @@ export interface EventEmitter {
|
|
|
22
23
|
trigger(eventName: string, params: string | Record<any, any>): void;
|
|
23
24
|
toggle(eventName: string, ...data: unknown[]): void;
|
|
24
25
|
}
|
|
26
|
+
export type NativeLynx = {
|
|
27
|
+
__globalProps: CloneableObject;
|
|
28
|
+
getJSModule(_moduleName: string): unknown;
|
|
29
|
+
getNativeApp(): NativeApp;
|
|
30
|
+
getCoreContext(): LynxContextEventTarget;
|
|
31
|
+
getCustomSectionSync(key: string): CloneableObject;
|
|
32
|
+
getCustomSection(key: string): Promise<CloneableObject>;
|
|
33
|
+
};
|
|
25
34
|
export type NativeTTObject = {
|
|
26
|
-
lynx:
|
|
35
|
+
lynx: NativeLynx;
|
|
27
36
|
OnLifecycleEvent: (...args: unknown[]) => void;
|
|
28
37
|
publicComponentEvent(componentId: string, handlerName: string, eventData?: unknown): void;
|
|
29
38
|
publishEvent(handlerName: string, data?: unknown): void;
|
|
@@ -62,19 +71,6 @@ export interface InvokeCallbackRes {
|
|
|
62
71
|
code: ErrorCode;
|
|
63
72
|
data?: string;
|
|
64
73
|
}
|
|
65
|
-
export declare enum DispatchEventResult {
|
|
66
|
-
NotCanceled = 0,
|
|
67
|
-
CanceledByEventHandler = 1,
|
|
68
|
-
CanceledByDefaultEventHandler = 2,
|
|
69
|
-
CanceledBeforeDispatch = 3
|
|
70
|
-
}
|
|
71
|
-
export interface ContextProxy {
|
|
72
|
-
onTriggerEvent?: (event: MessageEvent) => void;
|
|
73
|
-
postMessage(message: any): void;
|
|
74
|
-
dispatchEvent(event: MessageEvent): DispatchEventResult;
|
|
75
|
-
addEventListener(type: string, listener: (event: MessageEvent) => void): void;
|
|
76
|
-
removeEventListener(type: string, listener: (event: MessageEvent) => void): void;
|
|
77
|
-
}
|
|
78
74
|
export interface NativeApp {
|
|
79
75
|
id: string;
|
|
80
76
|
callLepusMethod(name: string, data: unknown, callback: (ret: unknown) => void): void;
|
|
@@ -94,6 +90,14 @@ export interface NativeApp {
|
|
|
94
90
|
onPipelineStart: (pipeline_id: string) => void;
|
|
95
91
|
markPipelineTiming: (pipeline_id: string, timing_key: string) => void;
|
|
96
92
|
bindPipelineIdWithTimingFlag: (pipeline_id: string, timing_flag: string) => void;
|
|
93
|
+
/**
|
|
94
|
+
* Support from Lynx 3.0
|
|
95
|
+
*/
|
|
96
|
+
profileStart: (traceName: string, option?: unknown) => void;
|
|
97
|
+
/**
|
|
98
|
+
* Support from Lynx 3.0
|
|
99
|
+
*/
|
|
100
|
+
profileEnd: () => void;
|
|
97
101
|
triggerComponentEvent(id: string, params: {
|
|
98
102
|
eventDetail: CloneableObject;
|
|
99
103
|
eventOption: CloneableObject;
|
|
@@ -101,4 +105,6 @@ export interface NativeApp {
|
|
|
101
105
|
}): void;
|
|
102
106
|
selectComponent(componentId: string, idSelector: string, single: boolean, callback?: () => void): void;
|
|
103
107
|
createJSObjectDestructionObserver(callback: (...args: unknown[]) => unknown): {};
|
|
108
|
+
setSharedData<T>(dataKey: string, dataVal: T): void;
|
|
109
|
+
getSharedData<T = unknown>(dataKey: string): T | undefined;
|
|
104
110
|
}
|
package/dist/types/NativeApp.js
CHANGED
|
@@ -23,23 +23,4 @@ export var ErrorCode;
|
|
|
23
23
|
ErrorCode[ErrorCode["SELECTOR_NOT_SUPPORTED"] = 5] = "SELECTOR_NOT_SUPPORTED";
|
|
24
24
|
ErrorCode[ErrorCode["NO_UI_FOR_NODE"] = 6] = "NO_UI_FOR_NODE";
|
|
25
25
|
})(ErrorCode || (ErrorCode = {}));
|
|
26
|
-
export var DispatchEventResult;
|
|
27
|
-
(function (DispatchEventResult) {
|
|
28
|
-
// Event was not canceled by event handler or default event handler.
|
|
29
|
-
DispatchEventResult[DispatchEventResult["NotCanceled"] = 0] = "NotCanceled";
|
|
30
|
-
// Event was canceled by event handler; i.e. a script handler calling
|
|
31
|
-
// preventDefault.
|
|
32
|
-
DispatchEventResult[DispatchEventResult["CanceledByEventHandler"] = 1] = "CanceledByEventHandler";
|
|
33
|
-
// Event was canceled by the default event handler; i.e. executing the default
|
|
34
|
-
// action. This result should be used sparingly as it deviates from the DOM
|
|
35
|
-
// Event Dispatch model. Default event handlers really shouldn't be invoked
|
|
36
|
-
// inside of dispatch.
|
|
37
|
-
DispatchEventResult[DispatchEventResult["CanceledByDefaultEventHandler"] = 2] = "CanceledByDefaultEventHandler";
|
|
38
|
-
// Event was canceled but suppressed before dispatched to event handler. This
|
|
39
|
-
// result should be used sparingly; and its usage likely indicates there is
|
|
40
|
-
// potential for a bug. Trusted events may return this code; but untrusted
|
|
41
|
-
// events likely should always execute the event handler the developer intends
|
|
42
|
-
// to execute.
|
|
43
|
-
DispatchEventResult[DispatchEventResult["CanceledBeforeDispatch"] = 3] = "CanceledBeforeDispatch";
|
|
44
|
-
})(DispatchEventResult || (DispatchEventResult = {}));
|
|
45
26
|
//# sourceMappingURL=NativeApp.js.map
|
package/dist/types/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ export * from './EventType.js';
|
|
|
3
3
|
export * from './PageConfig.js';
|
|
4
4
|
export * from './Cloneable.js';
|
|
5
5
|
export * from './LynxModule.js';
|
|
6
|
-
export * from './LynxLifecycleEvent.js';
|
|
7
6
|
export * from './ProcessDataCallback.js';
|
|
8
7
|
export * from './Performance.js';
|
|
9
8
|
export * from './MainThreadStartConfigs.js';
|
|
@@ -12,3 +11,4 @@ export * from './UpdateDataOptions.js';
|
|
|
12
11
|
export * from './NativeModules.js';
|
|
13
12
|
export * from './NapiModules.js';
|
|
14
13
|
export * from './FlushElementTreeOptions.js';
|
|
14
|
+
export * from './LynxContextEventTarget.js';
|
package/dist/types/index.js
CHANGED
|
@@ -3,7 +3,6 @@ export * from './EventType.js';
|
|
|
3
3
|
export * from './PageConfig.js';
|
|
4
4
|
export * from './Cloneable.js';
|
|
5
5
|
export * from './LynxModule.js';
|
|
6
|
-
export * from './LynxLifecycleEvent.js';
|
|
7
6
|
export * from './ProcessDataCallback.js';
|
|
8
7
|
export * from './Performance.js';
|
|
9
8
|
export * from './MainThreadStartConfigs.js';
|
|
@@ -12,4 +11,5 @@ export * from './UpdateDataOptions.js';
|
|
|
12
11
|
export * from './NativeModules.js';
|
|
13
12
|
export * from './NapiModules.js';
|
|
14
13
|
export * from './FlushElementTreeOptions.js';
|
|
14
|
+
export * from './LynxContextEventTarget.js';
|
|
15
15
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-constants",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
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": "0.
|
|
26
|
+
"@lynx-js/web-worker-rpc": "0.12.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@lynx-js/offscreen-document": "0.0.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type LynxLifecycleEvent = [eventName: string, params: unknown];
|