Skip to content

Commit

Permalink
Changes:
Browse files Browse the repository at this point in the history
* removed all resize/scroll event listeners in favor of IntersectionObserver,  ResizeObserver or the new PositionObserver
* update dependencies
  • Loading branch information
thednp committed Oct 27, 2024
1 parent 4518c04 commit 44b45c0
Show file tree
Hide file tree
Showing 81 changed files with 2,661 additions and 3,244 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- name: Build
run: pnpm build

- name: ViTst
- name: ViTest
run: pnpm test

- name: Upload coverage report to coveralls.io...
Expand Down
345 changes: 174 additions & 171 deletions dist/bootstrap-native.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/bootstrap-native.cjs.map

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion dist/bootstrap-native.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import PositionObserver$1 from '@thednp/position-observer';

export interface BaseOptions {
[key: string]: unknown;
}
Expand Down Expand Up @@ -187,6 +189,7 @@ export declare class Dropdown extends BaseComponent {
open: boolean;
parentElement: HTMLElement;
menu: HTMLElement;
_observer: IntersectionObserver;
/**
* @param target Element or string selector
* @param config the instance options
Expand Down Expand Up @@ -233,6 +236,7 @@ export declare class Modal extends BaseComponent {
isStatic: boolean;
hasFade: boolean;
relatedTarget: HTMLElement | null;
_observer: ResizeObserver;
/**
* @param target usually the `.modal` element
* @param config instance options
Expand Down Expand Up @@ -340,6 +344,7 @@ export declare class Tooltip extends BaseComponent {
offsetParent?: HTMLElement;
enabled: boolean;
id: string;
_observer: PositionObserver$1;
/**
* @param target the target element
* @param config the instance options
Expand Down Expand Up @@ -426,14 +431,16 @@ export declare class ScrollSpy extends BaseComponent {
static getInstance: (element: HTMLElement) => ScrollSpy | null;
options: ScrollSpyOptions;
target: HTMLElement | null;
scrollTarget: HTMLElement | Window;
scrollTarget: HTMLElement;
scrollTop: number;
maxScroll: number;
scrollHeight: number;
activeItem: HTMLElement | null;
items: HTMLElement[];
targets: HTMLElement[];
itemsLength: number;
offsets: number[];
_observer: PositionObserver$1;
/**
* @param target the target element
* @param config the instance options
Expand Down
341 changes: 172 additions & 169 deletions dist/bootstrap-native.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/bootstrap-native.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 44b45c0

Please sign in to comment.