New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

use-chat-scroll

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

use-chat-scroll - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

2

dist/index.js

@@ -1,2 +0,2 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ApiMountClient=t():e.ApiMountClient=t()}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=4)}([function(e,t){e.exports=require("react")},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.useStickyScroll=void 0;var n=r(0),o=r(2);t.useStickyScroll=function(e,t,r){var l,u=n.useState(null===(l=null==r?void 0:r.enabled)||void 0===l||l),c=u[0],i=u[1],s=n.useState(!0),f=s[0],a=s[1],d=n.useRef(f),v=function(){e.current.scrollTop=e.current.scrollHeight};n.useEffect((function(){d.current=f,f&&v()}),[t.length,e,f]);var p=function(){!function(){var t=e.current,r=t.scrollHeight,n=t.clientHeight,o=r===t.scrollTop+n;d.current&&!o?a(!1):!d.current&&o&&a(!0)}()},h=o.useScroll(e).setScrollEventHandler;n.useEffect((function(){h(c?p:function(){})}),[c]);return{enabled:c,sticky:f,scrollToBottom:function(){v(),a(!0)},enable:function(){return i(!0)},disable:function(){return i(!1)}}}},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.useScroll=void 0;var n=r(0);t.useScroll=function(e){var t=n.useRef((function(){})),r=n.useState(1),o=r[0],l=r[1];n.useEffect((function(){var r=t.current,n=e.current;return r({}),n.addEventListener("scroll",r),function(){n.removeEventListener("scroll",r)}}),[o]);var u=n.useRef(!1),c=n.useRef(0),i=n.useRef(0);return{isFetching:function(){return u.current},setFetching:function(){u.current=!0},setFetched:function(){u.current=!1},getCurrentScrollHeight:function(){return e.current.scrollHeight},getScrollTop:function(){return e.current.scrollTop},setScrollTop:function(t){e.current.scrollTop=t},getStoredScrollHeight:function(){return c.current},storeCurrentScrollHeight:function(){c.current=e.current.scrollHeight},getStoredScrollTop:function(){return i.current},storeCurrentScrollTop:function(){i.current=e.current.scrollTop},setScrollEventHandler:function(e){t.current=e,l(o+1)}}}},function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,l){function u(e){try{i(n.next(e))}catch(e){l(e)}}function c(e){try{i(n.throw(e))}catch(e){l(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(u,c)}i((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,l,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return l={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function c(l){return function(c){return function(l){if(r)throw new TypeError("Generator is already executing.");for(;u;)try{if(r=1,n&&(o=2&l[0]?n.return:l[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,l[1])).done)return o;switch(n=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return u.label++,{value:l[1],done:!1};case 5:u.label++,n=l[1],l=[0];continue;case 7:l=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){u=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){u.label=l[1];break}if(6===l[0]&&u.label<o[1]){u.label=o[1],o=l;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(l);break}o[2]&&u.ops.pop(),u.trys.pop();continue}l=t.call(e,u)}catch(e){l=[6,e],n=0}finally{r=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}},l=this;Object.defineProperty(t,"__esModule",{value:!0}),t.EScrollThresholdType=t.useReverseInfiniteScroll=void 0;var u=r(2),c=r(0);t.useReverseInfiniteScroll=function(e,t,r){var f=c.useRef(t),a=s(r),d=a.scrollThresholdType,v=a.scrollThresholdValue,p=a.enabled,h=c.useState(p),b=h[0],S=h[1],y=u.useScroll(e),g=y.setScrollEventHandler,T=y.getCurrentScrollHeight,_=y.getStoredScrollHeight,x=y.getStoredScrollTop,j=y.isFetching,m=y.setFetched,E=y.setFetching,w=y.getScrollTop,O=y.setScrollTop,k=y.storeCurrentScrollHeight,H=y.storeCurrentScrollTop,M=function(){return n(l,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return j()||!function(){var e,t,r,n=((e={})[i.fraction]=function(){return w()<=T()*v},e[i.pixels]=function(){return w()<=v},e);return null!==(r=null===(t=n[d])||void 0===t?void 0:t.call(n))&&void 0!==r&&r}()?[3,2]:(E(),[4,f.current((function(){k(),H()}))]);case 1:t.sent(),e=T()-_(),O(x()+e),m(),t.label=2;case 2:return[2]}}))}))};c.useEffect((function(){g(b?M:function(){})}),[b]);return{enable:function(){return S(!0)},disable:function(){return S(!1)},updateLoadMoreCb:function(e){f.current=e},enabled:b}};var i,s=function(e){var t,r,n,o,l,u=null!==(r=null===(t=null==e?void 0:e.scrollThreshold)||void 0===t?void 0:t.type)&&void 0!==r?r:i.fraction;return{scrollThresholdType:u,scrollThresholdValue:(null!==(o=null===(n=null==e?void 0:e.scrollThreshold)||void 0===n?void 0:n.value)&&void 0!==o?o:u===i.fraction)?.3:1e3,enabled:null===(l=null==e?void 0:e.enabled)||void 0===l||l}};!function(e){e[e.fraction=0]="fraction",e[e.pixels=1]="pixels"}(i=t.EScrollThresholdType||(t.EScrollThresholdType={}))},function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||t.hasOwnProperty(r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),o(r(5),t),o(r(1),t);var l=r(3);Object.defineProperty(t,"EScrollThresholdType",{enumerable:!0,get:function(){return l.EScrollThresholdType}})},function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.useChatScroll=void 0;var n=r(1),o=r(3);t.useChatScroll=function(e,t,r,l){var u,c,i=o.useReverseInfiniteScroll(e,r,null!==(u=null==l?void 0:l.reverseInfiniteScroll)&&void 0!==u?u:{}),s=i.disable,f=i.enable,a=i.enabled,d=i.updateLoadMoreCb,v=n.useStickyScroll(e,t,null!==(c=null==l?void 0:l.stickyScroll)&&void 0!==c?c:{}),p=v.disable,h=v.enable,b=v.enabled,S=v.scrollToBottom;return{reverseInfiniteScrollEnabled:a,stickyScrollEnabled:b,enableReverseInfiniteScroll:f,disableReverseInfiniteScroll:s,enableStickyScroll:h,disableStickyScroll:p,sticky:v.sticky,scrollToBottom:S,updateLoadMoreCb:d}}}])}));
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.ApiMountClient=t():e.ApiMountClient=t()}(window,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(e,t){e.exports=require("react")},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useStickyScroll=void 0;var r=n(0),o=n(2);t.useStickyScroll=function(e,t,n){var l,u=r.useState(null===(l=null==n?void 0:n.enabled)||void 0===l||l),c=u[0],i=u[1],a=r.useState(!0),f=a[0],s=a[1],d=r.useRef(f),v=function(){e.current.scrollTop=e.current.scrollHeight};r.useEffect((function(){d.current=f,f&&v()}),[t.length,e,f]);var p=function(){!function(){var t=e.current,n=t.scrollHeight,r=t.clientHeight,o=n===t.scrollTop+r;d.current&&!o?s(!1):!d.current&&o&&s(!0)}()},h=o.useScroll(e).setScrollEventHandler;r.useEffect((function(){h(c?p:function(){})}),[c]);return{enabled:c,sticky:f,scrollToBottom:function(){v(),s(!0)},enable:function(){return i(!0)},disable:function(){return i(!1)}}}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useScroll=void 0;var r=n(0);t.useScroll=function(e){var t=r.useRef((function(){})),n=r.useState(1),o=n[0],l=n[1];r.useEffect((function(){var n=t.current,r=e.current;return n({}),r.addEventListener("scroll",n),function(){r.removeEventListener("scroll",n)}}),[o]);var u=r.useRef(!1),c=r.useRef(0),i=r.useRef(0);return{isFetching:function(){return u.current},setFetching:function(){u.current=!0},setFetched:function(){u.current=!1},getCurrentScrollHeight:function(){return e.current.scrollHeight},getScrollTop:function(){return e.current.scrollTop},setScrollTop:function(t){e.current.scrollTop=t},getStoredScrollHeight:function(){return c.current},storeCurrentScrollHeight:function(){c.current=e.current.scrollHeight},getStoredScrollTop:function(){return i.current},storeCurrentScrollTop:function(){i.current=e.current.scrollTop},setScrollEventHandler:function(e){t.current=e,l(o+1)}}}},function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,l){function u(e){try{i(r.next(e))}catch(e){l(e)}}function c(e){try{i(r.throw(e))}catch(e){l(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,c)}i((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,l,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return l={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function c(l){return function(c){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return u.label++,{value:l[1],done:!1};case 5:u.label++,r=l[1],l=[0];continue;case 7:l=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){u=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){u.label=l[1];break}if(6===l[0]&&u.label<o[1]){u.label=o[1],o=l;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(l);break}o[2]&&u.ops.pop(),u.trys.pop();continue}l=t.call(e,u)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}},l=this;Object.defineProperty(t,"__esModule",{value:!0}),t.EScrollThresholdType=t.useReverseInfiniteScroll=void 0;var u=n(2),c=n(0);t.useReverseInfiniteScroll=function(e,t,n){var f=c.useRef(t),s=a(n),d=s.scrollThresholdType,v=s.scrollThresholdValue,p=s.enabled,h=c.useState(p),b=h[0],y=h[1],S=u.useScroll(e),g=S.setScrollEventHandler,T=S.getCurrentScrollHeight,_=S.getStoredScrollHeight,w=S.getStoredScrollTop,x=S.isFetching,m=S.setFetched,E=S.setFetching,j=S.getScrollTop,k=S.setScrollTop,O=S.storeCurrentScrollHeight,P=S.storeCurrentScrollTop,M=function(){return r(l,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return x()||!function(){var e,t,n,r=((e={})[i.fraction]=function(){return j()<=T()*v},e[i.pixels]=function(){return j()<=v},e);return null!==(n=null===(t=r[d])||void 0===t?void 0:t.call(r))&&void 0!==n&&n}()?[3,2]:(E(),[4,f.current((function(){O(),P()}))]);case 1:t.sent(),e=T()-_(),k(w()+e),m(),t.label=2;case 2:return[2]}}))}))};c.useEffect((function(){g(b?M:function(){})}),[b]);return{enable:function(){return y(!0)},disable:function(){return y(!1)},updateLoadMoreCb:function(e){f.current=e},enabled:b}};var i,a=function(e){var t,n,r,o,l,u=null!==(n=null===(t=null==e?void 0:e.scrollThreshold)||void 0===t?void 0:t.type)&&void 0!==n?n:i.fraction;return{scrollThresholdType:u,scrollThresholdValue:(null!==(o=null===(r=null==e?void 0:e.scrollThreshold)||void 0===r?void 0:r.value)&&void 0!==o?o:u===i.fraction)?.2:1e3,enabled:null===(l=null==e?void 0:e.enabled)||void 0===l||l}};!function(e){e[e.fraction=0]="fraction",e[e.pixels=1]="pixels"}(i=t.EScrollThresholdType||(t.EScrollThresholdType={}))},function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||t.hasOwnProperty(n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5),t),o(n(1),t),o(n(6),t);var l=n(3);Object.defineProperty(t,"EScrollThresholdType",{enumerable:!0,get:function(){return l.EScrollThresholdType}})},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.useChatScroll=void 0;var r=n(1),o=n(3);t.useChatScroll=function(e,t,n,l){var u,c,i=o.useReverseInfiniteScroll(e,n,null!==(u=null==l?void 0:l.reverseInfiniteScroll)&&void 0!==u?u:{}),a=i.disable,f=i.enable,s=i.enabled,d=i.updateLoadMoreCb,v=r.useStickyScroll(e,t,null!==(c=null==l?void 0:l.stickyScroll)&&void 0!==c?c:{}),p=v.disable,h=v.enable,b=v.enabled,y=v.scrollToBottom;return{reverseInfiniteScrollEnabled:s,stickyScrollEnabled:b,enableReverseInfiniteScroll:f,disableReverseInfiniteScroll:a,enableStickyScroll:h,disableStickyScroll:p,sticky:v.sticky,scrollToBottom:y,updateLoadMoreCb:d}}},function(e,t,n){var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,l){function u(e){try{i(r.next(e))}catch(e){l(e)}}function c(e){try{i(r.throw(e))}catch(e){l(e)}}function i(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(u,c)}i((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,l,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return l={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function c(l){return function(c){return function(l){if(n)throw new TypeError("Generator is already executing.");for(;u;)try{if(n=1,r&&(o=2&l[0]?r.return:l[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,l[1])).done)return o;switch(r=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return u.label++,{value:l[1],done:!1};case 5:u.label++,r=l[1],l=[0];continue;case 7:l=u.ops.pop(),u.trys.pop();continue;default:if(!(o=u.trys,(o=o.length>0&&o[o.length-1])||6!==l[0]&&2!==l[0])){u=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){u.label=l[1];break}if(6===l[0]&&u.label<o[1]){u.label=o[1],o=l;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(l);break}o[2]&&u.ops.pop(),u.trys.pop();continue}l=t.call(e,u)}catch(e){l=[6,e],r=0}finally{n=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,c])}}},l=this&&this.__spreadArrays||function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var l=arguments[t],u=0,c=l.length;u<c;u++,o++)r[o]=l[u];return r},u=this;Object.defineProperty(t,"__esModule",{value:!0}),t.useDataLoader=void 0;var c=n(0);t.useDataLoader=function(e,t,n,i){void 0===i&&(i=[]);var a=c.useRef(i),f=c.useRef(t),s=c.useRef(null);c.useEffect((function(){f.current=t}),[t,t.length]),c.useEffect((function(){a.current=l(i)}),l(i));return c.useEffect((function(){s.current&&(s.current(),s.current=null)}),[t]),function(t){return r(u,void 0,void 0,(function(){var r,u;return o(this,(function(o){switch(o.label){case 0:return[4,e.apply(void 0,a.current)];case 1:return r=o.sent(),t(),u=new Promise((function(e){s.current=e})),n(l(r,f.current)),[2,u]}}))}))}}}])}));
//# sourceMappingURL=index.js.map

