@lynx-js/web-constants 0.13.1 → 0.13.3
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 +23 -0
- package/dist/constants.d.ts +1 -0
- package/dist/constants.js +9 -0
- package/dist/endpoints.d.ts +2 -2
- package/dist/types/MainThreadStartConfigs.d.ts +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @lynx-js/web-constants
|
|
2
2
|
|
|
3
|
+
## 0.13.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- refactor: code clean ([#897](https://github.com/lynx-family/lynx-stack/pull/897))
|
|
8
|
+
|
|
9
|
+
rename many internal apis to make logic be clear:
|
|
10
|
+
|
|
11
|
+
multi-thread: startMainWorker -> prepareMainThreadAPIs -> startMainThread -> createMainThreadContext(new MainThreadRuntime)
|
|
12
|
+
all-on-ui: prepareMainThreadAPIs -> startMainThread -> createMainThreadContext(new MainThreadRuntime)
|
|
13
|
+
|
|
14
|
+
- Updated dependencies []:
|
|
15
|
+
- @lynx-js/web-worker-rpc@0.13.3
|
|
16
|
+
|
|
17
|
+
## 0.13.2
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- fix: corrupt mainthread module cache ([#806](https://github.com/lynx-family/lynx-stack/pull/806))
|
|
22
|
+
|
|
23
|
+
- Updated dependencies []:
|
|
24
|
+
- @lynx-js/web-worker-rpc@0.13.2
|
|
25
|
+
|
|
3
26
|
## 0.13.1
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
package/dist/constants.d.ts
CHANGED
|
@@ -7,3 +7,4 @@ export declare const lynxDefaultOverflowVisibleAttribute: "lynx-default-overflow
|
|
|
7
7
|
export declare const __lynx_timing_flag: "__lynx_timing_flag";
|
|
8
8
|
export declare const globalMuteableVars: readonly ["registerDataProcessor", "registerWorkletInternal", "lynxWorkletImpl", "runWorklet"];
|
|
9
9
|
export declare const systemInfo: Record<string, string | number>;
|
|
10
|
+
export declare const inShadowRootStyles: string[];
|
package/dist/constants.js
CHANGED
|
@@ -18,4 +18,13 @@ export const systemInfo = {
|
|
|
18
18
|
platform: 'web',
|
|
19
19
|
lynxSdkVersion: '3.0',
|
|
20
20
|
};
|
|
21
|
+
export const inShadowRootStyles = [
|
|
22
|
+
` [lynx-default-display-linear="false"] * {
|
|
23
|
+
--lynx-display: flex;
|
|
24
|
+
--lynx-display-toggle: var(--lynx-display-flex);
|
|
25
|
+
}`,
|
|
26
|
+
`[lynx-default-overflow-visible="true"] x-view{
|
|
27
|
+
overflow: visible;
|
|
28
|
+
}`,
|
|
29
|
+
];
|
|
21
30
|
//# sourceMappingURL=constants.js.map
|
package/dist/endpoints.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ExposureWorkerEvent, LynxCrossThreadEvent } from './types/EventType.js';
|
|
2
2
|
import type { Cloneable, CloneableObject } from './types/Cloneable.js';
|
|
3
|
-
import type {
|
|
3
|
+
import type { StartMainThreadContextConfig } from './types/MainThreadStartConfigs.js';
|
|
4
4
|
import type { IdentifierType, InvokeCallbackRes } from './types/NativeApp.js';
|
|
5
5
|
import type { LynxTemplate } from './types/LynxModule.js';
|
|
6
6
|
import type { NapiModulesMap } from './types/NapiModules.js';
|
|
@@ -19,7 +19,7 @@ export declare const publishEventEndpoint: import("@lynx-js/web-worker-rpc/dist/
|
|
|
19
19
|
}>]>;
|
|
20
20
|
export declare const postOffscreenEventEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[eventType: string, targetUniqueId: number, bubbles: boolean, unknown]>;
|
|
21
21
|
export declare const switchExposureServiceEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[boolean, boolean]>;
|
|
22
|
-
export declare const mainThreadStartEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[
|
|
22
|
+
export declare const mainThreadStartEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[StartMainThreadContextConfig]>;
|
|
23
23
|
export declare const updateDataEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[Cloneable, Record<string, string>], void>;
|
|
24
24
|
export declare const sendGlobalEventEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[string, Cloneable[] | undefined]>;
|
|
25
25
|
export declare const disposeEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[], void>;
|
|
@@ -3,7 +3,7 @@ import type { LynxTemplate } from './LynxModule.js';
|
|
|
3
3
|
import type { NapiModulesMap } from './NapiModules.js';
|
|
4
4
|
import type { NativeModulesMap } from './NativeModules.js';
|
|
5
5
|
import type { BrowserConfig } from './PageConfig.js';
|
|
6
|
-
export interface
|
|
6
|
+
export interface StartMainThreadContextConfig {
|
|
7
7
|
template: LynxTemplate;
|
|
8
8
|
initData: Cloneable;
|
|
9
9
|
globalProps: Cloneable;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-constants",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [],
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"**/*.css"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@lynx-js/web-worker-rpc": "0.13.
|
|
26
|
+
"@lynx-js/web-worker-rpc": "0.13.3"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@lynx-js/offscreen-document": "0.0.
|
|
29
|
+
"@lynx-js/offscreen-document": "0.0.4"
|
|
30
30
|
}
|
|
31
31
|
}
|