@karta.io/simplebar 1.0.0-beta.50 → 1.0.0-beta.52

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@karta.io/simplebar",
3
- "version": "1.0.0-beta.50",
3
+ "version": "1.0.0-beta.52",
4
4
  "description": "Клон core части библиотеки simplebar",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -21,21 +21,15 @@
21
21
  "license": "MIT",
22
22
  "dependencies": {
23
23
  "@juggle/resize-observer": "3.4.0",
24
- "lodash": "4.17.23"
24
+ "lodash": "4.18.1"
25
25
  },
26
26
  "devDependencies": {
27
- "unbuild": "3.6.1"
28
- },
29
- "lint-staged": {
30
- "*.{js,jsx,json}": [
31
- "prettier-eslint --write",
32
- "git add"
33
- ]
27
+ "rollup-plugin-copy": "3.5.0",
28
+ "vite": "8.2.0"
34
29
  },
35
30
  "scripts": {
36
- "dev": "rollup -c -w",
37
- "build": "unbuild",
38
- "precommit": "lint-staged",
31
+ "dev": "vite build --watch",
32
+ "build": "vite build",
39
33
  "pub": "pnpm build && pnpm publish --no-git-checks --tag latest"
40
34
  }
41
35
  }
@@ -1,50 +0,0 @@
1
- declare namespace SimpleBar {
2
- interface KnownClassNamesOptions {
3
- contentEl?: string;
4
- contentWrapper?: string;
5
- offset?: string;
6
- mask?: string;
7
- wrapper?: string;
8
- placeholder?: string;
9
- scrollbar?: string;
10
- track?: string;
11
- heightAutoObserverWrapperEl?: string;
12
- heightAutoObserverEl?: string;
13
- visible?: string;
14
- horizontal?: string;
15
- vertical?: string;
16
- hover?: string;
17
- dragging?: string;
18
- }
19
-
20
- type ClassNamesOptions = KnownClassNamesOptions & {
21
- [className: string]: string;
22
- };
23
-
24
- interface Options {
25
- autoHide?: boolean;
26
- classNames?: ClassNamesOptions;
27
- forceVisible?: boolean | 'x' | 'y';
28
- direction?: 'rtl' | 'ltr';
29
- timeout?: number;
30
- clickOnTrack?: boolean;
31
- scrollbarMinSize?: number;
32
- scrollbarMaxSize?: number;
33
- }
34
- }
35
-
36
- declare class SimpleBar {
37
- static removeObserver(): void;
38
- static instances: Pick<WeakMap<HTMLElement, SimpleBar>, 'get' | 'has'>;
39
-
40
- constructor(element: HTMLElement, options?: SimpleBar.Options);
41
-
42
- recalculate(): void;
43
- getScrollElement(): HTMLElement;
44
- getContentElement(): HTMLElement;
45
- unMount(): void;
46
-
47
- el: HTMLElement;
48
- }
49
-
50
- export = SimpleBar;
@@ -1,50 +0,0 @@
1
- declare namespace SimpleBar {
2
- interface KnownClassNamesOptions {
3
- contentEl?: string;
4
- contentWrapper?: string;
5
- offset?: string;
6
- mask?: string;
7
- wrapper?: string;
8
- placeholder?: string;
9
- scrollbar?: string;
10
- track?: string;
11
- heightAutoObserverWrapperEl?: string;
12
- heightAutoObserverEl?: string;
13
- visible?: string;
14
- horizontal?: string;
15
- vertical?: string;
16
- hover?: string;
17
- dragging?: string;
18
- }
19
-
20
- type ClassNamesOptions = KnownClassNamesOptions & {
21
- [className: string]: string;
22
- };
23
-
24
- interface Options {
25
- autoHide?: boolean;
26
- classNames?: ClassNamesOptions;
27
- forceVisible?: boolean | 'x' | 'y';
28
- direction?: 'rtl' | 'ltr';
29
- timeout?: number;
30
- clickOnTrack?: boolean;
31
- scrollbarMinSize?: number;
32
- scrollbarMaxSize?: number;
33
- }
34
- }
35
-
36
- declare class SimpleBar {
37
- static removeObserver(): void;
38
- static instances: Pick<WeakMap<HTMLElement, SimpleBar>, 'get' | 'has'>;
39
-
40
- constructor(element: HTMLElement, options?: SimpleBar.Options);
41
-
42
- recalculate(): void;
43
- getScrollElement(): HTMLElement;
44
- getContentElement(): HTMLElement;
45
- unMount(): void;
46
-
47
- el: HTMLElement;
48
- }
49
-
50
- export { SimpleBar as default };