@thi.ng/rstream-gestures 4.1.31 → 4.1.33

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2022-11-23T22:46:54Z
3
+ - **Last updated**: 2022-12-16T12:52:25Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  <!-- This file is generated - DO NOT EDIT! -->
2
2
 
3
- # ![rstream-gestures](https://media.thi.ng/umbrella/banners-20220914/thing-rstream-gestures.svg?cb215875)
3
+ # ![@thi.ng/rstream-gestures](https://media.thi.ng/umbrella/banners-20220914/thing-rstream-gestures.svg?cb215875)
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@thi.ng/rstream-gestures.svg)](https://www.npmjs.com/package/@thi.ng/rstream-gestures)
6
6
  ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/rstream-gestures.svg)
7
- [![Twitter Follow](https://img.shields.io/twitter/follow/thing_umbrella.svg?style=flat-square&label=twitter)](https://twitter.com/thing_umbrella)
7
+ [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
8
8
 
9
9
  This project is part of the
10
10
  [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo.
@@ -22,13 +22,11 @@ This project is part of the
22
22
  - [GestureStreamOpts](#gesturestreamopts)
23
23
  - [Basic usage](#basic-usage)
24
24
  - [Authors](#authors)
25
- - [Maintainer](#maintainer)
26
- - [Contributors](#contributors)
27
25
  - [License](#license)
28
26
 
29
27
  ## About
30
28
 
31
- Unified mouse, mouse wheel & multi-touch event stream abstraction. This is a support package for [@thi.ng/rstream](https://github.com/thi-ng/umbrella/tree/develop/packages/rstream).
29
+ Unified mouse, mouse wheel & multi-touch event stream abstraction
32
30
 
33
31
  ## Status
34
32
 
@@ -62,14 +60,11 @@ ES module import:
62
60
 
63
61
  For Node.js REPL:
64
62
 
65
- ```text
66
- # with flag only for < v16
67
- node --experimental-repl-await
68
-
69
- > const rstreamGestures = await import("@thi.ng/rstream-gestures");
63
+ ```js
64
+ const rstreamGestures = await import("@thi.ng/rstream-gestures");
70
65
  ```
71
66
 
72
- Package sizes (gzipped, pre-treeshake): ESM: 1.16 KB
67
+ Package sizes (brotli'd, pre-treeshake): ESM: 1.07 KB
73
68
 
74
69
  ## Dependencies
75
70
 
@@ -193,14 +188,9 @@ gestures.subscribe(
193
188
 
194
189
  ## Authors
195
190
 
196
- ### Maintainer
197
-
198
- - Karsten Schmidt ([@postspectacular](https://github.com/postspectacular))
199
-
200
- ### Contributors
201
-
202
- - Arthur Carabott ([@acarabott](https://github.com/acarabott))
203
- - Matei Adriel ([@Mateiadrielrafael](https://github.com/Mateiadrielrafael))
191
+ - [Karsten Schmidt](https://thi.ng) (Main author)
192
+ - [Arthur Carabott](https://github.com/acarabott)
193
+ - [Matei Adriel](https://github.com/Mateiadrielrafael)
204
194
 
205
195
  If this project contributes to an academic publication, please cite it as:
206
196
 
@@ -215,4 +205,4 @@ If this project contributes to an academic publication, please cite it as:
215
205
 
216
206
  ## License
217
207
 
218
- &copy; 2018 - 2022 Karsten Schmidt // Apache Software License 2.0
208
+ &copy; 2018 - 2022 Karsten Schmidt // Apache License 2.0
package/api.d.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import type { IID } from "@thi.ng/api";
2
2
  import type { StreamMerge } from "@thi.ng/rstream";
3
- export declare type GestureStream = StreamMerge<UIEvent, GestureEvent>;
4
- export declare type UIEvent = MouseEvent | TouchEvent | WheelEvent;
5
- export declare type UIEventID = "mousedown" | "mousemove" | "mouseup" | "touchstart" | "touchmove" | "touchend" | "touchcancel" | "wheel";
6
- export declare type GestureType = "move" | "start" | "drag" | "end" | "zoom";
3
+ export type GestureStream = StreamMerge<UIEvent, GestureEvent>;
4
+ export type UIEvent = MouseEvent | TouchEvent | WheelEvent;
5
+ export type UIEventID = "mousedown" | "mousemove" | "mouseup" | "touchstart" | "touchmove" | "touchend" | "touchcancel" | "wheel";
6
+ export type GestureType = "move" | "start" | "drag" | "end" | "zoom";
7
7
  export interface GestureInfo {
8
8
  /**
9
9
  * Touch/cursor ID. For mouse cursors this always is zero.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/rstream-gestures",
3
- "version": "4.1.31",
3
+ "version": "4.1.33",
4
4
  "description": "Unified mouse, mouse wheel & multi-touch event stream abstraction",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -21,7 +21,11 @@
21
21
  "url": "https://patreon.com/thing_umbrella"
22
22
  }
23
23
  ],
24
- "author": "Karsten Schmidt <k+npm@thi.ng>",
24
+ "author": "Karsten Schmidt (https://thi.ng)",
25
+ "contributors": [
26
+ "Arthur Carabott (https://github.com/acarabott)",
27
+ "Matei Adriel (https://github.com/Mateiadrielrafael)"
28
+ ],
25
29
  "license": "Apache-2.0",
26
30
  "scripts": {
27
31
  "build": "yarn clean && tsc --declaration",
@@ -34,19 +38,19 @@
34
38
  "test": "testament test"
35
39
  },
36
40
  "dependencies": {
37
- "@thi.ng/api": "^8.5.0",
38
- "@thi.ng/checks": "^3.3.3",
39
- "@thi.ng/math": "^5.3.14",
40
- "@thi.ng/rstream": "^7.2.29",
41
- "@thi.ng/transducers": "^8.3.24"
41
+ "@thi.ng/api": "^8.6.0",
42
+ "@thi.ng/checks": "^3.3.5",
43
+ "@thi.ng/math": "^5.3.16",
44
+ "@thi.ng/rstream": "^7.2.31",
45
+ "@thi.ng/transducers": "^8.3.26"
42
46
  },
43
47
  "devDependencies": {
44
- "@microsoft/api-extractor": "^7.33.5",
45
- "@thi.ng/testament": "^0.3.5",
48
+ "@microsoft/api-extractor": "^7.33.7",
49
+ "@thi.ng/testament": "^0.3.7",
46
50
  "rimraf": "^3.0.2",
47
51
  "tools": "^0.0.1",
48
- "typedoc": "^0.23.20",
49
- "typescript": "^4.8.4"
52
+ "typedoc": "^0.23.22",
53
+ "typescript": "^4.9.4"
50
54
  },
51
55
  "keywords": [
52
56
  "animation",
@@ -91,5 +95,5 @@
91
95
  ],
92
96
  "year": 2018
93
97
  },
94
- "gitHead": "75ec32ff7f1b7b5e72e7a04ace24732cd5d6c774\n"
98
+ "gitHead": "f445a9cc8022bcdebbf6ff91fd66ced016d72f01\n"
95
99
  }