@operato/headroom 0.1.8 → 0.2.3
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 +62 -0
- package/dist/src/features.js +0 -3
- package/dist/src/features.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -7
- package/src/features.ts +2 -5
- package/dist/stories/index.stories.d.ts +0 -33
- package/dist/stories/index.stories.js +0 -33
- package/dist/stories/index.stories.js.map +0 -1
- package/dist/test/head-room.test.d.ts +0 -1
- package/dist/test/head-room.test.js +0 -22
- package/dist/test/head-room.test.js.map +0 -1
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,68 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
### [0.2.3](https://github.com/hatiolab/operato/compare/v0.2.2...v0.2.3) (2021-11-02)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @operato/headroom
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
### [0.2.2](https://github.com/hatiolab/operato/compare/v0.2.1...v0.2.2) (2021-11-02)
|
15
|
+
|
16
|
+
**Note:** Version bump only for package @operato/headroom
|
17
|
+
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
### [0.2.1](https://github.com/hatiolab/operato/compare/v0.2.0...v0.2.1) (2021-11-02)
|
23
|
+
|
24
|
+
**Note:** Version bump only for package @operato/headroom
|
25
|
+
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
|
30
|
+
## [0.2.0](https://github.com/hatiolab/operato/compare/v0.1.19...v0.2.0) (2021-11-02)
|
31
|
+
|
32
|
+
**Note:** Version bump only for package @operato/headroom
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
### [0.1.19](https://github.com/hatiolab/operato/compare/v0.1.18...v0.1.19) (2021-11-02)
|
39
|
+
|
40
|
+
**Note:** Version bump only for package @operato/headroom
|
41
|
+
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
### [0.1.11](https://github.com/hatiolab/operato/compare/v0.1.10...v0.1.11) (2021-10-07)
|
47
|
+
|
48
|
+
**Note:** Version bump only for package @operato/headroom
|
49
|
+
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
### [0.1.10](https://github.com/hatiolab/operato/compare/v0.1.9...v0.1.10) (2021-10-07)
|
55
|
+
|
56
|
+
|
57
|
+
### :bug: Bug Fix
|
58
|
+
|
59
|
+
* eliminate some [@ts-ignore](https://github.com/ts-ignore) comment ([c20fe8b](https://github.com/hatiolab/operato/commit/c20fe8bd35d9b074a53fb4d780082d1fd84ade05))
|
60
|
+
|
61
|
+
|
62
|
+
### :rocket: New Features
|
63
|
+
|
64
|
+
* hid-print added ([fbbeb53](https://github.com/hatiolab/operato/commit/fbbeb53bf45b92f041612126d56524e4d8ff24cc))
|
65
|
+
|
66
|
+
|
67
|
+
|
6
68
|
### [0.1.8](https://github.com/hatiolab/operato/compare/v0.1.7...v0.1.8) (2021-09-12)
|
7
69
|
|
8
70
|
|
package/dist/src/features.js
CHANGED
@@ -6,15 +6,12 @@ export function passiveEventsSupported() {
|
|
6
6
|
var supported = false;
|
7
7
|
try {
|
8
8
|
var options = {
|
9
|
-
// eslint-disable-next-line getter-return
|
10
9
|
get passive() {
|
11
10
|
supported = true;
|
12
11
|
return true;
|
13
12
|
}
|
14
13
|
};
|
15
|
-
//@ts-ignore
|
16
14
|
window.addEventListener('test', options, options);
|
17
|
-
//@ts-ignore
|
18
15
|
window.removeEventListener('test', options, options);
|
19
16
|
}
|
20
17
|
catch (err) {
|
package/dist/src/features.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"features.js","sourceRoot":"","sources":["../../src/features.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,UAAU,sBAAsB;IACpC,IAAI,SAAS,GAAG,KAAK,CAAA;IAErB,IAAI;QACF,IAAI,OAAO,GAAG;YACZ,
|
1
|
+
{"version":3,"file":"features.js","sourceRoot":"","sources":["../../src/features.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,UAAU,sBAAsB;IACpC,IAAI,SAAS,GAAG,KAAK,CAAA;IAErB,IAAI;QACF,IAAI,OAAO,GAAG;YACZ,IAAI,OAAO;gBACT,SAAS,GAAG,IAAI,CAAA;gBAChB,OAAO,IAAI,CAAA;YACb,CAAC;SACF,CAAA;QACD,MAAM,CAAC,gBAAgB,CAAC,MAAM,EAAE,OAAc,EAAE,OAAO,CAAC,CAAA;QACxD,MAAM,CAAC,mBAAmB,CAAC,MAAM,EAAE,OAAc,EAAE,OAAc,CAAC,CAAA;KACnE;IAAC,OAAO,GAAG,EAAE;QACZ,SAAS,GAAG,KAAK,CAAA;KAClB;IAED,OAAO,SAAS,CAAA;AAClB,CAAC","sourcesContent":["/**\n * Used to detect browser support for adding an event listener with options\n * Credit: https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener\n */\nexport function passiveEventsSupported() {\n var supported = false\n\n try {\n var options = {\n get passive(): boolean {\n supported = true\n return true\n }\n }\n window.addEventListener('test', options as any, options)\n window.removeEventListener('test', options as any, options as any)\n } catch (err) {\n supported = false\n }\n\n return supported\n}\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/tslib/tslib.d.ts","../src/features.ts","../src/scroller.ts","../src/trackscroll.ts","../src/headroom.ts","../src/index.ts","../test/headroom.test.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/globals.global.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/@types/mocha/index.d.ts"],"fileInfos":[{"version":"aa9fb4c70f369237c2f45f9d969c9a59e0eae9a192962eb48581fe864aa609db","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940",{"version":"e54c8715a4954cfdc66cd69489f2b725c09ebf37492dbd91cff0a1688b1159e8","affectsGlobalScope":true},{"version":"51b8b27c21c066bf877646e320bf6a722b80d1ade65e686923cd9d4494aef1ca","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"2c8c5ee58f30e7c944e04ab1fb5506fdbb4dd507c9efa6972cf4b91cec90c503","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"9f1817f7c3f02f6d56e0f403b927e90bb133f371dcebc36fa7d6d208ef6899da","affectsGlobalScope":true},{"version":"4632665b87204bb1caa8b44d165bce0c50dfab177df5b561b345a567cabacf9a","affectsGlobalScope":true},"12f4cfe2fe60b810c3174537bc2ddb20c1067b7768643d12cb1266fd183afb75",{"version":"6683c73f62dc21fa22b9b1c0bb9abac6d37dbe37ad4c89715ad6eb2255aee2c5","signature":"65cd96f22f3a9fc204376e5014afc95a5d10a96aff56dfbaa071715643ecc242"},{"version":"d221b1764061102eda9c630e6913d0d00b9d25b2df02e4bbb5fb2edc701374d3","signature":"b8bff71b49f749ec314c29e9f5bc1c1e7ee96ee8a35e9aa36a20e644d66577b8"},{"version":"92bb3192171d225529f78ebe83159b5452e8e0f01a60ab4a4613635cb1f08315","signature":"117abb5cdcd2fd56eb1ace847c568b0636e3bc667c7594f05689fec68568d5d7"},{"version":"2886669a898eb42df310b562aa8d759427722babfb677d385ac8cd64c6f5e5a4","signature":"769c966ef166205a08c0382a298a6c5877951599d805931a963ae5650ee46391"},{"version":"7373eeb33a93b5309265e5bdb31fe43e6eb701ff675371d6300359bf1cb8008c","signature":"35c1202e93852c1c233191971b8c4aefe5d3f9df287991585fe305078c0880e6"},{"version":"a08f2ddf5a06753f97c6eb97305efd143ac3c5886680d03bf6057edf0865fe0e","signature":"4bfbc943f7868a2d99ad35be69b55a14b35b1fe2529238f6a8257b0a05cc2830"},"31c268bcfbbb3a89dd4019ff8001069024921c2c0fb73bccc6f8e6f2da7bff09","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"34f1d0e1f63dd8c0bdc1fd15ec2b7216fd709953781c4d1b1213d88e2d94db9e","affectsGlobalScope":true},"4be51d991034b331db6a518e5a9607cb136b6d3ab2a691191a7d481354836a5f",{"version":"fa56e5f529c26a31207fecafbfd88136936868a4c17f8a347f0e8e6ea18309ad","affectsGlobalScope":true},"2f3a95a0e681afcde084379ed3b404ee09971425cf4600c3dd8b6f4adf058896","3fe5750809a130a0c9ee5dbca9e262913a10d1deda3ddb1280a77b099197e937",{"version":"d7e32c36d30042b47cd8620b197d3e3381954cf8baa413dc4273796e4cf718a1","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","41a3a8f7ba70f6e10fad838a363157217163bd897416480d0ed516b5d63e727e","53cf527b7d4a7ee1c16eeadff678d6df9f2a98cd5ece18f0f9211d8080204734","0038ccd1c90bc523ee4f7eeabc3f4082a48a5775415855e46f142447b9ad1114","aacb7a1f78d635e42d1112144c83508f340722e5293f7f14091581193618dca3","87c064559d14068edb2861fc7d48c1a8196a63523e00cc29aadd57c0eefb24a5","226afbe8d2d18dc02d1aebb449af0a11a278acb98b42c763aeec6d5a8e654441",{"version":"c3a43212afe9781a304d8f5dd3895fd38a143ac46fb64b4d343122e38c83a9ab","affectsGlobalScope":true},"15bd9405b2d4353f043fa12442758a51aba5146d407aea031118605af9799032","01862fc59b8c037ea9fe03c6f3dc1ffc95bfc16fb37d58d6e7603706b9041d97","2163cfbd3438e495c08fb59b29740b1f96c7aec8ebb4faf9c9156f4fe94cb501","644a9cb29158878e67199d04c06699575d03812c90ea40c69d5a075fb8ec6b79","1f66294c9e9c24e84552cfaa70a27422811649de5a2efc69d3cf2ef38e833308","a82a261dac2131e55347889de6846a3e84741283d93d6525550ab3976be85cf6",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"1207275e727d14356922953c0597c77acad13e9812a0109a756c0c59ff0e87f3","dce04e108fbcbe674bceeea757269b7775a8a07693d6a58f55b36e649541675a","c90911387c5e9e024c309e63a14946a9bc3c71293e8f9d09eece16e11f167974","066f0de5d2acf0be06eb29a5ada8107f93891d7a983e6ba095260406650d742d",{"version":"6ae884f4861da8949f2c466b2d44fb087b2f1de82fe3449c3c52bd1d8cf998e6","affectsGlobalScope":true},"cbe717c2735bf2a6ceb29c2131232e74f4f95878072873dfb263566035024f99","5fd00b0ad7ef4e7eb69341da6ec17400922860afbdbc2cc46a37eba833d8a0bd","bc0c9dbd2b273d9466a31143a5f0118e8902232d906b3987d19d1bd67b96ee5d","757fec48e36f86c8b791b770c31f510d0e53817a95f61130df26df57cb382113","c5274b1cfbfb2610697727d460147756b686139af95cc487d894bc1c41133254","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"caa0d6f003d642fab06c4a90ac3c86ad0889b7693294e04360e935ed5376796b","affectsGlobalScope":true},"a279435e7813d1f061c0cab6ab77b1b9377e8d96851e5ed4a76a1ce6eb6e628f","28e6ac6505a2b6755ce0752cd4d2dbd880e0e4e9bbfeaa3c777821825db2711a",{"version":"8a4f510bad5e5f5312fd966d20675381a3467c0c8d1b528b7f8e5ebb732ba1c9","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","8ee0dfa79a0b3e43bd5c0554157051abd87ef47df49884eba3e6a10bba1ecdc1","dcbcf0056d7bcd4e716bd0cc9223913e58373095c4750250f525694d88f49962","715b8aedc97884235eac2346481e7f1cca0379f870a58a60d22f444f8b7c59a8","3dfbe800bece5d51c4a4abf726598bf4aa80b19ae4e8288ada7cf75efdc40930","2ac6c37c23dbb6a87d0657fbaa509bd077dd4ea066fecff1e94a01e19410d8c6","5d50d7b266824bd435c9696f71d64041db90667b6f95d5285adfa6946a73dde5","58250ab8b2768e6d713bb8271d4d1ed1029069bb94631764538a474fe1cb1eca","b9d6227d9cf5e2aac16c149377136b01e8692c0f82f185f6192c78285236e71d","555122eabf41efe584457b407892ed4420c5dc5404004eafed8bc365459f1eef","56f3ed639ae070160aaa79a626e0f956374c7dcd2093216f48cc952981ea2e93",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"b77af427289204692955d5095b9c3c8505881678879fa3c8c89b6cce7babb9ee",{"version":"c4c03cf65951d980ba618ae9601d10438730803fc9c8a1f7b34af8739981e205","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"esModuleInterop":false,"experimentalDecorators":true,"importHelpers":true,"inlineSources":true,"module":99,"noEmitOnError":true,"outDir":"./","rootDir":"..","sourceMap":true,"strict":true,"target":5},"fileIdsList":[[90],[47,90],[50,90],[51,56,90],[52,62,63,70,79,89,90],[52,53,62,70,90],[54,90],[55,56,63,71,90],[56,79,86,90],[57,59,62,70,90],[58,90],[59,60,90],[61,62,90],[62,90],[62,63,64,79,89,90],[62,63,64,79,90],[65,70,79,89,90],[62,63,65,66,70,79,86,89,90],[65,67,79,86,89,90],[47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96],[62,68,90],[69,89,90],[59,62,70,79,90],[71,90],[72,90],[50,73,90],[74,88,90,94],[75,90],[76,90],[62,77,90],[77,78,90,92],[62,79,80,81,90],[79,81,90],[79,80,90],[82,90],[83,90],[62,84,85,90],[84,85,90],[56,70,86,90],[87,90],[70,88,90],[51,65,76,89,90],[56,90],[79,90,91],[90,92],[90,93],[51,56,62,64,73,79,89,90,92,94],[79,90,95],[40,90],[40,43,90],[40,44,90],[40,41,42,90]],"referencedMap":[[98,1],[47,2],[48,2],[50,3],[51,4],[52,5],[53,6],[54,7],[55,8],[56,9],[57,10],[58,11],[59,12],[60,12],[61,13],[62,14],[63,15],[64,16],[49,1],[96,1],[65,17],[66,18],[67,19],[97,20],[68,21],[69,22],[70,23],[71,24],[72,25],[73,26],[74,27],[75,28],[76,29],[77,30],[78,31],[79,32],[81,33],[80,34],[82,35],[83,36],[84,37],[85,38],[86,39],[87,40],[88,41],[89,42],[90,43],[91,44],[92,45],[93,46],[94,47],[95,48],[40,1],[8,1],[10,1],[9,1],[2,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[3,1],[4,1],[22,1],[19,1],[20,1],[21,1],[23,1],[24,1],[25,1],[5,1],[26,1],[27,1],[28,1],[29,1],[6,1],[30,1],[31,1],[32,1],[33,1],[7,1],[38,1],[34,1],[35,1],[36,1],[37,1],[1,1],[39,1],[41,49],[44,50],[45,51],[42,49],[43,52],[46,49]],"exportedModulesMap":[[98,1],[47,2],[48,2],[50,3],[51,4],[52,5],[53,6],[54,7],[55,8],[56,9],[57,10],[58,11],[59,12],[60,12],[61,13],[62,14],[63,15],[64,16],[49,1],[96,1],[65,17],[66,18],[67,19],[97,20],[68,21],[69,22],[70,23],[71,24],[72,25],[73,26],[74,27],[75,28],[76,29],[77,30],[78,31],[79,32],[81,33],[80,34],[82,35],[83,36],[84,37],[85,38],[86,39],[87,40],[88,41],[89,42],[90,43],[91,44],[92,45],[93,46],[94,47],[95,48],[40,1],[8,1],[10,1],[9,1],[2,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[3,1],[4,1],[22,1],[19,1],[20,1],[21,1],[23,1],[24,1],[25,1],[5,1],[26,1],[27,1],[28,1],[29,1],[6,1],[30,1],[31,1],[32,1],[33,1],[7,1],[38,1],[34,1],[35,1],[36,1],[37,1],[1,1],[39,1]],"semanticDiagnosticsPerFile":[98,47,48,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,49,96,65,66,67,97,68,69,70,71,72,73,74,75,76,77,78,79,81,80,82,83,84,85,86,87,88,89,90,91,92,93,94,95,40,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,30,31,32,33,7,38,34,35,36,37,1,39,41,44,45,42,43,46]},"version":"4.4.3"}
|
1
|
+
{"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/tslib/tslib.d.ts","../src/features.ts","../src/scroller.ts","../src/trackscroll.ts","../src/headroom.ts","../src/index.ts","../test/headroom.test.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/globals.global.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/@types/mocha/index.d.ts"],"fileInfos":[{"version":"aa9fb4c70f369237c2f45f9d969c9a59e0eae9a192962eb48581fe864aa609db","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940",{"version":"e54c8715a4954cfdc66cd69489f2b725c09ebf37492dbd91cff0a1688b1159e8","affectsGlobalScope":true},{"version":"51b8b27c21c066bf877646e320bf6a722b80d1ade65e686923cd9d4494aef1ca","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"2c8c5ee58f30e7c944e04ab1fb5506fdbb4dd507c9efa6972cf4b91cec90c503","affectsGlobalScope":true},{"version":"2bb4b3927299434052b37851a47bf5c39764f2ba88a888a107b32262e9292b7c","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"df9c8a72ca8b0ed62f5470b41208a0587f0f73f0a7db28e5a1272cf92537518e","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"93544ca2f26a48716c1b6c5091842cad63129daac422dfa4bc52460465f22bb1","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"7435b75fdf3509622e79622dbe5091cf4b09688410ee2034e4fc17d0c99d0862","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"9f1817f7c3f02f6d56e0f403b927e90bb133f371dcebc36fa7d6d208ef6899da","affectsGlobalScope":true},{"version":"4632665b87204bb1caa8b44d165bce0c50dfab177df5b561b345a567cabacf9a","affectsGlobalScope":true},"12f4cfe2fe60b810c3174537bc2ddb20c1067b7768643d12cb1266fd183afb75","e48de2c8816453116eefde59946be7cf46ba17bba071720ae185cd7b6ce223df","d221b1764061102eda9c630e6913d0d00b9d25b2df02e4bbb5fb2edc701374d3","92bb3192171d225529f78ebe83159b5452e8e0f01a60ab4a4613635cb1f08315","2886669a898eb42df310b562aa8d759427722babfb677d385ac8cd64c6f5e5a4","7373eeb33a93b5309265e5bdb31fe43e6eb701ff675371d6300359bf1cb8008c","a08f2ddf5a06753f97c6eb97305efd143ac3c5886680d03bf6057edf0865fe0e","31c268bcfbbb3a89dd4019ff8001069024921c2c0fb73bccc6f8e6f2da7bff09","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"34f1d0e1f63dd8c0bdc1fd15ec2b7216fd709953781c4d1b1213d88e2d94db9e","affectsGlobalScope":true},"4be51d991034b331db6a518e5a9607cb136b6d3ab2a691191a7d481354836a5f",{"version":"fa56e5f529c26a31207fecafbfd88136936868a4c17f8a347f0e8e6ea18309ad","affectsGlobalScope":true},"dbfe629576a07827e766347bea31814a914dbce17a0e6b42b71df91d6b4c5f04","3fe5750809a130a0c9ee5dbca9e262913a10d1deda3ddb1280a77b099197e937",{"version":"d7e32c36d30042b47cd8620b197d3e3381954cf8baa413dc4273796e4cf718a1","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","ca4f1923f7b902be3f19040f9b3859524f8d276f73c1c2985af8df1446a27da8","53cf527b7d4a7ee1c16eeadff678d6df9f2a98cd5ece18f0f9211d8080204734","0038ccd1c90bc523ee4f7eeabc3f4082a48a5775415855e46f142447b9ad1114","aacb7a1f78d635e42d1112144c83508f340722e5293f7f14091581193618dca3","87c064559d14068edb2861fc7d48c1a8196a63523e00cc29aadd57c0eefb24a5","226afbe8d2d18dc02d1aebb449af0a11a278acb98b42c763aeec6d5a8e654441",{"version":"c3a43212afe9781a304d8f5dd3895fd38a143ac46fb64b4d343122e38c83a9ab","affectsGlobalScope":true},"21259ca1ed518e7adf7653fe0c75972a9baaafc459c8a95e78964a867517adac","01862fc59b8c037ea9fe03c6f3dc1ffc95bfc16fb37d58d6e7603706b9041d97","2163cfbd3438e495c08fb59b29740b1f96c7aec8ebb4faf9c9156f4fe94cb501","b9855c90cb7d9dcc9d6235aa9581f57e34d1396fbaaa8eb56d2754bb47b3b118","1f66294c9e9c24e84552cfaa70a27422811649de5a2efc69d3cf2ef38e833308","a82a261dac2131e55347889de6846a3e84741283d93d6525550ab3976be85cf6",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"1207275e727d14356922953c0597c77acad13e9812a0109a756c0c59ff0e87f3","dce04e108fbcbe674bceeea757269b7775a8a07693d6a58f55b36e649541675a","c90911387c5e9e024c309e63a14946a9bc3c71293e8f9d09eece16e11f167974","066f0de5d2acf0be06eb29a5ada8107f93891d7a983e6ba095260406650d742d",{"version":"6ae884f4861da8949f2c466b2d44fb087b2f1de82fe3449c3c52bd1d8cf998e6","affectsGlobalScope":true},"cbe717c2735bf2a6ceb29c2131232e74f4f95878072873dfb263566035024f99","5fd00b0ad7ef4e7eb69341da6ec17400922860afbdbc2cc46a37eba833d8a0bd","bc0c9dbd2b273d9466a31143a5f0118e8902232d906b3987d19d1bd67b96ee5d","757fec48e36f86c8b791b770c31f510d0e53817a95f61130df26df57cb382113","e28d7f6119c9c585989f28bbd34716f6f93f4b31b4a19d9fb8a2e2cc13699464","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"a279435e7813d1f061c0cab6ab77b1b9377e8d96851e5ed4a76a1ce6eb6e628f","28e6ac6505a2b6755ce0752cd4d2dbd880e0e4e9bbfeaa3c777821825db2711a",{"version":"8a4f510bad5e5f5312fd966d20675381a3467c0c8d1b528b7f8e5ebb732ba1c9","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","8222fe4c00d4530dc2eba1c2948292d02ea45801c35cea74e7647034d6f0ee88","dcbcf0056d7bcd4e716bd0cc9223913e58373095c4750250f525694d88f49962","715b8aedc97884235eac2346481e7f1cca0379f870a58a60d22f444f8b7c59a8","1379d5d1decf758cf2041743711f1d0235ef30b1eed5777faba29181088149c5","2ac6c37c23dbb6a87d0657fbaa509bd077dd4ea066fecff1e94a01e19410d8c6","5d50d7b266824bd435c9696f71d64041db90667b6f95d5285adfa6946a73dde5","58250ab8b2768e6d713bb8271d4d1ed1029069bb94631764538a474fe1cb1eca","b9d6227d9cf5e2aac16c149377136b01e8692c0f82f185f6192c78285236e71d","555122eabf41efe584457b407892ed4420c5dc5404004eafed8bc365459f1eef","56f3ed639ae070160aaa79a626e0f956374c7dcd2093216f48cc952981ea2e93",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"4f6762953742f1fa21ec4b41d49c0f76e72e324960f56b127717d2dc9a0baa3e",{"version":"c4c03cf65951d980ba618ae9601d10438730803fc9c8a1f7b34af8739981e205","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"esModuleInterop":false,"experimentalDecorators":true,"importHelpers":true,"inlineSources":true,"module":99,"noEmitOnError":true,"outDir":"./","rootDir":"..","sourceMap":true,"strict":true,"target":5},"fileIdsList":[[90],[47,90],[50,90],[51,56,90],[52,62,63,70,79,89,90],[52,53,62,70,90],[54,90],[55,56,63,71,90],[56,79,86,90],[57,59,62,70,90],[58,90],[59,60,90],[61,62,90],[62,90],[62,63,64,79,89,90],[62,63,64,79,90],[65,70,79,89,90],[62,63,65,66,70,79,86,89,90],[65,67,79,86,89,90],[47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96],[62,68,90],[69,89,90],[59,62,70,79,90],[71,90],[72,90],[50,73,90],[74,88,90,94],[75,90],[76,90],[62,77,90],[77,78,90,92],[62,79,80,81,90],[79,81,90],[79,80,90],[82,90],[83,90],[62,84,85,90],[84,85,90],[56,70,86,90],[87,90],[70,88,90],[51,65,76,89,90],[56,90],[79,90,91],[90,92],[90,93],[51,56,62,64,73,79,89,90,92,94],[79,90,95],[40,90],[40,43,90],[40,44,90],[40,41,42,90]],"referencedMap":[[98,1],[47,2],[48,2],[50,3],[51,4],[52,5],[53,6],[54,7],[55,8],[56,9],[57,10],[58,11],[59,12],[60,12],[61,13],[62,14],[63,15],[64,16],[49,1],[96,1],[65,17],[66,18],[67,19],[97,20],[68,21],[69,22],[70,23],[71,24],[72,25],[73,26],[74,27],[75,28],[76,29],[77,30],[78,31],[79,32],[81,33],[80,34],[82,35],[83,36],[84,37],[85,38],[86,39],[87,40],[88,41],[89,42],[90,43],[91,44],[92,45],[93,46],[94,47],[95,48],[40,1],[8,1],[10,1],[9,1],[2,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[3,1],[4,1],[22,1],[19,1],[20,1],[21,1],[23,1],[24,1],[25,1],[5,1],[26,1],[27,1],[28,1],[29,1],[6,1],[30,1],[31,1],[32,1],[33,1],[7,1],[38,1],[34,1],[35,1],[36,1],[37,1],[1,1],[39,1],[41,49],[44,50],[45,51],[42,49],[43,52],[46,49]],"exportedModulesMap":[[98,1],[47,2],[48,2],[50,3],[51,4],[52,5],[53,6],[54,7],[55,8],[56,9],[57,10],[58,11],[59,12],[60,12],[61,13],[62,14],[63,15],[64,16],[49,1],[96,1],[65,17],[66,18],[67,19],[97,20],[68,21],[69,22],[70,23],[71,24],[72,25],[73,26],[74,27],[75,28],[76,29],[77,30],[78,31],[79,32],[81,33],[80,34],[82,35],[83,36],[84,37],[85,38],[86,39],[87,40],[88,41],[89,42],[90,43],[91,44],[92,45],[93,46],[94,47],[95,48],[40,1],[8,1],[10,1],[9,1],[2,1],[11,1],[12,1],[13,1],[14,1],[15,1],[16,1],[17,1],[18,1],[3,1],[4,1],[22,1],[19,1],[20,1],[21,1],[23,1],[24,1],[25,1],[5,1],[26,1],[27,1],[28,1],[29,1],[6,1],[30,1],[31,1],[32,1],[33,1],[7,1],[38,1],[34,1],[35,1],[36,1],[37,1],[1,1],[39,1],[41,49],[44,50],[45,51],[42,49],[43,52],[46,49]],"semanticDiagnosticsPerFile":[98,47,48,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,49,96,65,66,67,97,68,69,70,71,72,73,74,75,76,77,78,79,81,80,82,83,84,85,86,87,88,89,90,91,92,93,94,95,40,8,10,9,2,11,12,13,14,15,16,17,18,3,4,22,19,20,21,23,24,25,5,26,27,28,29,6,30,31,32,33,7,38,34,35,36,37,1,39,41,44,45,42,43,46]},"version":"4.4.4"}
|
package/package.json
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
"description": "Webcomponent headroom following open-wc recommendations",
|
4
4
|
"license": "MIT",
|
5
5
|
"author": "heartyoh",
|
6
|
-
"version": "0.
|
6
|
+
"version": "0.2.3",
|
7
7
|
"main": "dist/src/index.js",
|
8
8
|
"module": "dist/src/index.js",
|
9
9
|
"publishConfig": {
|
@@ -35,18 +35,18 @@
|
|
35
35
|
"@open-wc/testing": "next",
|
36
36
|
"@types/lodash-es": "^4.17.4",
|
37
37
|
"@types/underscore": "1.11.3",
|
38
|
-
"@typescript-eslint/eslint-plugin": "^4.
|
39
|
-
"@typescript-eslint/parser": "^4.
|
40
|
-
"@web/dev-server": "^0.1.
|
38
|
+
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
39
|
+
"@typescript-eslint/parser": "^4.33.0",
|
40
|
+
"@web/dev-server": "^0.1.25",
|
41
41
|
"@web/test-runner": "next",
|
42
42
|
"concurrently": "^5.3.0",
|
43
43
|
"eslint": "^7.32.0",
|
44
44
|
"eslint-config-prettier": "^8.3.0",
|
45
45
|
"husky": "^7.0.2",
|
46
46
|
"lint-staged": "^10.5.4",
|
47
|
-
"prettier": "^2.
|
47
|
+
"prettier": "^2.4.1",
|
48
48
|
"tslib": "^2.3.1",
|
49
|
-
"typescript": "^4.4.
|
49
|
+
"typescript": "^4.4.4"
|
50
50
|
},
|
51
51
|
"customElements": "custom-elements.json",
|
52
52
|
"eslintConfig": {
|
@@ -85,5 +85,5 @@
|
|
85
85
|
"prettier --write"
|
86
86
|
]
|
87
87
|
},
|
88
|
-
"gitHead": "
|
88
|
+
"gitHead": "b2a5e8cdd0c132d243229eccd448d513471e7e9a"
|
89
89
|
}
|
package/src/features.ts
CHANGED
@@ -7,16 +7,13 @@ export function passiveEventsSupported() {
|
|
7
7
|
|
8
8
|
try {
|
9
9
|
var options = {
|
10
|
-
// eslint-disable-next-line getter-return
|
11
10
|
get passive(): boolean {
|
12
11
|
supported = true
|
13
12
|
return true
|
14
13
|
}
|
15
14
|
}
|
16
|
-
|
17
|
-
window.
|
18
|
-
//@ts-ignore
|
19
|
-
window.removeEventListener('test', options, options)
|
15
|
+
window.addEventListener('test', options as any, options)
|
16
|
+
window.removeEventListener('test', options as any, options as any)
|
20
17
|
} catch (err) {
|
21
18
|
supported = false
|
22
19
|
}
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import '../src/headroom.js.js';
|
2
|
-
import { TemplateResult } from 'lit';
|
3
|
-
declare const _default: {
|
4
|
-
title: string;
|
5
|
-
component: string;
|
6
|
-
argTypes: {
|
7
|
-
title: {
|
8
|
-
control: string;
|
9
|
-
};
|
10
|
-
counter: {
|
11
|
-
control: string;
|
12
|
-
};
|
13
|
-
textColor: {
|
14
|
-
control: string;
|
15
|
-
};
|
16
|
-
};
|
17
|
-
};
|
18
|
-
export default _default;
|
19
|
-
interface Story<T> {
|
20
|
-
(args: T): TemplateResult;
|
21
|
-
args?: Partial<T>;
|
22
|
-
argTypes?: Record<string, unknown>;
|
23
|
-
}
|
24
|
-
interface ArgTypes {
|
25
|
-
title?: string;
|
26
|
-
counter?: number;
|
27
|
-
textColor?: string;
|
28
|
-
slot?: TemplateResult;
|
29
|
-
}
|
30
|
-
export declare const Regular: Story<ArgTypes>;
|
31
|
-
export declare const CustomTitle: Story<ArgTypes>;
|
32
|
-
export declare const CustomCounter: Story<ArgTypes>;
|
33
|
-
export declare const SlottedContent: Story<ArgTypes>;
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import '../src/headroom.js.js';
|
2
|
-
import { html } from 'lit';
|
3
|
-
export default {
|
4
|
-
title: 'HeadRoom',
|
5
|
-
component: 'headroom',
|
6
|
-
argTypes: {
|
7
|
-
title: { control: 'text' },
|
8
|
-
counter: { control: 'number' },
|
9
|
-
textColor: { control: 'color' }
|
10
|
-
}
|
11
|
-
};
|
12
|
-
const Template = ({ title = 'Hello world', counter = 5, textColor, slot }) => html `
|
13
|
-
<headroom style="--headroom-text-color: ${textColor || 'black'}" .title=${title} .counter=${counter}>
|
14
|
-
${slot}
|
15
|
-
</headroom>
|
16
|
-
`;
|
17
|
-
export const Regular = Template.bind({});
|
18
|
-
export const CustomTitle = Template.bind({});
|
19
|
-
CustomTitle.args = {
|
20
|
-
title: 'My title'
|
21
|
-
};
|
22
|
-
export const CustomCounter = Template.bind({});
|
23
|
-
CustomCounter.args = {
|
24
|
-
counter: 123456
|
25
|
-
};
|
26
|
-
export const SlottedContent = Template.bind({});
|
27
|
-
SlottedContent.args = {
|
28
|
-
slot: html `<p>Slotted content</p>`
|
29
|
-
};
|
30
|
-
SlottedContent.argTypes = {
|
31
|
-
slot: { table: { disable: true } }
|
32
|
-
};
|
33
|
-
//# sourceMappingURL=index.stories.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.stories.js","sourceRoot":"","sources":["../../stories/index.stories.ts"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,CAAA;AAE9B,OAAO,EAAkB,IAAI,EAAE,MAAM,KAAK,CAAA;AAE1C,eAAe;IACb,KAAK,EAAE,UAAU;IACjB,SAAS,EAAE,UAAU;IACrB,QAAQ,EAAE;QACR,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;QAC1B,OAAO,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;QAC9B,SAAS,EAAE,EAAE,OAAO,EAAE,OAAO,EAAE;KAChC;CACF,CAAA;AAeD,MAAM,QAAQ,GAAoB,CAAC,EAAE,KAAK,GAAG,aAAa,EAAE,OAAO,GAAG,CAAC,EAAE,SAAS,EAAE,IAAI,EAAY,EAAE,EAAE,CAAC,IAAI,CAAA;4CACjE,SAAS,IAAI,OAAO,YAAY,KAAK,aAAa,OAAO;MAC/F,IAAI;;CAET,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAExC,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC5C,WAAW,CAAC,IAAI,GAAG;IACjB,KAAK,EAAE,UAAU;CAClB,CAAA;AAED,MAAM,CAAC,MAAM,aAAa,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC9C,aAAa,CAAC,IAAI,GAAG;IACnB,OAAO,EAAE,MAAM;CAChB,CAAA;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC,CAAA;AAC/C,cAAc,CAAC,IAAI,GAAG;IACpB,IAAI,EAAE,IAAI,CAAA,wBAAwB;CACnC,CAAA;AACD,cAAc,CAAC,QAAQ,GAAG;IACxB,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;CACnC,CAAA","sourcesContent":["import '../src/headroom.js.js'\n\nimport { TemplateResult, html } from 'lit'\n\nexport default {\n title: 'HeadRoom',\n component: 'headroom',\n argTypes: {\n title: { control: 'text' },\n counter: { control: 'number' },\n textColor: { control: 'color' }\n }\n}\n\ninterface Story<T> {\n (args: T): TemplateResult\n args?: Partial<T>\n argTypes?: Record<string, unknown>\n}\n\ninterface ArgTypes {\n title?: string\n counter?: number\n textColor?: string\n slot?: TemplateResult\n}\n\nconst Template: Story<ArgTypes> = ({ title = 'Hello world', counter = 5, textColor, slot }: ArgTypes) => html`\n <headroom style=\"--headroom-text-color: ${textColor || 'black'}\" .title=${title} .counter=${counter}>\n ${slot}\n </headroom>\n`\n\nexport const Regular = Template.bind({})\n\nexport const CustomTitle = Template.bind({})\nCustomTitle.args = {\n title: 'My title'\n}\n\nexport const CustomCounter = Template.bind({})\nCustomCounter.args = {\n counter: 123456\n}\n\nexport const SlottedContent = Template.bind({})\nSlottedContent.args = {\n slot: html`<p>Slotted content</p>`\n}\nSlottedContent.argTypes = {\n slot: { table: { disable: true } }\n}\n"]}
|
@@ -1 +0,0 @@
|
|
1
|
-
import '../src/head-room.js.js';
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import '../src/head-room.js.js';
|
2
|
-
describe('HeadRoom', () => {
|
3
|
-
// it('has a default title "Hey there" and counter 5', async () => {
|
4
|
-
// const el = await fixture<HeadRoom>(html`<head-room></head-room>`)
|
5
|
-
// expect(el.title).to.equal('Hey there')
|
6
|
-
// expect(el.counter).to.equal(5)
|
7
|
-
// })
|
8
|
-
// it('increases the counter on button click', async () => {
|
9
|
-
// const el = await fixture<HeadRoom>(html`<head-room></head-room>`)
|
10
|
-
// el.shadowRoot!.querySelector('button')!.click()
|
11
|
-
// expect(el.counter).to.equal(6)
|
12
|
-
// })
|
13
|
-
// it('can override the title via attribute', async () => {
|
14
|
-
// const el = await fixture<HeadRoom>(html`<head-room title="attribute title"></head-room>`)
|
15
|
-
// expect(el.title).to.equal('attribute title')
|
16
|
-
// })
|
17
|
-
// it('passes the a11y audit', async () => {
|
18
|
-
// const el = await fixture<HeadRoom>(html`<head-room></head-room>`)
|
19
|
-
// await expect(el).shadowDom.to.be.accessible()
|
20
|
-
// })
|
21
|
-
});
|
22
|
-
//# sourceMappingURL=head-room.test.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"head-room.test.js","sourceRoot":"","sources":["../../test/head-room.test.ts"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAA;AAE/B,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;IACxB,oEAAoE;IACpE,sEAAsE;IACtE,2CAA2C;IAC3C,mCAAmC;IACnC,KAAK;IACL,4DAA4D;IAC5D,sEAAsE;IACtE,oDAAoD;IACpD,mCAAmC;IACnC,KAAK;IACL,2DAA2D;IAC3D,8FAA8F;IAC9F,iDAAiD;IACjD,KAAK;IACL,4CAA4C;IAC5C,sEAAsE;IACtE,kDAAkD;IAClD,KAAK;AACP,CAAC,CAAC,CAAA","sourcesContent":["import '../src/head-room.js.js'\n\ndescribe('HeadRoom', () => {\n // it('has a default title \"Hey there\" and counter 5', async () => {\n // const el = await fixture<HeadRoom>(html`<head-room></head-room>`)\n // expect(el.title).to.equal('Hey there')\n // expect(el.counter).to.equal(5)\n // })\n // it('increases the counter on button click', async () => {\n // const el = await fixture<HeadRoom>(html`<head-room></head-room>`)\n // el.shadowRoot!.querySelector('button')!.click()\n // expect(el.counter).to.equal(6)\n // })\n // it('can override the title via attribute', async () => {\n // const el = await fixture<HeadRoom>(html`<head-room title=\"attribute title\"></head-room>`)\n // expect(el.title).to.equal('attribute title')\n // })\n // it('passes the a11y audit', async () => {\n // const el = await fixture<HeadRoom>(html`<head-room></head-room>`)\n // await expect(el).shadowDom.to.be.accessible()\n // })\n})\n"]}
|