@vanira/sdk 0.0.14 → 0.0.15

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.
@@ -0,0 +1,20 @@
1
+ export declare class DraggableController {
2
+ private target;
3
+ private onDrag;
4
+ private onDragEnd;
5
+ private isDragging;
6
+ private startX;
7
+ private startY;
8
+ private initialX;
9
+ private initialY;
10
+ private dragThreshold;
11
+ constructor(target: HTMLElement, onDrag: (x: number, y: number) => void, onDragEnd: () => void);
12
+ private init;
13
+ private onMouseDown;
14
+ private onTouchStart;
15
+ private startDrag;
16
+ private onMouseMove;
17
+ private onTouchMove;
18
+ private moveDrag;
19
+ private onMouseUp;
20
+ }
@@ -1,17 +1,22 @@
1
1
  export declare class FloatingButton {
2
2
  private onClick;
3
+ private onMove?;
4
+ private onMoveEnd?;
3
5
  private element;
4
6
  private iconContainer;
7
+ private posX;
8
+ private posY;
5
9
  private isDragging;
6
10
  private startX;
7
11
  private startY;
8
12
  private currentX;
9
13
  private currentY;
10
14
  private hasMoved;
11
- constructor(onClick: () => void, initialIcon?: string);
15
+ constructor(onClick: () => void, onMove?: ((x: number, y: number) => void) | undefined, onMoveEnd?: ((x: number, y: number) => void) | undefined, initialIcon?: string);
12
16
  private dragStart;
13
17
  getElement(): HTMLButtonElement;
14
18
  setIcon(iconHtml: string): void;
15
19
  setPosition(positionStyle: string): void;
20
+ updateCoordinates(x: number, y: number): void;
16
21
  static get styles(): string;
17
22
  }
@@ -10,6 +10,7 @@ export declare class FloatingWelcomeChips {
10
10
  setChips(chips: WelcomeChip[]): void;
11
11
  getElement(): HTMLElement;
12
12
  setPosition(positionStyle: string): void;
13
+ updateCoordinates(x: number, y: number, isBottom?: boolean): void;
13
14
  private render;
14
15
  static get styles(): string;
15
16
  }
@@ -19,6 +19,12 @@ export declare class Panel {
19
19
  top?: string;
20
20
  left?: string;
21
21
  }): void;
22
+ updatePosition(position: {
23
+ bottom?: string;
24
+ right?: string;
25
+ top?: string;
26
+ left?: string;
27
+ }): void;
22
28
  close(): void;
23
29
  toggleMaximize(): void;
24
30
  static get styles(): string;