@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 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` and `enable-dynamic-span-count` property for list.
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.2
45
- - SelectorQuery FieldsParams adds query attribute
46
- - Revert automatically generated cssTypes
24
+ ## 3.3.4
25
+
47
26
  - Add typing for the runtime interfaces.
48
- - Codegen longhand and shorthand properties from css_defines
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/types",
3
- "version": "3.3.2",
3
+ "version": "3.4.3",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "lynx",
@@ -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
@@ -9,4 +9,3 @@ export * from './nodes-ref';
9
9
  export * from './performance';
10
10
  export * from './native-modules';
11
11
  export * from './lynx-performance-entry';
12
- export * from './text-encoder-decoder';
@@ -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, RequestInit } from './fetch';
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
- // Copyright 2025 The Lynx Authors. All rights reserved.
2
- // Licensed under the Apache License Version 2.0 that can be found in the
3
- // LICENSE file in the root directory of this source tree.
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
- import * as CSS from 'csstype';
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 Modify<T, R> = Omit<T, keyof R> & R;
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
- export type CSSProperties = Modify<
10
- CSS.Properties<string | number>,
11
- {
12
- position?: 'absolute' | 'relative' | 'fixed' | 'sticky';
13
- boxSizing?: 'border-box' | 'content-box' | 'auto';
14
- display?: 'none' | 'flex' | 'grid' | 'linear' | 'relative' | 'block' | 'auto';
15
- overflow?: 'hidden' | 'visible' | (string & {});
16
- whiteSpace?: 'normal' | 'nowrap';
17
- textAlign?: 'left' | 'center' | 'right' | 'start' | 'end';
18
- textOverflow?: 'clip' | 'ellipsis';
19
- fontWeight?: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
20
- flexDirection?: 'column' | 'row' | 'row-reverse' | 'column-reverse';
21
- flexWrap?: 'wrap' | 'nowrap' | 'wrap-reverse';
22
- alignContent?: 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'space-between' | 'space-around' | 'start' | 'end';
23
- justifyContent?: 'flex-start' | 'center' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly' | 'stretch' | 'start' | 'end';
24
- fontStyle?: 'normal' | 'italic' | 'oblique';
25
- transform?:
26
- | 'translate'
27
- | 'translateX'
28
- | 'translateY'
29
- | 'translateZ'
30
- | 'translate'
31
- | 'translate3d'
32
- | 'translate3D'
33
- | 'rotate'
34
- | 'rotateX'
35
- | 'rotateY'
36
- | 'rotateZ'
37
- | 'scale'
38
- | 'scaleX'
39
- | 'scaleY'
40
- | (string & {});
41
- animationTimingFunction?: 'linear' | 'ease-in' | 'ease-out' | 'ease-in-ease-out' | 'ease' | 'ease-in-out' | 'square-bezier' | 'cubic-bezier' | (string & {});
42
- borderStyle?: 'solid' | 'dashed' | 'dotted' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset' | 'hidden' | 'none' | (string & {});
43
- transformOrigin?: 'left' | 'right' | 'top' | 'bottom' | 'center' | (string & {});
44
- linearDirection?: 'column' | 'row' | 'column-reverse' | 'row-reverse';
45
- linearOrientation?: 'horizontal' | 'vertical' | 'horizontal-reverse' | 'vertical-reverse';
46
- linearWeight?: number;
47
- linearGravity?: 'none' | 'top' | 'bottom' | 'left' | 'right' | 'center-vertical' | 'center-horizontal' | 'space-between' | 'start' | 'end' | 'center';
48
- linearLayoutGravity?:
49
- | 'none'
50
- | 'top'
51
- | 'bottom'
52
- | 'left'
53
- | 'right'
54
- | 'center-vertical'
55
- | 'center-horizontal'
56
- | 'fill-vertical'
57
- | 'fill-horizontal'
58
- | 'center'
59
- | 'stretch'
60
- | 'start'
61
- | 'end';
62
- layoutAnimationCreateTimingFunction?: 'linear' | 'ease-in' | 'ease-out' | 'ease-in-ease-out' | 'ease' | 'ease-in-out' | 'square-bezier' | 'cubic-bezier' | (string & {});
63
- layoutAnimationCreateProperty?: 'opacity' | 'scaleX' | 'scaleY' | 'scaleXY' | (string & {});
64
- layoutAnimationDeleteTimingFunction?: 'linear' | 'ease-in' | 'ease-out' | 'ease-in-ease-out' | 'ease' | 'ease-in-out' | 'square-bezier' | 'cubic-bezier' | (string & {});
65
- layoutAnimationDeleteProperty?: 'opacity' | 'scaleX' | 'scaleY' | 'scaleXY' | (string & {});
66
- layoutAnimationUpdateTimingFunction?: 'linear' | 'ease-in' | 'ease-out' | 'ease-in-ease-out' | 'ease' | 'ease-in-out' | 'square-bezier' | 'cubic-bezier' | (string & {});
67
- textDecoration?: 'none' | 'underline' | 'line-through' | (string & {});
68
- visibility?: 'hidden' | 'visible' | 'none' | 'collapse';
69
- transitionProperty?:
70
- | 'none'
71
- | 'opacity'
72
- | 'scaleX'
73
- | 'scaleY'
74
- | 'scaleXY'
75
- | 'width'
76
- | 'height'
77
- | 'background-color'
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
- // Since `Shorthands` and `Longhands` are auto generated, there may be properties
130
- // such as `gridColumnSpan` is not manually defined in `CSSProperties` yet.
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, TextUIMethods } from './text';
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;