@univerjs/ui 0.20.0 → 0.20.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.
@@ -16,14 +16,18 @@
16
16
  import type { IDisposable } from '@univerjs/core';
17
17
  import type { ISidebarMethodOptions } from '../../views/components/sidebar/Sidebar';
18
18
  import type { ISidebarService } from './sidebar.service';
19
+ import { Disposable } from '@univerjs/core';
19
20
  import { Subject } from 'rxjs';
20
- export declare class DesktopSidebarService implements ISidebarService {
21
+ export declare class DesktopSidebarService extends Disposable implements ISidebarService {
21
22
  private _sidebarOptions;
22
23
  readonly sidebarOptions$: Subject<ISidebarMethodOptions>;
23
24
  readonly scrollEvent$: Subject<Event>;
24
25
  private _container?;
26
+ private _openAnimationFrameId;
25
27
  get visible(): boolean;
26
28
  get options(): ISidebarMethodOptions;
29
+ dispose(): void;
30
+ private _clearPendingOpenFrame;
27
31
  open(params: ISidebarMethodOptions): IDisposable;
28
32
  close(id?: string): void;
29
33
  getContainer(): HTMLElement | undefined;
@@ -23,7 +23,7 @@ export interface ISidebarMethodOptions {
23
23
  footer?: ICustomLabelProps;
24
24
  visible?: boolean;
25
25
  width?: number | string;
26
- onClose?: () => void;
26
+ onClose?: (id?: string) => void;
27
27
  onOpen?: () => void;
28
28
  }
29
29
  export declare function Sidebar(): import("react/jsx-runtime").JSX.Element;