@operato/headroom 1.4.5 → 2.0.0-alpha.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/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
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
+ ## [2.0.0-alpha.0](https://github.com/hatiolab/operato/compare/v1.13.1...v2.0.0-alpha.0) (2024-01-05)
7
+
8
+ **Note:** Version bump only for package @operato/headroom
9
+
10
+
11
+
12
+
13
+
14
+ ### [1.4.64](https://github.com/hatiolab/operato/compare/v1.4.63...v1.4.64) (2023-09-13)
15
+
16
+ **Note:** Version bump only for package @operato/headroom
17
+
18
+
19
+
20
+
21
+
6
22
  ### [1.4.5](https://github.com/hatiolab/operato/compare/v1.4.4...v1.4.5) (2023-07-22)
7
23
 
8
24
 
@@ -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,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
+ {"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,CAAC;QACH,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;IACpE,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,SAAS,GAAG,KAAK,CAAA;IACnB,CAAC;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
- {"version":3,"file":"headroom.js","sourceRoot":"","sources":["../../src/headroom.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,eAAe,CAAA;AAEvC,SAAS,eAAe,CAAC,CAAM;IAC7B,OAAO,CAAC,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAA;AACjD,CAAC;AA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,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE;YAC7B,IAAI,CAAC,KAAK,EAAE,CAAA;SACb;aAAM,IAAI,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE;YAClC,IAAI,CAAC,GAAG,EAAE,CAAA;SACX;IACH,CAAC;;AA1OD;;;GAGG;AACI,gBAAO,GAAG;IACf,SAAS,EAAE;QACT,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,CAAC;KACR;IACD,MAAM,EAAE,CAAC;IACT,QAAQ,EAAE,MAAM;IAChB,OAAO,EAAE;QACP,MAAM,EAAE,kBAAkB;QAC1B,MAAM,EAAE,kBAAkB;QAC1B,QAAQ,EAAE,oBAAoB;QAC9B,GAAG,EAAE,eAAe;QACpB,MAAM,EAAE,mBAAmB;QAC3B,MAAM,EAAE,kBAAkB;QAC1B,SAAS,EAAE,sBAAsB;QACjC,OAAO,EAAE,UAAU;KACpB;CACF,CAAA;eAtBkB,QAAQ","sourcesContent":["import trackScroll from './trackScroll'\n\nfunction normalizeUpDown(t: any) {\n return t === Object(t) ? t : { down: t, up: t }\n}\n\n/**\n * UI enhancement for fixed headers.\n * Hides header when scrolling down\n * Shows header when scrolling up\n * @constructor\n * @param {DOMElement} elem the header element\n * @param {Object} options options for the widget\n */\nexport default class Headroom {\n /**\n * Default options\n * @type {Object}\n */\n static options = {\n tolerance: {\n up: 0,\n down: 0\n },\n offset: 0,\n scroller: window,\n classes: {\n frozen: 'headroom--frozen',\n pinned: 'headroom--pinned',\n unpinned: 'headroom--unpinned',\n top: 'headroom--top',\n notTop: 'headroom--not-top',\n bottom: 'headroom--bottom',\n notBottom: 'headroom--not-bottom',\n initial: 'headroom'\n }\n }\n\n private classes: { [key: string]: any }\n private elem: HTMLElement\n private tolerance: any\n private offset: any\n private initialised: boolean\n private frozen: boolean\n private scrollTracker: any\n private scroller: any\n\n private onPin?: Function\n private onUnpin?: Function\n private onTop?: Function\n private onNotTop?: Function\n private onBottom?: Function\n private onNotBottom?: Function\n\n constructor(elem: HTMLElement, options: any) {\n options = options || {}\n Object.assign(this, Headroom.options, options)\n this.classes = Object.assign({}, Headroom.options.classes, options.classes)\n\n this.elem = elem\n this.tolerance = normalizeUpDown(this.tolerance)\n this.offset = normalizeUpDown(this.offset)\n this.initialised = false\n this.frozen = false\n }\n\n /**\n * Start listening to scrolling\n * @public\n */\n init() {\n if (!this.initialised) {\n this.addClass('initial')\n this.initialised = true\n\n // defer event registration to handle browser\n // potentially restoring previous scroll position\n setTimeout(\n function (self) {\n self.scrollTracker = trackScroll(\n self.scroller,\n { offset: self.offset, tolerance: self.tolerance },\n self.update.bind(self)\n )\n },\n 100,\n this\n )\n }\n\n return this\n }\n\n /**\n * Destroy the widget, clearing up after itself\n * @public\n */\n destroy() {\n this.initialised = false\n Object.keys(this.classes).forEach(this.removeClass, this)\n this.scrollTracker?.destroy()\n }\n\n /**\n * Unpin the element\n * @public\n */\n unpin() {\n if (this.hasClass('pinned') || !this.hasClass('unpinned')) {\n this.addClass('unpinned')\n this.removeClass('pinned')\n\n if (this.onUnpin) {\n this.onUnpin.call(this)\n }\n }\n }\n\n /**\n * Pin the element\n * @public\n */\n pin() {\n if (this.hasClass('unpinned')) {\n this.addClass('pinned')\n this.removeClass('unpinned')\n\n if (this.onPin) {\n this.onPin.call(this)\n }\n }\n }\n\n /**\n * Freezes the current state of the widget\n * @public\n */\n freeze() {\n this.frozen = true\n this.addClass('frozen')\n }\n\n /**\n * Re-enables the default behaviour of the widget\n * @public\n */\n unfreeze() {\n this.frozen = false\n this.removeClass('frozen')\n }\n\n top() {\n if (!this.hasClass('top')) {\n this.addClass('top')\n this.removeClass('notTop')\n\n if (this.onTop) {\n this.onTop.call(this)\n }\n }\n }\n\n notTop() {\n if (!this.hasClass('notTop')) {\n this.addClass('notTop')\n this.removeClass('top')\n\n if (this.onNotTop) {\n this.onNotTop.call(this)\n }\n }\n }\n\n bottom() {\n if (!this.hasClass('bottom')) {\n this.addClass('bottom')\n this.removeClass('notBottom')\n\n if (this.onBottom) {\n this.onBottom.call(this)\n }\n }\n }\n\n notBottom() {\n if (!this.hasClass('notBottom')) {\n this.addClass('notBottom')\n this.removeClass('bottom')\n\n if (this.onNotBottom) {\n this.onNotBottom.call(this)\n }\n }\n }\n\n shouldUnpin(details: any) {\n var scrollingDown = details.direction === 'down'\n\n return scrollingDown && !details.top && details.toleranceExceeded\n }\n\n shouldPin(details: any) {\n var scrollingUp = details.direction === 'up'\n\n return (scrollingUp && details.toleranceExceeded) || details.top\n }\n\n addClass(className: string) {\n this.elem.classList.add.apply(this.elem.classList, this.classes[className].split(' '))\n }\n\n removeClass(className: string) {\n this.elem.classList.remove.apply(this.elem.classList, this.classes[className].split(' '))\n }\n\n hasClass(className: string) {\n return this.classes[className].split(' ').every(function (cls: string) {\n //@ts-ignore\n return this.classList.contains(cls)\n }, this.elem)\n }\n\n update(details: any) {\n if (details.isOutOfBounds) {\n // Ignore bouncy scrolling in OSX\n return\n }\n\n if (this.frozen === true) {\n return\n }\n\n if (details.top) {\n this.top()\n } else {\n this.notTop()\n }\n\n if (details.bottom) {\n this.bottom()\n } else {\n this.notBottom()\n }\n\n if (this.shouldUnpin(details)) {\n this.unpin()\n } else if (this.shouldPin(details)) {\n this.pin()\n }\n }\n}\n"]}
1
+ {"version":3,"file":"headroom.js","sourceRoot":"","sources":["../../src/headroom.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,eAAe,CAAA;AAEvC,SAAS,eAAe,CAAC,CAAM;IAC7B,OAAO,CAAC,KAAK,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAA;AACjD,CAAC;AAED;;;;;;;GAOG;AACH,MAAqB,QAAQ;IAwC3B,YAAY,IAAiB,EAAE,OAAY;QACzC,OAAO,GAAG,OAAO,IAAI,EAAE,CAAA;QACvB,MAAM,CAAC,MAAM,CAA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MAAM,EAAE,CAAA;QACf,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,SAAS,EAAE,CAAA;QAClB,CAAC;QAED,IAAI,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,CAAC;YAC9B,IAAI,CAAC,KAAK,EAAE,CAAA;QACd,CAAC;aAAM,IAAI,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,CAAC;YACnC,IAAI,CAAC,GAAG,EAAE,CAAA;QACZ,CAAC;IACH,CAAC;;AA1OD;;;GAGG;AACI,gBAAO,GAAG;IACf,SAAS,EAAE;QACT,EAAE,EAAE,CAAC;QACL,IAAI,EAAE,CAAC;KACR;IACD,MAAM,EAAE,CAAC;IACT,QAAQ,EAAE,MAAM;IAChB,OAAO,EAAE;QACP,MAAM,EAAE,kBAAkB;QAC1B,MAAM,EAAE,kBAAkB;QAC1B,QAAQ,EAAE,oBAAoB;QAC9B,GAAG,EAAE,eAAe;QACpB,MAAM,EAAE,mBAAmB;QAC3B,MAAM,EAAE,kBAAkB;QAC1B,SAAS,EAAE,sBAAsB;QACjC,OAAO,EAAE,UAAU;KACpB;CACF,CAAA;eAtBkB,QAAQ","sourcesContent":["import trackScroll from './trackScroll'\n\nfunction normalizeUpDown(t: any) {\n return t === Object(t) ? t : { down: t, up: t }\n}\n\n/**\n * UI enhancement for fixed headers.\n * Hides header when scrolling down\n * Shows header when scrolling up\n * @constructor\n * @param {DOMElement} elem the header element\n * @param {Object} options options for the widget\n */\nexport default class Headroom {\n /**\n * Default options\n * @type {Object}\n */\n static options = {\n tolerance: {\n up: 0,\n down: 0\n },\n offset: 0,\n scroller: window,\n classes: {\n frozen: 'headroom--frozen',\n pinned: 'headroom--pinned',\n unpinned: 'headroom--unpinned',\n top: 'headroom--top',\n notTop: 'headroom--not-top',\n bottom: 'headroom--bottom',\n notBottom: 'headroom--not-bottom',\n initial: 'headroom'\n }\n }\n\n private classes: { [key: string]: any }\n private elem: HTMLElement\n private tolerance: any\n private offset: any\n private initialised: boolean\n private frozen: boolean\n private scrollTracker: any\n private scroller: any\n\n private onPin?: Function\n private onUnpin?: Function\n private onTop?: Function\n private onNotTop?: Function\n private onBottom?: Function\n private onNotBottom?: Function\n\n constructor(elem: HTMLElement, options: any) {\n options = options || {}\n Object.assign(this, Headroom.options, options)\n this.classes = Object.assign({}, Headroom.options.classes, options.classes)\n\n this.elem = elem\n this.tolerance = normalizeUpDown(this.tolerance)\n this.offset = normalizeUpDown(this.offset)\n this.initialised = false\n this.frozen = false\n }\n\n /**\n * Start listening to scrolling\n * @public\n */\n init() {\n if (!this.initialised) {\n this.addClass('initial')\n this.initialised = true\n\n // defer event registration to handle browser\n // potentially restoring previous scroll position\n setTimeout(\n function (self) {\n self.scrollTracker = trackScroll(\n self.scroller,\n { offset: self.offset, tolerance: self.tolerance },\n self.update.bind(self)\n )\n },\n 100,\n this\n )\n }\n\n return this\n }\n\n /**\n * Destroy the widget, clearing up after itself\n * @public\n */\n destroy() {\n this.initialised = false\n Object.keys(this.classes).forEach(this.removeClass, this)\n this.scrollTracker?.destroy()\n }\n\n /**\n * Unpin the element\n * @public\n */\n unpin() {\n if (this.hasClass('pinned') || !this.hasClass('unpinned')) {\n this.addClass('unpinned')\n this.removeClass('pinned')\n\n if (this.onUnpin) {\n this.onUnpin.call(this)\n }\n }\n }\n\n /**\n * Pin the element\n * @public\n */\n pin() {\n if (this.hasClass('unpinned')) {\n this.addClass('pinned')\n this.removeClass('unpinned')\n\n if (this.onPin) {\n this.onPin.call(this)\n }\n }\n }\n\n /**\n * Freezes the current state of the widget\n * @public\n */\n freeze() {\n this.frozen = true\n this.addClass('frozen')\n }\n\n /**\n * Re-enables the default behaviour of the widget\n * @public\n */\n unfreeze() {\n this.frozen = false\n this.removeClass('frozen')\n }\n\n top() {\n if (!this.hasClass('top')) {\n this.addClass('top')\n this.removeClass('notTop')\n\n if (this.onTop) {\n this.onTop.call(this)\n }\n }\n }\n\n notTop() {\n if (!this.hasClass('notTop')) {\n this.addClass('notTop')\n this.removeClass('top')\n\n if (this.onNotTop) {\n this.onNotTop.call(this)\n }\n }\n }\n\n bottom() {\n if (!this.hasClass('bottom')) {\n this.addClass('bottom')\n this.removeClass('notBottom')\n\n if (this.onBottom) {\n this.onBottom.call(this)\n }\n }\n }\n\n notBottom() {\n if (!this.hasClass('notBottom')) {\n this.addClass('notBottom')\n this.removeClass('bottom')\n\n if (this.onNotBottom) {\n this.onNotBottom.call(this)\n }\n }\n }\n\n shouldUnpin(details: any) {\n var scrollingDown = details.direction === 'down'\n\n return scrollingDown && !details.top && details.toleranceExceeded\n }\n\n shouldPin(details: any) {\n var scrollingUp = details.direction === 'up'\n\n return (scrollingUp && details.toleranceExceeded) || details.top\n }\n\n addClass(className: string) {\n this.elem.classList.add.apply(this.elem.classList, this.classes[className].split(' '))\n }\n\n removeClass(className: string) {\n this.elem.classList.remove.apply(this.elem.classList, this.classes[className].split(' '))\n }\n\n hasClass(className: string) {\n return this.classes[className].split(' ').every(function (cls: string) {\n //@ts-ignore\n return this.classList.contains(cls)\n }, this.elem)\n }\n\n update(details: any) {\n if (details.isOutOfBounds) {\n // Ignore bouncy scrolling in OSX\n return\n }\n\n if (this.frozen === true) {\n return\n }\n\n if (details.top) {\n this.top()\n } else {\n this.notTop()\n }\n\n if (details.bottom) {\n this.bottom()\n } else {\n this.notBottom()\n }\n\n if (this.shouldUnpin(details)) {\n this.unpin()\n } else if (this.shouldPin(details)) {\n this.pin()\n }\n }\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"scroller.js","sourceRoot":"","sources":["../../src/scroller.ts"],"names":[],"mappings":"AAAA,SAAS,UAAU,CAAC,GAAQ;IAC1B,OAAO,GAAG,CAAC,QAAQ,KAAK,CAAC,CAAA,CAAC,2BAA2B;AACvD,CAAC;AAED,SAAS,QAAQ,CAAC,GAAQ;IACxB,iEAAiE;IACjE,6CAA6C;IAC7C,OAAO,GAAG,IAAI,GAAG,CAAC,QAAQ,IAAI,UAAU,CAAC,GAAG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AA;AACH,CAAC;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,OAAoB;IACzD,OAAO,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,OAAO,CAAC,CAAA;AAC/E,CAAC","sourcesContent":["function isDocument(obj: any) {\n return obj.nodeType === 9 // Node.DOCUMENT_NODE === 9\n}\n\nfunction isWindow(obj: any) {\n // `obj === window` or `obj instanceof Window` is not sufficient,\n // as the obj may be the window of an iframe.\n return obj && obj.document && isDocument(obj.document)\n}\n\nfunction windowScroller(win: any) {\n var doc = win.document\n var body = doc.body\n var html = doc.documentElement\n\n return {\n /**\n * @see http://james.padolsey.com/javascript/get-document-height-cross-browser/\n * @return {Number} the scroll height of the document in pixels\n */\n scrollHeight: function () {\n return Math.max(\n body.scrollHeight,\n html.scrollHeight,\n body.offsetHeight,\n html.offsetHeight,\n body.clientHeight,\n html.clientHeight\n )\n },\n\n /**\n * @see http://andylangton.co.uk/blog/development/get-viewport-size-width-and-height-javascript\n * @return {Number} the height of the viewport in pixels\n */\n height: function () {\n return win.innerHeight || html.clientHeight || body.clientHeight\n },\n\n /**\n * Gets the Y scroll position\n * @return {Number} pixels the page has scrolled along the Y-axis\n */\n scrollY: function () {\n if (win.pageYOffset !== undefined) {\n return win.pageYOffset\n }\n\n return (html || body.parentNode || body).scrollTop\n }\n }\n}\n\nfunction elementScroller(element: HTMLElement) {\n return {\n /**\n * @return {Number} the scroll height of the element in pixels\n */\n scrollHeight: function () {\n return Math.max(element.scrollHeight, element.offsetHeight, element.clientHeight)\n },\n\n /**\n * @return {Number} the height of the element in pixels\n */\n height: function () {\n return Math.max(element.offsetHeight, element.clientHeight)\n },\n\n /**\n * Gets the Y scroll position\n * @return {Number} pixels the element has scrolled along the Y-axis\n */\n scrollY: function () {\n return element.scrollTop\n }\n }\n}\n\nexport default function createScroller(element: HTMLElement) {\n return isWindow(element) ? windowScroller(element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,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC,CAAA;QACnF,CAAC;QAED;;WAEG;QACH,MAAM,EAAE;YACN,OAAO,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC,YAAY,CAAC,CAAA;QAC7D,CAAC;QAED;;;WAGG;QACH,OAAO,EAAE;YACP,OAAO,OAAO,CAAC,SAAS,CAAA;QAC1B,CAAC;KACF,CAAA;AACH,CAAC;AAED,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,OAAoB;IACzD,OAAO,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,OAAO,CAAC,CAAA;AAC/E,CAAC","sourcesContent":["function isDocument(obj: any) {\n return obj.nodeType === 9 // Node.DOCUMENT_NODE === 9\n}\n\nfunction isWindow(obj: any) {\n // `obj === window` or `obj instanceof Window` is not sufficient,\n // as the obj may be the window of an iframe.\n return obj && obj.document && isDocument(obj.document)\n}\n\nfunction windowScroller(win: any) {\n var doc = win.document\n var body = doc.body\n var html = doc.documentElement\n\n return {\n /**\n * @see http://james.padolsey.com/javascript/get-document-height-cross-browser/\n * @return {Number} the scroll height of the document in pixels\n */\n scrollHeight: function () {\n return Math.max(\n body.scrollHeight,\n html.scrollHeight,\n body.offsetHeight,\n html.offsetHeight,\n body.clientHeight,\n html.clientHeight\n )\n },\n\n /**\n * @see http://andylangton.co.uk/blog/development/get-viewport-size-width-and-height-javascript\n * @return {Number} the height of the viewport in pixels\n */\n height: function () {\n return win.innerHeight || html.clientHeight || body.clientHeight\n },\n\n /**\n * Gets the Y scroll position\n * @return {Number} pixels the page has scrolled along the Y-axis\n */\n scrollY: function () {\n if (win.pageYOffset !== undefined) {\n return win.pageYOffset\n }\n\n return (html || body.parentNode || body).scrollTop\n }\n }\n}\n\nfunction elementScroller(element: HTMLElement) {\n return {\n /**\n * @return {Number} the scroll height of the element in pixels\n */\n scrollHeight: function () {\n return Math.max(element.scrollHeight, element.offsetHeight, element.clientHeight)\n },\n\n /**\n * @return {Number} the height of the element in pixels\n */\n height: function () {\n return Math.max(element.offsetHeight, element.clientHeight)\n },\n\n /**\n * Gets the Y scroll position\n * @return {Number} pixels the element has scrolled along the Y-axis\n */\n scrollY: function () {\n return element.scrollTop\n }\n }\n}\n\nexport default function createScroller(element: HTMLElement) {\n return isWindow(element) ? windowScroller(element) : elementScroller(element)\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"trackScroll.js","sourceRoot":"","sources":["../../src/trackScroll.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,YAAY,CAAA;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA;AAEnD;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,OAAoB,EAAE,OAAY,EAAE,QAAkB;IACxF,IAAI,kBAAkB,GAAG,sBAAsB,EAAE,CAAA;IACjD,IAAI,KAAa,CAAA;IACjB,IAAI,QAAQ,GAAG,KAAK,CAAA;IACpB,IAAI,QAAQ,GAAG,cAAc,CAAC,OAAsB,CAAC,CAAA;IACrD,IAAI,WAAW,GAAG,QAAQ,CAAC,OAAO,EAAE,CAAA;IACpC,IAAI,OAAO,GAAG,EAAS,CAAA;IAEvB,SAAS,MAAM;QACb,IAAI,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAA;QAC5C,IAAI,MAAM,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAA;QAC9B,IAAI,YAAY,GAAG,QAAQ,CAAC,YAAY,EAAE,CAAA;QAE1C,qCAAqC;QACrC,OAAO,CAAC,OAAO,GAAG,OAAO,CAAA;QACzB,OAAO,CAAC,WAAW,GAAG,WAAW,CAAA;QACjC,OAAO,CAAC,SAAS,GAAG,OAAO,GA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\n/**\n * @param element EventTarget\n */\nexport default function trackScroll(element: EventTarget, options: any, callback: Function) {\n var isPassiveSupported = passiveEventsSupported()\n var rafId: number\n var scrolled = false\n var scroller = createScroller(element as HTMLElement)\n var lastScrollY = scroller.scrollY()\n var details = {} as any\n\n function update() {\n var scrollY = Math.round(scroller.scrollY())\n var height = scroller.height()\n var scrollHeight = scroller.scrollHeight()\n\n // reuse object for less memory churn\n details.scrollY = scrollY\n details.lastScrollY = lastScrollY\n details.direction = scrollY > lastScrollY ? 'down' : 'up'\n details.distance = Math.abs(scrollY - lastScrollY)\n details.isOutOfBounds = scrollY < 0 || scrollY + height > scrollHeight\n details.top = scrollY <= options.offset[details.direction]\n details.bottom = scrollY + height >= scrollHeight\n details.toleranceExceeded = details.distance > options.tolerance[details.direction]\n\n callback(details)\n\n lastScrollY = scrollY\n scrolled = false\n }\n\n function handleScroll() {\n if (!scrolled) {\n scrolled = true\n rafId = requestAnimationFrame(update)\n }\n }\n\n var eventOptions = isPassiveSupported ? { passive: true, capture: false } : false\n\n element.addEventListener('scroll', handleScroll, eventOptions)\n update()\n\n return {\n destroy: function () {\n cancelAnimationFrame(rafId)\n element.removeEventListener('scroll', handleScroll, eventOptions)\n }\n }\n}\n"]}
1
+ {"version":3,"file":"trackScroll.js","sourceRoot":"","sources":["../../src/trackScroll.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,YAAY,CAAA;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA;AAEnD;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,OAAoB,EAAE,OAAY,EAAE,QAAkB;IACxF,IAAI,kBAAkB,GAAG,sBAAsB,EAAE,CAAA;IACjD,IAAI,KAAa,CAAA;IACjB,IAAI,QAAQ,GAAG,KAAK,CAAA;IACpB,IAAI,QAAQ,GAAG,cAAc,CAAC,OAAsB,CAAC,CAAA;IACrD,IAAI,WAAW,GAAG,QAAQ,CAAC,OAAO,EAAE,CAAA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OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,CAAA;IAEjF,OAAO,CAAC,gBAAgB,CAAC,QAAQ,EAAE,YAAY,EAAE,YAAY,CAAC,CAAA;IAC9D,MAAM,EAAE,CAAA;IAER,OAAO;QACL,OAAO,EAAE;YACP,oBAAoB,CAAC,KAAK,CAAC,CAAA;YAC3B,OAAO,CAAC,mBAAmB,CAAC,QAAQ,EAAE,YAAY,EAAE,YAAY,CAAC,CAAA;QACnE,CAAC;KACF,CAAA;AACH,CAAC","sourcesContent":["import createScroller from './scroller'\nimport { passiveEventsSupported } from './features'\n\n/**\n * @param element EventTarget\n */\nexport default function trackScroll(element: EventTarget, options: any, callback: Function) {\n var isPassiveSupported = passiveEventsSupported()\n var rafId: number\n var scrolled = false\n var scroller = createScroller(element as HTMLElement)\n var lastScrollY = scroller.scrollY()\n var details = {} as any\n\n function update() {\n var scrollY = Math.round(scroller.scrollY())\n var height = scroller.height()\n var scrollHeight = scroller.scrollHeight()\n\n // reuse object for less memory churn\n details.scrollY = scrollY\n details.lastScrollY = lastScrollY\n details.direction = scrollY > lastScrollY ? 'down' : 'up'\n details.distance = Math.abs(scrollY - lastScrollY)\n details.isOutOfBounds = scrollY < 0 || scrollY + height > scrollHeight\n details.top = scrollY <= options.offset[details.direction]\n details.bottom = scrollY + height >= scrollHeight\n details.toleranceExceeded = details.distance > options.tolerance[details.direction]\n\n callback(details)\n\n lastScrollY = scrollY\n scrolled = false\n }\n\n function handleScroll() {\n if (!scrolled) {\n scrolled = true\n rafId = requestAnimationFrame(update)\n }\n }\n\n var eventOptions = isPassiveSupported ? { passive: true, capture: false } : false\n\n element.addEventListener('scroll', handleScroll, eventOptions)\n update()\n\n return {\n destroy: function () {\n cancelAnimationFrame(rafId)\n element.removeEventListener('scroll', handleScroll, eventOptions)\n }\n }\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.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.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.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/tslib/tslib.d.ts","../src/features.ts","../src/scroller.ts","../src/trackscroll.ts","../src/headroom.ts","../src/index.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/dom-events.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/readline/promises.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/test.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":"f59215c5f1d886b05395ee7aca73e0ac69ddfad2843aa88530e797879d511bad","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4",{"version":"3dda5344576193a4ae48b8d03f105c86f20b2f2aff0a1d1fd7935f5d68649654","affectsGlobalScope":true},{"version":"9d9885c728913c1d16e0d2831b40341d6ad9a0ceecaabc55209b306ad9c736a5","affectsGlobalScope":true},{"version":"17bea081b9c0541f39dd1ae9bc8c78bdd561879a682e60e2f25f688c0ecab248","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"ab22100fdd0d24cfc2cc59d0a00fc8cf449830d9c4030dc54390a46bd562e929","affectsGlobalScope":true},{"version":"f7bd636ae3a4623c503359ada74510c4005df5b36de7f23e1db8a5c543fd176b","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"0c20f4d2358eb679e4ae8a4432bdd96c857a2960fd6800b21ec4008ec59d60ea","affectsGlobalScope":true},{"version":"36ae84ccc0633f7c0787bc6108386c8b773e95d3b052d9464a99cd9b8795fbec","affectsGlobalScope":true},{"version":"82d0d8e269b9eeac02c3bd1c9e884e85d483fcb2cd168bccd6bc54df663da031","affectsGlobalScope":true},{"version":"b8deab98702588840be73d67f02412a2d45a417a3c097b2e96f7f3a42ac483d1","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"376d554d042fb409cb55b5cbaf0b2b4b7e669619493c5d18d5fa8bd67273f82a","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"c4138a3dd7cd6cf1f363ca0f905554e8d81b45844feea17786cdf1626cb8ea06","affectsGlobalScope":true},{"version":"6ff3e2452b055d8f0ec026511c6582b55d935675af67cdb67dd1dc671e8065df","affectsGlobalScope":true},{"version":"03de17b810f426a2f47396b0b99b53a82c1b60e9cba7a7edda47f9bb077882f4","affectsGlobalScope":true},{"version":"8184c6ddf48f0c98429326b428478ecc6143c27f79b79e85740f17e6feb090f1","affectsGlobalScope":true},{"version":"261c4d2cf86ac5a89ad3fb3fafed74cbb6f2f7c1d139b0540933df567d64a6ca","affectsGlobalScope":true},{"version":"6af1425e9973f4924fca986636ac19a0cf9909a7e0d9d3009c349e6244e957b6","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"15a630d6817718a2ddd7088c4f83e4673fde19fa992d2eae2cf51132a302a5d3","affectsGlobalScope":true},{"version":"f06948deb2a51aae25184561c9640fb66afeddb34531a9212d011792b1d19e0a","affectsGlobalScope":true},{"version":"01e0ee7e1f661acedb08b51f8a9b7d7f959e9cdb6441360f06522cc3aea1bf2e","affectsGlobalScope":true},{"version":"ac17a97f816d53d9dd79b0d235e1c0ed54a8cc6a0677e9a3d61efb480b2a3e4e","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"9cc66b0513ad41cb5f5372cca86ef83a0d37d1c1017580b7dace3ea5661836df","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc","affectsGlobalScope":true},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"7a1971efcba559ea9002ada4c4e3c925004fb67a755300d53b5edf9399354900",{"version":"e48de2c8816453116eefde59946be7cf46ba17bba071720ae185cd7b6ce223df","signature":"65cd96f22f3a9fc204376e5014afc95a5d10a96aff56dfbaa071715643ecc242"},{"version":"d221b1764061102eda9c630e6913d0d00b9d25b2df02e4bbb5fb2edc701374d3","signature":"b8bff71b49f749ec314c29e9f5bc1c1e7ee96ee8a35e9aa36a20e644d66577b8"},{"version":"92bb3192171d225529f78ebe83159b5452e8e0f01a60ab4a4613635cb1f08315","signature":"117abb5cdcd2fd56eb1ace847c568b0636e3bc667c7594f05689fec68568d5d7"},{"version":"99d7858c001fef84df0c56830a92365fd235d32f9bc4618e97ee961efd2e3d36","signature":"769c966ef166205a08c0382a298a6c5877951599d805931a963ae5650ee46391"},{"version":"7373eeb33a93b5309265e5bdb31fe43e6eb701ff675371d6300359bf1cb8008c","signature":"35c1202e93852c1c233191971b8c4aefe5d3f9df287991585fe305078c0880e6"},"587f13f1e8157bd8cec0adda0de4ef558bb8573daa9d518d1e2af38e87ecc91f","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"bce910d9164785c9f0d4dcea4be359f5f92130c7c7833dea6138ab1db310a1f9","affectsGlobalScope":true},"7a435e0c814f58f23e9a0979045ec0ef5909aac95a70986e8bcce30c27dff228",{"version":"c81c51f43e343b6d89114b17341fb9d381c4ccbb25e0ee77532376052c801ba7","affectsGlobalScope":true},"db71be322f07f769200108aa19b79a75dd19a187c9dca2a30c4537b233aa2863","57135ce61976a8b1dadd01bb412406d1805b90db6e8ecb726d0d78e0b5f76050",{"version":"49479e21a040c0177d1b1bc05a124c0383df7a08a0726ad4d9457619642e875a","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","f302f3a47d7758f67f2afc753b9375d6504dde05d2e6ecdb1df50abbb131fc89","3690133deae19c8127c5505fcb67b04bdc9eb053796008538a9b9abbb70d85aa","5b1c0a23f464f894e7c2b2b6c56df7b9afa60ed48c5345f8618d389a636b2108","be2b092f2765222757c6441b86c53a5ea8dfed47bbc43eab4c5fe37942c866b3","8e6b05abc98adba15e1ac78e137c64576c74002e301d682e66feb77a23907ab8","1ca735bb3d407b2af4fbee7665f3a0a83be52168c728cc209755060ba7ed67bd",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"b85c02e14ecb2a873dad5a1de72319b265160ba48f1b83661aeb3bba1366c1bc","affectsGlobalScope":true},"7a2ba0c9af860ac3e77b35ed01fd96d15986f17aa22fe40f188ae556fb1070df","fc3764040518a1008dd04bdc80964591b566b896283e00df85c95851c1f46237","55709608060f77965c270ac10ac646286589f1bd1cb174fff1778a2dd9a7ef31","3122a3f1136508a27a229e0e4e2848299028300ffa11d0cdfe99df90c492fe20","42b40e40f2a358cda332456214fad311e1806a6abf3cebaaac72496e07556642","354612fe1d49ecc9551ea3a27d94eef2887b64ef4a71f72ca444efe0f2f0ba80",{"version":"ac0c77cd7db52b3c278bdd1452ce754014835493d05b84535f46854fdc2063b2","affectsGlobalScope":true},"b9f36877501f2ce0e276e993c93cd2cf325e78d0409ec4612b1eb9d6a537e60b","5e2b91328a540a0933ab5c2203f4358918e6f0fe7505d22840a891a6117735f1","3abc3512fa04aa0230f59ea1019311fd8667bd935d28306311dccc8b17e79d5d",{"version":"14a50dafe3f45713f7f27cb6320dff07c6ac31678f07959c2134260061bf91ff","affectsGlobalScope":true},{"version":"19da7150ca062323b1db6311a6ef058c9b0a39cc64d836b5e9b75d301869653b","affectsGlobalScope":true},"1349077576abb41f0e9c78ec30762ff75b710208aff77f5fdcc6a8c8ce6289dd","e2ce82603102b5c0563f59fb40314cc1ff95a4d521a66ad14146e130ea80d89c","a3e0395220255a350aa9c6d56f882bfcb5b85c19fddf5419ec822cf22246a26d","c27b01e8ddff5cd280711af5e13aecd9a3228d1c256ea797dd64f8fdec5f7df5","898840e876dfd21843db9f2aa6ae38ba2eab550eb780ff62b894b9fbfebfae6b","0cab4d7d4edc40cd3af9eea7c3ed6d1016910c0954c49c4297e479bf3822a625","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","785e5be57d4f20f290a20e7b0c6263f6c57fd6e51283050756cef07d6d651c68","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","164deb2409ac5f4da3cd139dbcee7f7d66753d90363a4d7e2db8d8874f272270",{"version":"ffc62d73b4fa10ca8c59f8802df88efefe447025730a24ee977b60adedc5bf37","affectsGlobalScope":true},{"version":"ab294c4b7279318ee2a8fdf681305457ecc05970c94108d304933f18823eeac1","affectsGlobalScope":true},"ad08154d9602429522cac965a715fde27d421d69b24756c5d291877dda75353e","5bc85813bfcb6907cc3a960fec8734a29d7884e0e372515147720c5991b8bc22","812b25f798033c202baedf386a1ccc41f9191b122f089bffd10fdccce99fba11","993325544790073f77e945bee046d53988c0bc3ac5695c9cf8098166feb82661",{"version":"75dd741ca6a6c8d2437a6ca8349b64b816421dbf9fe82dd026afaba965576962","affectsGlobalScope":true},{"version":"0e08c360c9b5961ecb0537b703e253842b3ded53151ee07024148219b61a8baf","affectsGlobalScope":true},"2ce2210032ccaff7710e2abf6a722e62c54960458e73e356b6a365c93ab6ca66","92db194ef7d208d5e4b6242a3434573fd142a621ff996d84cc9dbba3553277d0","16a3080e885ed52d4017c902227a8d0d8daf723d062bec9e45627c6fdcd6699b",{"version":"0bd9543cd8fc0959c76fb8f4f5a26626c2ed62ef4be98fd857bce268066db0a2","affectsGlobalScope":true},"1ca6858a0cbcd74d7db72d7b14c5360a928d1d16748a55ecfa6bfaff8b83071b",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"ebf3434b09c527078aa74139ff367fffa64fea32a01d6c06fb0a69b0ecadf43e",{"version":"677646e2620795c98a539fb12fb531f10331c217cef1492132b2518f894fa92d","affectsGlobalScope":true}],"root":[[46,50]],"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,"useDefineForClassFields":false},"fileIdsList":[[97],[51,97],[54,97],[55,60,88,97],[56,67,68,75,85,96,97],[56,57,67,75,97],[58,97],[59,60,68,76,97],[60,85,93,97],[61,63,67,75,97],[62,97],[63,64,97],[67,97],[65,67,97],[67,68,69,85,96,97],[67,68,69,82,85,88,97],[97,101],[63,67,70,75,85,96,97],[67,68,70,71,75,85,93,96,97],[70,72,85,93,96,97],[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,97,98,99,100,101,102,103],[67,73,97],[74,96,97],[63,67,75,85,97],[76,97],[77,97],[54,78,97],[79,95,97,101],[80,97],[81,97],[67,82,83,97],[82,84,97,99],[55,67,85,86,87,88,97],[55,85,87,97],[85,86,97],[88,97],[89,97],[85,97],[67,91,92,97],[91,92,97],[60,75,85,93,97],[94,97],[75,95,97],[55,70,81,96,97],[60,97],[85,97,98],[97,99],[97,100],[55,60,67,69,78,85,96,97,99,101],[85,97,102],[45,97],[45,48,97],[45,49,97],[45,46,47,97],[49]],"referencedMap":[[105,1],[51,2],[52,2],[54,3],[55,4],[56,5],[57,6],[58,7],[59,8],[60,9],[61,10],[62,11],[63,12],[64,12],[66,13],[65,14],[67,13],[68,15],[69,16],[53,17],[103,1],[70,18],[71,19],[72,20],[104,21],[73,22],[74,23],[75,24],[76,25],[77,26],[78,27],[79,28],[80,29],[81,30],[82,31],[83,31],[84,32],[85,33],[87,34],[86,35],[88,36],[89,37],[90,38],[91,39],[92,40],[93,41],[94,42],[95,43],[96,44],[97,45],[98,46],[99,47],[100,48],[101,49],[102,50],[45,1],[43,1],[44,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],[33,1],[30,1],[31,1],[32,1],[34,1],[7,1],[35,1],[40,1],[41,1],[36,1],[37,1],[38,1],[39,1],[1,1],[42,1],[46,51],[49,52],[50,53],[47,51],[48,54]],"exportedModulesMap":[[105,1],[51,2],[52,2],[54,3],[55,4],[56,5],[57,6],[58,7],[59,8],[60,9],[61,10],[62,11],[63,12],[64,12],[66,13],[65,14],[67,13],[68,15],[69,16],[53,17],[103,1],[70,18],[71,19],[72,20],[104,21],[73,22],[74,23],[75,24],[76,25],[77,26],[78,27],[79,28],[80,29],[81,30],[82,31],[83,31],[84,32],[85,33],[87,34],[86,35],[88,36],[89,37],[90,38],[91,39],[92,40],[93,41],[94,42],[95,43],[96,44],[97,45],[98,46],[99,47],[100,48],[101,49],[102,50],[45,1],[43,1],[44,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],[33,1],[30,1],[31,1],[32,1],[34,1],[7,1],[35,1],[40,1],[41,1],[36,1],[37,1],[38,1],[39,1],[1,1],[42,1],[50,55]],"semanticDiagnosticsPerFile":[105,51,52,54,55,56,57,58,59,60,61,62,63,64,66,65,67,68,69,53,103,70,71,72,104,73,74,75,76,77,78,79,80,81,82,83,84,85,87,86,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,45,43,44,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,33,30,31,32,34,7,35,40,41,36,37,38,39,1,42,46,49,50,47,48]},"version":"5.1.6"}
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.date.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.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.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.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/tslib/tslib.d.ts","../src/features.ts","../src/scroller.ts","../src/trackscroll.ts","../src/headroom.ts","../src/index.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/buffer/index.d.ts","../../../node_modules/undici-types/header.d.ts","../../../node_modules/undici-types/readable.d.ts","../../../node_modules/undici-types/file.d.ts","../../../node_modules/undici-types/fetch.d.ts","../../../node_modules/undici-types/formdata.d.ts","../../../node_modules/undici-types/connector.d.ts","../../../node_modules/undici-types/client.d.ts","../../../node_modules/undici-types/errors.d.ts","../../../node_modules/undici-types/dispatcher.d.ts","../../../node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/undici-types/global-origin.d.ts","../../../node_modules/undici-types/pool-stats.d.ts","../../../node_modules/undici-types/pool.d.ts","../../../node_modules/undici-types/handlers.d.ts","../../../node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/undici-types/agent.d.ts","../../../node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/undici-types/mock-agent.d.ts","../../../node_modules/undici-types/mock-client.d.ts","../../../node_modules/undici-types/mock-pool.d.ts","../../../node_modules/undici-types/mock-errors.d.ts","../../../node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/undici-types/api.d.ts","../../../node_modules/undici-types/cookies.d.ts","../../../node_modules/undici-types/patch.d.ts","../../../node_modules/undici-types/filereader.d.ts","../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/undici-types/websocket.d.ts","../../../node_modules/undici-types/content-type.d.ts","../../../node_modules/undici-types/cache.d.ts","../../../node_modules/undici-types/interceptors.d.ts","../../../node_modules/undici-types/index.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/dom-events.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/readline/promises.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/test.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":"f33e5332b24c3773e930e212cbb8b6867c8ba3ec4492064ea78e55a524d57450","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","26f2f787e82c4222710f3b676b4d83eb5ad0a72fa7b746f03449e7a026ce5073","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4",{"version":"21e41a76098aa7a191028256e52a726baafd45a925ea5cf0222eb430c96c1d83","affectsGlobalScope":true},{"version":"138fb588d26538783b78d1e3b2c2cc12d55840b97bf5e08bca7f7a174fbe2f17","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"e0275cd0e42990dc3a16f0b7c8bca3efe87f1c8ad404f80c6db1c7c0b828c59f","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"49ed889be54031e1044af0ad2c603d627b8bda8b50c1a68435fe85583901d072","affectsGlobalScope":true},{"version":"e93d098658ce4f0c8a0779e6cab91d0259efb88a318137f686ad76f8410ca270","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"ec0104fee478075cb5171e5f4e3f23add8e02d845ae0165bfa3f1099241fa2aa","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"acae90d417bee324b1372813b5a00829d31c7eb670d299cd7f8f9a648ac05688","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"13f6e6380c78e15e140243dc4be2fa546c287c6d61f4729bc2dd7cf449605471","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"7a1971efcba559ea9002ada4c4e3c925004fb67a755300d53b5edf9399354900",{"version":"e48de2c8816453116eefde59946be7cf46ba17bba071720ae185cd7b6ce223df","signature":"65cd96f22f3a9fc204376e5014afc95a5d10a96aff56dfbaa071715643ecc242"},{"version":"d221b1764061102eda9c630e6913d0d00b9d25b2df02e4bbb5fb2edc701374d3","signature":"b8bff71b49f749ec314c29e9f5bc1c1e7ee96ee8a35e9aa36a20e644d66577b8"},{"version":"92bb3192171d225529f78ebe83159b5452e8e0f01a60ab4a4613635cb1f08315","signature":"117abb5cdcd2fd56eb1ace847c568b0636e3bc667c7594f05689fec68568d5d7"},{"version":"99d7858c001fef84df0c56830a92365fd235d32f9bc4618e97ee961efd2e3d36","signature":"769c966ef166205a08c0382a298a6c5877951599d805931a963ae5650ee46391"},{"version":"7373eeb33a93b5309265e5bdb31fe43e6eb701ff675371d6300359bf1cb8008c","signature":"35c1202e93852c1c233191971b8c4aefe5d3f9df287991585fe305078c0880e6"},"efc7d584a33fe3422847783d228f315c4cd1afe74bd7cf8e3f0e4c1125129fef","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1",{"version":"a14ed46fa3f5ffc7a8336b497cd07b45c2084213aaca933a22443fcb2eef0d07","affectsGlobalScope":true},"cce1f5f86974c1e916ec4a8cab6eec9aa8e31e8148845bf07fbaa8e1d97b1a2c",{"version":"185282b122cbca820c297a02a57b89cf5967ab43e220e3e174d872d3f9a94d2c","affectsGlobalScope":true},"16d74fe4d8e183344d3beb15d48b123c5980ff32ff0cc8c3b96614ddcdf9b239","7b43160a49cf2c6082da0465876c4a0b164e160b81187caeb0a6ca7a281e85ba",{"version":"41fb2a1c108fbf46609ce5a451b7ec78eb9b5ada95fd5b94643e4b26397de0b3","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","06f613ad82b49f264a12e30977e791d5b0addf9d8d1d18cd135c402928ff0607","285e512c7a0db217a0599e18c462d565fa35be4a5153dd7b80bee88c83e83ddf","b5b719a47968cd61a6f83f437236bb6fe22a39223b6620da81ef89f5d7a78fb7","8806ae97308ef26363bd7ec8071bca4d07fb575f905ee3d8a91aff226df6d618","af5bf1db6f1804fb0069039ae77a05d60133c77a2158d9635ea27b6bb2828a8f","b7fe70be794e13d1b7940e318b8770cd1fb3eced7707805318a2e3aaac2c3e9e",{"version":"2c71199d1fc83bf17636ad5bf63a945633406b7b94887612bba4ef027c662b3e","affectsGlobalScope":true},{"version":"7ae9dc7dbb58cd843065639707815df85c044babaa0947116f97bdb824d07204","affectsGlobalScope":true},"7aae1df2053572c2cfc2089a77847aadbb38eedbaa837a846c6a49fb37c6e5bd","313a0b063f5188037db113509de1b934a0e286f14e9479af24fada241435e707","1f758340b027b18ae8773ac3d33a60648a2af49eaae9e4fde18d0a0dd608642c","87ef1a23caa071b07157c72077fa42b86d30568f9dc9e31eed24d5d14fc30ba8","396a8939b5e177542bdf9b5262b4eee85d29851b2d57681fa9d7eae30e225830","21773f5ac69ddf5a05636ba1f50b5239f4f2d27e4420db147fc2f76a5ae598ac",{"version":"dea4c00820d4fac5e530d4842aed2fb20d6744d75a674b95502cbd433f88bcb0","affectsGlobalScope":true},"a5fe4cc622c3bf8e09ababde5f4096ceac53163eefcd95e9cd53f062ff9bb67a","45b1053e691c5af9bfe85060a3e1542835f8d84a7e6e2e77ca305251eda0cb3c","0f05c06ff6196958d76b865ae17245b52d8fe01773626ac3c43214a2458ea7b7",{"version":"0d832a0650a74aafc276cb3f7bb26bde2e2270a6f87e6c871a64122e9203079b","affectsGlobalScope":true},{"version":"c6f3869f12bb5c3bb8ecd0b050ea20342b89b944eae18d313cde6b0ccc0925d7","affectsGlobalScope":true},"8abd0566d2854c4bd1c5e48e05df5c74927187f1541e6770001d9637ac41542e","d742ed2db6d5425b3b6ac5fb1f2e4b1ed2ae74fbeee8d0030d852121a4b05d2f","d8dba11dc34d50cb4202de5effa9a1b296d7a2f4a029eec871f894bddfb6430d","8b71dd18e7e63b6f991b511a201fad7c3bf8d1e0dd98acb5e3d844f335a73634","01d8e1419c84affad359cc240b2b551fb9812b450b4d3d456b64cda8102d4f60","8221b00f271cf7f535a8eeec03b0f80f0929c7a16116e2d2df089b41066de69b","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","f8c87b19eae111f8720b0345ab301af8d81add39621b63614dfc2d15fd6f140a","831c22d257717bf2cbb03afe9c4bcffc5ccb8a2074344d4238bf16d3a857bb12",{"version":"2225100373ca3d63bcc7f206e1177152d2e2161285a0bd83c8374db1503a0d1f","affectsGlobalScope":true},{"version":"7052b7b0c3829df3b4985bab2fd74531074b4835d5a7b263b75c82f0916ad62f","affectsGlobalScope":true},"aa34c3aa493d1c699601027c441b9664547c3024f9dbab1639df7701d63d18fa","eefcdf86cefff36e5d87de36a3638ab5f7d16c2b68932be4a72c14bb924e43c1","7c651f8dce91a927ab62925e73f190763574c46098f2b11fb8ddc1b147a6709a","7440ab60f4cb031812940cc38166b8bb6fbf2540cfe599f87c41c08011f0c1df",{"version":"4d0405568cf6e0ff36a4861c4a77e641366feaefa751600b0a4d12a5e8f730a8","affectsGlobalScope":true},{"version":"f5b5dc128973498b75f52b1b8c2d5f8629869104899733ae485100c2309b4c12","affectsGlobalScope":true},"e393915d3dc385e69c0e2390739c87b2d296a610662eb0b1cb85224e55992250","79bad8541d5779c85e82a9fb119c1fe06af77a71cc40f869d62ad379473d4b75","4a34b074b11c3597fb2ff890bc8f1484375b3b80793ab01f974534808d5777c7",{"version":"629d20681ca284d9e38c0a019f647108f5fe02f9c59ac164d56f5694fc3faf4d","affectsGlobalScope":true},"e7dbf5716d76846c7522e910896c5747b6df1abd538fee8f5291bdc843461795",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"b510d0a18e3db42ac9765d26711083ec1e8b4e21caaca6dc4d25ae6e8623f447",{"version":"0ea93d01083b3d5863cc98cb589b5d0eac55d14417487f9e5e455dfa0b17c660","affectsGlobalScope":true}],"root":[[47,51]],"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,"useDefineForClassFields":false},"fileIdsList":[[52],[88],[89,94,122],[90,101,102,109,119,130],[90,91,101,109],[92,131],[93,94,102,110],[94,119,127],[95,97,101,109],[96],[97,98],[101],[99,101],[88,101],[101,102,103,119,130],[101,102,103,116,119,122],[86,89,135],[97,101,104,109,119,130],[101,102,104,105,109,119,127,130],[104,106,119,127,130],[52,53,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137],[101,107],[108,130,135],[97,101,109,119],[110],[111],[88,112],[113,129,135],[114],[115],[101,116,117],[116,118,131,133],[89,101,119,120,121,122],[89,119,121],[119,120],[122],[123],[88,119],[101,125,126],[125,126],[94,109,119,127],[128],[109,129],[89,104,115,130],[94,131],[119,132],[108,133],[134],[89,94,101,103,112,119,130,133,135],[119,136],[63,67,130],[63,119,130],[58],[60,63,127,130],[109,127],[138],[58,138],[60,63,109,130],[55,56,59,62,89,101,119,130],[55,61],[59,63,89,122,130,138],[89,138],[79,89,138],[57,58,138],[63],[57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,75,76,77,78,80,81,82,83,84,85],[63,70,71],[61,63,71,72],[62],[55,58,63],[63,67,71,72],[67],[61,63,66,130],[55,60,61,63,67,70],[89,119],[58,63,79,89,135,138],[46],[46,49],[46,50],[46,47,48],[50]],"referencedMap":[[52,1],[53,1],[88,2],[89,3],[90,4],[91,5],[92,6],[93,7],[94,8],[95,9],[96,10],[97,11],[98,11],[100,12],[99,13],[101,14],[102,15],[103,16],[87,17],[104,18],[105,19],[106,20],[138,21],[107,22],[108,23],[109,24],[110,25],[111,26],[112,27],[113,28],[114,29],[115,30],[116,31],[117,31],[118,32],[119,33],[121,34],[120,35],[122,36],[123,37],[124,38],[125,39],[126,40],[127,41],[128,42],[129,43],[130,44],[131,45],[132,46],[133,47],[134,48],[135,49],[136,50],[70,51],[77,52],[69,51],[84,53],[61,54],[60,55],[83,56],[78,57],[81,58],[63,59],[62,60],[58,61],[57,62],[80,63],[59,64],[64,65],[68,65],[86,66],[85,65],[72,67],[73,68],[75,69],[71,70],[74,71],[79,56],[66,72],[67,73],[76,74],[56,75],[82,76],[47,77],[50,78],[51,79],[48,77],[49,80]],"exportedModulesMap":[[52,1],[53,1],[88,2],[89,3],[90,4],[91,5],[92,6],[93,7],[94,8],[95,9],[96,10],[97,11],[98,11],[100,12],[99,13],[101,14],[102,15],[103,16],[87,17],[104,18],[105,19],[106,20],[138,21],[107,22],[108,23],[109,24],[110,25],[111,26],[112,27],[113,28],[114,29],[115,30],[116,31],[117,31],[118,32],[119,33],[121,34],[120,35],[122,36],[123,37],[124,38],[125,39],[126,40],[127,41],[128,42],[129,43],[130,44],[131,45],[132,46],[133,47],[134,48],[135,49],[136,50],[70,51],[77,52],[69,51],[84,53],[61,54],[60,55],[83,56],[78,57],[81,58],[63,59],[62,60],[58,61],[57,62],[80,63],[59,64],[64,65],[68,65],[86,66],[85,65],[72,67],[73,68],[75,69],[71,70],[74,71],[79,56],[66,72],[67,73],[76,74],[56,75],[82,76],[51,81]],"semanticDiagnosticsPerFile":[139,52,53,88,89,90,91,92,93,94,95,96,97,98,100,99,101,102,103,87,137,104,105,106,138,107,108,109,110,111,112,113,114,115,116,117,118,119,121,120,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,54,46,44,45,8,10,9,2,11,12,13,14,15,16,17,18,3,4,19,23,20,21,22,24,25,26,5,27,28,29,30,6,34,31,32,33,35,7,36,41,42,37,38,39,40,1,43,70,77,69,84,61,60,83,78,81,63,62,58,57,80,59,64,65,68,55,86,85,72,73,75,71,74,79,66,67,76,56,82,47,50,51,48,49]},"version":"5.3.3"}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@operato/headroom",
3
3
  "description": "Webcomponent headroom following open-wc recommendations",
4
4
  "author": "heartyoh",
5
- "version": "1.4.5",
5
+ "version": "2.0.0-alpha.0",
6
6
  "main": "dist/src/index.js",
7
7
  "module": "dist/src/index.js",
8
8
  "license": "MIT",
@@ -60,5 +60,5 @@
60
60
  "prettier --write"
61
61
  ]
62
62
  },
63
- "gitHead": "d6f31f363ee5aabb2420203477da6206f8ebeeed"
63
+ "gitHead": "f995e977847947a1ac4043ff7c627a5cf2ada67b"
64
64
  }