@doubao-dev/framework 0.8.0 → 0.9.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.
Files changed (2) hide show
  1. package/dist/components.d.ts +11 -1110
  2. package/package.json +2 -2
@@ -4,9 +4,7 @@ import { CameraDevicePosition } from '../camera';
4
4
  import { CameraError } from '../camera';
5
5
  import { ContentSizeChangedEvent } from '@lynx-js/types';
6
6
  import type { CSSProperties } from '@lynx-js/types';
7
- import type { CSSProperties as CSSProperties_2 } from '@byted-lynx/type-lynx';
8
7
  import type { ErrorEvent as ErrorEvent_2 } from '@lynx-js/types';
9
- import type { ForwardedRef } from '@byted-lynx/react';
10
8
  import type { ForwardRefExoticComponent } from 'react';
11
9
  import type { InputBlurEvent } from '@lynx-js/types';
12
10
  import type { InputConfirmEvent } from '@lynx-js/types';
@@ -30,11 +28,11 @@ import { ListScrollToUpperEvent } from '@lynx-js/types';
30
28
  import { ListSnapEvent } from '@lynx-js/types';
31
29
  import { ListSnapInfo } from '@lynx-js/types';
32
30
  import type { LoadEvent } from '@lynx-js/types';
33
- import type { MainThread } from '@lynx-js/types';
34
31
  import type { NodesRef } from '@lynx-js/types';
35
32
  import type { OpenAppResult } from '@byted-doubao-apps/bridge-api';
36
- import type { ReactElement } from '@byted-lynx/react';
37
- import type { ReactElement as ReactElement_2 } from 'react';
33
+ import { PopupProps } from '@byted-lynx/lynx-ui-popup';
34
+ import { PopupRef } from '@byted-lynx/lynx-ui-popup';
35
+ import type { ReactElement } from 'react';
38
36
  import type { ReactNode } from 'react';
39
37
  import type { Ref } from 'react';
40
38
  import type { RefAttributes } from 'react';
@@ -50,7 +48,8 @@ import type { TextAreaInputEvent } from '@lynx-js/types';
50
48
  import type { TextAreaSelectionChangeEvent } from '@lynx-js/types';
51
49
  import type { TouchEvent as TouchEvent_2 } from '@lynx-js/types';
52
50
  import type { UIAppearanceEvent } from '@lynx-js/types';
53
- import type { XOverlayNGProps } from '@byted-lynx/type-lynx';
51
+ import { VideoEngineProps } from '@byted-lynx/lynx-ui-video-engine';
52
+ import { VideoEngineRef } from '@byted-lynx/lynx-ui-video-engine';
54
53
 
55
54
  export declare interface AgreePrivacyResult {
56
55
  /**
@@ -97,60 +96,6 @@ export declare interface AudioProps extends Omit<VideoEngineProps, 'as' | 'style
97
96
 
98
97
  export declare type AudioRef = VideoEngineRef;
99
98
 
100
- declare abstract class BaseGesture<TConfig extends BaseGestureConfig = BaseGestureConfig, TEvent extends GestureChangeEvent = GestureChangeEvent> implements GestureKind {
101
- abstract type: GestureTypeInner;
102
- config: TConfig;
103
- id: number;
104
- simultaneousWith: BaseGesture<BaseGestureConfig, GestureChangeEvent>[];
105
- waitFor: BaseGesture<BaseGestureConfig, GestureChangeEvent>[];
106
- continueWith: BaseGesture<BaseGestureConfig, GestureChangeEvent>[];
107
- execId: number;
108
- callbacks: BaseGestureCallbacks<TEvent>;
109
- __isGesture: true;
110
- constructor(gesture?: BaseGesture<TConfig, TEvent>);
111
- updateConfig: (k: string, v: unknown) => this;
112
- updateCallback: (k: keyof typeof BaseGesture.callbacks, cb: GestureCallback<TEvent>) => this;
113
- enabled: (enabled: boolean) => this;
114
- onBegin: (cb: GestureCallback<TEvent>) => this;
115
- onStart: (cb: GestureCallback<TEvent>) => this;
116
- onEnd: (cb: GestureCallback<TEvent>) => this;
117
- onTouchesDown: (cb: GestureCallback<TEvent>) => this;
118
- onTouchesMove: (cb: GestureCallback<TEvent>) => this;
119
- onTouchesUp: (cb: GestureCallback<TEvent>) => this;
120
- onTouchesCancel: (cb: GestureCallback<TEvent>) => this;
121
- private addRelation;
122
- externalWaitFor: (gesture: GestureKind) => this;
123
- externalSimultaneous: (gesture: GestureKind) => this;
124
- externalContinueWith: (gesture: GestureKind) => this;
125
- toGestureArray: () => BaseGesture<BaseGestureConfig, GestureChangeEvent>[];
126
- serialize: () => Record<string, unknown>;
127
- toJSON: () => Record<string, unknown>;
128
- clone: () => this;
129
- }
130
-
131
- /**
132
- * Generic base gesture callbacks interface.
133
- * @template TEvent - The specific gesture event type
134
- */
135
- declare interface BaseGestureCallbacks<TEvent extends GestureChangeEvent = GestureChangeEvent> {
136
- onBegin?: GestureCallback<TEvent>;
137
- onStart?: GestureCallback<TEvent>;
138
- onEnd?: GestureCallback<TEvent>;
139
- onTouchesDown?: GestureCallback<TEvent>;
140
- onTouchesMove?: GestureCallback<TEvent>;
141
- onTouchesUp?: GestureCallback<TEvent>;
142
- onTouchesCancel?: GestureCallback<TEvent>;
143
- }
144
-
145
- /**
146
- * Base configuration interface for all gestures.
147
- * All gesture-specific configurations extend this interface.
148
- */
149
- declare interface BaseGestureConfig extends Record<string, unknown> {
150
- /** Whether the gesture is enabled. Defaults to true. */
151
- enabled?: boolean;
152
- }
153
-
154
99
  declare interface BounceConfig {
155
100
  /**
156
101
  * 是否启用回弹效果,当 loop 为 true 时忽略此设置
@@ -160,11 +105,11 @@ declare interface BounceConfig {
160
105
  /**
161
106
  * 左侧回弹项(水平方向时)
162
107
  */
163
- startBounceItem?: ReactElement_2;
108
+ startBounceItem?: ReactElement;
164
109
  /**
165
110
  * 右侧回弹项(水平方向时)
166
111
  */
167
- endBounceItem?: ReactElement_2;
112
+ endBounceItem?: ReactElement;
168
113
  /**
169
114
  * 当 startBounceItem 处于回弹状态时,释放手指将调用此函数
170
115
  */
@@ -851,53 +796,6 @@ declare interface DoubaoPaymentResultPayload_2 {
851
796
 
852
797
  declare type DrawImageSource = CanvasImageSource | CanvasImage | OffscreenCanvas_2;
853
798
 
854
- /**
855
- * Generic gesture callback type that receives typed events.
856
- * @template TEvent - The specific gesture event type
857
- */
858
- declare type GestureCallback<TEvent extends GestureChangeEvent = GestureChangeEvent> = (event: TEvent, stateManager: StateManager) => void;
859
-
860
- /**
861
- * Base gesture change event interface.
862
- * All gesture-specific events extend this interface.
863
- */
864
- declare interface GestureChangeEvent {
865
- target: MainThread.Element;
866
- currentTarget: MainThread.Element;
867
- params: {
868
- pageX: number;
869
- pageY: number;
870
- timestamp: number;
871
- type: string;
872
- clientX: number;
873
- y: number;
874
- x: number;
875
- clientY: number;
876
- };
877
- }
878
-
879
- declare interface GestureKind {
880
- __isGesture: true;
881
- type: GestureTypeInner;
882
- waitFor: GestureKind[];
883
- continueWith: GestureKind[];
884
- simultaneousWith: GestureKind[];
885
- toGestureArray: () => BaseGesture[];
886
- serialize: () => Record<string, unknown>;
887
- }
888
-
889
- declare enum GestureTypeInner {
890
- COMPOSED = -1,
891
- PAN = 0,
892
- FLING = 1,
893
- DEFAULT = 2,
894
- TAP = 3,
895
- LONGPRESS = 4,
896
- ROTATION = 5,
897
- PINCH = 6,
898
- NATIVE = 7
899
- }
900
-
901
799
  export declare type GetDoubaoPaymentOrderId = (mode?: DoubaoPaymentMode_2) => string | Promise<string>;
902
800
 
903
801
  declare type GetDoubaoPaymentOrderId_2 = (mode?: DoubaoPaymentMode) => string | Promise<string>;
@@ -913,53 +811,6 @@ export declare interface GetPhoneNumberResult {
913
811
  message?: string;
914
812
  }
915
813
 
916
- declare interface HeightPercent {
917
- /**
918
- * The init offset percentage or absolute value (e.g. "200px") that the popup, base line is maxHeight
919
- * @zh 弹窗的初始偏移百分比或绝对值(例如 "200px"),基准线是 maxHeight * @defaultValue 60
920
- * @Android
921
- * @iOS
922
- * @Harmony
923
- */
924
- init: number | `${number}px` | `${number}%` | `${number}rpx`;
925
- /**
926
- * The maximum offset percentage or absolute value (e.g. "400px") that the popup can drag, base line is maxHeight
927
- * @zh 弹窗可拖动的最大偏移百分比或绝对值(例如 "400px"),基准线是 maxHeight
928
- * @defaultValue 100
929
- * @Android
930
- * @iOS
931
- * @Harmony
932
- */
933
- top: number | `${number}px` | `${number}%` | `${number}rpx`;
934
- /**
935
- * The minimum offset percentage or absolute value (e.g. "0px") that the popup can drag, base line is maxHeight
936
- * @zh 弹窗可拖动的最小偏移百分比或绝对值(例如 "0px"),基准线是 maxHeight
937
- * @defaultValue 0
938
- * @Android
939
- * @iOS
940
- * @Harmony
941
- */
942
- bottom?: number | `${number}px` | `${number}%` | `${number}rpx`;
943
- /**
944
- * The boundary offset percentage or absolute value (e.g., "20px") for the popup's non-inertial slide release rebound. When the non-inertial slide release rebound area is within position - boundaryArea to + boundaryArea, it will trigger a rebound back to the current position; otherwise, it will move to the next position. The baseline is maxHeight.
945
- * @zh 弹窗无惯性滑动的松手回弹的边界偏移百分比或绝对值(例如 "20px"),当无惯性滑动松手回弹的区域在position - boundaryArea / + boundaryArea 之间时,会触发回弹到当前的position为止,否则会进入下一个位置,基准线是 maxHeight
946
- * @defaultValue 10
947
- * @Android
948
- * @iOS
949
- * @Harmony
950
- */
951
- boundaryArea?: number | `${number}px` | `${number}%` | `${number}rpx`;
952
- /**
953
- * The speed threshold for inertial sliding rebound. When the release speed is greater than this value, it will slide to the next position; when less than this value, it will rebound to the current position
954
- * @zh 惯性滑动回弹阈值:弹窗有惯性滑动时的速度阈值,当松手大于该速度时会滑动到下一个position,当小于该速度时会回弹至当前的position
955
- * @defaultValue 5(px/s)
956
- * @Android
957
- * @iOS
958
- * @Harmony
959
- */
960
- flingThreshold?: number;
961
- }
962
-
963
814
  /**
964
815
  * 图片展示组件,支持加载本地或网络图片资源,提供多种裁剪和缩放模式。
965
816
  */
@@ -2912,24 +2763,6 @@ declare interface onBounceParams {
2912
2763
  offset: number;
2913
2764
  }
2914
2765
 
2915
- declare interface OnDragCallback {
2916
- /**
2917
- * 0 - begin 1 - drag 2 - end
2918
- * @zh 0 - 开始 1 - 拖动 2 - 结束
2919
- */
2920
- state: number;
2921
- /**
2922
- * x and y coordinate
2923
- * @zh x 和 y 坐标
2924
- */
2925
- touchEvent: TouchEvent_3;
2926
- /**
2927
- * The top of popup
2928
- * @zh 弹窗的顶部位置
2929
- */
2930
- top: number;
2931
- }
2932
-
2933
2766
  /**
2934
2767
  * button 通过 `openType="openSetting"` 打开授权设置页后的回调事件。
2935
2768
  */
@@ -3207,332 +3040,9 @@ export declare interface PolylineEdgeTexture {
3207
3040
  url: string;
3208
3041
  }
3209
3042
 
3210
- export declare interface PopupProps {
3211
- ref?: ForwardedRef<PopupRef>;
3212
- /**
3213
- * The id of root scroll container(required)
3214
- * @zh 根节点滚动容器的 ID(必需)
3215
- * @Android
3216
- * @iOS
3217
- * @Harmony
3218
- */
3219
- scrollContainerId: string;
3220
- /**
3221
- * children of popup.
3222
- * @zh 弹窗的子元素
3223
- * @Android
3224
- * @iOS
3225
- * @Harmony
3226
- */
3227
- children: (prop: RenderFunction) => ReactElement;
3228
- /**
3229
- * The ID of the popup content, which needs to be set when autoHeight is true, to get the content height
3230
- * @zh 弹窗内容的 ID, 在 autoHeight 为 true 时需要设置,用于获取内容高度
3231
- * @Android
3232
- * @iOS
3233
- * @Harmony
3234
- */
3235
- contentId?: string;
3236
- /**
3237
- * Auto height of popup, when set to true, you need to specified contentId prop, the height of popup will be the height of content, The drag area is between bottom and the current height, initHeight and maxHeight are no longer valid
3238
- * @zh 自动弹窗高度,设置为 true 时,需要指定 contentId 属性,弹窗高度会根据内容高度动态变化,拖动区域在底部和当前高度之间,initHeight 和 maxHeight 不再有效
3239
- * @Android
3240
- * @iOS
3241
- * @Harmony
3242
- */
3243
- autoHeight?: boolean;
3244
- /**
3245
- * Style for mask
3246
- * @zh 遮罩的样式
3247
- * @Android
3248
- * @iOS
3249
- * @Harmony
3250
- */
3251
- maskStyle?: CSSProperties_2;
3252
- /**
3253
- * Style for popup content
3254
- * @zh 弹窗内容的样式
3255
- * @Android
3256
- * @iOS
3257
- * @Harmony
3258
- */
3259
- contentStyle?: CSSProperties_2;
3260
- /**
3261
- * Preload when popup is create, it will speed up shown when visible is true
3262
- * @zh 弹窗创建时预加载,这样在 visible 为 true 时会加快显示速度
3263
- * @defaultValue true
3264
- * @Android
3265
- * @iOS
3266
- * @Harmony
3267
- */
3268
- preload?: boolean;
3269
- /**
3270
- * When set to true, click mask will dismiss popup.
3271
- * @zh 设置为 true 时,点击遮罩会关闭弹窗
3272
- * @defaultValue true
3273
- * @Android
3274
- * @iOS
3275
- * @Harmony
3276
- */
3277
- closeOnMaskClick?: boolean;
3278
- /**
3279
- * When set to true, mask event will through to children
3280
- * @zh 当设置为true的时候,遮罩事件会传递到子元素
3281
- * @defaultValue false
3282
- * @Android
3283
- * @iOS
3284
- * @Harmony
3285
- */
3286
- maskEventThrough?: boolean;
3287
- /**
3288
- * if enable drag or not
3289
- * @zh 是否启用拖动
3290
- * @defaultValue true
3291
- * @Android
3292
- * @iOS
3293
- * @Harmony
3294
- */
3295
- enableDrag?: boolean;
3296
- /**
3297
- * if enable bounces or not when touch up
3298
- * @zh 是否需要松手回弹
3299
- * @defaultValue true
3300
- * @Android
3301
- * @iOS
3302
- * @Harmony
3303
- */
3304
- enableBounces?: boolean;
3305
- /**
3306
- * If true, allows the component to overflow the bottom boundary when dragged.
3307
- * @zh 如果为 true,则允许组件在拖动时超出底部边界。
3308
- * @defaultValue false
3309
- * @Android
3310
- * @iOS
3311
- * @Harmony
3312
- */
3313
- allowDragBeyondBottom?: boolean;
3314
- /**
3315
- * Stops the propagation of gesture events when the scroll container is at the top.
3316
- * @zh 当滚动容器滚动到顶部时,停止滚动容器的手势事件传播。
3317
- * @defaultValue false
3318
- * @Android
3319
- * @iOS
3320
- * @Harmony
3321
- */
3322
- stopGesturePropagationWhenScrollAtTop?: boolean;
3323
- /**
3324
- * Dynamically adjusts the exit animation based on the content height. When enabled, the on-screen animation duration remains constant. As a result, the greater the content height, the faster the exit velocity to ensure the animation completes within the fixed time
3325
- * @zh 根据内容高度动态调整退出动画。启用后,屏幕上的动画持续时间保持不变。因此,内容高度越大,退出速度越快,以确保动画在固定时间内完成。
3326
- * @defaultValue false
3327
- * @Android
3328
- * @iOS
3329
- * @Harmony
3330
- */
3331
- adjustExitTransitionByContentHeight?: boolean;
3332
- /**
3333
- * Theoretically, this is the maximum height that can be dragged to. When using overlayMode, the screen height needs to be passed in. When not using overlayMode, the height of the current LynxView needs to be passed in.
3334
- * @zh 理论上能拖拽到的最大高度,当使用overlayMode时需要传入屏幕高度,当不使用overlayMode时,需要传入当前LynxView的高度
3335
- * @defaultValue screenHeight
3336
- * @Android
3337
- * @iOS
3338
- * @Harmony
3339
- */
3340
- maxHeight: number;
3341
- /**
3342
- * Nodes fixed at the bottom of the popup will not be affected by dragging
3343
- * @zh 固定在弹窗底部的节点,不会受到拖动影响
3344
- * @Android
3345
- * @iOS
3346
- * @Harmony
3347
- */
3348
- bottomNode?: ReactElement;
3349
- /**
3350
- * Whether to allow dragging the Popup when touching the internal scroll container area
3351
- * @zh 是否允许触摸在内部滚动容器区域时可拖拽Popup
3352
- * @defaultValue true
3353
- * @Android
3354
- * @iOS
3355
- * @Harmony
3356
- */
3357
- enableScrollContainerDraggable?: boolean;
3358
- /**
3359
- * It is recommended to use a full-screen transparent container for the popup, as it offers better performance. Alternatively, you can also choose to use the popup through an overlay
3360
- * @zh 建议为弹窗使用全屏透明容器,因为这样性能更好。或者,你也可以选择通过overlay使用弹窗,请参考overlay-ng mode官网描述
3361
- * @Android
3362
- * @iOS
3363
- * @Harmony
3364
- * @docTypeFallback 'spark' | 'bullet' | 'bulletPopup' | (string & {})
3365
- */
3366
- bytedanceOverlayMode?: 'spark' | 'bullet' | 'bulletPopup' | (string & {});
3367
- /**
3368
- * Whether to enable the debug log
3369
- * @zh 是否启用调试日志
3370
- * @defaultValue false
3371
- * @Android
3372
- * @iOS
3373
- * @Harmony
3374
- */
3375
- internalDebugLog?: boolean;
3376
- /**
3377
- * show animation transition
3378
- * @zh 显示动画过渡效果
3379
- * @defaultValue 'all ease-out'
3380
- * @Android
3381
- * @iOS
3382
- * @Harmony
3383
- */
3384
- enterEasingFunction?: string;
3385
- /**
3386
- * hide animation transition
3387
- * @zh 隐藏动画过渡效果
3388
- * @defaultValue 'all ease-out'
3389
- * @Android
3390
- * @iOS
3391
- * @Harmony
3392
- */
3393
- exitEasingFunction?: string;
3394
- /**
3395
- * enter animation duration(ms)
3396
- * @zh 进入动画持续时间(毫秒)
3397
- * @defaultValue 300
3398
- * @Android
3399
- * @iOS
3400
- * @Harmony
3401
- */
3402
- enterDuration?: number;
3403
- /**
3404
- * exit animation duration(ms)
3405
- * @zh 退出动画持续时间(毫秒)
3406
- * @defaultValue 300
3407
- * @Android
3408
- * @iOS
3409
- * @Harmony
3410
- */
3411
- exitDuration?: number;
3412
- /**
3413
- * If you want to use gesture, pass it here.
3414
- * @zh 如果你想使用手势,请使用这个属性
3415
- * @Android
3416
- * @iOS
3417
- * @Harmony
3418
- */
3419
- 'main-thread:gesture'?: BaseGesture;
3420
- /**
3421
- * height percentage of Popup
3422
- * @zh 弹窗的高度百分比
3423
- * @Android
3424
- * @iOS
3425
- * @Harmony
3426
- */
3427
- heightPercent?: HeightPercent;
3428
- /**
3429
- * bounces transition
3430
- * @zh 松手回弹效果动画
3431
- * @defaultValue 'all 0.1s ease-out'
3432
- * @Android
3433
- * @iOS
3434
- * @Harmony
3435
- */
3436
- bouncesTransition?: string;
3437
- /**
3438
- * mask transition timing function, e.g. cubic-bezier(0.25, 0.1, 0.25, 1)
3439
- * @zh 遮罩的过渡动画时间函数,例如 cubic-bezier(0.25, 0.1, 0.25, 1)
3440
- * @Android
3441
- * @iOS
3442
- * @Harmony
3443
- */
3444
- maskTransitionTimingFunction?: string;
3445
- /**
3446
- * x-overlay-ng props for the popup
3447
- * @zh 在弹窗的overlay id, 用于在设置bytedanceOverlayMode下指定弹窗的overlay props
3448
- * @defaultValue {}
3449
- * @Android
3450
- * @iOS
3451
- * @Harmony
3452
- */
3453
- overlayProps?: Partial<XOverlayNGProps>;
3454
- /**
3455
- * drag callback
3456
- * @zh 拖动回调
3457
- * @Android
3458
- * @iOS
3459
- * @Harmony
3460
- */
3461
- onDrag?: (eventParam: OnDragCallback) => void;
3462
- /**
3463
- * popup position callback
3464
- * @zh 弹窗位置回调
3465
- * @Android
3466
- * @iOS
3467
- * @Harmony
3468
- */
3469
- onPopupPositionChange?: (
3470
- /**
3471
- * 0(center) 1(top) -1(bottom) 4(close)
3472
- * @zh 0(中间) 1(顶部) -1(底部) 4(关闭)
3473
- * @Android
3474
- * @iOS
3475
- * @Harmony
3476
- */
3477
- position: number) => void;
3478
- /**
3479
- * 弹窗高度变化回调
3480
- * @param height 弹窗的高度
3481
- * @returns
3482
- */
3483
- onPopupTopChange?: (height: number) => void;
3484
- /**
3485
- * clicking the back button or sliding back
3486
- * @zh 是否左滑或者点击返回键
3487
- * @Android
3488
- */
3489
- onRequestClose?: () => void;
3490
- }
3491
-
3492
- export declare interface PopupRef {
3493
- /**
3494
- * Open the popup. Popup position: 0 (center), 1 (top), -1 (bottom). Default is center.
3495
- * @zh 打开弹窗, 弹窗位置 0(中心)1(顶部)-1(底部),默认是中心
3496
- * @defaultValue 0
3497
- * @Android
3498
- * @iOS
3499
- * @Harmony
3500
- */
3501
- open: (position?: PopupStatus) => void;
3502
- /**
3503
- * Close popup
3504
- * @zh 关闭弹窗
3505
- * @Android
3506
- * @iOS
3507
- * @Harmony
3508
- */
3509
- close: () => void;
3510
- /**
3511
- * Translate popup to specified position, 0(center) 1(top) -1(bottom) | "px" | "%" | "rpx"
3512
- * @zh 移动弹窗到指定位置,0(中心)1(顶部)-1(底部)
3513
- * @Android
3514
- * @iOS
3515
- * @Harmony
3516
- */
3517
- translateTo: (position: PopupStatus | string) => void;
3518
- /**
3519
- * Set whether the scroll container can scroll natively regardless of the current popup position: true enables scrolling, false disables it. Resolves after the main-thread call. Has no effect before the scroll container receives its first touch. Subsequent gestures may change this setting.
3520
- * @zh 不受当前弹窗位置限制,设置滚动容器是否允许原生滚动:true 允许,false 禁止。主线程调用完成后返回的 Promise 才会完成。滚动容器首次收到触摸前调用无效,后续手势仍可能改变此设置。
3521
- * @Android
3522
- * @iOS
3523
- * @Harmony
3524
- */
3525
- setScrollContainerScrollEnabled: (enabled: boolean) => Promise<void>;
3526
- }
3043
+ export { PopupProps }
3527
3044
 
3528
- declare const enum PopupStatus {
3529
- AT_BOTTOM = -1,
3530
- AT_CENTER = 0,
3531
- AT_TOP = 1,
3532
- TOP_TO_CENTER = 2,
3533
- CENTER_TO_TOP = 3,
3534
- AT_CLOSE = 4
3535
- }
3045
+ export { PopupRef }
3536
3046
 
3537
3047
  /**
3538
3048
  * 单选按钮组,管理一组互斥的 Radio 选项,提供统一的值控制。
@@ -3601,25 +3111,6 @@ export declare interface RadioProps {
3601
3111
  disabled?: boolean;
3602
3112
  }
3603
3113
 
3604
- declare interface RenderFunction {
3605
- /**
3606
- * The gesture that needs to be bound to the scroll container inside the popup. After binding, the scroll container inside the popup follows the rule that when it is not at the top, it will drag the popup first, and when it is at the top, it can scroll the inner scroll container.
3607
- * @zh Popup内滚动容器需要绑定的手势,绑定后弹窗内的滚动容器遵循未到达顶部时,优先拖拽Popup,到达顶部后可以滚动内部滚动容器
3608
- * @Android
3609
- * @iOS
3610
- * @Harmony
3611
- */
3612
- 'main-thread:gesture': BaseGesture;
3613
- /**
3614
- * The gesture that needs to be bound to the non-scrollable container inside the popup. After binding, the non-scrollable container inside the popup will only respond to dragging.
3615
- * @zh Popup内非滚动容器当需要拖拽时需要绑定的手势,绑定后该节点仅响应拖拽
3616
- * @Android
3617
- * @iOS
3618
- * @Harmony
3619
- */
3620
- 'draggableGesture': BaseGesture;
3621
- }
3622
-
3623
3114
  declare interface RenderFunctionProps<T> {
3624
3115
  item: T;
3625
3116
  index: number;
@@ -3917,14 +3408,6 @@ export declare interface SliderProps {
3917
3408
  onChange?: (value: number) => void;
3918
3409
  }
3919
3410
 
3920
- declare interface StateManager {
3921
- active: () => void;
3922
- fail: () => void;
3923
- end: () => void;
3924
- consumeGesture: (shouldConsume: boolean) => void;
3925
- interceptGesture: (shouldIntercept: boolean) => void;
3926
- }
3927
-
3928
3411
  /**
3929
3412
  * SVG 图形渲染组件,支持内联展示 SVG 格式图片。
3930
3413
  */
@@ -3979,7 +3462,7 @@ export declare interface SwiperItemProps {
3979
3462
  /**
3980
3463
  * 子元素
3981
3464
  */
3982
- children: ReactElement_2 | ReactElement_2[];
3465
+ children: ReactElement | ReactElement[];
3983
3466
  /**
3984
3467
  * 样式
3985
3468
  */
@@ -4039,7 +3522,7 @@ declare interface SwiperProps_2<T> {
4039
3522
  * </swiper>
4040
3523
  * ```
4041
3524
  */
4042
- children: (prop: RenderFunctionProps<T>) => ReactElement_2;
3525
+ children: (prop: RenderFunctionProps<T>) => ReactElement;
4043
3526
  /**
4044
3527
  * 容器宽度
4045
3528
  * @defaultValue screenWidth
@@ -4493,21 +3976,6 @@ export declare interface ThemeProviderProps {
4493
3976
  flatten?: boolean;
4494
3977
  }
4495
3978
 
4496
- declare interface TouchEvent_3 {
4497
- detail: {
4498
- /**
4499
- * x coordinate of touch event
4500
- * @zh 触摸事件的 x 坐标
4501
- */
4502
- y: number;
4503
- /**
4504
- * y coordinate of touch event
4505
- * @zh 触摸事件的 y 坐标
4506
- */
4507
- x: number;
4508
- };
4509
- }
4510
-
4511
3979
  /**
4512
3980
  * 内容更新状态组件,在内容更新时展示渐变过渡效果。
4513
3981
  */
@@ -4608,573 +4076,6 @@ export declare interface UseLongImageResult {
4608
4076
  isSegmentActive: (index: number) => boolean;
4609
4077
  }
4610
4078
 
4611
- declare enum VideoEngineOption {
4612
- PLAYER_OPTION_ENABLE_DASH = "17"
4613
- }
4614
-
4615
- declare type VideoEnginePlaybackCallback = (success: boolean, errCode?: number, errMsg?: string) => void;
4616
-
4617
- declare interface VideoEngineProps {
4618
- ref?: ForwardedRef<VideoEngineRef>;
4619
- /**
4620
- * Style for wrapper, especially for border-radius
4621
- * @zh 包装器的样式,特别用于设置圆角
4622
- * @defaultValue undefined
4623
- * @Android
4624
- * @iOS
4625
- * @Harmony
4626
- */
4627
- style?: CSSProperties_2;
4628
- /**
4629
- * Be used to select the `x-video-engine`. Please ensure that it is unique throughout the page.
4630
- * @zh 用于选择 `x-video-engine`。请确保在整个页面中唯一。
4631
- * @defaultValue 'videoengine'
4632
- * @Android
4633
- * @iOS
4634
- * @Harmony
4635
- */
4636
- videoEngineId?: string;
4637
- /**
4638
- * Be used to mark the exposure timing. Please ensure that it is unique throughout the page.
4639
- * @zh 用于标记曝光时间点。请确保在整个页面中唯一。
4640
- * @defaultValue 'videoengine'
4641
- * @Android
4642
- * @iOS
4643
- * @Harmony
4644
- */
4645
- scene?: string;
4646
- /**
4647
- * The specified video playback source uses the videoModel data structure recommended by the company to play the resource and is expressed by JSONString.
4648
- * @zh 指定视频播放源,使用公司推荐的视频模型数据结构播放资源,表现为 JSON 字符串。
4649
- * @defaultValue undefined
4650
- * @Android
4651
- * @iOS
4652
- */
4653
- videoModel?: string;
4654
- /**
4655
- * Use vid to specify the video playback source. Most hosts use vid to play. You need to pass in token and domain at the same time. Toutiao can support only passing in vid.
4656
- * @zh 使用 vid 指定视频播放源。大多数主机会使用 vid 来播放。你需要同时传入 token 和 domain。头条支持仅传入 vid。
4657
- * @defaultValue undefined
4658
- * @Android
4659
- * @iOS
4660
- */
4661
- videoId?: string;
4662
- /**
4663
- * To play with vid, you need to pass in both token and domain. Toutiao can support passing in only vid
4664
- * @zh 使用 vid 播放视频需要同时传入 token 和 domain。头条支持仅传入 vid。
4665
- * @defaultValue undefined
4666
- * @Android
4667
- * @iOS
4668
- */
4669
- token?: string;
4670
- /**
4671
- * To play with vid, you need to pass in both token and domain. Toutiao can support passing in only vid. {@link https://lynx.bytedance.net/docs/frontend/components/x-video-engine | see more}.
4672
- * @zh 使用 vid 播放视频需要同时传入 token 和 domain。头条支持仅传入 vid。{@link https://lynx.bytedance.net/docs/frontend/components/x-video-engine | 查看更多}.
4673
- * @defaultValue undefined
4674
- * @Android
4675
- * @iOS
4676
- */
4677
- domain?: string;
4678
- /**
4679
- * For the specified video playback source, once play-url is set, the player will try to load the resource asynchronously. Before bindredirect, all playback control logic will not take effect.
4680
- * @zh 指定视频播放源,一旦设置 play-url,播放器将尝试异步加载资源。在绑定重定向之前,所有播放控制逻辑将无效。
4681
- * @defaultValue undefined
4682
- * @Android
4683
- * @iOS
4684
- * @Harmony
4685
- */
4686
- playUrl?: string;
4687
- /**
4688
- * Poster. Will be dismissed after playing.
4689
- * @zh 海报。播放后将被取消显示。
4690
- * @defaultValue undefined
4691
- * @Android
4692
- * @iOS
4693
- * @Harmony
4694
- */
4695
- poster?: string;
4696
- /**
4697
- * Play automatically after stream data changes.
4698
- * @zh 流数据变化后自动播放。
4699
- * @defaultValue false
4700
- * @Android
4701
- * @iOS
4702
- * @Harmony
4703
- */
4704
- autoPlay?: boolean;
4705
- /**
4706
- * Specifies the video cropping/scaling mode.
4707
- * @zh 指定视频裁剪/缩放模式。
4708
- * @defaultValue 'aspectFit'
4709
- * @Android
4710
- * @iOS
4711
- * @Harmony
4712
- */
4713
- objectfit?: 'aspectFit' | 'aspectFill' | 'scaleToFill';
4714
- /**
4715
- * Rotate or not in full-screen mode
4716
- * @zh 全屏模式下是否旋转
4717
- * @defaultValue 'landscape'
4718
- * @Android
4719
- * @iOS
4720
- * @since 2.18
4721
- */
4722
- fullscreenMode?: 'landscape' | 'portrait';
4723
- /**
4724
- * Live player should muted.
4725
- * @zh 是否静音实时播放器。
4726
- * @defaultValue false
4727
- * @Android
4728
- * @iOS
4729
- * @Harmony
4730
- */
4731
- mute?: boolean;
4732
- /**
4733
- * Loop play. After the video starts playing, loop changes will not change the current play/pause status of the video.
4734
- * @zh 循环播放。视频开始播放后,循环状态变化不会改变视频的当前播放/暂停状态。
4735
- * @defaultValue false
4736
- * @Android
4737
- * @iOS
4738
- * @Harmony
4739
- */
4740
- loop?: boolean;
4741
- /**
4742
- * Automatically pre-render the player (showing the first frame) after resource preparation is completed
4743
- * @zh 在资源准备完成后自动预渲染播放器(显示首帧)
4744
- * @defaultValue true
4745
- * @Android
4746
- * @iOS
4747
- * @Harmony
4748
- */
4749
- autoPrepare?: boolean;
4750
- /**
4751
- * Automatically pre-render the player (showing the first frame) after resource preparation is completed
4752
- * @zh 在资源准备完成后自动预渲染播放器(显示首帧)
4753
- * @defaultValue false
4754
- * @Android
4755
- * @iOS
4756
- * @Harmony
4757
- */
4758
- initTime?: number;
4759
- /**
4760
- * @defaultValue undefined
4761
- * @Android
4762
- * @iOS
4763
- */
4764
- preloadKey?: string;
4765
- /**
4766
- * @defaultValue undefined
4767
- * @Android
4768
- * @iOS
4769
- */
4770
- cacheSize?: number;
4771
- /**
4772
- * For player monitoring.
4773
- * @zh 用于播放器监控。
4774
- * @defaultValue undefined
4775
- * @Android
4776
- * @iOS
4777
- * @Harmony
4778
- */
4779
- tag?: string;
4780
- /**
4781
- * For player monitoring.
4782
- * @zh 用于播放器监控。
4783
- * @defaultValue undefined
4784
- * @Android
4785
- * @iOS
4786
- */
4787
- subTag?: string;
4788
- /**
4789
- * Specify whether to pause the video when the LynxView exits the background or moves out of the screen to prevent sound leakage
4790
- * @zh 指定当 LynxView 退出背景或移出屏幕后是否暂停视频,以防止声音泄漏
4791
- * @defaultValue false
4792
- * @Android
4793
- * @iOS
4794
- */
4795
- pauseOnHide?: boolean;
4796
- /**
4797
- * To customize engine parameters, you need to refer to TTVideoEngine key definition and pass in the correct value type. The client needs to pay attention to it.
4798
- * @zh 要自定义引擎参数,需要参考 TTVideoEngine 键定义并传入正确的值类型。客户端需要注意。
4799
- * @defaultValue undefined
4800
- * @Android
4801
- * @iOS
4802
- */
4803
- playerOption?: Record<VideoEngineOption, `@encode(${string | number | boolean}, ${'[c]' | 'i' | 'l' | 'f' | 'd' | 'b'})`>;
4804
- /**
4805
- * Specify the playback speed.
4806
- * @zh 指定播放速度
4807
- * @defaultValue 1.0
4808
- * @Android
4809
- * @iOS
4810
- */
4811
- playbackSpeed?: number;
4812
- /**
4813
- * Specify the volume, range: [0.0, 1.0]
4814
- * @zh 指定音量,范围:[0.0, 1.0]
4815
- * @defaultValue 1.0
4816
- * @Android
4817
- * @iOS
4818
- * @Harmony
4819
- */
4820
- volume?: number;
4821
- /**
4822
- * Whether to use the default resource loader (Forest、Gecko) to download resources
4823
- * @zh 是否使用默认资源加载器(Forest、Gecko)下载资源
4824
- * @defaultValue true
4825
- * @Android
4826
- * @iOS
4827
- */
4828
- skipRedirection?: boolean;
4829
- /**
4830
- * Execute pending ops automatically
4831
- * @zh 自动执行待处理的操作
4832
- * @defaultValue true
4833
- * @Android
4834
- * @iOS
4835
- * @Harmony
4836
- */
4837
- cachingPendingOps?: boolean;
4838
- /**
4839
- * Custom player backend. The host can inject its own player. `preloadKey` is not supported for playerType === 'light'.
4840
- * @zh 自定义播放器后端。宿主可注入其自己的播放器。playerType === 'light' 不支持 `preloadKey`。
4841
- * @defaultValue 'default'
4842
- * @Android
4843
- * @iOS
4844
- * @docTypeFallback 'default' | 'light' | (string & {})
4845
- */
4846
- playerType?: 'default' | 'light' | (string & {});
4847
- /**
4848
- * Whether to load player instances on demand for performance optimization, commonly used in list scenarios, no need to set in other cases
4849
- * @zh 是否按需加载播放器实例,用于性能优化,常用于列表场景,其他情况无需设置
4850
- * @Android
4851
- * @iOS
4852
- * @Harmony
4853
- */
4854
- attached?: boolean;
4855
- /**
4856
- * Specify the playback resolution.
4857
- * @zh 指定播放分辨率。
4858
- * @defaultValue 'auto'
4859
- * @Android
4860
- * @iOS
4861
- * @since 3.3
4862
- */
4863
- resolution?: 'auto' | '240p' | '360p' | '480p' | '540p' | '720p' | '1080p' | '4k' | 'hdr' | '2k' | '1080p 50fps' | '2k 50fps' | '4k 50fps' | '1080p 60fps' | '2k 60fps' | '4k 60fps' | '1080p 120fps' | '2k 120fps' | '4k 120fps';
4864
- /**
4865
- * The type of the media
4866
- * @zh 媒体的类型
4867
- * @defaultValue 'Video'
4868
- * @Android
4869
- * @iOS
4870
- * @Harmony
4871
- */
4872
- as?: 'Video' | 'Audio';
4873
- /**
4874
- * The player starts playing.
4875
- * @zh 播放器开始播放。
4876
- * @defaultValue undefined
4877
- * @eventProperty
4878
- * @Android
4879
- * @iOS
4880
- * @Harmony
4881
- */
4882
- onPlay?: () => void;
4883
- /**
4884
- * The player is paused.
4885
- * @zh 播放器暂停。
4886
- * @defaultValue undefined
4887
- * @eventProperty
4888
- * @Android
4889
- * @iOS
4890
- * @Harmony
4891
- */
4892
- onPause?: () => void;
4893
- /**
4894
- * The player is stopped.
4895
- * @zh 播放器停止。
4896
- * @defaultValue undefined
4897
- * @eventProperty
4898
- * @Android
4899
- * @iOS
4900
- * @Harmony
4901
- */
4902
- onStop?: () => void;
4903
- /**
4904
- * The player is seek.
4905
- * @zh 播放器搜索。
4906
- * @defaultValue undefined
4907
- * @eventProperty
4908
- * @Android
4909
- * @iOS
4910
- */
4911
- onSeek?: (willPlay: boolean) => void;
4912
- /**
4913
- * The player finish playing.
4914
- * @zh 播放器播放结束。
4915
- * @defaultValue undefined
4916
- * @eventProperty
4917
- * @Android
4918
- * @iOS
4919
- * @Harmony
4920
- */
4921
- onEnded?: () => void;
4922
- /**
4923
- * The src is changed
4924
- * @zh 源文件发生变化
4925
- * @defaultValue undefined
4926
- * @eventProperty
4927
- * @Android
4928
- * @iOS
4929
- * @Harmony
4930
- */
4931
- onSrcChanged?: () => void;
4932
- /**
4933
- * The player receives an error.
4934
- * @zh 播放器接收到错误信息。
4935
- * @defaultValue undefined
4936
- * @eventProperty
4937
- * @Android
4938
- * @iOS
4939
- * @Harmony
4940
- */
4941
- onError?: (e: {
4942
- errorCode: number;
4943
- errorMsg: string;
4944
- }) => void;
4945
- /**
4946
- * The player's progress is updated
4947
- * @zh 播放器进度更新
4948
- * @defaultValue undefined
4949
- * @eventProperty
4950
- * @Android
4951
- * @iOS
4952
- * @Harmony
4953
- */
4954
- onTimeUpdate?: (e: {
4955
- detail: {
4956
- current: number;
4957
- total: number;
4958
- };
4959
- }) => void;
4960
- /**
4961
- * If you access gecko resources, the loading is asynchronous
4962
- * @zh 如果访问 gecko 资源,加载是异步的
4963
- * @defaultValue undefined
4964
- * @eventProperty
4965
- * @Android
4966
- * @iOS
4967
- */
4968
- onRedirected?: () => void;
4969
- /**
4970
- * Triggered when the video starts rendering the first frame
4971
- * @zh 视频开始渲染首帧时触发
4972
- * @defaultValue undefined
4973
- * @eventProperty
4974
- * @Android
4975
- * @iOS
4976
- * @Harmony
4977
- */
4978
- onFirstFrame?: () => void;
4979
- /**
4980
- * The player is ready to play.
4981
- * @zh 播放器准备好播放。
4982
- * @defaultValue undefined
4983
- * @eventProperty
4984
- * @Android
4985
- * @iOS
4986
- */
4987
- onPrepared?: () => void;
4988
- /**
4989
- * The player is visible. `scene` and `videoengineId` should be specified.
4990
- * @zh 播放器可见。应该指定 `scene` 和 `videoengineId`。
4991
- * @defaultValue undefined
4992
- * @eventProperty
4993
- * @Android
4994
- * @iOS
4995
- */
4996
- onAppear?: () => void;
4997
- /**
4998
- * The player is invisible. `scene` and `videoengineId` should be specified.
4999
- * @zh 播放器不可见。应该指定 `scene` 和 `videoengineId`。
5000
- * @defaultValue undefined
5001
- * @eventProperty
5002
- * @Android
5003
- * @iOS
5004
- */
5005
- onDisappear?: () => void;
5006
- }
5007
-
5008
- declare interface VideoEngineRef {
5009
- /**
5010
- * Start playing. You should start play after resource redirect (after `onRedirected`)
5011
- * @zh 开始播放。你应该在资源重定向后(`onRedirected`)开始播放
5012
- * @remarks When this operation is successful, it only means that the operation was successfully submitted to the player, and does not mean that the player status has changed.
5013
- * @Android
5014
- * @iOS
5015
- * @Harmony
5016
- */
5017
- play: (
5018
- /**
5019
- * Invocation callback,errCode refer to {@link https://lynx.bytedance.net/docs/frontend/lynx-api/selector-query/selector-query | SelectorQuery}
5020
- * @zh 调用回调,errCode 参考 {@link https://lynx.bytedance.net/docs/frontend/lynx-api/selector-query/selector-query | SelectorQuery}
5021
- * @Android
5022
- * @iOS
5023
- * @Harmony
5024
- */
5025
- callback?: VideoEnginePlaybackCallback) => void;
5026
- /**
5027
- * Pause playing
5028
- * @zh 暂停播放
5029
- * @remarks When this operation is successful, it only means that the operation was successfully submitted to the player, and does not mean that the player status has changed.
5030
- * @Android
5031
- * @iOS
5032
- * @Harmony
5033
- */
5034
- pause: (
5035
- /**
5036
- * Invocation callback,errCode refer to {@link https://lynx.bytedance.net/docs/frontend/lynx-api/selector-query/selector-query | SelectorQuery}
5037
- * @zh 调用回调,errCode 参考 {@link https://lynx.bytedance.net/docs/frontend/lynx-api/selector-query/selector-query | SelectorQuery}
5038
- * @Android
5039
- * @iOS
5040
- */
5041
- callback?: VideoEnginePlaybackCallback) => void;
5042
- /**
5043
- * Stop playing
5044
- * @zh 停止播放
5045
- * @remarks When this operation is successful, it only means that the operation was successfully submitted to the player, and does not mean that the player status has changed.
5046
- * @Android
5047
- * @iOS
5048
- * @Harmony
5049
- */
5050
- stop: (
5051
- /**
5052
- * Invocation callback,errCode refer to {@link https://lynx.bytedance.net/docs/frontend/lynx-api/selector-query/selector-query | SelectorQuery}
5053
- * @zh 调用回调,errCode 参考 {@link https://lynx.bytedance.net/docs/frontend/lynx-api/selector-query/selector-query | SelectorQuery}
5054
- * @Android
5055
- * @iOS
5056
- */
5057
- callback?: VideoEnginePlaybackCallback) => void;
5058
- /**
5059
- * Seek
5060
- * @zh 定位播放位置
5061
- * @remarks When this operation is successful, it only means that the operation was successfully submitted to the player, and does not mean that the player status has changed.
5062
- * @Android
5063
- * @iOS
5064
- */
5065
- seek: (position: number, play: boolean,
5066
- /**
5067
- * Invocation callback,errCode refer to {@link https://lynx.bytedance.net/docs/frontend/lynx-api/selector-query/selector-query | SelectorQuery}
5068
- * @zh 调用回调,errCode 参考 {@link https://lynx.bytedance.net/docs/frontend/lynx-api/selector-query/selector-query | SelectorQuery}
5069
- * @Android
5070
- * @iOS
5071
- */
5072
- callback?: VideoEnginePlaybackCallback) => void;
5073
- /**
5074
- * Replay, it is recommended to call it after the playback ends.
5075
- * @zh 重新播放,建议在播放结束后调用
5076
- * @remarks When this operation is successful, it only means that the operation was successfully submitted to the player, and does not mean that the player status has changed.
5077
- * @Android
5078
- * @iOS
5079
- */
5080
- replay: (
5081
- /**
5082
- * Whether to play after replay. If not, it will be stopped at the first frame.
5083
- * @zh 是否在重新播放后开始播放。如果为 false,则会在第一帧停止。
5084
- * @Android
5085
- * @iOS
5086
- */
5087
- play: boolean,
5088
- /**
5089
- * Invocation callback,errCode refer to {@link https://lynx.bytedance.net/docs/frontend/lynx-api/selector-query/selector-query | SelectorQuery}
5090
- * @zh 调用回调,errCode 参考 {@link https://lynx.bytedance.net/docs/frontend/lynx-api/selector-query/selector-query | SelectorQuery}
5091
- * @Android
5092
- * @iOS
5093
- */
5094
- callback?: VideoEnginePlaybackCallback) => void;
5095
- /**
5096
- * Prepare manually.
5097
- * @zh 手动准备。
5098
- * @Android
5099
- * @iOS
5100
- * @Harmony
5101
- */
5102
- prepare: (
5103
- /**
5104
- * Invocation callback,errCode refer to {@link https://lynx.bytedance.net/docs/frontend/lynx-api/selector-query/selector-query | SelectorQuery}
5105
- * @zh 调用回调,errCode 参考 {@link https://lynx.bytedance.net/docs/frontend/lynx-api/selector-query/selector-query | SelectorQuery}
5106
- * @Android
5107
- * @iOS
5108
- */
5109
- callback?: VideoEnginePlaybackCallback) => void;
5110
- /**
5111
- * Get playback duration.
5112
- * @zh 获取播放时长。
5113
- * @Android
5114
- * @iOS
5115
- * @Harmony
5116
- */
5117
- getDuration: (
5118
- /**
5119
- * Invocation callback,errCode refer to {@link https://lynx.bytedance.net/docs/frontend/lynx-api/selector-query/selector-query | SelectorQuery}
5120
- * @zh 调用回调,errCode 参考 {@link https://lynx.bytedance.net/docs/frontend/lynx-api/selector-query/selector-query | SelectorQuery}
5121
- * @Android
5122
- * @iOS
5123
- */
5124
- callback?: (success: boolean,
5125
- /**
5126
- * Duration, in ms.
5127
- * @zh 时长,以毫秒为单位
5128
- * @Android
5129
- * @iOS
5130
- */
5131
- duration: number, errCode?: number, errMsg?: string) => void) => void;
5132
- /**
5133
- * Enter full screen. It need client impl, {@link https://lynx.bytedance.net/docs/frontend/components/x-video-engine | see more}.
5134
- * @zh 进入全屏。需要客户端实现,{@link https://lynx.bytedance.net/docs/frontend/components/x-video-engine | 了解更多}.
5135
- * @Android
5136
- * @iOS
5137
- */
5138
- enterFullScreen: (
5139
- /**
5140
- * Invocation callback,errCode refer to {@link https://lynx.bytedance.net/docs/frontend/lynx-api/selector-query/selector-query | SelectorQuery}
5141
- * @zh 调用回调,errCode 参考 {@link https://lynx.bytedance.net/docs/frontend/lynx-api/selector-query/selector-query | SelectorQuery}
5142
- * @Android
5143
- * @iOS
5144
- */
5145
- callback?: VideoEnginePlaybackCallback) => void;
5146
- /**
5147
- * Exit full screen. It need client impl, {@link https://lynx.bytedance.net/docs/frontend/components/x-video-engine | see more}.
5148
- * @zh 退出全屏。需要客户端实现,{@link https://lynx.bytedance.net/docs/frontend/components/x-video-engine | 了解更多}.
5149
- * @Android
5150
- * @iOS
5151
- */
5152
- exitFullScreen: (
5153
- /**
5154
- * Invocation callback,errCode refer to {@link https://lynx.bytedance.net/docs/frontend/lynx-api/selector-query/selector-query | SelectorQuery}
5155
- * @zh 调用回调,errCode 参考 {@link https://lynx.bytedance.net/docs/frontend/lynx-api/selector-query/selector-query | SelectorQuery}
5156
- * @Android
5157
- * @iOS
5158
- */
5159
- callback?: VideoEnginePlaybackCallback) => void;
5160
- /**
5161
- * Reset the Video. It is required to reset the Video if it is reused. Will be deprecated after being refactored by MTS.
5162
- * @zh 重置视频。如果要重复使用视频,则需要重置视频。重构后将弃用。
5163
- * @Android
5164
- * @iOS
5165
- * @Harmony
5166
- */
5167
- reset: () => void;
5168
- /**
5169
- * Handle the poster manually
5170
- * @zh 手动处理海报
5171
- * @Android
5172
- * @iOS
5173
- * @Harmony
5174
- */
5175
- operatePoster: (display: boolean) => void;
5176
- }
5177
-
5178
4079
  export declare interface VideoProps extends VideoEngineProps {
5179
4080
  }
5180
4081
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doubao-dev/framework",
3
- "version": "0.8.0",
3
+ "version": "0.9.1",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {
@@ -68,7 +68,7 @@
68
68
  "types.d.ts"
69
69
  ],
70
70
  "dependencies": {
71
- "@lynx-js/types": "4.3.0",
71
+ "@lynx-js/types": "4.4.2",
72
72
  "@types/react": "18.3.27"
73
73
  },
74
74
  "publishConfig": {