@@ -1,1 +0,1 @@

{"kinds":{"4":"Enumeration","16":"Enumeration member","64":"Function","256":"Interface","1024":"Property","65536":"Type literal","4194304":"Type alias"},"rows":[{"id":0,"kind":256,"name":"IUseScrollResponse","url":"interfaces/iusescrollresponse.html","classes":"tsd-kind-interface"},{"id":1,"kind":1024,"name":"isFetching","url":"interfaces/iusescrollresponse.html#isfetching","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseScrollResponse"},{"id":2,"kind":65536,"name":"__type","url":"interfaces/iusescrollresponse.html#isfetching.__type-4","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseScrollResponse.isFetching"},{"id":3,"kind":1024,"name":"setFetching","url":"interfaces/iusescrollresponse.html#setfetching","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseScrollResponse"},{"id":4,"kind":65536,"name":"__type","url":"interfaces/iusescrollresponse.html#setfetching.__type-6","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseScrollResponse.setFetching"},{"id":5,"kind":1024,"name":"setFetched","url":"interfaces/iusescrollresponse.html#setfetched","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseScrollResponse"},{"id":6,"kind":65536,"name":"__type","url":"interfaces/iusescrollresponse.html#setfetched.__type-5","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseScrollResponse.setFetched"},{"id":7,"kind":1024,"name":"getCurrentScrollHeight","url":"interfaces/iusescrollresponse.html#getcurrentscrollheight","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseScrollResponse"},{"id":8,"kind":65536,"name":"__type","url":"interfaces/iusescrollresponse.html#getcurrentscrollheight.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseScrollResponse.getCurrentScrollHeight"},{"id":9,"kind":1024,"name":"getScrollTop","url":"interfaces/iusescrollresponse.html#getscrolltop","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseScrollResponse"},{"id":10,"kind":65536,"name":"__type","url":"interfaces/iusescrollresponse.html#getscrolltop.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseScrollResponse.getScrollTop"},{"id":11,"kind":1024,"name":"setScrollTop","url":"interfaces/iusescrollresponse.html#setscrolltop","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseScrollResponse"},{"id":12,"kind":65536,"name":"__type","url":"interfaces/iusescrollresponse.html#setscrolltop.__type-8","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseScrollResponse.setScrollTop"},{"id":13,"kind":1024,"name":"getStoredScrollHeight","url":"interfaces/iusescrollresponse.html#getstoredscrollheight","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseScrollResponse"},{"id":14,"kind":65536,"name":"__type","url":"interfaces/iusescrollresponse.html#getstoredscrollheight.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseScrollResponse.getStoredScrollHeight"},{"id":15,"kind":1024,"name":"storeCurrentScrollHeight","url":"interfaces/iusescrollresponse.html#storecurrentscrollheight","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseScrollResponse"},{"id":16,"kind":65536,"name":"__type","url":"interfaces/iusescrollresponse.html#storecurrentscrollheight.__type-9","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseScrollResponse.storeCurrentScrollHeight"},{"id":17,"kind":1024,"name":"getStoredScrollTop","url":"interfaces/iusescrollresponse.html#getstoredscrolltop","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseScrollResponse"},{"id":18,"kind":65536,"name":"__type","url":"interfaces/iusescrollresponse.html#getstoredscrolltop.__type-3","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseScrollResponse.getStoredScrollTop"},{"id":19,"kind":1024,"name":"storeCurrentScrollTop","url":"interfaces/iusescrollresponse.html#storecurrentscrolltop","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseScrollResponse"},{"id":20,"kind":65536,"name":"__type","url":"interfaces/iusescrollresponse.html#storecurrentscrolltop.__type-10","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseScrollResponse.storeCurrentScrollTop"},{"id":21,"kind":1024,"name":"setScrollEventHandler","url":"interfaces/iusescrollresponse.html#setscrolleventhandler","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseScrollResponse"},{"id":22,"kind":65536,"name":"__type","url":"interfaces/iusescrollresponse.html#setscrolleventhandler.__type-7","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseScrollResponse.setScrollEventHandler"},{"id":23,"kind":4194304,"name":"IScrollEventHandler","url":"globals.html#iscrolleventhandler","classes":"tsd-kind-type-alias"},{"id":24,"kind":65536,"name":"__type","url":"globals.html#iscrolleventhandler.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"IScrollEventHandler"},{"id":25,"kind":256,"name":"IUseReverseInfiniteScrollOptions","url":"interfaces/iusereverseinfinitescrolloptions.html","classes":"tsd-kind-interface"},{"id":26,"kind":1024,"name":"scrollThreshold","url":"interfaces/iusereverseinfinitescrolloptions.html#scrollthreshold","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseReverseInfiniteScrollOptions"},{"id":27,"kind":1024,"name":"enabled","url":"interfaces/iusereverseinfinitescrolloptions.html#enabled","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseReverseInfiniteScrollOptions"},{"id":28,"kind":256,"name":"IScrollThreshold","url":"interfaces/iscrollthreshold.html","classes":"tsd-kind-interface"},{"id":29,"kind":1024,"name":"type","url":"interfaces/iscrollthreshold.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IScrollThreshold"},{"id":30,"kind":1024,"name":"value","url":"interfaces/iscrollthreshold.html#value","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IScrollThreshold"},{"id":31,"kind":4,"name":"EScrollThresholdType","url":"enums/escrollthresholdtype.html","classes":"tsd-kind-enum"},{"id":32,"kind":16,"name":"fraction","url":"enums/escrollthresholdtype.html#fraction","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"EScrollThresholdType"},{"id":33,"kind":16,"name":"pixels","url":"enums/escrollthresholdtype.html#pixels","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"EScrollThresholdType"},{"id":34,"kind":256,"name":"IUseReverseInfiniteScrollResponse","url":"interfaces/iusereverseinfinitescrollresponse.html","classes":"tsd-kind-interface"},{"id":35,"kind":1024,"name":"enabled","url":"interfaces/iusereverseinfinitescrollresponse.html#enabled","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseReverseInfiniteScrollResponse"},{"id":36,"kind":1024,"name":"enable","url":"interfaces/iusereverseinfinitescrollresponse.html#enable","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseReverseInfiniteScrollResponse"},{"id":37,"kind":65536,"name":"__type","url":"interfaces/iusereverseinfinitescrollresponse.html#enable.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseReverseInfiniteScrollResponse.enable"},{"id":38,"kind":1024,"name":"disable","url":"interfaces/iusereverseinfinitescrollresponse.html#disable","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseReverseInfiniteScrollResponse"},{"id":39,"kind":65536,"name":"__type","url":"interfaces/iusereverseinfinitescrollresponse.html#disable.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseReverseInfiniteScrollResponse.disable"},{"id":40,"kind":1024,"name":"updateLoadMoreCb","url":"interfaces/iusereverseinfinitescrollresponse.html#updateloadmorecb","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseReverseInfiniteScrollResponse"},{"id":41,"kind":65536,"name":"__type","url":"interfaces/iusereverseinfinitescrollresponse.html#updateloadmorecb.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseReverseInfiniteScrollResponse.updateLoadMoreCb"},{"id":42,"kind":4194304,"name":"ILoadMoreCb","url":"globals.html#iloadmorecb","classes":"tsd-kind-type-alias"},{"id":43,"kind":65536,"name":"__type","url":"globals.html#iloadmorecb.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"ILoadMoreCb"},{"id":44,"kind":4194304,"name":"IBeforeRenderCb","url":"globals.html#ibeforerendercb","classes":"tsd-kind-type-alias"},{"id":45,"kind":65536,"name":"__type","url":"globals.html#ibeforerendercb.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"IBeforeRenderCb"},{"id":46,"kind":256,"name":"IUseStickyScrollOptions","url":"interfaces/iusestickyscrolloptions.html","classes":"tsd-kind-interface"},{"id":47,"kind":1024,"name":"enabled","url":"interfaces/iusestickyscrolloptions.html#enabled","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseStickyScrollOptions"},{"id":48,"kind":256,"name":"IUseStickyScrollResponse","url":"interfaces/iusestickyscrollresponse.html","classes":"tsd-kind-interface"},{"id":49,"kind":1024,"name":"enabled","url":"interfaces/iusestickyscrollresponse.html#enabled","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseStickyScrollResponse"},{"id":50,"kind":1024,"name":"sticky","url":"interfaces/iusestickyscrollresponse.html#sticky","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseStickyScrollResponse"},{"id":51,"kind":1024,"name":"scrollToBottom","url":"interfaces/iusestickyscrollresponse.html#scrolltobottom","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseStickyScrollResponse"},{"id":52,"kind":65536,"name":"__type","url":"interfaces/iusestickyscrollresponse.html#scrolltobottom.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseStickyScrollResponse.scrollToBottom"},{"id":53,"kind":1024,"name":"enable","url":"interfaces/iusestickyscrollresponse.html#enable","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseStickyScrollResponse"},{"id":54,"kind":65536,"name":"__type","url":"interfaces/iusestickyscrollresponse.html#enable.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseStickyScrollResponse.enable"},{"id":55,"kind":1024,"name":"disable","url":"interfaces/iusestickyscrollresponse.html#disable","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseStickyScrollResponse"},{"id":56,"kind":65536,"name":"__type","url":"interfaces/iusestickyscrollresponse.html#disable.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseStickyScrollResponse.disable"},{"id":57,"kind":64,"name":"useStickyScroll","url":"globals.html#usestickyscroll","classes":"tsd-kind-function"},{"id":58,"kind":256,"name":"IUseChatScrollOptions","url":"interfaces/iusechatscrolloptions.html","classes":"tsd-kind-interface"},{"id":59,"kind":1024,"name":"reverseInfiniteScroll","url":"interfaces/iusechatscrolloptions.html#reverseinfinitescroll","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseChatScrollOptions"},{"id":60,"kind":1024,"name":"stickyScroll","url":"interfaces/iusechatscrolloptions.html#stickyscroll","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseChatScrollOptions"},{"id":61,"kind":256,"name":"IUseChatScrollReturn","url":"interfaces/iusechatscrollreturn.html","classes":"tsd-kind-interface"},{"id":62,"kind":1024,"name":"sticky","url":"interfaces/iusechatscrollreturn.html#sticky","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseChatScrollReturn"},{"id":63,"kind":1024,"name":"reverseInfiniteScrollEnabled","url":"interfaces/iusechatscrollreturn.html#reverseinfinitescrollenabled","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseChatScrollReturn"},{"id":64,"kind":1024,"name":"stickyScrollEnabled","url":"interfaces/iusechatscrollreturn.html#stickyscrollenabled","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseChatScrollReturn"},{"id":65,"kind":1024,"name":"enableReverseInfiniteScroll","url":"interfaces/iusechatscrollreturn.html#enablereverseinfinitescroll","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseChatScrollReturn"},{"id":66,"kind":65536,"name":"__type","url":"interfaces/iusechatscrollreturn.html#enablereverseinfinitescroll.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseChatScrollReturn.enableReverseInfiniteScroll"},{"id":67,"kind":1024,"name":"disableReverseInfiniteScroll","url":"interfaces/iusechatscrollreturn.html#disablereverseinfinitescroll","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseChatScrollReturn"},{"id":68,"kind":65536,"name":"__type","url":"interfaces/iusechatscrollreturn.html#disablereverseinfinitescroll.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseChatScrollReturn.disableReverseInfiniteScroll"},{"id":69,"kind":1024,"name":"enableStickyScroll","url":"interfaces/iusechatscrollreturn.html#enablestickyscroll","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseChatScrollReturn"},{"id":70,"kind":65536,"name":"__type","url":"interfaces/iusechatscrollreturn.html#enablestickyscroll.__type-3","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseChatScrollReturn.enableStickyScroll"},{"id":71,"kind":1024,"name":"disableStickyScroll","url":"interfaces/iusechatscrollreturn.html#disablestickyscroll","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseChatScrollReturn"},{"id":72,"kind":65536,"name":"__type","url":"interfaces/iusechatscrollreturn.html#disablestickyscroll.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseChatScrollReturn.disableStickyScroll"},{"id":73,"kind":1024,"name":"scrollToBottom","url":"interfaces/iusechatscrollreturn.html#scrolltobottom","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseChatScrollReturn"},{"id":74,"kind":65536,"name":"__type","url":"interfaces/iusechatscrollreturn.html#scrolltobottom.__type-4","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseChatScrollReturn.scrollToBottom"},{"id":75,"kind":1024,"name":"updateLoadMoreCb","url":"interfaces/iusechatscrollreturn.html#updateloadmorecb","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseChatScrollReturn"},{"id":76,"kind":65536,"name":"__type","url":"interfaces/iusechatscrollreturn.html#updateloadmorecb.__type-5","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseChatScrollReturn.updateLoadMoreCb"},{"id":77,"kind":64,"name":"useChatScroll","url":"globals.html#usechatscroll","classes":"tsd-kind-function"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,18.437]],["parent/0",[]],["name/1",[1,39.64]],["parent/1",[0,1.692]],["name/2",[2,10.923]],["parent/2",[3,3.638]],["name/3",[4,39.64]],["parent/3",[0,1.692]],["name/4",[2,10.923]],["parent/4",[5,3.638]],["name/5",[6,39.64]],["parent/5",[0,1.692]],["name/6",[2,10.923]],["parent/6",[7,3.638]],["name/7",[8,39.64]],["parent/7",[0,1.692]],["name/8",[2,10.923]],["parent/8",[9,3.638]],["name/9",[10,39.64]],["parent/9",[0,1.692]],["name/10",[2,10.923]],["parent/10",[11,3.638]],["name/11",[12,39.64]],["parent/11",[0,1.692]],["name/12",[2,10.923]],["parent/12",[13,3.638]],["name/13",[14,39.64]],["parent/13",[0,1.692]],["name/14",[2,10.923]],["parent/14",[15,3.638]],["name/15",[16,39.64]],["parent/15",[0,1.692]],["name/16",[2,10.923]],["parent/16",[17,3.638]],["name/17",[18,39.64]],["parent/17",[0,1.692]],["name/18",[2,10.923]],["parent/18",[19,3.638]],["name/19",[20,39.64]],["parent/19",[0,1.692]],["name/20",[2,10.923]],["parent/20",[21,3.638]],["name/21",[22,39.64]],["parent/21",[0,1.692]],["name/22",[2,10.923]],["parent/22",[23,3.638]],["name/23",[24,34.532]],["parent/23",[]],["name/24",[2,10.923]],["parent/24",[24,3.17]],["name/25",[25,31.167]],["parent/25",[]],["name/26",[26,39.64]],["parent/26",[25,2.861]],["name/27",[27,28.654]],["parent/27",[25,2.861]],["name/28",[28,31.167]],["parent/28",[]],["name/29",[29,39.64]],["parent/29",[28,2.861]],["name/30",[30,39.64]],["parent/30",[28,2.861]],["name/31",[31,31.167]],["parent/31",[]],["name/32",[32,39.64]],["parent/32",[31,2.861]],["name/33",[33,39.64]],["parent/33",[31,2.861]],["name/34",[34,26.647]],["parent/34",[]],["name/35",[27,28.654]],["parent/35",[34,2.446]],["name/36",[35,34.532]],["parent/36",[34,2.446]],["name/37",[2,10.923]],["parent/37",[36,3.638]],["name/38",[37,34.532]],["parent/38",[34,2.446]],["name/39",[2,10.923]],["parent/39",[38,3.638]],["name/40",[39,34.532]],["parent/40",[34,2.446]],["name/41",[2,10.923]],["parent/41",[40,3.638]],["name/42",[41,34.532]],["parent/42",[]],["name/43",[2,10.923]],["parent/43",[41,3.17]],["name/44",[42,34.532]],["parent/44",[]],["name/45",[2,10.923]],["parent/45",[42,3.17]],["name/46",[43,34.532]],["parent/46",[]],["name/47",[27,28.654]],["parent/47",[43,3.17]],["name/48",[44,24.976]],["parent/48",[]],["name/49",[27,28.654]],["parent/49",[44,2.292]],["name/50",[45,34.532]],["parent/50",[44,2.292]],["name/51",[46,34.532]],["parent/51",[44,2.292]],["name/52",[2,10.923]],["parent/52",[47,3.638]],["name/53",[35,34.532]],["parent/53",[44,2.292]],["name/54",[2,10.923]],["parent/54",[48,3.638]],["name/55",[37,34.532]],["parent/55",[44,2.292]],["name/56",[2,10.923]],["parent/56",[49,3.638]],["name/57",[50,39.64]],["parent/57",[]],["name/58",[51,31.167]],["parent/58",[]],["name/59",[52,39.64]],["parent/59",[51,2.861]],["name/60",[53,39.64]],["parent/60",[51,2.861]],["name/61",[54,20.181]],["parent/61",[]],["name/62",[45,34.532]],["parent/62",[54,1.852]],["name/63",[55,39.64]],["parent/63",[54,1.852]],["name/64",[56,39.64]],["parent/64",[54,1.852]],["name/65",[57,39.64]],["parent/65",[54,1.852]],["name/66",[2,10.923]],["parent/66",[58,3.638]],["name/67",[59,39.64]],["parent/67",[54,1.852]],["name/68",[2,10.923]],["parent/68",[60,3.638]],["name/69",[61,39.64]],["parent/69",[54,1.852]],["name/70",[2,10.923]],["parent/70",[62,3.638]],["name/71",[63,39.64]],["parent/71",[54,1.852]],["name/72",[2,10.923]],["parent/72",[64,3.638]],["name/73",[46,34.532]],["parent/73",[54,1.852]],["name/74",[2,10.923]],["parent/74",[65,3.638]],["name/75",[39,34.532]],["parent/75",[54,1.852]],["name/76",[2,10.923]],["parent/76",[66,3.638]],["name/77",[67,39.64]],["parent/77",[]]],"invertedIndex":[["__type",{"_index":2,"name":{"2":{},"4":{},"6":{},"8":{},"10":{},"12":{},"14":{},"16":{},"18":{},"20":{},"22":{},"24":{},"37":{},"39":{},"41":{},"43":{},"45":{},"52":{},"54":{},"56":{},"66":{},"68":{},"70":{},"72":{},"74":{},"76":{}},"parent":{}}],["disable",{"_index":37,"name":{"38":{},"55":{}},"parent":{}}],["disablereverseinfinitescroll",{"_index":59,"name":{"67":{}},"parent":{}}],["disablestickyscroll",{"_index":63,"name":{"71":{}},"parent":{}}],["enable",{"_index":35,"name":{"36":{},"53":{}},"parent":{}}],["enabled",{"_index":27,"name":{"27":{},"35":{},"47":{},"49":{}},"parent":{}}],["enablereverseinfinitescroll",{"_index":57,"name":{"65":{}},"parent":{}}],["enablestickyscroll",{"_index":61,"name":{"69":{}},"parent":{}}],["escrollthresholdtype",{"_index":31,"name":{"31":{}},"parent":{"32":{},"33":{}}}],["fraction",{"_index":32,"name":{"32":{}},"parent":{}}],["getcurrentscrollheight",{"_index":8,"name":{"7":{}},"parent":{}}],["getscrolltop",{"_index":10,"name":{"9":{}},"parent":{}}],["getstoredscrollheight",{"_index":14,"name":{"13":{}},"parent":{}}],["getstoredscrolltop",{"_index":18,"name":{"17":{}},"parent":{}}],["ibeforerendercb",{"_index":42,"name":{"44":{}},"parent":{"45":{}}}],["iloadmorecb",{"_index":41,"name":{"42":{}},"parent":{"43":{}}}],["iscrolleventhandler",{"_index":24,"name":{"23":{}},"parent":{"24":{}}}],["iscrollthreshold",{"_index":28,"name":{"28":{}},"parent":{"29":{},"30":{}}}],["isfetching",{"_index":1,"name":{"1":{}},"parent":{}}],["iusechatscrolloptions",{"_index":51,"name":{"58":{}},"parent":{"59":{},"60":{}}}],["iusechatscrollreturn",{"_index":54,"name":{"61":{}},"parent":{"62":{},"63":{},"64":{},"65":{},"67":{},"69":{},"71":{},"73":{},"75":{}}}],["iusechatscrollreturn.disablereverseinfinitescroll",{"_index":60,"name":{},"parent":{"68":{}}}],["iusechatscrollreturn.disablestickyscroll",{"_index":64,"name":{},"parent":{"72":{}}}],["iusechatscrollreturn.enablereverseinfinitescroll",{"_index":58,"name":{},"parent":{"66":{}}}],["iusechatscrollreturn.enablestickyscroll",{"_index":62,"name":{},"parent":{"70":{}}}],["iusechatscrollreturn.scrolltobottom",{"_index":65,"name":{},"parent":{"74":{}}}],["iusechatscrollreturn.updateloadmorecb",{"_index":66,"name":{},"parent":{"76":{}}}],["iusereverseinfinitescrolloptions",{"_index":25,"name":{"25":{}},"parent":{"26":{},"27":{}}}],["iusereverseinfinitescrollresponse",{"_index":34,"name":{"34":{}},"parent":{"35":{},"36":{},"38":{},"40":{}}}],["iusereverseinfinitescrollresponse.disable",{"_index":38,"name":{},"parent":{"39":{}}}],["iusereverseinfinitescrollresponse.enable",{"_index":36,"name":{},"parent":{"37":{}}}],["iusereverseinfinitescrollresponse.updateloadmorecb",{"_index":40,"name":{},"parent":{"41":{}}}],["iusescrollresponse",{"_index":0,"name":{"0":{}},"parent":{"1":{},"3":{},"5":{},"7":{},"9":{},"11":{},"13":{},"15":{},"17":{},"19":{},"21":{}}}],["iusescrollresponse.getcurrentscrollheight",{"_index":9,"name":{},"parent":{"8":{}}}],["iusescrollresponse.getscrolltop",{"_index":11,"name":{},"parent":{"10":{}}}],["iusescrollresponse.getstoredscrollheight",{"_index":15,"name":{},"parent":{"14":{}}}],["iusescrollresponse.getstoredscrolltop",{"_index":19,"name":{},"parent":{"18":{}}}],["iusescrollresponse.isfetching",{"_index":3,"name":{},"parent":{"2":{}}}],["iusescrollresponse.setfetched",{"_index":7,"name":{},"parent":{"6":{}}}],["iusescrollresponse.setfetching",{"_index":5,"name":{},"parent":{"4":{}}}],["iusescrollresponse.setscrolleventhandler",{"_index":23,"name":{},"parent":{"22":{}}}],["iusescrollresponse.setscrolltop",{"_index":13,"name":{},"parent":{"12":{}}}],["iusescrollresponse.storecurrentscrollheight",{"_index":17,"name":{},"parent":{"16":{}}}],["iusescrollresponse.storecurrentscrolltop",{"_index":21,"name":{},"parent":{"20":{}}}],["iusestickyscrolloptions",{"_index":43,"name":{"46":{}},"parent":{"47":{}}}],["iusestickyscrollresponse",{"_index":44,"name":{"48":{}},"parent":{"49":{},"50":{},"51":{},"53":{},"55":{}}}],["iusestickyscrollresponse.disable",{"_index":49,"name":{},"parent":{"56":{}}}],["iusestickyscrollresponse.enable",{"_index":48,"name":{},"parent":{"54":{}}}],["iusestickyscrollresponse.scrolltobottom",{"_index":47,"name":{},"parent":{"52":{}}}],["pixels",{"_index":33,"name":{"33":{}},"parent":{}}],["reverseinfinitescroll",{"_index":52,"name":{"59":{}},"parent":{}}],["reverseinfinitescrollenabled",{"_index":55,"name":{"63":{}},"parent":{}}],["scrollthreshold",{"_index":26,"name":{"26":{}},"parent":{}}],["scrolltobottom",{"_index":46,"name":{"51":{},"73":{}},"parent":{}}],["setfetched",{"_index":6,"name":{"5":{}},"parent":{}}],["setfetching",{"_index":4,"name":{"3":{}},"parent":{}}],["setscrolleventhandler",{"_index":22,"name":{"21":{}},"parent":{}}],["setscrolltop",{"_index":12,"name":{"11":{}},"parent":{}}],["sticky",{"_index":45,"name":{"50":{},"62":{}},"parent":{}}],["stickyscroll",{"_index":53,"name":{"60":{}},"parent":{}}],["stickyscrollenabled",{"_index":56,"name":{"64":{}},"parent":{}}],["storecurrentscrollheight",{"_index":16,"name":{"15":{}},"parent":{}}],["storecurrentscrolltop",{"_index":20,"name":{"19":{}},"parent":{}}],["type",{"_index":29,"name":{"29":{}},"parent":{}}],["updateloadmorecb",{"_index":39,"name":{"40":{},"75":{}},"parent":{}}],["usechatscroll",{"_index":67,"name":{"77":{}},"parent":{}}],["usestickyscroll",{"_index":50,"name":{"57":{}},"parent":{}}],["value",{"_index":30,"name":{"30":{}},"parent":{}}]],"pipeline":[]}}
{"kinds":{"4":"Enumeration","16":"Enumeration member","64":"Function","256":"Interface","1024":"Property","65536":"Type literal","4194304":"Type alias"},"rows":[{"id":0,"kind":256,"name":"IUseScrollResponse","url":"interfaces/iusescrollresponse.html","classes":"tsd-kind-interface"},{"id":1,"kind":1024,"name":"isFetching","url":"interfaces/iusescrollresponse.html#isfetching","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseScrollResponse"},{"id":2,"kind":65536,"name":"__type","url":"interfaces/iusescrollresponse.html#isfetching.__type-4","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseScrollResponse.isFetching"},{"id":3,"kind":1024,"name":"setFetching","url":"interfaces/iusescrollresponse.html#setfetching","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseScrollResponse"},{"id":4,"kind":65536,"name":"__type","url":"interfaces/iusescrollresponse.html#setfetching.__type-6","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseScrollResponse.setFetching"},{"id":5,"kind":1024,"name":"setFetched","url":"interfaces/iusescrollresponse.html#setfetched","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseScrollResponse"},{"id":6,"kind":65536,"name":"__type","url":"interfaces/iusescrollresponse.html#setfetched.__type-5","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseScrollResponse.setFetched"},{"id":7,"kind":1024,"name":"getCurrentScrollHeight","url":"interfaces/iusescrollresponse.html#getcurrentscrollheight","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseScrollResponse"},{"id":8,"kind":65536,"name":"__type","url":"interfaces/iusescrollresponse.html#getcurrentscrollheight.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseScrollResponse.getCurrentScrollHeight"},{"id":9,"kind":1024,"name":"getScrollTop","url":"interfaces/iusescrollresponse.html#getscrolltop","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseScrollResponse"},{"id":10,"kind":65536,"name":"__type","url":"interfaces/iusescrollresponse.html#getscrolltop.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseScrollResponse.getScrollTop"},{"id":11,"kind":1024,"name":"setScrollTop","url":"interfaces/iusescrollresponse.html#setscrolltop","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseScrollResponse"},{"id":12,"kind":65536,"name":"__type","url":"interfaces/iusescrollresponse.html#setscrolltop.__type-8","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseScrollResponse.setScrollTop"},{"id":13,"kind":1024,"name":"getStoredScrollHeight","url":"interfaces/iusescrollresponse.html#getstoredscrollheight","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseScrollResponse"},{"id":14,"kind":65536,"name":"__type","url":"interfaces/iusescrollresponse.html#getstoredscrollheight.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseScrollResponse.getStoredScrollHeight"},{"id":15,"kind":1024,"name":"storeCurrentScrollHeight","url":"interfaces/iusescrollresponse.html#storecurrentscrollheight","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseScrollResponse"},{"id":16,"kind":65536,"name":"__type","url":"interfaces/iusescrollresponse.html#storecurrentscrollheight.__type-9","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseScrollResponse.storeCurrentScrollHeight"},{"id":17,"kind":1024,"name":"getStoredScrollTop","url":"interfaces/iusescrollresponse.html#getstoredscrolltop","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseScrollResponse"},{"id":18,"kind":65536,"name":"__type","url":"interfaces/iusescrollresponse.html#getstoredscrolltop.__type-3","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseScrollResponse.getStoredScrollTop"},{"id":19,"kind":1024,"name":"storeCurrentScrollTop","url":"interfaces/iusescrollresponse.html#storecurrentscrolltop","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseScrollResponse"},{"id":20,"kind":65536,"name":"__type","url":"interfaces/iusescrollresponse.html#storecurrentscrolltop.__type-10","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseScrollResponse.storeCurrentScrollTop"},{"id":21,"kind":1024,"name":"setScrollEventHandler","url":"interfaces/iusescrollresponse.html#setscrolleventhandler","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseScrollResponse"},{"id":22,"kind":65536,"name":"__type","url":"interfaces/iusescrollresponse.html#setscrolleventhandler.__type-7","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseScrollResponse.setScrollEventHandler"},{"id":23,"kind":4194304,"name":"IScrollEventHandler","url":"globals.html#iscrolleventhandler","classes":"tsd-kind-type-alias"},{"id":24,"kind":65536,"name":"__type","url":"globals.html#iscrolleventhandler.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"IScrollEventHandler"},{"id":25,"kind":256,"name":"IUseReverseInfiniteScrollOptions","url":"interfaces/iusereverseinfinitescrolloptions.html","classes":"tsd-kind-interface"},{"id":26,"kind":1024,"name":"scrollThreshold","url":"interfaces/iusereverseinfinitescrolloptions.html#scrollthreshold","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseReverseInfiniteScrollOptions"},{"id":27,"kind":1024,"name":"enabled","url":"interfaces/iusereverseinfinitescrolloptions.html#enabled","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseReverseInfiniteScrollOptions"},{"id":28,"kind":256,"name":"IScrollThreshold","url":"interfaces/iscrollthreshold.html","classes":"tsd-kind-interface"},{"id":29,"kind":1024,"name":"type","url":"interfaces/iscrollthreshold.html#type","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IScrollThreshold"},{"id":30,"kind":1024,"name":"value","url":"interfaces/iscrollthreshold.html#value","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IScrollThreshold"},{"id":31,"kind":4,"name":"EScrollThresholdType","url":"enums/escrollthresholdtype.html","classes":"tsd-kind-enum"},{"id":32,"kind":16,"name":"fraction","url":"enums/escrollthresholdtype.html#fraction","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"EScrollThresholdType"},{"id":33,"kind":16,"name":"pixels","url":"enums/escrollthresholdtype.html#pixels","classes":"tsd-kind-enum-member tsd-parent-kind-enum","parent":"EScrollThresholdType"},{"id":34,"kind":256,"name":"IUseReverseInfiniteScrollResponse","url":"interfaces/iusereverseinfinitescrollresponse.html","classes":"tsd-kind-interface"},{"id":35,"kind":1024,"name":"enabled","url":"interfaces/iusereverseinfinitescrollresponse.html#enabled","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseReverseInfiniteScrollResponse"},{"id":36,"kind":1024,"name":"enable","url":"interfaces/iusereverseinfinitescrollresponse.html#enable","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseReverseInfiniteScrollResponse"},{"id":37,"kind":65536,"name":"__type","url":"interfaces/iusereverseinfinitescrollresponse.html#enable.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseReverseInfiniteScrollResponse.enable"},{"id":38,"kind":1024,"name":"disable","url":"interfaces/iusereverseinfinitescrollresponse.html#disable","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseReverseInfiniteScrollResponse"},{"id":39,"kind":65536,"name":"__type","url":"interfaces/iusereverseinfinitescrollresponse.html#disable.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseReverseInfiniteScrollResponse.disable"},{"id":40,"kind":1024,"name":"updateLoadMoreCb","url":"interfaces/iusereverseinfinitescrollresponse.html#updateloadmorecb","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseReverseInfiniteScrollResponse"},{"id":41,"kind":65536,"name":"__type","url":"interfaces/iusereverseinfinitescrollresponse.html#updateloadmorecb.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseReverseInfiniteScrollResponse.updateLoadMoreCb"},{"id":42,"kind":4194304,"name":"ILoadMoreCb","url":"globals.html#iloadmorecb","classes":"tsd-kind-type-alias"},{"id":43,"kind":65536,"name":"__type","url":"globals.html#iloadmorecb.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"ILoadMoreCb"},{"id":44,"kind":4194304,"name":"IBeforeRenderCb","url":"globals.html#ibeforerendercb","classes":"tsd-kind-type-alias"},{"id":45,"kind":65536,"name":"__type","url":"globals.html#ibeforerendercb.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"IBeforeRenderCb"},{"id":46,"kind":256,"name":"IUseStickyScrollOptions","url":"interfaces/iusestickyscrolloptions.html","classes":"tsd-kind-interface"},{"id":47,"kind":1024,"name":"enabled","url":"interfaces/iusestickyscrolloptions.html#enabled","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseStickyScrollOptions"},{"id":48,"kind":256,"name":"IUseStickyScrollResponse","url":"interfaces/iusestickyscrollresponse.html","classes":"tsd-kind-interface"},{"id":49,"kind":1024,"name":"enabled","url":"interfaces/iusestickyscrollresponse.html#enabled","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseStickyScrollResponse"},{"id":50,"kind":1024,"name":"sticky","url":"interfaces/iusestickyscrollresponse.html#sticky","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseStickyScrollResponse"},{"id":51,"kind":1024,"name":"scrollToBottom","url":"interfaces/iusestickyscrollresponse.html#scrolltobottom","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseStickyScrollResponse"},{"id":52,"kind":65536,"name":"__type","url":"interfaces/iusestickyscrollresponse.html#scrolltobottom.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseStickyScrollResponse.scrollToBottom"},{"id":53,"kind":1024,"name":"enable","url":"interfaces/iusestickyscrollresponse.html#enable","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseStickyScrollResponse"},{"id":54,"kind":65536,"name":"__type","url":"interfaces/iusestickyscrollresponse.html#enable.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseStickyScrollResponse.enable"},{"id":55,"kind":1024,"name":"disable","url":"interfaces/iusestickyscrollresponse.html#disable","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseStickyScrollResponse"},{"id":56,"kind":65536,"name":"__type","url":"interfaces/iusestickyscrollresponse.html#disable.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseStickyScrollResponse.disable"},{"id":57,"kind":64,"name":"useStickyScroll","url":"globals.html#usestickyscroll","classes":"tsd-kind-function"},{"id":58,"kind":256,"name":"IUseChatScrollOptions","url":"interfaces/iusechatscrolloptions.html","classes":"tsd-kind-interface"},{"id":59,"kind":1024,"name":"reverseInfiniteScroll","url":"interfaces/iusechatscrolloptions.html#reverseinfinitescroll","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseChatScrollOptions"},{"id":60,"kind":1024,"name":"stickyScroll","url":"interfaces/iusechatscrolloptions.html#stickyscroll","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseChatScrollOptions"},{"id":61,"kind":256,"name":"IUseChatScrollReturn","url":"interfaces/iusechatscrollreturn.html","classes":"tsd-kind-interface"},{"id":62,"kind":1024,"name":"sticky","url":"interfaces/iusechatscrollreturn.html#sticky","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseChatScrollReturn"},{"id":63,"kind":1024,"name":"reverseInfiniteScrollEnabled","url":"interfaces/iusechatscrollreturn.html#reverseinfinitescrollenabled","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseChatScrollReturn"},{"id":64,"kind":1024,"name":"stickyScrollEnabled","url":"interfaces/iusechatscrollreturn.html#stickyscrollenabled","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseChatScrollReturn"},{"id":65,"kind":1024,"name":"enableReverseInfiniteScroll","url":"interfaces/iusechatscrollreturn.html#enablereverseinfinitescroll","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseChatScrollReturn"},{"id":66,"kind":65536,"name":"__type","url":"interfaces/iusechatscrollreturn.html#enablereverseinfinitescroll.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseChatScrollReturn.enableReverseInfiniteScroll"},{"id":67,"kind":1024,"name":"disableReverseInfiniteScroll","url":"interfaces/iusechatscrollreturn.html#disablereverseinfinitescroll","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseChatScrollReturn"},{"id":68,"kind":65536,"name":"__type","url":"interfaces/iusechatscrollreturn.html#disablereverseinfinitescroll.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseChatScrollReturn.disableReverseInfiniteScroll"},{"id":69,"kind":1024,"name":"enableStickyScroll","url":"interfaces/iusechatscrollreturn.html#enablestickyscroll","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseChatScrollReturn"},{"id":70,"kind":65536,"name":"__type","url":"interfaces/iusechatscrollreturn.html#enablestickyscroll.__type-3","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseChatScrollReturn.enableStickyScroll"},{"id":71,"kind":1024,"name":"disableStickyScroll","url":"interfaces/iusechatscrollreturn.html#disablestickyscroll","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseChatScrollReturn"},{"id":72,"kind":65536,"name":"__type","url":"interfaces/iusechatscrollreturn.html#disablestickyscroll.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseChatScrollReturn.disableStickyScroll"},{"id":73,"kind":1024,"name":"scrollToBottom","url":"interfaces/iusechatscrollreturn.html#scrolltobottom","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseChatScrollReturn"},{"id":74,"kind":65536,"name":"__type","url":"interfaces/iusechatscrollreturn.html#scrolltobottom.__type-4","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseChatScrollReturn.scrollToBottom"},{"id":75,"kind":1024,"name":"updateLoadMoreCb","url":"interfaces/iusechatscrollreturn.html#updateloadmorecb","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"IUseChatScrollReturn"},{"id":76,"kind":65536,"name":"__type","url":"interfaces/iusechatscrollreturn.html#updateloadmorecb.__type-5","classes":"tsd-kind-type-literal tsd-parent-kind-property","parent":"IUseChatScrollReturn.updateLoadMoreCb"},{"id":77,"kind":64,"name":"useChatScroll","url":"globals.html#usechatscroll","classes":"tsd-kind-function"},{"id":78,"kind":64,"name":"useDataLoader","url":"globals.html#usedataloader","classes":"tsd-kind-function"},{"id":79,"kind":4194304,"name":"IDataLoaderCb","url":"globals.html#idataloadercb","classes":"tsd-kind-type-alias"},{"id":80,"kind":65536,"name":"__type","url":"globals.html#idataloadercb.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"IDataLoaderCb"},{"id":81,"kind":4194304,"name":"ISetDataCb","url":"globals.html#isetdatacb","classes":"tsd-kind-type-alias"},{"id":82,"kind":65536,"name":"__type","url":"globals.html#isetdatacb.__type","classes":"tsd-kind-type-literal tsd-parent-kind-type-alias","parent":"ISetDataCb"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,19.051]],["parent/0",[]],["name/1",[1,40.254]],["parent/1",[0,1.723]],["name/2",[2,10.809]],["parent/2",[3,3.642]],["name/3",[4,40.254]],["parent/3",[0,1.723]],["name/4",[2,10.809]],["parent/4",[5,3.642]],["name/5",[6,40.254]],["parent/5",[0,1.723]],["name/6",[2,10.809]],["parent/6",[7,3.642]],["name/7",[8,40.254]],["parent/7",[0,1.723]],["name/8",[2,10.809]],["parent/8",[9,3.642]],["name/9",[10,40.254]],["parent/9",[0,1.723]],["name/10",[2,10.809]],["parent/10",[11,3.642]],["name/11",[12,40.254]],["parent/11",[0,1.723]],["name/12",[2,10.809]],["parent/12",[13,3.642]],["name/13",[14,40.254]],["parent/13",[0,1.723]],["name/14",[2,10.809]],["parent/14",[15,3.642]],["name/15",[16,40.254]],["parent/15",[0,1.723]],["name/16",[2,10.809]],["parent/16",[17,3.642]],["name/17",[18,40.254]],["parent/17",[0,1.723]],["name/18",[2,10.809]],["parent/18",[19,3.642]],["name/19",[20,40.254]],["parent/19",[0,1.723]],["name/20",[2,10.809]],["parent/20",[21,3.642]],["name/21",[22,40.254]],["parent/21",[0,1.723]],["name/22",[2,10.809]],["parent/22",[23,3.642]],["name/23",[24,35.145]],["parent/23",[]],["name/24",[2,10.809]],["parent/24",[24,3.179]],["name/25",[25,31.781]],["parent/25",[]],["name/26",[26,40.254]],["parent/26",[25,2.875]],["name/27",[27,29.267]],["parent/27",[25,2.875]],["name/28",[28,31.781]],["parent/28",[]],["name/29",[29,40.254]],["parent/29",[28,2.875]],["name/30",[30,40.254]],["parent/30",[28,2.875]],["name/31",[31,31.781]],["parent/31",[]],["name/32",[32,40.254]],["parent/32",[31,2.875]],["name/33",[33,40.254]],["parent/33",[31,2.875]],["name/34",[34,27.261]],["parent/34",[]],["name/35",[27,29.267]],["parent/35",[34,2.466]],["name/36",[35,35.145]],["parent/36",[34,2.466]],["name/37",[2,10.809]],["parent/37",[36,3.642]],["name/38",[37,35.145]],["parent/38",[34,2.466]],["name/39",[2,10.809]],["parent/39",[38,3.642]],["name/40",[39,35.145]],["parent/40",[34,2.466]],["name/41",[2,10.809]],["parent/41",[40,3.642]],["name/42",[41,35.145]],["parent/42",[]],["name/43",[2,10.809]],["parent/43",[41,3.179]],["name/44",[42,35.145]],["parent/44",[]],["name/45",[2,10.809]],["parent/45",[42,3.179]],["name/46",[43,35.145]],["parent/46",[]],["name/47",[27,29.267]],["parent/47",[43,3.179]],["name/48",[44,25.59]],["parent/48",[]],["name/49",[27,29.267]],["parent/49",[44,2.315]],["name/50",[45,35.145]],["parent/50",[44,2.315]],["name/51",[46,35.145]],["parent/51",[44,2.315]],["name/52",[2,10.809]],["parent/52",[47,3.642]],["name/53",[35,35.145]],["parent/53",[44,2.315]],["name/54",[2,10.809]],["parent/54",[48,3.642]],["name/55",[37,35.145]],["parent/55",[44,2.315]],["name/56",[2,10.809]],["parent/56",[49,3.642]],["name/57",[50,40.254]],["parent/57",[]],["name/58",[51,31.781]],["parent/58",[]],["name/59",[52,40.254]],["parent/59",[51,2.875]],["name/60",[53,40.254]],["parent/60",[51,2.875]],["name/61",[54,20.794]],["parent/61",[]],["name/62",[45,35.145]],["parent/62",[54,1.881]],["name/63",[55,40.254]],["parent/63",[54,1.881]],["name/64",[56,40.254]],["parent/64",[54,1.881]],["name/65",[57,40.254]],["parent/65",[54,1.881]],["name/66",[2,10.809]],["parent/66",[58,3.642]],["name/67",[59,40.254]],["parent/67",[54,1.881]],["name/68",[2,10.809]],["parent/68",[60,3.642]],["name/69",[61,40.254]],["parent/69",[54,1.881]],["name/70",[2,10.809]],["parent/70",[62,3.642]],["name/71",[63,40.254]],["parent/71",[54,1.881]],["name/72",[2,10.809]],["parent/72",[64,3.642]],["name/73",[46,35.145]],["parent/73",[54,1.881]],["name/74",[2,10.809]],["parent/74",[65,3.642]],["name/75",[39,35.145]],["parent/75",[54,1.881]],["name/76",[2,10.809]],["parent/76",[66,3.642]],["name/77",[67,40.254]],["parent/77",[]],["name/78",[68,40.254]],["parent/78",[]],["name/79",[69,35.145]],["parent/79",[]],["name/80",[2,10.809]],["parent/80",[69,3.179]],["name/81",[70,35.145]],["parent/81",[]],["name/82",[2,10.809]],["parent/82",[70,3.179]]],"invertedIndex":[["__type",{"_index":2,"name":{"2":{},"4":{},"6":{},"8":{},"10":{},"12":{},"14":{},"16":{},"18":{},"20":{},"22":{},"24":{},"37":{},"39":{},"41":{},"43":{},"45":{},"52":{},"54":{},"56":{},"66":{},"68":{},"70":{},"72":{},"74":{},"76":{},"80":{},"82":{}},"parent":{}}],["disable",{"_index":37,"name":{"38":{},"55":{}},"parent":{}}],["disablereverseinfinitescroll",{"_index":59,"name":{"67":{}},"parent":{}}],["disablestickyscroll",{"_index":63,"name":{"71":{}},"parent":{}}],["enable",{"_index":35,"name":{"36":{},"53":{}},"parent":{}}],["enabled",{"_index":27,"name":{"27":{},"35":{},"47":{},"49":{}},"parent":{}}],["enablereverseinfinitescroll",{"_index":57,"name":{"65":{}},"parent":{}}],["enablestickyscroll",{"_index":61,"name":{"69":{}},"parent":{}}],["escrollthresholdtype",{"_index":31,"name":{"31":{}},"parent":{"32":{},"33":{}}}],["fraction",{"_index":32,"name":{"32":{}},"parent":{}}],["getcurrentscrollheight",{"_index":8,"name":{"7":{}},"parent":{}}],["getscrolltop",{"_index":10,"name":{"9":{}},"parent":{}}],["getstoredscrollheight",{"_index":14,"name":{"13":{}},"parent":{}}],["getstoredscrolltop",{"_index":18,"name":{"17":{}},"parent":{}}],["ibeforerendercb",{"_index":42,"name":{"44":{}},"parent":{"45":{}}}],["idataloadercb",{"_index":69,"name":{"79":{}},"parent":{"80":{}}}],["iloadmorecb",{"_index":41,"name":{"42":{}},"parent":{"43":{}}}],["iscrolleventhandler",{"_index":24,"name":{"23":{}},"parent":{"24":{}}}],["iscrollthreshold",{"_index":28,"name":{"28":{}},"parent":{"29":{},"30":{}}}],["isetdatacb",{"_index":70,"name":{"81":{}},"parent":{"82":{}}}],["isfetching",{"_index":1,"name":{"1":{}},"parent":{}}],["iusechatscrolloptions",{"_index":51,"name":{"58":{}},"parent":{"59":{},"60":{}}}],["iusechatscrollreturn",{"_index":54,"name":{"61":{}},"parent":{"62":{},"63":{},"64":{},"65":{},"67":{},"69":{},"71":{},"73":{},"75":{}}}],["iusechatscrollreturn.disablereverseinfinitescroll",{"_index":60,"name":{},"parent":{"68":{}}}],["iusechatscrollreturn.disablestickyscroll",{"_index":64,"name":{},"parent":{"72":{}}}],["iusechatscrollreturn.enablereverseinfinitescroll",{"_index":58,"name":{},"parent":{"66":{}}}],["iusechatscrollreturn.enablestickyscroll",{"_index":62,"name":{},"parent":{"70":{}}}],["iusechatscrollreturn.scrolltobottom",{"_index":65,"name":{},"parent":{"74":{}}}],["iusechatscrollreturn.updateloadmorecb",{"_index":66,"name":{},"parent":{"76":{}}}],["iusereverseinfinitescrolloptions",{"_index":25,"name":{"25":{}},"parent":{"26":{},"27":{}}}],["iusereverseinfinitescrollresponse",{"_index":34,"name":{"34":{}},"parent":{"35":{},"36":{},"38":{},"40":{}}}],["iusereverseinfinitescrollresponse.disable",{"_index":38,"name":{},"parent":{"39":{}}}],["iusereverseinfinitescrollresponse.enable",{"_index":36,"name":{},"parent":{"37":{}}}],["iusereverseinfinitescrollresponse.updateloadmorecb",{"_index":40,"name":{},"parent":{"41":{}}}],["iusescrollresponse",{"_index":0,"name":{"0":{}},"parent":{"1":{},"3":{},"5":{},"7":{},"9":{},"11":{},"13":{},"15":{},"17":{},"19":{},"21":{}}}],["iusescrollresponse.getcurrentscrollheight",{"_index":9,"name":{},"parent":{"8":{}}}],["iusescrollresponse.getscrolltop",{"_index":11,"name":{},"parent":{"10":{}}}],["iusescrollresponse.getstoredscrollheight",{"_index":15,"name":{},"parent":{"14":{}}}],["iusescrollresponse.getstoredscrolltop",{"_index":19,"name":{},"parent":{"18":{}}}],["iusescrollresponse.isfetching",{"_index":3,"name":{},"parent":{"2":{}}}],["iusescrollresponse.setfetched",{"_index":7,"name":{},"parent":{"6":{}}}],["iusescrollresponse.setfetching",{"_index":5,"name":{},"parent":{"4":{}}}],["iusescrollresponse.setscrolleventhandler",{"_index":23,"name":{},"parent":{"22":{}}}],["iusescrollresponse.setscrolltop",{"_index":13,"name":{},"parent":{"12":{}}}],["iusescrollresponse.storecurrentscrollheight",{"_index":17,"name":{},"parent":{"16":{}}}],["iusescrollresponse.storecurrentscrolltop",{"_index":21,"name":{},"parent":{"20":{}}}],["iusestickyscrolloptions",{"_index":43,"name":{"46":{}},"parent":{"47":{}}}],["iusestickyscrollresponse",{"_index":44,"name":{"48":{}},"parent":{"49":{},"50":{},"51":{},"53":{},"55":{}}}],["iusestickyscrollresponse.disable",{"_index":49,"name":{},"parent":{"56":{}}}],["iusestickyscrollresponse.enable",{"_index":48,"name":{},"parent":{"54":{}}}],["iusestickyscrollresponse.scrolltobottom",{"_index":47,"name":{},"parent":{"52":{}}}],["pixels",{"_index":33,"name":{"33":{}},"parent":{}}],["reverseinfinitescroll",{"_index":52,"name":{"59":{}},"parent":{}}],["reverseinfinitescrollenabled",{"_index":55,"name":{"63":{}},"parent":{}}],["scrollthreshold",{"_index":26,"name":{"26":{}},"parent":{}}],["scrolltobottom",{"_index":46,"name":{"51":{},"73":{}},"parent":{}}],["setfetched",{"_index":6,"name":{"5":{}},"parent":{}}],["setfetching",{"_index":4,"name":{"3":{}},"parent":{}}],["setscrolleventhandler",{"_index":22,"name":{"21":{}},"parent":{}}],["setscrolltop",{"_index":12,"name":{"11":{}},"parent":{}}],["sticky",{"_index":45,"name":{"50":{},"62":{}},"parent":{}}],["stickyscroll",{"_index":53,"name":{"60":{}},"parent":{}}],["stickyscrollenabled",{"_index":56,"name":{"64":{}},"parent":{}}],["storecurrentscrollheight",{"_index":16,"name":{"15":{}},"parent":{}}],["storecurrentscrolltop",{"_index":20,"name":{"19":{}},"parent":{}}],["type",{"_index":29,"name":{"29":{}},"parent":{}}],["updateloadmorecb",{"_index":39,"name":{"40":{},"75":{}},"parent":{}}],["usechatscroll",{"_index":67,"name":{"77":{}},"parent":{}}],["usedataloader",{"_index":68,"name":{"78":{}},"parent":{}}],["usestickyscroll",{"_index":50,"name":{"57":{}},"parent":{}}],["value",{"_index":30,"name":{"30":{}},"parent":{}}]],"pipeline":[]}}
declare module 'use-chat-scroll/index' {
export * from 'use-chat-scroll/lib/chat-scroll';
export * from 'use-chat-scroll/lib/sticky-scroll';
export * from 'use-chat-scroll/lib/data-loader';
export { IBeforeRenderCb, ILoadMoreCb, IScrollThreshold, IUseReverseInfiniteScrollOptions, IUseReverseInfiniteScrollResponse, EScrollThresholdType, } from 'use-chat-scroll/lib/reverse-infinite-scroll';

@@ -78,2 +79,25 @@ export { IScrollEventHandler, IUseScrollResponse } from 'use-chat-scroll/lib/scroll';

}
declare module 'use-chat-scroll/lib/data-loader' {
import { ILoadMoreCb } from 'use-chat-scroll/index';
/**
* React hook which creates a usable data loader for useInfiniteScroll hook.
* It is only useful if new data is always added to the beginning of the array.
* Should one need a different behavior or better optimization techniques - custom implementation would be needed.
* @param dataLoader Data loader function to be converted into compatible callback for useDataLoader.
* @param data Data to be shown in a scrollable HTML element.
* @param setData Method for setting data into state.
* @param args Array of arguments to be passed to data loader
*/
export const useDataLoader: (dataLoader: IDataLoaderCb, data: any[], setData: ISetDataCb, args?: any[]) => ILoadMoreCb;
/**
* Callback for loading additional data for scrollable HTML element.
* Arguments for this function are passed as second argument of useDataLoader hook.
*/
export type IDataLoaderCb = (...args: any[]) => any;
/**
* Method used for setting new data into state.
*/
export type ISetDataCb = (data: any[]) => void;
}
declare module 'use-chat-scroll/lib/reverse-infinite-scroll' {

@@ -130,3 +154,3 @@ /**

/**
* Fraction of content height left to the top (for example 0.3).
* Fraction of content height left to the top (for example 0.2).
*/

@@ -133,0 +157,0 @@ fraction = 0,

{
"name": "use-chat-scroll",
"version": "1.0.2",
"version": "1.0.3",
"description": "React hook for chat-like scroll behavior",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -28,13 +28,17 @@ # use-chat-scroll

Typical usage of full chat scroll behavior:
Usage example of full chat scroll behavior with React hooks for data state management:
```typescript
import {useChatScroll} from 'use-chat-scroll'
import {useChatScroll, useDataLoader} from 'use-chat-scroll'
const YourFunctionalReactComponent: React.FC = (data: any[], loadMoreCb: ILoadMoreCb) => {
const loadAdditionalData = () => [ /* Additional data */ ]
const YourFunctionalReactComponent: React.FC = () => {
const [data, setData] = useState<any[]>([])
const containerRef = useRef<React.MutableRefObject<HTMLDivElement>>()
useChatScroll(containerRef, data, loadMoreCb)
const loader = useDataLoader(loadAdditionalData, data, setData)
useChatScroll(containerRef, data, loader)
return (
<div ref={containerRef} style={{height: 100, width: 100, overflow: 'auto'}}>
<div ref={containerRef} style={{height: "400px", width: "100%", overflow: 'auto'}}>
{data.map(item => (

@@ -48,2 +52,8 @@ // ...

In case you would notice that scroll is not properly adjusted when loading additional data, make sure that setting _scrollTop_ attribute to scrollable HTML element works. Sometimes browsers have issues when height is set using percentage. This is not considered to be a hook-related issue.
Note that even if _loadAdditionalData_ would be defined inside a functional component, it would not be able to properly use state variables such as _data_. If such data would need to be passed, use optional fourth argument of _useDataLoader_ hook. Array passed there would become accessible as arguments in _loadAdditionalData_.
If you would be using a state management library such as _Redux_ with thunk actions, you would not need to be using _useDataLoader_. In such case your action should accept _beforeRender_ callback and would become a _loader_ itself. _beforeRender_ callback should be invoked immediately after gathering data but before updating state.
If you only need to keep scroll at the bottom without infinite scroll behavior:

@@ -59,3 +69,3 @@

return (
<div ref={containerRef} style={{height: 100, width: 100, overflow: 'auto'}}>
<div ref={containerRef} style={{height: "400px", width: "100%", overflow: 'auto'}}>
{data.map(item => (

@@ -69,8 +79,2 @@ // ...

**Important!**
_loadMoreCb_ is called whenever additional data chunk/page needs to be loaded. It is very important to ensure that this callback does not issue a request if end of data is reached. Otherwise target server will be spammed with multiple useless requests. It is also a responsibility of consumer of the hook to determine what is already loaded and what should be loaded at the moment of calling the callback.
_loadMoreCb_ needs to accept an argument _beforeRender_. This argument is a callback which should be called immediately after server responds with a new chunk/page of data but before this data is handled by some state management library or React itself.
## Supported Configuration

@@ -77,0 +81,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc