seamless-scroll-polyfill
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -0,1 +1,8 @@ | ||
## [2.3.1](https://github.com/magic-akari/seamless-scroll-polyfill/compare/v2.3.0...v2.3.1) (2023-03-02) | ||
### Bug Fixes | ||
* nodenext and exports ([a455967](https://github.com/magic-akari/seamless-scroll-polyfill/commit/a45596773af020e1103c82fdcbd525e2a62a161a)) | ||
# [2.3.0](https://github.com/magic-akari/seamless-scroll-polyfill/compare/v2.2.1...v2.3.0) (2023-01-26) | ||
@@ -2,0 +9,0 @@ |
@@ -1,2 +0,2 @@ | ||
import type { IScrollConfig } from "./scroll-step"; | ||
import type { IScrollConfig } from "./scroll-step.js"; | ||
export declare const checkBehavior: (behavior?: string) => behavior is ScrollBehavior | undefined; | ||
@@ -3,0 +3,0 @@ export declare function elementScrollXY(this: Element, x: number, y: number): void; |
@@ -1,2 +0,2 @@ | ||
import type { IScrollConfig } from "./scroll-step"; | ||
import type { IScrollConfig } from "./scroll-step.js"; | ||
type ScrollMethod<T extends Element | typeof window> = (target: T, scrollOptions?: ScrollToOptions, config?: IScrollConfig) => void; | ||
@@ -3,0 +3,0 @@ export declare const scroll: ScrollMethod<(Window & typeof globalThis) | Element>; |
@@ -1,2 +0,2 @@ | ||
import type { IScrollConfig } from "./scroll-step"; | ||
import type { IScrollConfig } from "./scroll-step.js"; | ||
export declare const elementScrollPolyfill: (config?: IScrollConfig) => void; | ||
@@ -3,0 +3,0 @@ export declare const elementScrollToPolyfill: (config?: IScrollConfig) => void; |
@@ -1,4 +0,4 @@ | ||
import type { IScrollConfig } from "./scroll-step"; | ||
import type { IScrollConfig } from "./scroll-step.js"; | ||
export declare const scrollIntoView: (element: Element, scrollIntoViewOptions?: ScrollIntoViewOptions, config?: IScrollConfig) => void; | ||
export declare const elementScrollIntoView: (element: Element, scrollIntoViewOptions?: ScrollIntoViewOptions, config?: IScrollConfig) => void; | ||
//# sourceMappingURL=scrollIntoView.d.ts.map |
@@ -1,3 +0,3 @@ | ||
import type { IScrollConfig } from "./scroll-step"; | ||
import type { IScrollConfig } from "./scroll-step.js"; | ||
export declare const elementScrollIntoViewPolyfill: (config?: IScrollConfig) => void; | ||
//# sourceMappingURL=scrollIntoView.polyfill.d.ts.map |
@@ -5,3 +5,3 @@ { | ||
"description": "Smooth Scroll behavior polyfill", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"author": { | ||
@@ -20,31 +20,36 @@ "name": "Dustan Kasten", | ||
"devDependencies": { | ||
"@commitlint/cli": "^17.4.2", | ||
"@commitlint/config-conventional": "^17.4.2", | ||
"@commitlint/cli": "^17.4.4", | ||
"@commitlint/config-conventional": "^17.4.4", | ||
"@semantic-release/changelog": "^6.0.2", | ||
"@semantic-release/git": "^10.0.1", | ||
"@typescript-eslint/eslint-plugin": "^5.49.0", | ||
"@typescript-eslint/parser": "^5.49.0", | ||
"@typescript-eslint/eslint-plugin": "^5.54.0", | ||
"@typescript-eslint/parser": "^5.54.0", | ||
"commitizen": "^4.3.0", | ||
"cz-conventional-changelog": "^3.3.0", | ||
"eslint": "^8.32.0", | ||
"eslint": "^8.35.0", | ||
"eslint-config-akari": "^0.0.6", | ||
"eslint-config-prettier": "^8.6.0", | ||
"husky": "^8.0.3", | ||
"lint-staged": "^13.1.0", | ||
"prettier": "^2.8.3", | ||
"rollup": "^3.10.1", | ||
"lint-staged": "^13.1.2", | ||
"prettier": "^2.8.4", | ||
"rollup": "^3.18.0", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"rollup-plugin-typescript2": "^0.34.1", | ||
"semantic-release": "^20.1.0", | ||
"tslib": "^2.4.1", | ||
"typescript": "^4.9.4" | ||
"semantic-release": "^20.1.1", | ||
"tslib": "^2.5.0", | ||
"typescript": "^4.9.5" | ||
}, | ||
"packageManager": "pnpm@7.26.0", | ||
"packageManager": "pnpm@7.28.0", | ||
"type": "module", | ||
"main": "./lib/bundle.cjs", | ||
"browser": "./lib/bundle.min.cjs", | ||
"main": "./lib/bundle.umd.cjs", | ||
"browser": "./lib/browser.min.js", | ||
"module": "./lib/index.js", | ||
"exports": { | ||
"import": "./lib/index.js", | ||
"default": "./lib/bundle.cjs" | ||
".": { | ||
"types": "./lib/index.d.ts", | ||
"import": "./lib/index.js", | ||
"require": "./lib/index.cjs", | ||
"default": "./lib/bundle.umd.cjs" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
@@ -51,0 +56,0 @@ "types": "lib/index.d.ts", |
@@ -43,3 +43,3 @@ [![Build Status](https://travis-ci.org/magic-akari/seamless-scroll-polyfill.svg?branch=master)](https://travis-ci.org/magic-akari/seamless-scroll-polyfill) | ||
<!-- please replace the `latest` with specific version --> | ||
<script src="https://cdn.jsdelivr.net/npm/seamless-scroll-polyfill@latest/lib/bundle.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/seamless-scroll-polyfill@latest"></script> | ||
<script> | ||
@@ -46,0 +46,0 @@ // patch all methods |
@@ -18,3 +18,8 @@ import { terser } from "rollup-plugin-terser"; | ||
{ | ||
file: "lib/bundle.cjs", | ||
file: "lib/index.cjs", | ||
format: "cjs", | ||
sourcemap: true, | ||
}, | ||
{ | ||
file: "lib/bundle.umd.cjs", | ||
name: "seamless", | ||
@@ -25,5 +30,5 @@ format: "umd", | ||
{ | ||
file: "lib/bundle.min.cjs", | ||
file: "lib/browser.min.js", | ||
name: "seamless", | ||
format: "umd", | ||
format: "iife", | ||
sourcemap: true, | ||
@@ -30,0 +35,0 @@ plugins: [terser()], |
@@ -1,2 +0,2 @@ | ||
import type { IScrollConfig } from "./scroll-step"; | ||
import type { IScrollConfig } from "./scroll-step.js"; | ||
@@ -3,0 +3,0 @@ export const checkBehavior = (behavior?: string): behavior is undefined | ScrollBehavior => { |
import { backupMethod, isScrollBehaviorSupported, markPolyfill, modifyPrototypes } from "./common.js"; | ||
import type { IScrollConfig } from "./scroll-step"; | ||
import type { IScrollConfig } from "./scroll-step.js"; | ||
import { scroll, scrollBy, scrollTo } from "./scroll.js"; | ||
@@ -4,0 +4,0 @@ |
@@ -11,3 +11,3 @@ import { | ||
import { scrollEndEvent } from "./scroll-end-event.js"; | ||
import type { IContext, IScrollConfig } from "./scroll-step"; | ||
import type { IContext, IScrollConfig } from "./scroll-step.js"; | ||
import { now, step } from "./scroll-step.js"; | ||
@@ -14,0 +14,0 @@ |
import { backupMethod, isObject, isScrollBehaviorSupported, modifyPrototypes } from "./common.js"; | ||
import type { IScrollConfig } from "./scroll-step"; | ||
import type { IScrollConfig } from "./scroll-step.js"; | ||
import { elementScrollIntoView } from "./scrollIntoView.js"; | ||
@@ -4,0 +4,0 @@ |
/* eslint-disable no-bitwise */ | ||
import { checkBehavior, failedExecuteInvalidEnumValue, scrollingElement } from "./common.js"; | ||
import type { IScrollConfig } from "./scroll-step"; | ||
import type { IScrollConfig } from "./scroll-step.js"; | ||
import { elementScroll } from "./scroll.js"; | ||
@@ -5,0 +5,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
323824
70
3042