@lynx-js/web-constants 0.13.5 → 0.14.1
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 +74 -0
- package/dist/constants.d.ts +1 -0
- package/dist/constants.js +1 -0
- package/dist/endpoints.d.ts +7 -17
- package/dist/endpoints.js +3 -0
- package/dist/eventName.js +3 -0
- package/dist/types/BackThreadStartConfigs.d.ts +15 -0
- package/dist/types/BackThreadStartConfigs.js +5 -0
- package/dist/types/Cloneable.d.ts +1 -1
- package/dist/types/I18n.d.ts +29 -0
- package/dist/types/I18n.js +25 -0
- package/dist/types/MainThreadGlobalThis.d.ts +8 -1
- package/dist/types/MainThreadStartConfigs.d.ts +2 -0
- package/dist/types/NapiModules.d.ts +2 -2
- package/dist/types/NativeApp.d.ts +4 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +2 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,79 @@
|
|
|
1
1
|
# @lynx-js/web-constants
|
|
2
2
|
|
|
3
|
+
## 0.14.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- feat: support BTS API `lynx.reportError` && `__SetSourceMapRelease`, now you can use it and handle it in lynx-view error event. ([#1059](https://github.com/lynx-family/lynx-stack/pull/1059))
|
|
8
|
+
|
|
9
|
+
- fix: in lynx-view all-on-ui mode, the input event of input and textarea is triggered twice, and the first e.detail is a string, which does not conform to the expected data format. ([#1179](https://github.com/lynx-family/lynx-stack/pull/1179))
|
|
10
|
+
|
|
11
|
+
- fix: under the all-on-ui strategy, reload() will add two page elements. ([#1147](https://github.com/lynx-family/lynx-stack/pull/1147))
|
|
12
|
+
|
|
13
|
+
- Updated dependencies []:
|
|
14
|
+
- @lynx-js/web-worker-rpc@0.14.1
|
|
15
|
+
|
|
16
|
+
## 0.14.0
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- feat: add `_SetSourceMapRelease(errInfo)` MTS API. ([#1118](https://github.com/lynx-family/lynx-stack/pull/1118))
|
|
21
|
+
|
|
22
|
+
You can get `errInfo.release` through `e.detail.release` in the error event callback of lynx-view.
|
|
23
|
+
|
|
24
|
+
The `_SetSourceMapRelease` function is not complete yet, because it is currently limited by the Web platform and some functions and some props such as `err.stack` do not need to be supported for the time being.
|
|
25
|
+
|
|
26
|
+
- feat: add `_I18nResourceTranslation` api in mts && `init-i18n-resources` attr, `i18nResourceMissed` event of lynx-view. ([#1065](https://github.com/lynx-family/lynx-stack/pull/1065))
|
|
27
|
+
|
|
28
|
+
`init-i18n-resource` is the complete set of i18nResources that need to be maintained on the container side. Note: You need to pass this value when lynx-view is initialized.
|
|
29
|
+
|
|
30
|
+
You can use `_I18nResourceTranslation` in MTS to get the corresponding i18nResource from `init-i18n-resources`. If it is undefined, the `i18nResourceMissed` event will be dispatched.
|
|
31
|
+
|
|
32
|
+
```js
|
|
33
|
+
// ui thread
|
|
34
|
+
lynxView.initI18nResources = [
|
|
35
|
+
{
|
|
36
|
+
options: {
|
|
37
|
+
locale: 'en',
|
|
38
|
+
channel: '1',
|
|
39
|
+
fallback_url: '',
|
|
40
|
+
},
|
|
41
|
+
resource: {
|
|
42
|
+
hello: 'hello',
|
|
43
|
+
lynx: 'lynx web platform1',
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
];
|
|
47
|
+
lynxView.addEventListener('i18nResourceMissed', (e) => {
|
|
48
|
+
console.log(e);
|
|
49
|
+
});
|
|
50
|
+
|
|
51
|
+
// mts
|
|
52
|
+
_I18nResourceTranslation({
|
|
53
|
+
locale: 'en',
|
|
54
|
+
channel: '1',
|
|
55
|
+
fallback_url: '',
|
|
56
|
+
});
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
- feat: supports `lynx.getI18nResource()` and `onI18nResourceReady` event in bts. ([#1088](https://github.com/lynx-family/lynx-stack/pull/1088))
|
|
60
|
+
|
|
61
|
+
- `lynx.getI18nResource()` can be used to get i18nResource in bts, it has two data sources:
|
|
62
|
+
- the result of `_I18nResourceTranslation()`
|
|
63
|
+
- lynx-view `updateI18nResources(data: InitI18nResources, options: I18nResourceTranslationOptions)`, it will be matched to the correct i8nResource as a result of `lynx.getI18nResource()`
|
|
64
|
+
- `onI18nResourceReady` event can be used to listen `_I18nResourceTranslation` and lynx-view `updateI18nResources` execution.
|
|
65
|
+
|
|
66
|
+
- refactor: make the opcode be a plain array ([#1051](https://github.com/lynx-family/lynx-stack/pull/1051))
|
|
67
|
+
|
|
68
|
+
#1042
|
|
69
|
+
|
|
70
|
+
- feat: add `updateI18nResources` method of lynx-view. ([#1085](https://github.com/lynx-family/lynx-stack/pull/1085))
|
|
71
|
+
|
|
72
|
+
Now you can use `updateI18nResources` to update i18nResources, and then use \_I18nResourceTranslation() to get the updated result.
|
|
73
|
+
|
|
74
|
+
- Updated dependencies []:
|
|
75
|
+
- @lynx-js/web-worker-rpc@0.14.0
|
|
76
|
+
|
|
3
77
|
## 0.13.5
|
|
4
78
|
|
|
5
79
|
### Patch Changes
|
package/dist/constants.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export declare const parentComponentUniqueIdAttribute: "l-p-comp-uid";
|
|
|
5
5
|
export declare const lynxTagAttribute: "lynx-tag";
|
|
6
6
|
export declare const lynxDatasetAttribute: "l-dset";
|
|
7
7
|
export declare const lynxComponentConfigAttribute: "l-comp-cfg";
|
|
8
|
+
export declare const lynxDisposedAttribute: "l-disposed";
|
|
8
9
|
export declare const lynxDefaultDisplayLinearAttribute: "lynx-default-display-linear";
|
|
9
10
|
export declare const lynxDefaultOverflowVisibleAttribute: "lynx-default-overflow-visible";
|
|
10
11
|
export declare const __lynx_timing_flag: "__lynx_timing_flag";
|
package/dist/constants.js
CHANGED
|
@@ -8,6 +8,7 @@ export const parentComponentUniqueIdAttribute = 'l-p-comp-uid';
|
|
|
8
8
|
export const lynxTagAttribute = 'lynx-tag';
|
|
9
9
|
export const lynxDatasetAttribute = 'l-dset';
|
|
10
10
|
export const lynxComponentConfigAttribute = 'l-comp-cfg';
|
|
11
|
+
export const lynxDisposedAttribute = 'l-disposed';
|
|
11
12
|
export const lynxDefaultDisplayLinearAttribute = 'lynx-default-display-linear';
|
|
12
13
|
export const lynxDefaultOverflowVisibleAttribute = 'lynx-default-overflow-visible';
|
|
13
14
|
export const __lynx_timing_flag = '__lynx_timing_flag';
|
package/dist/endpoints.d.ts
CHANGED
|
@@ -2,12 +2,8 @@ import type { ExposureWorkerEvent, LynxCrossThreadEvent } from './types/EventTyp
|
|
|
2
2
|
import type { Cloneable, CloneableObject } from './types/Cloneable.js';
|
|
3
3
|
import type { StartMainThreadContextConfig } from './types/MainThreadStartConfigs.js';
|
|
4
4
|
import type { IdentifierType, InvokeCallbackRes } from './types/NativeApp.js';
|
|
5
|
-
import type { LynxTemplate } from './types/LynxModule.js';
|
|
6
|
-
import type { NapiModulesMap } from './types/NapiModules.js';
|
|
7
|
-
import type { NativeModulesMap } from './types/NativeModules.js';
|
|
8
|
-
import type { ElementOperation } from '@lynx-js/offscreen-document';
|
|
9
|
-
import type { BrowserConfig } from './types/PageConfig.js';
|
|
10
5
|
import type { ElementAnimationOptions } from './types/Element.js';
|
|
6
|
+
import type { BackMainThreadContextConfig } from './types/index.js';
|
|
11
7
|
export declare const postExposureEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[{
|
|
12
8
|
exposures: ExposureWorkerEvent[];
|
|
13
9
|
disExposures: ExposureWorkerEvent[];
|
|
@@ -24,21 +20,12 @@ export declare const mainThreadStartEndpoint: import("@lynx-js/web-worker-rpc/di
|
|
|
24
20
|
export declare const updateDataEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[Cloneable, Record<string, string>], void>;
|
|
25
21
|
export declare const sendGlobalEventEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[string, Cloneable[] | undefined]>;
|
|
26
22
|
export declare const disposeEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[], void>;
|
|
27
|
-
export declare const BackgroundThreadStartEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[
|
|
28
|
-
initData: unknown;
|
|
29
|
-
globalProps: unknown;
|
|
30
|
-
template: LynxTemplate;
|
|
31
|
-
cardType: string;
|
|
32
|
-
customSections: Record<string, Cloneable>;
|
|
33
|
-
nativeModulesMap: NativeModulesMap;
|
|
34
|
-
napiModulesMap: NapiModulesMap;
|
|
35
|
-
browserConfig: BrowserConfig;
|
|
36
|
-
}], void>;
|
|
23
|
+
export declare const BackgroundThreadStartEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[BackMainThreadContextConfig], void>;
|
|
37
24
|
/**
|
|
38
25
|
* Error message, info
|
|
39
26
|
*/
|
|
40
|
-
export declare const reportErrorEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[
|
|
41
|
-
export declare const flushElementTreeEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[operations:
|
|
27
|
+
export declare const reportErrorEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[Error, unknown, string]>;
|
|
28
|
+
export declare const flushElementTreeEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[operations: (string | number)[]], void>;
|
|
42
29
|
export declare const callLepusMethodEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[name: string, data: unknown], void>;
|
|
43
30
|
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>;
|
|
44
31
|
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>;
|
|
@@ -65,3 +52,6 @@ export declare const dispatchJSContextOnMainThreadEndpoint: import("@lynx-js/web
|
|
|
65
52
|
}]>;
|
|
66
53
|
export declare const triggerElementMethodEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[method: string, id: string, options: ElementAnimationOptions]>;
|
|
67
54
|
export declare const updateGlobalPropsEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[Cloneable]>;
|
|
55
|
+
export declare const updateI18nResourcesEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[Cloneable]>;
|
|
56
|
+
export declare const updateI18nResourceEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[Cloneable]>;
|
|
57
|
+
export declare const dispatchI18nResourceEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[Cloneable]>;
|
package/dist/endpoints.js
CHANGED
|
@@ -33,4 +33,7 @@ export const dispatchCoreContextOnBackgroundEndpoint = createRpcEndpoint('dispat
|
|
|
33
33
|
export const dispatchJSContextOnMainThreadEndpoint = createRpcEndpoint('dispatchJSContextOnMainThread', false, false);
|
|
34
34
|
export const triggerElementMethodEndpoint = createRpcEndpoint('__triggerElementMethod', false, false);
|
|
35
35
|
export const updateGlobalPropsEndpoint = createRpcEndpoint('updateGlobalProps', false, false);
|
|
36
|
+
export const updateI18nResourcesEndpoint = createRpcEndpoint('updateI18nResources', false, false);
|
|
37
|
+
export const updateI18nResourceEndpoint = createRpcEndpoint('updateI18nResource', false, false);
|
|
38
|
+
export const dispatchI18nResourceEndpoint = createRpcEndpoint('dispatchI18nResource', false, false);
|
|
36
39
|
//# sourceMappingURL=endpoints.js.map
|
package/dist/eventName.js
CHANGED
|
@@ -8,15 +8,18 @@ export const W3cEventNameToLynx = {
|
|
|
8
8
|
overlaytouch: 'touch',
|
|
9
9
|
lynxfocus: 'focus',
|
|
10
10
|
lynxblur: 'blur',
|
|
11
|
+
lynxinput: 'input',
|
|
11
12
|
};
|
|
12
13
|
export const LynxEventNameToW3cByTagName = {
|
|
13
14
|
'X-INPUT': {
|
|
14
15
|
'blur': 'lynxblur',
|
|
15
16
|
'focus': 'lynxfocus',
|
|
17
|
+
'input': 'lynxinput',
|
|
16
18
|
},
|
|
17
19
|
'X-TEXTAREA': {
|
|
18
20
|
'blur': 'lynxblur',
|
|
19
21
|
'focus': 'lynxfocus',
|
|
22
|
+
'input': 'lynxinput',
|
|
20
23
|
},
|
|
21
24
|
};
|
|
22
25
|
export const LynxEventNameToW3cCommon = {
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Cloneable } from './Cloneable.js';
|
|
2
|
+
import type { LynxTemplate } from './LynxModule.js';
|
|
3
|
+
import type { NapiModulesMap } from './NapiModules.js';
|
|
4
|
+
import type { NativeModulesMap } from './NativeModules.js';
|
|
5
|
+
import type { BrowserConfig } from './PageConfig.js';
|
|
6
|
+
export interface BackMainThreadContextConfig {
|
|
7
|
+
initData: unknown;
|
|
8
|
+
globalProps: unknown;
|
|
9
|
+
template: LynxTemplate;
|
|
10
|
+
cardType: string;
|
|
11
|
+
customSections: Record<string, Cloneable>;
|
|
12
|
+
nativeModulesMap: NativeModulesMap;
|
|
13
|
+
napiModulesMap: NapiModulesMap;
|
|
14
|
+
browserConfig: BrowserConfig;
|
|
15
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export type Cloneable<T = string | number | null | boolean | undefined> = T | Record<string, T> | T[]
|
|
1
|
+
export type Cloneable<T = string | number | null | boolean | undefined> = T | Record<string, T> | T[] | Array<Record<string, Cloneable>>;
|
|
2
2
|
export type CloneableObject<T = string | number | null | boolean | undefined> = Record<string, T | T[]>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Cloneable } from './Cloneable.js';
|
|
2
|
+
export interface I18nResourceTranslationOptions {
|
|
3
|
+
locale: string;
|
|
4
|
+
channel: string;
|
|
5
|
+
fallback_url?: string;
|
|
6
|
+
[key: string]: Cloneable;
|
|
7
|
+
}
|
|
8
|
+
export declare const getCacheI18nResourcesKey: (options: I18nResourceTranslationOptions) => string;
|
|
9
|
+
export interface CacheI18nResources {
|
|
10
|
+
/** the i18nResource key currently being used by the page */
|
|
11
|
+
curCacheKey: string;
|
|
12
|
+
/** the complete set of all requested i18nResources */
|
|
13
|
+
i18nResources: Map<string, unknown>;
|
|
14
|
+
}
|
|
15
|
+
export type InitI18nResources = Array<{
|
|
16
|
+
options: I18nResourceTranslationOptions;
|
|
17
|
+
resource: Record<string, unknown>;
|
|
18
|
+
}>;
|
|
19
|
+
export declare const i18nResourceMissedEventName: "i18nResourceMissed";
|
|
20
|
+
export declare class I18nResources {
|
|
21
|
+
data?: InitI18nResources;
|
|
22
|
+
constructor(data?: InitI18nResources);
|
|
23
|
+
setData(data: InitI18nResources): void;
|
|
24
|
+
}
|
|
25
|
+
export declare class I18nResource {
|
|
26
|
+
data?: Cloneable;
|
|
27
|
+
constructor(data?: Cloneable);
|
|
28
|
+
setData(data: Cloneable): void;
|
|
29
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export const getCacheI18nResourcesKey = (options) => {
|
|
2
|
+
return `${options.locale}_${options.channel}_${options.fallback_url}`;
|
|
3
|
+
};
|
|
4
|
+
export const i18nResourceMissedEventName = 'i18nResourceMissed';
|
|
5
|
+
// The purpose of using class is to keep the reference when reassigning
|
|
6
|
+
export class I18nResources {
|
|
7
|
+
data;
|
|
8
|
+
constructor(data) {
|
|
9
|
+
this.data = data;
|
|
10
|
+
}
|
|
11
|
+
setData(data) {
|
|
12
|
+
this.data = data;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
// The purpose of using class is to keep the reference when reassigning
|
|
16
|
+
export class I18nResource {
|
|
17
|
+
data;
|
|
18
|
+
constructor(data) {
|
|
19
|
+
this.data = data;
|
|
20
|
+
}
|
|
21
|
+
setData(data) {
|
|
22
|
+
this.data = data;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=I18n.js.map
|
|
@@ -3,6 +3,7 @@ import type { Cloneable } from './Cloneable.js';
|
|
|
3
3
|
import type { ComponentAtIndexCallback, EnqueueComponentCallback, WebFiberElementImpl } from './Element.js';
|
|
4
4
|
import type { LynxEventType } from './EventType.js';
|
|
5
5
|
import type { FlushElementTreeOptions } from './FlushElementTreeOptions.js';
|
|
6
|
+
import type { I18nResourceTranslationOptions } from './index.js';
|
|
6
7
|
import type { MainThreadLynx } from './MainThreadLynx.js';
|
|
7
8
|
import type { ProcessDataCallback } from './ProcessDataCallback.js';
|
|
8
9
|
type ElementPAPIEventHandler = string | {
|
|
@@ -75,6 +76,9 @@ export type SetInlineStylesPAPI = (element: WebFiberElementImpl, value: string |
|
|
|
75
76
|
export type SetCSSIdPAPI = (elements: WebFiberElementImpl[], cssId: number | null) => void;
|
|
76
77
|
export type GetPageElementPAPI = () => WebFiberElementImpl | undefined;
|
|
77
78
|
export type GetTemplatePartsPAPI = (templateElement: WebFiberElementImpl) => Record<string, WebFiberElementImpl> | undefined;
|
|
79
|
+
interface JSErrorInfo {
|
|
80
|
+
release: string;
|
|
81
|
+
}
|
|
78
82
|
export interface MainThreadGlobalThis {
|
|
79
83
|
__AddEvent: AddEventPAPI;
|
|
80
84
|
__GetEvent: GetEventPAPI;
|
|
@@ -134,10 +138,13 @@ export interface MainThreadGlobalThis {
|
|
|
134
138
|
processData?: ProcessDataCallback;
|
|
135
139
|
ssrEncode?: () => string;
|
|
136
140
|
ssrHydrate?: (encodeData?: string) => void;
|
|
137
|
-
_ReportError: (error:
|
|
141
|
+
_ReportError: (error: Error, _: unknown) => void;
|
|
142
|
+
_SetSourceMapRelease: (errInfo: JSErrorInfo) => void;
|
|
138
143
|
__OnLifecycleEvent: (lifeCycleEvent: Cloneable) => void;
|
|
139
144
|
__LoadLepusChunk: (path: string) => boolean;
|
|
140
145
|
__FlushElementTree: (_subTree: unknown, options: FlushElementTreeOptions) => void;
|
|
146
|
+
_I18nResourceTranslation: (options: I18nResourceTranslationOptions) => unknown | undefined;
|
|
147
|
+
_AddEventListener: (...args: unknown[]) => void;
|
|
141
148
|
/**
|
|
142
149
|
* private fields
|
|
143
150
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { Cloneable } from './Cloneable.js';
|
|
2
|
+
import type { InitI18nResources } from './index.js';
|
|
2
3
|
import type { LynxTemplate } from './LynxModule.js';
|
|
3
4
|
import type { NapiModulesMap } from './NapiModules.js';
|
|
4
5
|
import type { NativeModulesMap } from './NativeModules.js';
|
|
@@ -11,4 +12,5 @@ export interface StartMainThreadContextConfig {
|
|
|
11
12
|
nativeModulesMap: NativeModulesMap;
|
|
12
13
|
napiModulesMap: NapiModulesMap;
|
|
13
14
|
tagMap: Record<string, string>;
|
|
15
|
+
initI18nResources: InitI18nResources;
|
|
14
16
|
}
|
|
@@ -3,7 +3,7 @@ export type NapiModulesMap = Record<string, string>;
|
|
|
3
3
|
export type NapiModulesCall = (name: string, data: any, moduleName: string, dispatchNapiModules: (data: Cloneable) => void) => Promise<{
|
|
4
4
|
data: unknown;
|
|
5
5
|
transfer?: unknown[];
|
|
6
|
-
}> | {
|
|
6
|
+
} | undefined> | {
|
|
7
7
|
data: unknown;
|
|
8
8
|
transfer?: unknown[];
|
|
9
|
-
} | undefined
|
|
9
|
+
} | undefined | Promise<undefined>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CloneableObject } from './Cloneable.js';
|
|
2
|
+
import type { I18nResource } from './I18n.js';
|
|
2
3
|
import type { LynxContextEventTarget } from './LynxContextEventTarget.js';
|
|
3
4
|
import type { PerformancePipelineOptions } from './Performance.js';
|
|
4
5
|
export declare const enum IdentifierType {
|
|
@@ -108,4 +109,7 @@ export interface NativeApp {
|
|
|
108
109
|
createJSObjectDestructionObserver(callback: (...args: unknown[]) => unknown): {};
|
|
109
110
|
setSharedData<T>(dataKey: string, dataVal: T): void;
|
|
110
111
|
getSharedData<T = unknown>(dataKey: string): T | undefined;
|
|
112
|
+
i18nResource: I18nResource;
|
|
113
|
+
reportException: (error: Error, _: unknown) => void;
|
|
114
|
+
__SetSourceMapRelease: (err: Error) => void;
|
|
111
115
|
}
|
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -15,4 +15,6 @@ export * from './LynxContextEventTarget.js';
|
|
|
15
15
|
export * from './Element.js';
|
|
16
16
|
export * from './MainThreadGlobalThis.js';
|
|
17
17
|
export * from './MainThreadLynx.js';
|
|
18
|
+
export * from './I18n.js';
|
|
19
|
+
export * from './BackThreadStartConfigs.js';
|
|
18
20
|
//# 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.14.1",
|
|
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.
|
|
26
|
+
"@lynx-js/web-worker-rpc": "0.14.1"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@lynx-js/offscreen-document": "0.1.
|
|
29
|
+
"@lynx-js/offscreen-document": "0.1.2"
|
|
30
30
|
}
|
|
31
31
|
}
|