@fastkit/scroller 0.8.18 → 0.10.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020-present, Ayumu Fujii (dadajam4) and Fastkit contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1 +1,4 @@
1
- # @fastkit/scroller
1
+ # @fastkit/scroller
2
+
3
+ ## Documentation
4
+ https://dadajam4.github.io/fastkit/scroller/
@@ -1,17 +1,11 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var ev = require('@fastkit/ev');
6
4
  var visibility = require('@fastkit/visibility');
7
5
  var helpers = require('@fastkit/helpers');
8
6
  var tinyLogger = require('@fastkit/tiny-logger');
9
7
  var BezierEasing = require('bezier-easing');
10
8
 
11
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
12
-
13
- var BezierEasing__default = /*#__PURE__*/_interopDefaultLegacy(BezierEasing);
14
-
15
9
  // export const HAS_WINDOW = typeof window !== 'undefined';
16
10
  // export function warn(message: string): void {
17
11
  // if (typeof console === 'object' && console.warn) {
@@ -257,7 +251,7 @@ function scroll(diffX, diffY, options = {}, _computedValues) {
257
251
  else {
258
252
  easingValues = easing;
259
253
  }
260
- const easingFn = BezierEasing__default.apply(BezierEasing__default, easingValues);
254
+ const easingFn = BezierEasing.apply(BezierEasing, easingValues);
261
255
  on($container, abortEvents, abortFn, { passive: true });
262
256
  window.requestAnimationFrame(step);
263
257
  return result;
@@ -1,17 +1,11 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
3
  var ev = require('@fastkit/ev');
6
4
  var visibility = require('@fastkit/visibility');
7
5
  var helpers = require('@fastkit/helpers');
8
6
  var tinyLogger = require('@fastkit/tiny-logger');
9
7
  var BezierEasing = require('bezier-easing');
10
8
 
11
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
12
-
13
- var BezierEasing__default = /*#__PURE__*/_interopDefaultLegacy(BezierEasing);
14
-
15
9
  // export const HAS_WINDOW = typeof window !== 'undefined';
16
10
  // export function warn(message: string): void {
17
11
  // if (typeof console === 'object' && console.warn) {
@@ -257,7 +251,7 @@ function scroll(diffX, diffY, options = {}, _computedValues) {
257
251
  else {
258
252
  easingValues = easing;
259
253
  }
260
- const easingFn = BezierEasing__default.apply(BezierEasing__default, easingValues);
254
+ const easingFn = BezierEasing.apply(BezierEasing, easingValues);
261
255
  on($container, abortEvents, abortFn, { passive: true });
262
256
  window.requestAnimationFrame(step);
263
257
  return result;
package/package.json CHANGED
@@ -1,10 +1,18 @@
1
1
  {
2
2
  "name": "@fastkit/scroller",
3
- "version": "0.8.18",
4
- "description": "@fastkit/scroller",
3
+ "version": "0.10.0",
4
+ "description": "Library for controlling the scrolling state of DOM elements.",
5
5
  "buildOptions": {
6
6
  "name": "Scroller"
7
7
  },
8
+ "_docs": {
9
+ "scope": "",
10
+ "feature": "ui",
11
+ "description": {
12
+ "en": "Library for controlling the scrolling state of DOM elements.",
13
+ "ja": "DOM要素のスクロール状態をコントロールするためのライブラリ。"
14
+ }
15
+ },
8
16
  "main": "index.js",
9
17
  "module": "dist/scroller.mjs",
10
18
  "files": [
@@ -17,7 +25,8 @@
17
25
  "url": "git+https://github.com/dadajam4/fastkit.git"
18
26
  },
19
27
  "keywords": [
20
- "fastkit"
28
+ "fastkit",
29
+ "scroll"
21
30
  ],
22
31
  "author": "dadajam4",
23
32
  "license": "MIT",
@@ -26,9 +35,9 @@
26
35
  },
27
36
  "homepage": "https://github.com/dadajam4/fastkit/tree/main/packages/scroller#readme",
28
37
  "dependencies": {
29
- "@fastkit/ev": "0.8.18",
30
- "@fastkit/visibility": "0.8.18",
31
- "@fastkit/tiny-logger": "0.8.18",
38
+ "@fastkit/ev": "0.10.0",
39
+ "@fastkit/visibility": "0.10.0",
40
+ "@fastkit/tiny-logger": "0.10.0",
32
41
  "bezier-easing": "^2.1.0"
33
42
  }
34
43
  }