@netless/telebox-insider 1.0.0-alpha.21 → 1.0.0-alpha.24

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.
@@ -178,6 +178,8 @@ export declare class TeleBox {
178
178
  unmountUserStyles(): void;
179
179
  /** DOM of the box */
180
180
  $box: HTMLElement;
181
+ /** DOM of main area of the box. Including $body and $footer. */
182
+ $main: HTMLElement;
181
183
  /** DOM of the box body */
182
184
  $body: HTMLElement;
183
185
  /** DOM of the box content container inside box body */
@@ -195,7 +197,7 @@ export declare class TeleBox {
195
197
  private _render;
196
198
  private _renderStage;
197
199
  private _handleTrackStart?;
198
- handleTrackStart: (ev: MouseEvent | TouchEvent) => void;
200
+ handleTrackStart: (ev: PointerEvent) => void;
199
201
  private _renderResizeHandlers;
200
202
  destroy(): Promise<void>;
201
203
  /**
@@ -32,11 +32,5 @@ export declare class DefaultTitleBar implements TeleTitleBar {
32
32
  clientX: number;
33
33
  clientY: number;
34
34
  };
35
- protected handleTitleBarClick: (ev: MouseEvent) => void;
36
- protected lastTitleBarTouch: {
37
- timestamp: number;
38
- clientX: number;
39
- clientY: number;
40
- };
41
- protected handleTitleBarTouch: (ev: TouchEvent) => void;
35
+ protected handleTitleBarClick: (ev: PointerEvent) => void;
42
36
  }
@@ -13,7 +13,7 @@ export interface TeleTitleBarConfig {
13
13
  state$: ReadonlyVal<TeleBoxState, boolean>;
14
14
  namespace?: string;
15
15
  onEvent?: (event: TeleTitleBarEvent) => void;
16
- onDragStart?: (event: MouseEvent | TouchEvent) => void;
16
+ onDragStart?: (event: PointerEvent) => void;
17
17
  }
18
18
  export interface TeleTitleBar {
19
19
  render(): HTMLElement;