🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@lynx-js/types

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lynx-js/types - npm Package Compare versions

Comparing version

to
3.2.1

LICENSE

12

CHANGELOG.md
# CHANGELOG
## 3.2.1
### Patch Changes
- Add some missing types of built-in element `list-item`
- Rename PipelineEntry.FrameworkPipelineTiming to PipelineEntry.FrameworkRenderingTiming
- Supplement the missing `lynx.onError` definition
- partially support TextEncoder/TextDecoder
- Support needVisibleItemInfo for native List
- Add prop 'ios-background-shape-layer' for iOS
- lynx.requireModule support setting timeout time
## 3.2.0

@@ -4,0 +16,0 @@

2

package.json
{
"name": "@lynx-js/types",
"version": "3.2.0",
"version": "3.2.1",
"description": "",

@@ -5,0 +5,0 @@ "keywords": ["lynx" , "types"],

@@ -9,3 +9,3 @@ // Copyright 2024 The Lynx Authors. All rights reserved.

export interface FrameworkPipelineTiming {
export interface FrameworkRenderingTiming {
}

@@ -28,3 +28,3 @@

paintEnd: number;
frameworkPipelineTiming: FrameworkPipelineTiming[keyof FrameworkPipelineTiming];
frameworkRenderingTiming: FrameworkRenderingTiming[keyof FrameworkRenderingTiming];
}

@@ -31,0 +31,0 @@

@@ -123,3 +123,10 @@ // Copyright 2024 The Lynx Authors. All rights reserved.

requireModule<T>(path: string, entryName?: string): T;
/**
* @description requireModule
* @param path: the source's path
* @param entryName: the resource's entry's name
* @param options(@since 3.2): timeout is waiting time,the unit is seconds
* @since 1.0
*/
requireModule<T>(path: string, entryName?: string, options?: {timeout: number }): T;

@@ -145,2 +152,8 @@ resumeExposure(): void;

/**
* @description Callback when an error occurs
* @since 1.0
*/
onError?: (error: Error) => void;
}

@@ -712,2 +712,11 @@ // Copyright 2024 The Lynx Authors. All rights reserved.

/**
* Control whether the 'attachedCells' is included in the scroll event callback parameters on native list.
* @defaultValue false
* @Android
* @iOS
* @H
*/
'need-visible-item-info'?: boolean;
/**

@@ -1004,2 +1013,10 @@ * Specify the callback frequency of the scroll event by passing in a value, which specifies how many milliseconds (ms) <list> will call the scroll callback event during scrolling.

/**
* Adding the `full-span` attribute to `<list-item/>` will make it occupy a single line. You need to configure {@link ListProps."list-type" | list-type} correctly to make the list enter a multi-column layout for this to work.
* @defaultValue undefined
* @Android
* @iOS
*/
'full-span'?: boolean;
/**
* Preset height to control the placeholder height of the view while the list component has not finished rendering. The more accurately it is set, the less flickering the list will have.

@@ -1009,2 +1026,3 @@ * @defaultValue undefined

* @iOS
* @deprecated For Lynx>=3.1, use {@link estimated-main-axis-size-px} instead
*/

@@ -1014,3 +1032,13 @@ 'estimated-height-px'?: number;

/**
* Preset height to control the placeholder height (in physical pixels) of the view while the list component has not finished rendering. The more accurately it is set, the less flickering the list will have.
* @defaultValue undefined
* @Android
* @iOS
* @deprecated For Lynx>=3.1, use {@link estimated-main-axis-size-px} instead
*/
'estimated-height'?: number;
/**
* Preset size in main scroll axis to control the placeholder size of the view while the list component has not finished rendering. The more accurately it is set, the less flickering the list will have.
* @since 3.1
* @defaultValue undefined

@@ -1017,0 +1045,0 @@ * @Android

@@ -115,2 +115,11 @@ // Copyright 2024 The Lynx Authors. All rights reserved.

style?: string | CSSProperties;
/**
* We use CAShapeLayer to accelerate rendering of the component's backgrounds on iOS.
* @defaultValue true
* @iOS
* @since Lynx 3.1
*/
'ios-background-shape-layer'?: boolean;
}

@@ -117,0 +126,0 @@

@@ -9,3 +9,5 @@ // Copyright 2024 The Lynx Authors. All rights reserved.

/**
* The version of the Lynx SDK.
* The version of the Lynx Engine.
*
* @deprecated
* @example '2.4', '2.10'

@@ -16,2 +18,9 @@ */

/**
* The version of the Lynx Engine.
*
* @example '3.2'
*/
readonly engineVersion: string;
/**
* The current operating system version.

@@ -18,0 +27,0 @@ */