@lynx-js/types 3.3.2 → 3.4.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 +11 -26
- package/package.json +1 -1
- package/types/background-thread/fetch.d.ts +0 -15
- package/types/background-thread/index.d.ts +0 -1
- package/types/background-thread/lynx.d.ts +1 -1
- package/types/background-thread/nodes-ref.d.ts +0 -2
- package/types/background-thread/text-encoder-decoder.d.ts +21 -15
- package/types/common/csstype.d.ts +238 -103
- package/types/common/element/element.d.ts +1 -3
- package/types/common/element/image.d.ts +74 -82
- package/types/common/element/input.d.ts +2 -10
- package/types/common/element/list.d.ts +0 -9
- package/types/common/element/methods.d.ts +2 -2
- package/types/common/element/scroll-view.d.ts +137 -92
- package/types/common/element/text.d.ts +3 -16
- package/types/common/element/textarea.d.ts +1 -11
- package/types/common/events.d.ts +13 -77
- package/types/common/global.d.ts +2 -4
- package/types/common/performance.d.ts +1 -10
- package/types/main-thread/element.d.ts +20 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,28 +1,8 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
-
## 3.5.0
|
|
4
|
-
- Add a new `flowIds` subfield to the TraceOption parameter in the Trace API to support one-to-many trace associations.
|
|
5
|
-
- Refactor event definitions for improved IDE compatibility.
|
|
6
|
-
|
|
7
|
-
## 3.4.9
|
|
8
|
-
- Add more interface for `scroll-view`.
|
|
9
|
-
|
|
10
|
-
## 3.4.8
|
|
11
|
-
- Introduce `disabled` for input and textarea.
|
|
12
|
-
|
|
13
|
-
## 3.4.6
|
|
14
|
-
- fix `TextCodecHelper` defines.
|
|
15
|
-
- Update `fetch` defines for chunk streaming.
|
|
16
|
-
|
|
17
|
-
## 3.4.5
|
|
18
|
-
- Complete the documentation for image related APIs.
|
|
19
|
-
|
|
20
|
-
## 3.4.4
|
|
21
|
-
- Complete the documentation for text related APIs.
|
|
22
|
-
|
|
23
3
|
## 3.4.3
|
|
24
4
|
- Add `font-variation-settings`,`font-feature-settings` and `font-optical-sizing` CSS properties.
|
|
25
|
-
- Add `experimental-recycle-available-item-before-layout`
|
|
5
|
+
- Add `experimental-recycle-available-item-before-layout` property for list.
|
|
26
6
|
|
|
27
7
|
## 3.4.2
|
|
28
8
|
- And `lynx.fetchBundle` api defines.
|
|
@@ -41,19 +21,24 @@
|
|
|
41
21
|
|
|
42
22
|
- Introduce <input> and <textarea>
|
|
43
23
|
|
|
44
|
-
## 3.3.
|
|
45
|
-
|
|
46
|
-
- Revert automatically generated cssTypes
|
|
24
|
+
## 3.3.4
|
|
25
|
+
|
|
47
26
|
- Add typing for the runtime interfaces.
|
|
48
|
-
|
|
27
|
+
|
|
28
|
+
## 3.3.3
|
|
29
|
+
|
|
30
|
+
- [Infra][Types] Codegen longhand and shorthand properties from css_defines
|
|
49
31
|
- Add `experimental-recycle-sticky-item` and `sticky-buffer-count` for list
|
|
50
32
|
- Add `experimental-update-sticky-for-diff` for list
|
|
51
33
|
- Add ReloadBundleEntry to standardize the timing of reload behavior.
|
|
34
|
+
|
|
35
|
+
## 3.3.2
|
|
36
|
+
|
|
52
37
|
- Add typing for MessageEvent.
|
|
53
38
|
|
|
54
39
|
## 3.3.1
|
|
55
40
|
|
|
56
|
-
- Codegen csstype.d.ts from css_defines
|
|
41
|
+
- [Infra][Types] Codegen csstype.d.ts from css_defines
|
|
57
42
|
- Rename `visibleCellsAfterUpdate` to `visibleItemAfterUpdate` for `list`
|
|
58
43
|
- Rename `visibleCellsBeforeUpdate` to `visibleItemBeforeUpdate` for `list`
|
|
59
44
|
|
package/package.json
CHANGED
|
@@ -74,10 +74,6 @@ export declare var Request: {
|
|
|
74
74
|
new (input: RequestInfo | URL, init?: RequestInit): Request;
|
|
75
75
|
};
|
|
76
76
|
|
|
77
|
-
export interface LynxExtension {
|
|
78
|
-
useStreaming?: boolean;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
77
|
/**
|
|
82
78
|
* @description This Fetch API interface represents the response to a request.
|
|
83
79
|
* @see https://developer.mozilla.org/docs/Web/API/Response
|
|
@@ -99,11 +95,6 @@ export interface RequestInit {
|
|
|
99
95
|
* @since 2.18
|
|
100
96
|
*/
|
|
101
97
|
method?: string;
|
|
102
|
-
/**
|
|
103
|
-
* @description Lynx extension, currently used for requesting chunk streaming
|
|
104
|
-
* @since 3.4
|
|
105
|
-
*/
|
|
106
|
-
lynxExtension?: LynxExtension;
|
|
107
98
|
}
|
|
108
99
|
|
|
109
100
|
/**
|
|
@@ -142,12 +133,6 @@ export interface Response extends Body {
|
|
|
142
133
|
* @since 2.18
|
|
143
134
|
*/
|
|
144
135
|
readonly url: string;
|
|
145
|
-
/**
|
|
146
|
-
* @description body of ReadableStream
|
|
147
|
-
* @see https://developer.mozilla.org/docs/Web/API/Response/body
|
|
148
|
-
* @since 3.4
|
|
149
|
-
*/
|
|
150
|
-
readonly body: ReadableStream;
|
|
151
136
|
/**
|
|
152
137
|
* @description clone()
|
|
153
138
|
* @see https://developer.mozilla.org/docs/Web/API/Response/clone
|
|
@@ -7,7 +7,7 @@ import { AnimationElement } from './animation';
|
|
|
7
7
|
import { BeforePublishEvent, GlobalEventEmitter, IntersectionObserver } from './event';
|
|
8
8
|
import { SelectorQuery } from './nodes-ref';
|
|
9
9
|
import { Performance } from './performance';
|
|
10
|
-
import { Response
|
|
10
|
+
import { Response } from './fetch';
|
|
11
11
|
|
|
12
12
|
export * from './fetch';
|
|
13
13
|
|
|
@@ -47,7 +47,6 @@ export interface FieldsParams {
|
|
|
47
47
|
index?: boolean;
|
|
48
48
|
class?: boolean;
|
|
49
49
|
attribute?: boolean;
|
|
50
|
-
query?:boolean;
|
|
51
50
|
}
|
|
52
51
|
|
|
53
52
|
export interface FieldsData {
|
|
@@ -57,7 +56,6 @@ export interface FieldsData {
|
|
|
57
56
|
index: number;
|
|
58
57
|
class: Array<string>;
|
|
59
58
|
attribute: Record<string, unknown>;
|
|
60
|
-
query:SelectorQuery;
|
|
61
59
|
}
|
|
62
60
|
|
|
63
61
|
export type PathCallback = (data: PathData, status: { data: string; code: number }) => void;
|
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export interface ITextCodecHelper {
|
|
6
|
-
/**
|
|
7
|
-
* @description decode array buffer to string
|
|
8
|
-
* @since 3.4
|
|
9
|
-
*/
|
|
10
|
-
decode(input: ArrayBuffer): string;
|
|
11
|
-
/**
|
|
12
|
-
* @description encode string to array buffer
|
|
13
|
-
* @since 3.4
|
|
14
|
-
*/
|
|
15
|
-
encode(input: string): ArrayBuffer;
|
|
1
|
+
export interface TextEncoder {
|
|
2
|
+
encode(str: string): ArrayBuffer;
|
|
3
|
+
encoding: 'utf-8';
|
|
16
4
|
}
|
|
5
|
+
|
|
6
|
+
type TypedArray =
|
|
7
|
+
| Int8Array
|
|
8
|
+
| Uint8Array
|
|
9
|
+
| Uint8ClampedArray
|
|
10
|
+
| Int16Array
|
|
11
|
+
| Uint16Array
|
|
12
|
+
| Int32Array
|
|
13
|
+
| Uint32Array
|
|
14
|
+
| Float32Array
|
|
15
|
+
| Float64Array;
|
|
16
|
+
|
|
17
|
+
export interface TextDecoder {
|
|
18
|
+
decode(buffer: ArrayBuffer | TypedArray | DataView): string;
|
|
19
|
+
encoding: 'utf-8';
|
|
20
|
+
fatal: false;
|
|
21
|
+
ignoreBOM: true;
|
|
22
|
+
}
|
|
@@ -2,106 +2,244 @@
|
|
|
2
2
|
// Licensed under the Apache License Version 2.0 that can be found in the
|
|
3
3
|
// LICENSE file in the root directory of this source tree.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
/**
|
|
6
|
+
* This file is auto-generated from CSS define files in the css_defines directory.
|
|
7
|
+
* Each property's type is determined by:
|
|
8
|
+
* 1. For enum types: Uses the values array from the CSS define file
|
|
9
|
+
* 2. For properties with keywords: Uses the keywords array as enum values, with (string & {}) for open-ended types
|
|
10
|
+
* 3. For other types: Uses string type
|
|
11
|
+
*/
|
|
6
12
|
|
|
7
|
-
export type
|
|
13
|
+
export type CSSProperties = {
|
|
14
|
+
// layout
|
|
15
|
+
flexFlow?: string;
|
|
16
|
+
marginInlineStart?: string;
|
|
17
|
+
marginInlineEnd?: string;
|
|
18
|
+
paddingInlineStart?: string;
|
|
19
|
+
paddingInlineEnd?: string;
|
|
20
|
+
gridTemplateColumns?: string;
|
|
21
|
+
gridTemplateRows?: string;
|
|
22
|
+
gridAutoColumns?: string;
|
|
23
|
+
gridAutoRows?: string;
|
|
24
|
+
gridColumnSpan?: number;
|
|
25
|
+
gridRowSpan?: number;
|
|
26
|
+
gridColumnStart?: string;
|
|
27
|
+
gridColumnEnd?: string;
|
|
28
|
+
gridRowStart?: string;
|
|
29
|
+
gridRowEnd?: string;
|
|
30
|
+
gridColumnGap?: string;
|
|
31
|
+
gridRowGap?: string;
|
|
32
|
+
gridAutoFlow?: 'row' | 'column' | 'dense' | 'row dense' | 'column dense';
|
|
33
|
+
maskPosition?: string;
|
|
34
|
+
display?: 'none' | 'flex' | 'grid' | 'linear' | 'relative' | 'block' | 'auto';
|
|
35
|
+
padding?: string;
|
|
36
|
+
paddingLeft?: string;
|
|
37
|
+
paddingRight?: string;
|
|
38
|
+
paddingTop?: string;
|
|
39
|
+
paddingBottom?: string;
|
|
40
|
+
margin?: string;
|
|
41
|
+
marginLeft?: string;
|
|
42
|
+
marginRight?: string;
|
|
43
|
+
marginTop?: string;
|
|
44
|
+
marginBottom?: string;
|
|
45
|
+
flex?: string;
|
|
46
|
+
position?: 'absolute' | 'relative' | 'fixed' | 'sticky';
|
|
47
|
+
flexGrow?: number;
|
|
48
|
+
flexShrink?: number;
|
|
49
|
+
flexBasis?: string;
|
|
50
|
+
flexDirection?: 'column' | 'row' | 'row-reverse' | 'column-reverse';
|
|
51
|
+
flexWrap?: 'wrap' | 'nowrap' | 'wrap-reverse';
|
|
52
|
+
backgroundPosition?: string;
|
|
53
|
+
|
|
54
|
+
// typography
|
|
55
|
+
outline?: string;
|
|
56
|
+
outlineColor?: string;
|
|
57
|
+
outlineStyle?: 'solid' | 'dashed' | 'dotted' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset' | 'hidden' | 'none' | (string & {});
|
|
58
|
+
outlineWidth?: string;
|
|
59
|
+
textDecorationColor?: string;
|
|
60
|
+
linearCrossGravity?: 'none' | 'start' | 'end' | 'center' | 'stretch';
|
|
61
|
+
borderInlineStartColor?: string;
|
|
62
|
+
borderInlineEndColor?: string;
|
|
63
|
+
borderInlineStartWidth?: string;
|
|
64
|
+
borderInlineEndWidth?: string;
|
|
65
|
+
borderInlineStartStyle?: string;
|
|
66
|
+
borderInlineEndStyle?: string;
|
|
67
|
+
relativeAlignInlineStart?: string;
|
|
68
|
+
relativeAlignInlineEnd?: string;
|
|
69
|
+
relativeInlineStartOf?: number;
|
|
70
|
+
relativeInlineEndOf?: number;
|
|
71
|
+
insetInlineStart?: string;
|
|
72
|
+
insetInlineEnd?: string;
|
|
73
|
+
linearDirection?: string;
|
|
74
|
+
textIndent?: string;
|
|
75
|
+
textStroke?: string;
|
|
76
|
+
textStrokeWidth?: string;
|
|
77
|
+
textStrokeColor?: string;
|
|
78
|
+
XAutoFontSize?: string;
|
|
79
|
+
XAutoFontSizePresetSizes?: string;
|
|
80
|
+
fontVariationSettings?: string;
|
|
81
|
+
fontFeatureSettings?: string;
|
|
82
|
+
fontOpticalSizing?: 'none' | 'auto';
|
|
83
|
+
textAlign?: 'left' | 'center' | 'right' | 'start' | 'end' | 'justify';
|
|
84
|
+
lineHeight?: string;
|
|
85
|
+
textOverflow?: 'clip' | 'ellipsis';
|
|
86
|
+
fontSize?: string;
|
|
87
|
+
fontWeight?: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
88
|
+
fontFamily?: string;
|
|
89
|
+
fontStyle?: 'normal' | 'italic' | 'oblique';
|
|
90
|
+
lineSpacing?: string;
|
|
91
|
+
linearOrientation?: 'horizontal' | 'vertical' | 'horizontal-reverse' | 'vertical-reverse' | 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
92
|
+
linearWeightSum?: number;
|
|
93
|
+
linearWeight?: number;
|
|
94
|
+
linearGravity?: 'none' | 'top' | 'bottom' | 'left' | 'right' | 'center-vertical' | 'center-horizontal' | 'space-between' | 'start' | 'end' | 'center';
|
|
95
|
+
linearLayoutGravity?: 'none' | 'top' | 'bottom' | 'left' | 'right' | 'center-vertical' | 'center-horizontal' | 'fill-vertical' | 'fill-horizontal' | 'center' | 'stretch' | 'start' | 'end';
|
|
96
|
+
adaptFontSize?: string;
|
|
97
|
+
textDecoration?: 'none' | 'underline' | 'line-through' | (string & {});
|
|
98
|
+
textShadow?: string;
|
|
99
|
+
|
|
100
|
+
// visual
|
|
101
|
+
borderTopColor?: string;
|
|
102
|
+
backgroundOrigin?: 'border-box' | 'content-box' | 'padding-box';
|
|
103
|
+
backgroundRepeat?: 'no-repeat' | 'repeat-x' | 'repeat-y' | 'repeat' | 'round' | 'space';
|
|
104
|
+
backgroundSize?: string;
|
|
105
|
+
border?: string;
|
|
106
|
+
borderRight?: string;
|
|
107
|
+
borderLeft?: string;
|
|
108
|
+
borderTop?: string;
|
|
109
|
+
borderBottom?: string;
|
|
110
|
+
borderBottomColor?: string;
|
|
111
|
+
borderLeftStyle?: 'solid' | 'dashed' | 'dotted' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset' | 'hidden' | 'none' | (string & {});
|
|
112
|
+
borderRightStyle?: 'solid' | 'dashed' | 'dotted' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset' | 'hidden' | 'none' | (string & {});
|
|
113
|
+
borderTopStyle?: 'solid' | 'dashed' | 'dotted' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset' | 'hidden' | 'none' | (string & {});
|
|
114
|
+
borderBottomStyle?: 'solid' | 'dashed' | 'dotted' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset' | 'hidden' | 'none' | (string & {});
|
|
115
|
+
borderRadius?: string;
|
|
116
|
+
backgroundClip?: 'border-box' | 'content-box' | 'padding-box' | 'text';
|
|
117
|
+
caretColor?: string;
|
|
118
|
+
borderTopLeftRadius?: string;
|
|
119
|
+
borderBottomLeftRadius?: string;
|
|
120
|
+
borderTopRightRadius?: string;
|
|
121
|
+
borderBottomRightRadius?: string;
|
|
122
|
+
borderStartStartRadius?: string;
|
|
123
|
+
borderEndStartRadius?: string;
|
|
124
|
+
borderStartEndRadius?: string;
|
|
125
|
+
borderEndEndRadius?: string;
|
|
126
|
+
borderWidth?: string;
|
|
127
|
+
borderLeftWidth?: string;
|
|
128
|
+
borderRightWidth?: string;
|
|
129
|
+
borderTopWidth?: string;
|
|
130
|
+
borderBottomWidth?: string;
|
|
131
|
+
XAnimationColorInterpolation?: 'auto' | 'sRGB' | 'linearRGB';
|
|
132
|
+
XHandleColor?: string;
|
|
133
|
+
color?: string;
|
|
134
|
+
background?: string;
|
|
135
|
+
borderColor?: string;
|
|
136
|
+
backgroundColor?: string;
|
|
137
|
+
borderStyle?: 'solid' | 'dashed' | 'dotted' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset' | 'hidden' | 'none' | (string & {});
|
|
138
|
+
borderLeftColor?: string;
|
|
139
|
+
borderRightColor?: string;
|
|
140
|
+
backgroundImage?: string;
|
|
141
|
+
|
|
142
|
+
// animation
|
|
143
|
+
transition?: string;
|
|
144
|
+
transitionProperty?: 'none' | 'opacity' | 'scaleX' | 'scaleY' | 'scaleXY' | 'width' | 'height' | 'background-color' | 'visibility' | 'left' | 'top' | 'right' | 'bottom' | 'transform' | 'all' | (string & {});
|
|
145
|
+
transitionDuration?: string;
|
|
146
|
+
transitionDelay?: string;
|
|
147
|
+
transitionTimingFunction?: 'linear' | 'ease-in' | 'ease-out' | 'ease-in-ease-out' | 'ease' | 'ease-in-out' | 'square-bezier' | 'cubic-bezier' | (string & {});
|
|
148
|
+
implicitAnimation?: string;
|
|
149
|
+
enterTransitionName?: string;
|
|
150
|
+
exitTransitionName?: string;
|
|
151
|
+
pauseTransitionName?: string;
|
|
152
|
+
resumeTransitionName?: string;
|
|
153
|
+
animation?: string;
|
|
154
|
+
animationName?: string;
|
|
155
|
+
animationDuration?: string;
|
|
156
|
+
animationTimingFunction?: 'linear' | 'ease-in' | 'ease-out' | 'ease-in-ease-out' | 'ease' | 'ease-in-out' | 'square-bezier' | 'cubic-bezier' | (string & {});
|
|
157
|
+
animationDelay?: string;
|
|
158
|
+
animationIterationCount?: string;
|
|
159
|
+
animationDirection?: 'normal' | 'reverse' | 'alternate' | 'alternate-reverse';
|
|
160
|
+
animationFillMode?: 'none' | 'forwards' | 'backwards' | 'both';
|
|
161
|
+
animationPlayState?: 'paused' | 'running';
|
|
162
|
+
layoutAnimationCreateDuration?: string;
|
|
163
|
+
layoutAnimationCreateTimingFunction?: 'linear' | 'ease-in' | 'ease-out' | 'ease-in-ease-out' | 'ease' | 'ease-in-out' | 'square-bezier' | 'cubic-bezier' | (string & {});
|
|
164
|
+
layoutAnimationCreateDelay?: string;
|
|
165
|
+
layoutAnimationCreateProperty?: 'opacity' | 'scaleX' | 'scaleY' | 'scaleXY' | (string & {});
|
|
166
|
+
layoutAnimationDeleteDuration?: string;
|
|
167
|
+
layoutAnimationDeleteTimingFunction?: 'linear' | 'ease-in' | 'ease-out' | 'ease-in-ease-out' | 'ease' | 'ease-in-out' | 'square-bezier' | 'cubic-bezier' | (string & {});
|
|
168
|
+
layoutAnimationDeleteDelay?: string;
|
|
169
|
+
layoutAnimationDeleteProperty?: 'opacity' | 'scaleX' | 'scaleY' | 'scaleXY' | (string & {});
|
|
170
|
+
layoutAnimationUpdateDuration?: string;
|
|
171
|
+
layoutAnimationUpdateTimingFunction?: 'linear' | 'ease-in' | 'ease-out' | 'ease-in-ease-out' | 'ease' | 'ease-in-out' | 'square-bezier' | 'cubic-bezier' | (string & {});
|
|
172
|
+
layoutAnimationUpdateDelay?: string;
|
|
8
173
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
| 'visibility'
|
|
79
|
-
| 'left'
|
|
80
|
-
| 'top'
|
|
81
|
-
| 'right'
|
|
82
|
-
| 'bottom'
|
|
83
|
-
| 'transform'
|
|
84
|
-
| 'all'
|
|
85
|
-
| (string & {});
|
|
86
|
-
transitionTimingFunction?: 'linear' | 'ease-in' | 'ease-out' | 'ease-in-ease-out' | 'ease' | 'ease-in-out' | 'square-bezier' | 'cubic-bezier' | (string & {});
|
|
87
|
-
borderLeftStyle?: 'solid' | 'dashed' | 'dotted' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset' | 'hidden' | 'none' | (string & {});
|
|
88
|
-
borderRightStyle?: 'solid' | 'dashed' | 'dotted' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset' | 'hidden' | 'none' | (string & {});
|
|
89
|
-
borderTopStyle?: 'solid' | 'dashed' | 'dotted' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset' | 'hidden' | 'none' | (string & {});
|
|
90
|
-
borderBottomStyle?: 'solid' | 'dashed' | 'dotted' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset' | 'hidden' | 'none' | (string & {});
|
|
91
|
-
overflowX?: 'hidden' | 'visible' | (string & {});
|
|
92
|
-
overflowY?: 'hidden' | 'visible' | (string & {});
|
|
93
|
-
wordBreak?: 'normal' | 'break-all' | 'keep-all';
|
|
94
|
-
outlineStyle?: 'solid' | 'dashed' | 'dotted' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset' | 'hidden' | 'none' | (string & {});
|
|
95
|
-
verticalAlign?: 'baseline' | 'sub' | 'super' | 'top' | 'text-top' | 'middle' | 'bottom' | 'text-bottom' | (string & {});
|
|
96
|
-
direction?: 'normal' | 'lynx-rtl' | 'rtl' | 'ltr';
|
|
97
|
-
relativeCenter?: 'none' | 'vertical' | 'horizontal' | 'both';
|
|
98
|
-
linearCrossGravity?: 'none' | 'start' | 'end' | 'center' | 'stretch';
|
|
99
|
-
listMainAxisGap?: 'grayscale' | (string & {});
|
|
100
|
-
fontVariationSettings?: string;
|
|
101
|
-
fontFeatureSettings?: string;
|
|
102
|
-
fontOpticalSizing?: 'none' | 'auto';
|
|
103
|
-
}
|
|
104
|
-
>;
|
|
174
|
+
// other
|
|
175
|
+
top?: string;
|
|
176
|
+
visibility?: 'hidden' | 'visible' | 'none' | 'collapse';
|
|
177
|
+
content?: string;
|
|
178
|
+
overflowX?: 'hidden' | 'visible' | (string & {});
|
|
179
|
+
overflowY?: 'hidden' | 'visible' | (string & {});
|
|
180
|
+
wordBreak?: 'normal' | 'break-all' | 'keep-all';
|
|
181
|
+
verticalAlign?: 'baseline' | 'sub' | 'super' | 'top' | 'text-top' | 'middle' | 'bottom' | 'text-bottom' | (string & {});
|
|
182
|
+
direction?: 'normal' | 'lynx-rtl' | 'rtl' | 'ltr';
|
|
183
|
+
relativeId?: number;
|
|
184
|
+
relativeAlignTop?: string;
|
|
185
|
+
relativeAlignRight?: string;
|
|
186
|
+
relativeAlignBottom?: string;
|
|
187
|
+
relativeAlignLeft?: string;
|
|
188
|
+
relativeTopOf?: number;
|
|
189
|
+
relativeRightOf?: number;
|
|
190
|
+
relativeBottomOf?: number;
|
|
191
|
+
relativeLeftOf?: number;
|
|
192
|
+
relativeLayoutOnce?: string;
|
|
193
|
+
relativeCenter?: 'none' | 'vertical' | 'horizontal' | 'both';
|
|
194
|
+
zIndex?: number;
|
|
195
|
+
maskImage?: string;
|
|
196
|
+
justifyItems?: 'start' | 'end' | 'center' | 'stretch' | 'auto';
|
|
197
|
+
justifySelf?: 'start' | 'end' | 'center' | 'stretch' | 'auto';
|
|
198
|
+
filter?: string;
|
|
199
|
+
listMainAxisGap?: 'grayscale' | (string & {});
|
|
200
|
+
listCrossAxisGap?: string;
|
|
201
|
+
perspective?: 'number' | 'vw' | 'vh' | 'default' | 'px';
|
|
202
|
+
cursor?: string;
|
|
203
|
+
clipPath?: string;
|
|
204
|
+
mask?: string;
|
|
205
|
+
left?: string;
|
|
206
|
+
maskRepeat?: string;
|
|
207
|
+
maskClip?: string;
|
|
208
|
+
maskOrigin?: string;
|
|
209
|
+
maskSize?: string;
|
|
210
|
+
gap?: string;
|
|
211
|
+
columnGap?: string;
|
|
212
|
+
rowGap?: string;
|
|
213
|
+
imageRendering?: 'auto' | 'crisp-edges' | 'pixelated';
|
|
214
|
+
hyphens?: 'none' | 'manual' | 'auto';
|
|
215
|
+
XAppRegion?: 'none' | 'drag' | 'no-drag';
|
|
216
|
+
XHandleSize?: string;
|
|
217
|
+
offsetDistance?: number;
|
|
218
|
+
offsetPath?: string;
|
|
219
|
+
offsetRotate?: string;
|
|
220
|
+
opacity?: number;
|
|
221
|
+
overflow?: 'hidden' | 'visible' | (string & {});
|
|
222
|
+
height?: string;
|
|
223
|
+
width?: string;
|
|
224
|
+
maxWidth?: string;
|
|
225
|
+
minWidth?: string;
|
|
226
|
+
right?: string;
|
|
227
|
+
maxHeight?: string;
|
|
228
|
+
minHeight?: string;
|
|
229
|
+
bottom?: string;
|
|
230
|
+
whiteSpace?: 'normal' | 'nowrap';
|
|
231
|
+
letterSpacing?: string;
|
|
232
|
+
alignItems?: 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'auto' | 'start' | 'end' | 'baseline';
|
|
233
|
+
alignSelf?: 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'auto' | 'start' | 'end' | 'baseline';
|
|
234
|
+
alignContent?: 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'space-between' | 'space-around' | 'start' | 'end';
|
|
235
|
+
justifyContent?: 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch' | 'start' | 'end';
|
|
236
|
+
boxSizing?: 'border-box' | 'content-box' | 'auto';
|
|
237
|
+
transform?: 'translate' | 'translateX' | 'translateY' | 'translateZ' | 'translate' | 'translate3d' | 'translate3D' | 'rotate' | 'rotateX' | 'rotateY' | 'rotateZ' | 'scale' | 'scaleX' | 'scaleY' | (string & {});
|
|
238
|
+
order?: number;
|
|
239
|
+
boxShadow?: string;
|
|
240
|
+
transformOrigin?: 'left' | 'right' | 'top' | 'bottom' | 'center' | (string & {});
|
|
241
|
+
aspectRatio?: string;
|
|
242
|
+
};
|
|
105
243
|
|
|
106
244
|
export type Shorthands =
|
|
107
245
|
// layout
|
|
@@ -126,8 +264,5 @@ export type Longhands =
|
|
|
126
264
|
// other
|
|
127
265
|
"top" | "visibility" | "content" | "overflowX" | "overflowY" | "wordBreak" | "verticalAlign" | "direction" | "relativeId" | "relativeAlignTop" | "relativeAlignRight" | "relativeAlignBottom" | "relativeAlignLeft" | "relativeTopOf" | "relativeRightOf" | "relativeBottomOf" | "relativeLeftOf" | "relativeLayoutOnce" | "relativeCenter" | "zIndex" | "maskImage" | "justifyItems" | "justifySelf" | "filter" | "listMainAxisGap" | "listCrossAxisGap" | "perspective" | "cursor" | "clipPath" | "left" | "maskRepeat" | "maskClip" | "maskOrigin" | "maskSize" | "columnGap" | "rowGap" | "imageRendering" | "hyphens" | "XAppRegion" | "XHandleSize" | "offsetDistance" | "offsetPath" | "offsetRotate" | "opacity" | "height" | "width" | "maxWidth" | "minWidth" | "right" | "maxHeight" | "minHeight" | "bottom" | "letterSpacing" | "alignItems" | "alignSelf" | "alignContent" | "justifyContent" | "boxSizing" | "transform" | "order" | "boxShadow" | "transformOrigin" | "aspectRatio";
|
|
128
266
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
// Use `& keyof CSSProperties` to ensure only the defined keys are included to avoid type error.
|
|
132
|
-
export type CSSPropertiesWithShorthands = Pick<CSSProperties, Shorthands & keyof CSSProperties>;
|
|
133
|
-
export type CSSPropertiesWithLonghands = Pick<CSSProperties, Longhands & keyof CSSProperties>;
|
|
267
|
+
export type CSSPropertiesWithShorthands = Pick<CSSProperties, Shorthands>;
|
|
268
|
+
export type CSSPropertiesWithLonghands = Pick<CSSProperties, Longhands>;
|
|
@@ -10,19 +10,17 @@ import { ImageProps, ImageUIMethods } from './image';
|
|
|
10
10
|
import { ListItemProps, ListProps, ListRowProps, ListUIMethods } from './list';
|
|
11
11
|
import { PageProps } from './page';
|
|
12
12
|
import { ScrollViewProps, ScrollViewUIMethods } from './scroll-view';
|
|
13
|
-
import { TextProps
|
|
13
|
+
import { TextProps } from './text';
|
|
14
14
|
import { ViewProps } from './view';
|
|
15
15
|
import { InputProps, InputUIMethods } from './input';
|
|
16
16
|
import { TextAreaProps, TextAreaUIMethods } from './textarea';
|
|
17
17
|
|
|
18
|
-
|
|
19
18
|
export interface UIMethods {
|
|
20
19
|
'list': ListUIMethods;
|
|
21
20
|
'scroll-view': ScrollViewUIMethods;
|
|
22
21
|
'image': ImageUIMethods;
|
|
23
22
|
'input': InputUIMethods;
|
|
24
23
|
'textarea': TextAreaUIMethods;
|
|
25
|
-
'text': TextUIMethods;
|
|
26
24
|
}
|
|
27
25
|
|
|
28
26
|
type LynxComponentProps = ComponentProps;
|