@ssa-ui-kit/hooks 0.0.1-alpha → 0.0.2-alpha
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -21
- package/dist/hooks/pagination/types.d.ts +1 -1
- package/dist/hooks/pagination/usePaginationRange.d.ts +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/hooks/index.ts +5 -5
- package/src/hooks/pagination/types.ts +4 -4
- package/src/hooks/pagination/usePaginationRange.spec.tsx +28 -28
- package/src/hooks/pagination/usePaginationRange.tsx +15 -15
- package/src/hooks/text/useTextSizeDecrease.spec.tsx +45 -45
- package/src/hooks/text/useTextSizeDecrease.ts +59 -59
- package/src/hooks/useApi.spec.tsx +46 -46
- package/src/hooks/useApi.tsx +33 -33
- package/src/hooks/useClickOutside.spec.tsx +39 -39
- package/src/hooks/useClickOutside.tsx +31 -31
- package/src/hooks/useWindowResize.spec.tsx +20 -20
- package/src/hooks/useWindowResize.tsx +22 -22
- package/src/index.ts +1 -1
- package/tsbuildcache +1 -1
- package/tsconfig.json +19 -19
- package/webpack.config.js +19 -19
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2023 SSA Group
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 SSA Group
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const usePaginationRange: ({ pagesCount, selectedPage, }:
|
|
1
|
+
import { UsePaginationRangeProps } from './types';
|
|
2
|
+
declare const usePaginationRange: ({ pagesCount, selectedPage, }: UsePaginationRangeProps) => number[];
|
|
3
3
|
export { usePaginationRange };
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","mappings":"CAAA,SAA2CA,EAAMC,GAC1B,iBAAZC,SAA0C,iBAAXC,OACxCA,OAAOD,QAAUD,EAAQG,QAAQ,UACR,mBAAXC,QAAyBA,OAAOC,IAC9CD,OAAO,CAAC,SAAUJ,GACQ,iBAAZC,QACdA,QAAkB,SAAID,EAAQG,QAAQ,UAEtCJ,EAAe,SAAIC,EAAQD,EAAY,MACxC,CATD,CASGO,MAAM,SAASC,GAClB,O,kCCVqMD,KAApIJ,EAAOD,QAAqJ,WAAW,aAAa,IAAIO,EAAE,CAACC,EAAE,SAASC,EAAEC,GAAG,IAAI,IAAIC,KAAKD,EAAEH,EAAEK,EAAEF,EAAEC,KAAKJ,EAAEK,EAAEH,EAAEE,IAAIE,OAAOC,eAAeL,EAAEE,EAAE,CAACI,YAAW,EAAGC,IAAIN,EAAEC,IAAI,EAAEC,EAAE,SAASL,EAAEE,GAAG,OAAOI,OAAOI,UAAUC,eAAeC,KAAKZ,EAAEE,EAAE,EAAEE,EAAE,SAASJ,GAAG,oBAAoBa,QAAQA,OAAOC,aAAaR,OAAOC,eAAeP,EAAEa,OAAOC,YAAY,CAACC,MAAM,WAAWT,OAAOC,eAAeP,EAAE,aAAa,CAACe,OAAM,GAAI,GAAGb,EAAE,CAAC,EAAEF,EAAEI,EAAEF,GAAGF,EAAEC,EAAEC,EAAE,CAACc,UAAU,WAAW,OAAOC,CAAC,EAAEC,QAAQ,WAAW,OAAOd,CAAC,EAAEe,eAAe,WAAW,OAAOhB,CAAC,EAAEiB,S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AChB,MAAO,CAAEI,EAASC,GAAUL,EAC5BN,EAAGY,MAAMJ,SAAY,GAAE7E,OAAO+E,GAAWL,IAAOM,GAClD,GAUWE,EAAsBA,CAACC,EAAc,EAAGT,EAAO,KAC1D,MAAMU,GAAmBC,EAAAA,EAAAA,QAAoB,MACvCC,GAAcD,EAAAA,EAAAA,QAAe,IAC7B,MAAEzC,GAAUH,IA2BlB,OAJAQ,EAAAA,EAAAA,YAAU,KArBasC,MACrB,GAAgC,MAA5BH,EAAiB1B,QACnB,OAGF,MAAM8B,EAAOJ,EAAiB1B,QACxB+B,EAAaD,EAAKC,WAExB,IAAIC,EAAWtB,EAAcoB,EAAMC,GAEnC,KAAOH,EAAY5B,QAAUyB,GAAeO,GAC1CjB,EAAOe,EAAMd,GACbgB,EAAWtB,EAAcoB,EAAMC,KAC7BH,EAAY5B,QAGZgC,IACFF,EAAKP,MAAMU,UAAY,YACzB,EAIAJ,EAAgB,GACf,CAACH,EAAkBxC,IAEfwC,CAAgB,C","sources":["webpack://SSAHooks/webpack/universalModuleDefinition","webpack://SSAHooks/../utils/dist/index.js","webpack://SSAHooks/external umd \"react\"","webpack://SSAHooks/webpack/bootstrap","webpack://SSAHooks/webpack/runtime/define property getters","webpack://SSAHooks/webpack/runtime/hasOwnProperty shorthand","webpack://SSAHooks/webpack/runtime/make namespace object","webpack://SSAHooks/./src/hooks/useApi.tsx","webpack://SSAHooks/./src/hooks/useWindowResize.tsx","webpack://SSAHooks/./src/hooks/useClickOutside.tsx","webpack://SSAHooks/./src/hooks/pagination/usePaginationRange.tsx","webpack://SSAHooks/./src/hooks/text/useTextSizeDecrease.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"SSAHooks\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"SSAHooks\"] = factory(root[\"react\"]);\n})(self, function(__WEBPACK_EXTERNAL_MODULE__156__) {\nreturn ","!function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):\"object\"==typeof exports?exports.SSAUtils=t():e.SSAUtils=t()}(self,(function(){return function(){\"use strict\";var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})}},t={};e.r(t),e.d(t,{assocPath:function(){return m},callAll:function(){return r},dateFormatters:function(){return n},debounce:function(){return u},dissocPath:function(){return S},generateRange:function(){return g},mapObjIndexed:function(){return h},path:function(){return y},pathOr:function(){return b},prop:function(){return w},propOr:function(){return T},throttle:function(){return o}});var n={};e.r(n),e.d(n,{formatDate:function(){return l},formatDayOfWeek:function(){return f},formatTime:function(){return a},getTimeAgo:function(){return d},printDayOfTheWeek:function(){return s}});const r=(...e)=>(...t)=>e.forEach((e=>e?.(...t))),o=(e,t)=>{let n=!1,r=null,o=null;return[function u(...i){n?r=i:(n=!0,e(...i),o=setTimeout((()=>{n=!1,r&&(u(...r),r=null)}),t))},function(){o&&clearTimeout(o)}]},u=(e,t=200)=>{let n=null;return[(...r)=>{n&&clearTimeout(n),n=setTimeout((()=>{n&&clearTimeout(n),e(...r)}),t)},function(){n&&clearTimeout(n)}]},i=[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],c={year:31536e3,month:2592e3,week:604800,day:86400,hour:3600,min:60},a=e=>new Date(e).toLocaleTimeString(\"en-US\",{hour:\"2-digit\",minute:\"2-digit\"}),f=e=>i[new Date(e).getDay()],l=e=>new Date(e).toLocaleDateString(\"en-US\",{day:\"2-digit\",month:\"short\"}),s=e=>{switch(e){case 0:return\"Sun\";case 1:return\"Mon\";case 2:return\"Tue\";case 3:return\"Wed\";case 4:return\"Thu\";case 5:return\"Fri\";case 6:return\"Sat\"}},d=e=>{const t=new Date(e).getTime();if(Number.isNaN(t))throw new Error(\"Invalid date\");const n=Math.floor((Date.now()-t)/1e3);let r;for(const e in c)if(r=Math.floor(n/c[e]),r>=1){return`${r} ${e}${r>1?\"s\":\"\"} ago`}return\"Just Now\"},h=(e,t)=>Object.keys(t).reduce(((n,r)=>(n[r]=e(t[r],r,t),n)),{}),p=(e,t,n)=>{for(let r=t;r<n;++r)e.push(r)};var g=(e,t)=>{if(null==e||!Number.isInteger(e))throw new Error(\"Pages count should be an integer\");if(e<=0)return[];let n=[1];if(1===e)return n;if(null!=t&&!Number.isInteger(t))throw new Error(\"Selected page should be an integer\");if(null!=t&&(t<1||t>e))throw new Error(`Selected page ${t} is out of range`);if(t&&t>2){const r=((e,t)=>{const n=[];return t!==e&&n.push(t),t>1&&n.unshift(t-1),t+1<e&&n.push(t+1),n})(e,t),[o,,u]=r;o-2>1?n.push(-1):p(n,2,o),n=n.concat(r),e-u>2?n.push(-1):p(n,u+1,e)}else e<=5?p(n,2,e):n.push(2,3,-1);return n.push(e),n};const m=([e,...t],n)=>r=>JSON.parse(JSON.stringify({...r,[e]:t.length?m(t,n)(r[e]):n})),S=e=>t=>{const n=JSON.parse(JSON.stringify(t));return e.reduce(((t,n,r)=>(r===e.length-1&&delete t[n],t[n])),n),n},y=e=>t=>e.reduce(((e,t)=>e?.[t]),t),b=(e,t)=>n=>{const r=y(t)(n);return null==r?e:r},w=e=>t=>t?.[e],T=(e,t)=>n=>{const r=w(t)(n);return null==r?e:r};return t}()}));\n//# sourceMappingURL=index.js.map","module.exports = __WEBPACK_EXTERNAL_MODULE__156__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import { useState } from 'react';\n\nexport function useApi<D>(\n /* eslint-disable-next-line @typescript-eslint/no-explicit-any */\n fetcherFn: (...args: any[]) => Promise<D>,\n /* eslint-disable-next-line @typescript-eslint/no-explicit-any */\n initialValue?: any,\n) {\n const [isLoading, setIsLoading] = useState<boolean>(false);\n const [error, setError] = useState<unknown | null>(null);\n const [data, setData] = useState<D>(initialValue);\n\n const query = async (...args: Parameters<typeof fetcherFn>) => {\n setIsLoading(true);\n setError(null);\n\n try {\n const respData = await fetcherFn(...args);\n setData(respData);\n } catch (err) {\n setError(err);\n } finally {\n setIsLoading(false);\n }\n };\n\n return {\n isLoading,\n error,\n data,\n query,\n };\n}\n","import { useEffect, useState } from 'react';\n\nexport const useWindowSize = () => {\n const [windowSize, setWindowSize] = useState({\n width: window.innerWidth,\n height: window.innerHeight,\n });\n\n useEffect(() => {\n function handleResize() {\n setWindowSize({ width: window.innerWidth, height: window.innerHeight });\n }\n\n window.addEventListener('resize', handleResize);\n\n handleResize();\n\n return () => window.removeEventListener('resize', handleResize);\n }, []);\n\n return windowSize;\n};\n","import { useEffect } from 'react';\n\ntype UseClickOutsideType = (\n ref: React.RefObject<HTMLElement | null>,\n fn: (e: Event) => void,\n) => void;\n\nexport const useClickOutside: UseClickOutsideType = (ref, onClickOutside) => {\n const events = ['mousedown', 'touchstart'];\n\n useEffect(() => {\n const handler = (e: Event) => {\n if (\n ref.current == null ||\n ref.current.contains(e.target as HTMLElement)\n ) {\n return;\n }\n onClickOutside(e);\n };\n\n events.forEach((eventName) =>\n document.addEventListener(eventName, handler),\n );\n\n return () =>\n events.forEach((eventName) =>\n document.removeEventListener(eventName, handler),\n );\n }, [ref, onClickOutside]);\n};\n","import { useMemo } from 'react';\nimport { IUsePaginationRangeProps } from './types';\nimport { generateRange } from '@ssa-ui-kit/utils';\n\nconst usePaginationRange = ({\n pagesCount,\n selectedPage,\n}: IUsePaginationRangeProps) => {\n return useMemo(\n () => generateRange(pagesCount, selectedPage),\n [pagesCount, selectedPage],\n );\n};\n\nexport { usePaginationRange };\n","import { useEffect, useRef } from 'react';\nimport { useWindowSize } from '@hooks/useWindowResize';\n\nconst FONT_SIZE_REG_EXP = /(\\d+\\.?\\d+)(\\S+)/;\n\nconst isOverflowing = (\n el: HTMLElement,\n container: HTMLElement | null,\n): boolean => el.scrollWidth > Number(container?.clientWidth);\n\nconst resize = (el: HTMLElement, step: number) => {\n const fontSize = window.getComputedStyle(el).fontSize;\n const matchResults = fontSize.match(FONT_SIZE_REG_EXP);\n\n if (matchResults) {\n const [, fsValue, fsUnit] = matchResults;\n el.style.fontSize = `${Number(fsValue) - step}${fsUnit}`;\n }\n};\n\n/**\n * The hook does N attempts to decrease the font size\n * if its text content doesn't fit its parent's width.\n * If the text still overflows, it sets the `word-break` css rule.\n * The hook doesn't enlarge the font size if the parent's\n * width becomes wider.\n * */\nexport const useTextSizeDecrease = (maxAttempts = 5, step = 1) => {\n const textContainerRef = useRef<HTMLElement>(null);\n const attemptsRef = useRef<number>(0);\n const { width } = useWindowSize();\n\n const checkAndResize = () => {\n if (textContainerRef.current == null) {\n return;\n }\n\n const node = textContainerRef.current;\n const parentNode = node.parentNode as unknown as HTMLElement;\n\n let isLarger = isOverflowing(node, parentNode);\n\n while (attemptsRef.current < maxAttempts && isLarger) {\n resize(node, step);\n isLarger = isOverflowing(node, parentNode);\n ++attemptsRef.current;\n }\n\n if (isLarger) {\n node.style.wordBreak = 'break-all';\n }\n };\n\n useEffect(() => {\n checkAndResize();\n }, [textContainerRef, width]);\n\n return textContainerRef;\n};\n"],"names":["root","factory","exports","module","require","define","amd","self","__WEBPACK_EXTERNAL_MODULE__156__","e","d","t","n","r","o","Object","defineProperty","enumerable","get","prototype","hasOwnProperty","call","Symbol","toStringTag","value","assocPath","m","callAll","dateFormatters","debounce","u","dissocPath","S","generateRange","g","mapObjIndexed","h","path","y","pathOr","b","prop","w","propOr","T","throttle","formatDate","l","formatDayOfWeek","f","formatTime","a","getTimeAgo","printDayOfTheWeek","s","forEach","i","setTimeout","clearTimeout","c","year","month","week","day","hour","min","Date","toLocaleTimeString","minute","getDay","toLocaleDateString","getTime","Number","isNaN","Error","Math","floor","now","keys","reduce","p","push","isInteger","unshift","concat","JSON","parse","stringify","length","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","definition","key","obj","useApi","fetcherFn","initialValue","isLoading","setIsLoading","useState","error","setError","data","setData","query","async","args","respData","err","useWindowSize","windowSize","setWindowSize","width","window","innerWidth","height","innerHeight","useEffect","handleResize","addEventListener","removeEventListener","useClickOutside","ref","onClickOutside","events","handler","current","contains","target","eventName","document","usePaginationRange","pagesCount","selectedPage","useMemo","FONT_SIZE_REG_EXP","isOverflowing","el","container","scrollWidth","clientWidth","resize","step","matchResults","getComputedStyle","fontSize","match","fsValue","fsUnit","style","useTextSizeDecrease","maxAttempts","textContainerRef","useRef","attemptsRef","checkAndResize","node","parentNode","isLarger","word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,OAJAQ,EAAAA,EAAAA,YAAU,KArBasC,MACrB,GAAgC,MAA5BH,EAAiB1B,QACnB,OAGF,MAAM8B,EAAOJ,EAAiB1B,QACxB+B,EAAaD,EAAKC,WAExB,IAAIC,EAAWtB,EAAcoB,EAAMC,GAEnC,KAAOH,EAAY5B,QAAUyB,GAAeO,GAC1CjB,EAAOe,EAAMd,GACbgB,EAAWtB,EAAcoB,EAAMC,KAC7BH,EAAY5B,QAGZgC,IACFF,EAAKP,MAAMU,UAAY,YACzB,EAIAJ,EAAgB,GACf,CAACH,EAAkBxC,IAEfwC,CAAgB,C","sources":["webpack://SSAHooks/webpack/universalModuleDefinition","webpack://SSAHooks/../utils/dist/index.js","webpack://SSAHooks/external umd \"react\"","webpack://SSAHooks/webpack/bootstrap","webpack://SSAHooks/webpack/runtime/define property getters","webpack://SSAHooks/webpack/runtime/hasOwnProperty shorthand","webpack://SSAHooks/webpack/runtime/make namespace object","webpack://SSAHooks/./src/hooks/useApi.tsx","webpack://SSAHooks/./src/hooks/useWindowResize.tsx","webpack://SSAHooks/./src/hooks/useClickOutside.tsx","webpack://SSAHooks/./src/hooks/pagination/usePaginationRange.tsx","webpack://SSAHooks/./src/hooks/text/useTextSizeDecrease.ts"],"sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory(require(\"react\"));\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([\"react\"], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"SSAHooks\"] = factory(require(\"react\"));\n\telse\n\t\troot[\"SSAHooks\"] = factory(root[\"react\"]);\n})(self, function(__WEBPACK_EXTERNAL_MODULE__156__) {\nreturn ","!function(e,t){\"object\"==typeof exports&&\"object\"==typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):\"object\"==typeof exports?exports.SSAUtils=t():e.SSAUtils=t()}(self,(function(){return function(){\"use strict\";var e={d:function(t,n){for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r:function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})}},t={};e.r(t),e.d(t,{assocPath:function(){return m},callAll:function(){return r},dateFormatters:function(){return n},debounce:function(){return u},dissocPath:function(){return S},generateRange:function(){return g},mapObjIndexed:function(){return h},path:function(){return y},pathOr:function(){return b},prop:function(){return w},propOr:function(){return T},throttle:function(){return o}});var n={};e.r(n),e.d(n,{formatDate:function(){return l},formatDayOfWeek:function(){return f},formatTime:function(){return a},getTimeAgo:function(){return d},printDayOfTheWeek:function(){return s}});const r=(...e)=>(...t)=>e.forEach((e=>e?.(...t))),o=(e,t)=>{let n=!1,r=null,o=null;return[function u(...i){n?r=i:(n=!0,e(...i),o=setTimeout((()=>{n=!1,r&&(u(...r),r=null)}),t))},function(){o&&clearTimeout(o)}]},u=(e,t=200)=>{let n=null;return[(...r)=>{n&&clearTimeout(n),n=setTimeout((()=>{n&&clearTimeout(n),e(...r)}),t)},function(){n&&clearTimeout(n)}]},i=[\"Sun\",\"Mon\",\"Tue\",\"Wed\",\"Thu\",\"Fri\",\"Sat\"],c={year:31536e3,month:2592e3,week:604800,day:86400,hour:3600,min:60},a=e=>new Date(e).toLocaleTimeString(\"en-US\",{hour:\"2-digit\",minute:\"2-digit\"}),f=e=>i[new Date(e).getDay()],l=e=>new Date(e).toLocaleDateString(\"en-US\",{day:\"2-digit\",month:\"short\"}),s=e=>{switch(e){case 0:return\"Sun\";case 1:return\"Mon\";case 2:return\"Tue\";case 3:return\"Wed\";case 4:return\"Thu\";case 5:return\"Fri\";case 6:return\"Sat\"}},d=e=>{const t=new Date(e).getTime();if(Number.isNaN(t))throw new Error(\"Invalid date\");const n=Math.floor((Date.now()-t)/1e3);let r;for(const e in c)if(r=Math.floor(n/c[e]),r>=1){return`${r} ${e}${r>1?\"s\":\"\"} ago`}return\"Just Now\"},h=(e,t)=>Object.keys(t).reduce(((n,r)=>(n[r]=e(t[r],r,t),n)),{}),p=(e,t,n)=>{for(let r=t;r<n;++r)e.push(r)};var g=(e,t)=>{if(null==e||!Number.isInteger(e))throw new Error(\"Pages count should be an integer\");if(e<=0)return[];let n=[1];if(1===e)return n;if(null!=t&&!Number.isInteger(t))throw new Error(\"Selected page should be an integer\");if(null!=t&&(t<1||t>e))throw new Error(`Selected page ${t} is out of range`);if(t&&t>2){const r=((e,t)=>{const n=[];return t!==e&&n.push(t),t>1&&n.unshift(t-1),t+1<e&&n.push(t+1),n})(e,t),[o,,u]=r;o-2>1?n.push(-1):p(n,2,o),n=n.concat(r),e-u>2?n.push(-1):p(n,u+1,e)}else e<=5?p(n,2,e):n.push(2,3,-1);return n.push(e),n};const m=([e,...t],n)=>r=>JSON.parse(JSON.stringify({...r,[e]:t.length?m(t,n)(r[e]):n})),S=e=>t=>{const n=JSON.parse(JSON.stringify(t));return e.reduce(((t,n,r)=>(r===e.length-1&&delete t[n],t[n])),n),n},y=e=>t=>e.reduce(((e,t)=>e?.[t]),t),b=(e,t)=>n=>{const r=y(t)(n);return null==r?e:r},w=e=>t=>t?.[e],T=(e,t)=>n=>{const r=w(t)(n);return null==r?e:r};return t}()}));\n//# sourceMappingURL=index.js.map","module.exports = __WEBPACK_EXTERNAL_MODULE__156__;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","import { useState } from 'react';\r\n\r\nexport function useApi<D>(\r\n /* eslint-disable-next-line @typescript-eslint/no-explicit-any */\r\n fetcherFn: (...args: any[]) => Promise<D>,\r\n /* eslint-disable-next-line @typescript-eslint/no-explicit-any */\r\n initialValue?: any,\r\n) {\r\n const [isLoading, setIsLoading] = useState<boolean>(false);\r\n const [error, setError] = useState<unknown | null>(null);\r\n const [data, setData] = useState<D>(initialValue);\r\n\r\n const query = async (...args: Parameters<typeof fetcherFn>) => {\r\n setIsLoading(true);\r\n setError(null);\r\n\r\n try {\r\n const respData = await fetcherFn(...args);\r\n setData(respData);\r\n } catch (err) {\r\n setError(err);\r\n } finally {\r\n setIsLoading(false);\r\n }\r\n };\r\n\r\n return {\r\n isLoading,\r\n error,\r\n data,\r\n query,\r\n };\r\n}\r\n","import { useEffect, useState } from 'react';\r\n\r\nexport const useWindowSize = () => {\r\n const [windowSize, setWindowSize] = useState({\r\n width: window.innerWidth,\r\n height: window.innerHeight,\r\n });\r\n\r\n useEffect(() => {\r\n function handleResize() {\r\n setWindowSize({ width: window.innerWidth, height: window.innerHeight });\r\n }\r\n\r\n window.addEventListener('resize', handleResize);\r\n\r\n handleResize();\r\n\r\n return () => window.removeEventListener('resize', handleResize);\r\n }, []);\r\n\r\n return windowSize;\r\n};\r\n","import { useEffect } from 'react';\r\n\r\ntype UseClickOutsideType = (\r\n ref: React.RefObject<HTMLElement | null>,\r\n fn: (e: Event) => void,\r\n) => void;\r\n\r\nexport const useClickOutside: UseClickOutsideType = (ref, onClickOutside) => {\r\n const events = ['mousedown', 'touchstart'];\r\n\r\n useEffect(() => {\r\n const handler = (e: Event) => {\r\n if (\r\n ref.current == null ||\r\n ref.current.contains(e.target as HTMLElement)\r\n ) {\r\n return;\r\n }\r\n onClickOutside(e);\r\n };\r\n\r\n events.forEach((eventName) =>\r\n document.addEventListener(eventName, handler),\r\n );\r\n\r\n return () =>\r\n events.forEach((eventName) =>\r\n document.removeEventListener(eventName, handler),\r\n );\r\n }, [ref, onClickOutside]);\r\n};\r\n","import { useMemo } from 'react';\r\nimport { generateRange } from '@ssa-ui-kit/utils';\r\nimport { UsePaginationRangeProps } from './types';\r\n\r\nconst usePaginationRange = ({\r\n pagesCount,\r\n selectedPage,\r\n}: UsePaginationRangeProps) => {\r\n return useMemo(\r\n () => generateRange(pagesCount, selectedPage),\r\n [pagesCount, selectedPage],\r\n );\r\n};\r\n\r\nexport { usePaginationRange };\r\n","import { useEffect, useRef } from 'react';\r\nimport { useWindowSize } from '@hooks/useWindowResize';\r\n\r\nconst FONT_SIZE_REG_EXP = /(\\d+\\.?\\d+)(\\S+)/;\r\n\r\nconst isOverflowing = (\r\n el: HTMLElement,\r\n container: HTMLElement | null,\r\n): boolean => el.scrollWidth > Number(container?.clientWidth);\r\n\r\nconst resize = (el: HTMLElement, step: number) => {\r\n const fontSize = window.getComputedStyle(el).fontSize;\r\n const matchResults = fontSize.match(FONT_SIZE_REG_EXP);\r\n\r\n if (matchResults) {\r\n const [, fsValue, fsUnit] = matchResults;\r\n el.style.fontSize = `${Number(fsValue) - step}${fsUnit}`;\r\n }\r\n};\r\n\r\n/**\r\n * The hook does N attempts to decrease the font size\r\n * if its text content doesn't fit its parent's width.\r\n * If the text still overflows, it sets the `word-break` css rule.\r\n * The hook doesn't enlarge the font size if the parent's\r\n * width becomes wider.\r\n * */\r\nexport const useTextSizeDecrease = (maxAttempts = 5, step = 1) => {\r\n const textContainerRef = useRef<HTMLElement>(null);\r\n const attemptsRef = useRef<number>(0);\r\n const { width } = useWindowSize();\r\n\r\n const checkAndResize = () => {\r\n if (textContainerRef.current == null) {\r\n return;\r\n }\r\n\r\n const node = textContainerRef.current;\r\n const parentNode = node.parentNode as unknown as HTMLElement;\r\n\r\n let isLarger = isOverflowing(node, parentNode);\r\n\r\n while (attemptsRef.current < maxAttempts && isLarger) {\r\n resize(node, step);\r\n isLarger = isOverflowing(node, parentNode);\r\n ++attemptsRef.current;\r\n }\r\n\r\n if (isLarger) {\r\n node.style.wordBreak = 'break-all';\r\n }\r\n };\r\n\r\n useEffect(() => {\r\n checkAndResize();\r\n }, [textContainerRef, width]);\r\n\r\n return textContainerRef;\r\n};\r\n"],"names":["root","factory","exports","module","require","define","amd","self","__WEBPACK_EXTERNAL_MODULE__156__","e","d","t","n","r","o","Object","defineProperty","enumerable","get","prototype","hasOwnProperty","call","Symbol","toStringTag","value","assocPath","m","callAll","dateFormatters","debounce","u","dissocPath","S","generateRange","g","mapObjIndexed","h","path","y","pathOr","b","prop","w","propOr","T","throttle","formatDate","l","formatDayOfWeek","f","formatTime","a","getTimeAgo","printDayOfTheWeek","s","forEach","i","setTimeout","clearTimeout","c","year","month","week","day","hour","min","Date","toLocaleTimeString","minute","getDay","toLocaleDateString","getTime","Number","isNaN","Error","Math","floor","now","keys","reduce","p","push","isInteger","unshift","concat","JSON","parse","stringify","length","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","__webpack_modules__","definition","key","obj","useApi","fetcherFn","initialValue","isLoading","setIsLoading","useState","error","setError","data","setData","query","async","args","respData","err","useWindowSize","windowSize","setWindowSize","width","window","innerWidth","height","innerHeight","useEffect","handleResize","addEventListener","removeEventListener","useClickOutside","ref","onClickOutside","events","handler","current","contains","target","eventName","document","usePaginationRange","pagesCount","selectedPage","useMemo","FONT_SIZE_REG_EXP","isOverflowing","el","container","scrollWidth","clientWidth","resize","step","matchResults","getComputedStyle","fontSize","match","fsValue","fsUnit","style","useTextSizeDecrease","maxAttempts","textContainerRef","useRef","attemptsRef","checkAndResize","node","parentNode","isLarger","wordBreak"],"sourceRoot":""}
|
package/package.json
CHANGED
package/src/hooks/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { useApi } from './useApi';
|
|
2
|
-
export { useWindowSize } from './useWindowResize';
|
|
3
|
-
export { useClickOutside } from './useClickOutside';
|
|
4
|
-
export { usePaginationRange } from './pagination/usePaginationRange';
|
|
5
|
-
export { useTextSizeDecrease } from './text/useTextSizeDecrease';
|
|
1
|
+
export { useApi } from './useApi';
|
|
2
|
+
export { useWindowSize } from './useWindowResize';
|
|
3
|
+
export { useClickOutside } from './useClickOutside';
|
|
4
|
+
export { usePaginationRange } from './pagination/usePaginationRange';
|
|
5
|
+
export { useTextSizeDecrease } from './text/useTextSizeDecrease';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface
|
|
2
|
-
pagesCount: number;
|
|
3
|
-
selectedPage?: number;
|
|
4
|
-
}
|
|
1
|
+
export interface UsePaginationRangeProps {
|
|
2
|
+
pagesCount: number;
|
|
3
|
+
selectedPage?: number;
|
|
4
|
+
}
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { renderHook } from '@testing-library/react';
|
|
2
|
-
import { usePaginationRange } from './usePaginationRange';
|
|
3
|
-
|
|
4
|
-
describe('usePaginationRange', () => {
|
|
5
|
-
it('Returns the range', () => {
|
|
6
|
-
const { result, rerender } = renderHook(usePaginationRange, {
|
|
7
|
-
initialProps: {
|
|
8
|
-
pagesCount: 10,
|
|
9
|
-
selectedPage: 5,
|
|
10
|
-
},
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
expect(result.current).toEqual([1, -1, 4, 5, 6, -1, 10]);
|
|
14
|
-
|
|
15
|
-
rerender({ pagesCount: 10, selectedPage: 6 });
|
|
16
|
-
expect(result.current).toEqual([1, -1, 5, 6, 7, -1, 10]);
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
it('Returns the range when a page is not selected', () => {
|
|
20
|
-
const { result } = renderHook(usePaginationRange, {
|
|
21
|
-
initialProps: {
|
|
22
|
-
pagesCount: 10,
|
|
23
|
-
},
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
expect(result.current).toEqual([1, 2, 3, -1, 10]);
|
|
27
|
-
});
|
|
28
|
-
});
|
|
1
|
+
import { renderHook } from '@testing-library/react';
|
|
2
|
+
import { usePaginationRange } from './usePaginationRange';
|
|
3
|
+
|
|
4
|
+
describe('usePaginationRange', () => {
|
|
5
|
+
it('Returns the range', () => {
|
|
6
|
+
const { result, rerender } = renderHook(usePaginationRange, {
|
|
7
|
+
initialProps: {
|
|
8
|
+
pagesCount: 10,
|
|
9
|
+
selectedPage: 5,
|
|
10
|
+
},
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
expect(result.current).toEqual([1, -1, 4, 5, 6, -1, 10]);
|
|
14
|
+
|
|
15
|
+
rerender({ pagesCount: 10, selectedPage: 6 });
|
|
16
|
+
expect(result.current).toEqual([1, -1, 5, 6, 7, -1, 10]);
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
it('Returns the range when a page is not selected', () => {
|
|
20
|
+
const { result } = renderHook(usePaginationRange, {
|
|
21
|
+
initialProps: {
|
|
22
|
+
pagesCount: 10,
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
expect(result.current).toEqual([1, 2, 3, -1, 10]);
|
|
27
|
+
});
|
|
28
|
+
});
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { useMemo } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
const usePaginationRange = ({
|
|
6
|
-
pagesCount,
|
|
7
|
-
selectedPage,
|
|
8
|
-
}:
|
|
9
|
-
return useMemo(
|
|
10
|
-
() => generateRange(pagesCount, selectedPage),
|
|
11
|
-
[pagesCount, selectedPage],
|
|
12
|
-
);
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export { usePaginationRange };
|
|
1
|
+
import { useMemo } from 'react';
|
|
2
|
+
import { generateRange } from '@ssa-ui-kit/utils';
|
|
3
|
+
import { UsePaginationRangeProps } from './types';
|
|
4
|
+
|
|
5
|
+
const usePaginationRange = ({
|
|
6
|
+
pagesCount,
|
|
7
|
+
selectedPage,
|
|
8
|
+
}: UsePaginationRangeProps) => {
|
|
9
|
+
return useMemo(
|
|
10
|
+
() => generateRange(pagesCount, selectedPage),
|
|
11
|
+
[pagesCount, selectedPage],
|
|
12
|
+
);
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { usePaginationRange };
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { screen, render } from '@testing-library/react';
|
|
3
|
-
import '@testing-library/jest-dom';
|
|
4
|
-
import { useTextSizeDecrease } from './useTextSizeDecrease';
|
|
5
|
-
|
|
6
|
-
const TestComponent = () => {
|
|
7
|
-
const ref = useTextSizeDecrease();
|
|
8
|
-
|
|
9
|
-
return (
|
|
10
|
-
<div style={{ width: '50px' }}>
|
|
11
|
-
<p
|
|
12
|
-
style={{ fontSize: '16px' }}
|
|
13
|
-
ref={ref as unknown as React.RefObject<HTMLParagraphElement>}>
|
|
14
|
-
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
15
|
-
</p>
|
|
16
|
-
</div>
|
|
17
|
-
);
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
describe('Hook: useTextSizeDecrease', () => {
|
|
21
|
-
beforeAll(() => {
|
|
22
|
-
/**
|
|
23
|
-
* The ability to calculate where elements will be visually laid out as a
|
|
24
|
-
* result of CSS is currently outside the scope of jsdom.
|
|
25
|
-
*
|
|
26
|
-
* https://github.com/jsdom/jsdom#unimplemented-parts-of-the-web-platform
|
|
27
|
-
* */
|
|
28
|
-
Object.defineProperty(HTMLParagraphElement.prototype, 'scrollWidth', {
|
|
29
|
-
configurable: true,
|
|
30
|
-
value: 100,
|
|
31
|
-
});
|
|
32
|
-
Object.defineProperty(HTMLDivElement.prototype, 'clientWidth', {
|
|
33
|
-
configurable: true,
|
|
34
|
-
value: 50,
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
it("Decreases element's font size", () => {
|
|
39
|
-
render(<TestComponent />);
|
|
40
|
-
|
|
41
|
-
const p = screen.getByRole('paragraph');
|
|
42
|
-
expect(p).toHaveStyle(`font-size: 11px`);
|
|
43
|
-
expect(p).toHaveStyle('word-break: break-all');
|
|
44
|
-
});
|
|
45
|
-
});
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { screen, render } from '@testing-library/react';
|
|
3
|
+
import '@testing-library/jest-dom';
|
|
4
|
+
import { useTextSizeDecrease } from './useTextSizeDecrease';
|
|
5
|
+
|
|
6
|
+
const TestComponent = () => {
|
|
7
|
+
const ref = useTextSizeDecrease();
|
|
8
|
+
|
|
9
|
+
return (
|
|
10
|
+
<div style={{ width: '50px' }}>
|
|
11
|
+
<p
|
|
12
|
+
style={{ fontSize: '16px' }}
|
|
13
|
+
ref={ref as unknown as React.RefObject<HTMLParagraphElement>}>
|
|
14
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
15
|
+
</p>
|
|
16
|
+
</div>
|
|
17
|
+
);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
describe('Hook: useTextSizeDecrease', () => {
|
|
21
|
+
beforeAll(() => {
|
|
22
|
+
/**
|
|
23
|
+
* The ability to calculate where elements will be visually laid out as a
|
|
24
|
+
* result of CSS is currently outside the scope of jsdom.
|
|
25
|
+
*
|
|
26
|
+
* https://github.com/jsdom/jsdom#unimplemented-parts-of-the-web-platform
|
|
27
|
+
* */
|
|
28
|
+
Object.defineProperty(HTMLParagraphElement.prototype, 'scrollWidth', {
|
|
29
|
+
configurable: true,
|
|
30
|
+
value: 100,
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(HTMLDivElement.prototype, 'clientWidth', {
|
|
33
|
+
configurable: true,
|
|
34
|
+
value: 50,
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
it("Decreases element's font size", () => {
|
|
39
|
+
render(<TestComponent />);
|
|
40
|
+
|
|
41
|
+
const p = screen.getByRole('paragraph');
|
|
42
|
+
expect(p).toHaveStyle(`font-size: 11px`);
|
|
43
|
+
expect(p).toHaveStyle('word-break: break-all');
|
|
44
|
+
});
|
|
45
|
+
});
|
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import { useEffect, useRef } from 'react';
|
|
2
|
-
import { useWindowSize } from '@hooks/useWindowResize';
|
|
3
|
-
|
|
4
|
-
const FONT_SIZE_REG_EXP = /(\d+\.?\d+)(\S+)/;
|
|
5
|
-
|
|
6
|
-
const isOverflowing = (
|
|
7
|
-
el: HTMLElement,
|
|
8
|
-
container: HTMLElement | null,
|
|
9
|
-
): boolean => el.scrollWidth > Number(container?.clientWidth);
|
|
10
|
-
|
|
11
|
-
const resize = (el: HTMLElement, step: number) => {
|
|
12
|
-
const fontSize = window.getComputedStyle(el).fontSize;
|
|
13
|
-
const matchResults = fontSize.match(FONT_SIZE_REG_EXP);
|
|
14
|
-
|
|
15
|
-
if (matchResults) {
|
|
16
|
-
const [, fsValue, fsUnit] = matchResults;
|
|
17
|
-
el.style.fontSize = `${Number(fsValue) - step}${fsUnit}`;
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* The hook does N attempts to decrease the font size
|
|
23
|
-
* if its text content doesn't fit its parent's width.
|
|
24
|
-
* If the text still overflows, it sets the `word-break` css rule.
|
|
25
|
-
* The hook doesn't enlarge the font size if the parent's
|
|
26
|
-
* width becomes wider.
|
|
27
|
-
* */
|
|
28
|
-
export const useTextSizeDecrease = (maxAttempts = 5, step = 1) => {
|
|
29
|
-
const textContainerRef = useRef<HTMLElement>(null);
|
|
30
|
-
const attemptsRef = useRef<number>(0);
|
|
31
|
-
const { width } = useWindowSize();
|
|
32
|
-
|
|
33
|
-
const checkAndResize = () => {
|
|
34
|
-
if (textContainerRef.current == null) {
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
const node = textContainerRef.current;
|
|
39
|
-
const parentNode = node.parentNode as unknown as HTMLElement;
|
|
40
|
-
|
|
41
|
-
let isLarger = isOverflowing(node, parentNode);
|
|
42
|
-
|
|
43
|
-
while (attemptsRef.current < maxAttempts && isLarger) {
|
|
44
|
-
resize(node, step);
|
|
45
|
-
isLarger = isOverflowing(node, parentNode);
|
|
46
|
-
++attemptsRef.current;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
if (isLarger) {
|
|
50
|
-
node.style.wordBreak = 'break-all';
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
useEffect(() => {
|
|
55
|
-
checkAndResize();
|
|
56
|
-
}, [textContainerRef, width]);
|
|
57
|
-
|
|
58
|
-
return textContainerRef;
|
|
59
|
-
};
|
|
1
|
+
import { useEffect, useRef } from 'react';
|
|
2
|
+
import { useWindowSize } from '@hooks/useWindowResize';
|
|
3
|
+
|
|
4
|
+
const FONT_SIZE_REG_EXP = /(\d+\.?\d+)(\S+)/;
|
|
5
|
+
|
|
6
|
+
const isOverflowing = (
|
|
7
|
+
el: HTMLElement,
|
|
8
|
+
container: HTMLElement | null,
|
|
9
|
+
): boolean => el.scrollWidth > Number(container?.clientWidth);
|
|
10
|
+
|
|
11
|
+
const resize = (el: HTMLElement, step: number) => {
|
|
12
|
+
const fontSize = window.getComputedStyle(el).fontSize;
|
|
13
|
+
const matchResults = fontSize.match(FONT_SIZE_REG_EXP);
|
|
14
|
+
|
|
15
|
+
if (matchResults) {
|
|
16
|
+
const [, fsValue, fsUnit] = matchResults;
|
|
17
|
+
el.style.fontSize = `${Number(fsValue) - step}${fsUnit}`;
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* The hook does N attempts to decrease the font size
|
|
23
|
+
* if its text content doesn't fit its parent's width.
|
|
24
|
+
* If the text still overflows, it sets the `word-break` css rule.
|
|
25
|
+
* The hook doesn't enlarge the font size if the parent's
|
|
26
|
+
* width becomes wider.
|
|
27
|
+
* */
|
|
28
|
+
export const useTextSizeDecrease = (maxAttempts = 5, step = 1) => {
|
|
29
|
+
const textContainerRef = useRef<HTMLElement>(null);
|
|
30
|
+
const attemptsRef = useRef<number>(0);
|
|
31
|
+
const { width } = useWindowSize();
|
|
32
|
+
|
|
33
|
+
const checkAndResize = () => {
|
|
34
|
+
if (textContainerRef.current == null) {
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const node = textContainerRef.current;
|
|
39
|
+
const parentNode = node.parentNode as unknown as HTMLElement;
|
|
40
|
+
|
|
41
|
+
let isLarger = isOverflowing(node, parentNode);
|
|
42
|
+
|
|
43
|
+
while (attemptsRef.current < maxAttempts && isLarger) {
|
|
44
|
+
resize(node, step);
|
|
45
|
+
isLarger = isOverflowing(node, parentNode);
|
|
46
|
+
++attemptsRef.current;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
if (isLarger) {
|
|
50
|
+
node.style.wordBreak = 'break-all';
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
useEffect(() => {
|
|
55
|
+
checkAndResize();
|
|
56
|
+
}, [textContainerRef, width]);
|
|
57
|
+
|
|
58
|
+
return textContainerRef;
|
|
59
|
+
};
|
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
import { renderHook, act } from '@testing-library/react';
|
|
2
|
-
import { useApi } from './useApi';
|
|
3
|
-
|
|
4
|
-
describe('Hook: useApi', () => {
|
|
5
|
-
it('Data fetched successfully', async () => {
|
|
6
|
-
const mockRequestData = [
|
|
7
|
-
{
|
|
8
|
-
userId: 1,
|
|
9
|
-
userName: 'Andrew',
|
|
10
|
-
balance: 0,
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
userId: 2,
|
|
14
|
-
userName: 'Petro',
|
|
15
|
-
balance: 100,
|
|
16
|
-
},
|
|
17
|
-
];
|
|
18
|
-
const { result } = renderHook(() =>
|
|
19
|
-
useApi(
|
|
20
|
-
jest.fn(() => Promise.resolve(mockRequestData)),
|
|
21
|
-
[],
|
|
22
|
-
),
|
|
23
|
-
);
|
|
24
|
-
|
|
25
|
-
await act(async () => {
|
|
26
|
-
await result.current.query();
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
expect(result.current.data).toBe(mockRequestData);
|
|
30
|
-
expect(result.current.error).toBe(null);
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
it('Data fetched with error', async () => {
|
|
34
|
-
const mockError = new Error('Fetch Error');
|
|
35
|
-
const mockRequest = () => {
|
|
36
|
-
throw mockError;
|
|
37
|
-
};
|
|
38
|
-
const { result } = renderHook(() => useApi(mockRequest, []));
|
|
39
|
-
|
|
40
|
-
await act(() => {
|
|
41
|
-
result.current.query();
|
|
42
|
-
});
|
|
43
|
-
|
|
44
|
-
expect(result.current.error).toEqual(mockError);
|
|
45
|
-
});
|
|
46
|
-
});
|
|
1
|
+
import { renderHook, act } from '@testing-library/react';
|
|
2
|
+
import { useApi } from './useApi';
|
|
3
|
+
|
|
4
|
+
describe('Hook: useApi', () => {
|
|
5
|
+
it('Data fetched successfully', async () => {
|
|
6
|
+
const mockRequestData = [
|
|
7
|
+
{
|
|
8
|
+
userId: 1,
|
|
9
|
+
userName: 'Andrew',
|
|
10
|
+
balance: 0,
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
userId: 2,
|
|
14
|
+
userName: 'Petro',
|
|
15
|
+
balance: 100,
|
|
16
|
+
},
|
|
17
|
+
];
|
|
18
|
+
const { result } = renderHook(() =>
|
|
19
|
+
useApi(
|
|
20
|
+
jest.fn(() => Promise.resolve(mockRequestData)),
|
|
21
|
+
[],
|
|
22
|
+
),
|
|
23
|
+
);
|
|
24
|
+
|
|
25
|
+
await act(async () => {
|
|
26
|
+
await result.current.query();
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
expect(result.current.data).toBe(mockRequestData);
|
|
30
|
+
expect(result.current.error).toBe(null);
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
it('Data fetched with error', async () => {
|
|
34
|
+
const mockError = new Error('Fetch Error');
|
|
35
|
+
const mockRequest = () => {
|
|
36
|
+
throw mockError;
|
|
37
|
+
};
|
|
38
|
+
const { result } = renderHook(() => useApi(mockRequest, []));
|
|
39
|
+
|
|
40
|
+
await act(() => {
|
|
41
|
+
result.current.query();
|
|
42
|
+
});
|
|
43
|
+
|
|
44
|
+
expect(result.current.error).toEqual(mockError);
|
|
45
|
+
});
|
|
46
|
+
});
|
package/src/hooks/useApi.tsx
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { useState } from 'react';
|
|
2
|
-
|
|
3
|
-
export function useApi<D>(
|
|
4
|
-
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
5
|
-
fetcherFn: (...args: any[]) => Promise<D>,
|
|
6
|
-
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
7
|
-
initialValue?: any,
|
|
8
|
-
) {
|
|
9
|
-
const [isLoading, setIsLoading] = useState<boolean>(false);
|
|
10
|
-
const [error, setError] = useState<unknown | null>(null);
|
|
11
|
-
const [data, setData] = useState<D>(initialValue);
|
|
12
|
-
|
|
13
|
-
const query = async (...args: Parameters<typeof fetcherFn>) => {
|
|
14
|
-
setIsLoading(true);
|
|
15
|
-
setError(null);
|
|
16
|
-
|
|
17
|
-
try {
|
|
18
|
-
const respData = await fetcherFn(...args);
|
|
19
|
-
setData(respData);
|
|
20
|
-
} catch (err) {
|
|
21
|
-
setError(err);
|
|
22
|
-
} finally {
|
|
23
|
-
setIsLoading(false);
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
return {
|
|
28
|
-
isLoading,
|
|
29
|
-
error,
|
|
30
|
-
data,
|
|
31
|
-
query,
|
|
32
|
-
};
|
|
33
|
-
}
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
|
|
3
|
+
export function useApi<D>(
|
|
4
|
+
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
5
|
+
fetcherFn: (...args: any[]) => Promise<D>,
|
|
6
|
+
/* eslint-disable-next-line @typescript-eslint/no-explicit-any */
|
|
7
|
+
initialValue?: any,
|
|
8
|
+
) {
|
|
9
|
+
const [isLoading, setIsLoading] = useState<boolean>(false);
|
|
10
|
+
const [error, setError] = useState<unknown | null>(null);
|
|
11
|
+
const [data, setData] = useState<D>(initialValue);
|
|
12
|
+
|
|
13
|
+
const query = async (...args: Parameters<typeof fetcherFn>) => {
|
|
14
|
+
setIsLoading(true);
|
|
15
|
+
setError(null);
|
|
16
|
+
|
|
17
|
+
try {
|
|
18
|
+
const respData = await fetcherFn(...args);
|
|
19
|
+
setData(respData);
|
|
20
|
+
} catch (err) {
|
|
21
|
+
setError(err);
|
|
22
|
+
} finally {
|
|
23
|
+
setIsLoading(false);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
return {
|
|
28
|
+
isLoading,
|
|
29
|
+
error,
|
|
30
|
+
data,
|
|
31
|
+
query,
|
|
32
|
+
};
|
|
33
|
+
}
|
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
renderHook,
|
|
3
|
-
screen,
|
|
4
|
-
act,
|
|
5
|
-
fireEvent,
|
|
6
|
-
render,
|
|
7
|
-
} from '@testing-library/react';
|
|
8
|
-
import { useClickOutside } from './useClickOutside';
|
|
9
|
-
import React from 'react';
|
|
10
|
-
|
|
11
|
-
describe('Hook: useClickOutside', () => {
|
|
12
|
-
it('useClickOutside Hook works correctly', () => {
|
|
13
|
-
const mockCallback = jest.fn();
|
|
14
|
-
const mainButtonRef = React.createRef<HTMLButtonElement>();
|
|
15
|
-
const wrapper = (
|
|
16
|
-
<div>
|
|
17
|
-
<button ref={mainButtonRef}>Main button</button>
|
|
18
|
-
<button>Second button</button>
|
|
19
|
-
</div>
|
|
20
|
-
);
|
|
21
|
-
const { rerender } = renderHook(() =>
|
|
22
|
-
useClickOutside(mainButtonRef, mockCallback),
|
|
23
|
-
);
|
|
24
|
-
render(wrapper);
|
|
25
|
-
rerender();
|
|
26
|
-
|
|
27
|
-
act(() => {
|
|
28
|
-
fireEvent.mouseDown(screen.getByText('Main button'));
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
expect(mockCallback).toBeCalledTimes(0);
|
|
32
|
-
|
|
33
|
-
act(() => {
|
|
34
|
-
fireEvent.mouseDown(screen.getByText('Second button'));
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
expect(mockCallback).toBeCalledTimes(1);
|
|
38
|
-
});
|
|
39
|
-
});
|
|
1
|
+
import {
|
|
2
|
+
renderHook,
|
|
3
|
+
screen,
|
|
4
|
+
act,
|
|
5
|
+
fireEvent,
|
|
6
|
+
render,
|
|
7
|
+
} from '@testing-library/react';
|
|
8
|
+
import { useClickOutside } from './useClickOutside';
|
|
9
|
+
import React from 'react';
|
|
10
|
+
|
|
11
|
+
describe('Hook: useClickOutside', () => {
|
|
12
|
+
it('useClickOutside Hook works correctly', () => {
|
|
13
|
+
const mockCallback = jest.fn();
|
|
14
|
+
const mainButtonRef = React.createRef<HTMLButtonElement>();
|
|
15
|
+
const wrapper = (
|
|
16
|
+
<div>
|
|
17
|
+
<button ref={mainButtonRef}>Main button</button>
|
|
18
|
+
<button>Second button</button>
|
|
19
|
+
</div>
|
|
20
|
+
);
|
|
21
|
+
const { rerender } = renderHook(() =>
|
|
22
|
+
useClickOutside(mainButtonRef, mockCallback),
|
|
23
|
+
);
|
|
24
|
+
render(wrapper);
|
|
25
|
+
rerender();
|
|
26
|
+
|
|
27
|
+
act(() => {
|
|
28
|
+
fireEvent.mouseDown(screen.getByText('Main button'));
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
expect(mockCallback).toBeCalledTimes(0);
|
|
32
|
+
|
|
33
|
+
act(() => {
|
|
34
|
+
fireEvent.mouseDown(screen.getByText('Second button'));
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
expect(mockCallback).toBeCalledTimes(1);
|
|
38
|
+
});
|
|
39
|
+
});
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { useEffect } from 'react';
|
|
2
|
-
|
|
3
|
-
type UseClickOutsideType = (
|
|
4
|
-
ref: React.RefObject<HTMLElement | null>,
|
|
5
|
-
fn: (e: Event) => void,
|
|
6
|
-
) => void;
|
|
7
|
-
|
|
8
|
-
export const useClickOutside: UseClickOutsideType = (ref, onClickOutside) => {
|
|
9
|
-
const events = ['mousedown', 'touchstart'];
|
|
10
|
-
|
|
11
|
-
useEffect(() => {
|
|
12
|
-
const handler = (e: Event) => {
|
|
13
|
-
if (
|
|
14
|
-
ref.current == null ||
|
|
15
|
-
ref.current.contains(e.target as HTMLElement)
|
|
16
|
-
) {
|
|
17
|
-
return;
|
|
18
|
-
}
|
|
19
|
-
onClickOutside(e);
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
events.forEach((eventName) =>
|
|
23
|
-
document.addEventListener(eventName, handler),
|
|
24
|
-
);
|
|
25
|
-
|
|
26
|
-
return () =>
|
|
27
|
-
events.forEach((eventName) =>
|
|
28
|
-
document.removeEventListener(eventName, handler),
|
|
29
|
-
);
|
|
30
|
-
}, [ref, onClickOutside]);
|
|
31
|
-
};
|
|
1
|
+
import { useEffect } from 'react';
|
|
2
|
+
|
|
3
|
+
type UseClickOutsideType = (
|
|
4
|
+
ref: React.RefObject<HTMLElement | null>,
|
|
5
|
+
fn: (e: Event) => void,
|
|
6
|
+
) => void;
|
|
7
|
+
|
|
8
|
+
export const useClickOutside: UseClickOutsideType = (ref, onClickOutside) => {
|
|
9
|
+
const events = ['mousedown', 'touchstart'];
|
|
10
|
+
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
const handler = (e: Event) => {
|
|
13
|
+
if (
|
|
14
|
+
ref.current == null ||
|
|
15
|
+
ref.current.contains(e.target as HTMLElement)
|
|
16
|
+
) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
onClickOutside(e);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
events.forEach((eventName) =>
|
|
23
|
+
document.addEventListener(eventName, handler),
|
|
24
|
+
);
|
|
25
|
+
|
|
26
|
+
return () =>
|
|
27
|
+
events.forEach((eventName) =>
|
|
28
|
+
document.removeEventListener(eventName, handler),
|
|
29
|
+
);
|
|
30
|
+
}, [ref, onClickOutside]);
|
|
31
|
+
};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { renderHook, act, fireEvent } from '@testing-library/react';
|
|
2
|
-
import { useWindowSize } from './useWindowResize';
|
|
3
|
-
|
|
4
|
-
describe('Hook: useWindowResize', () => {
|
|
5
|
-
it('useWindowResize Hook works correctly', () => {
|
|
6
|
-
const { result } = renderHook(() => useWindowSize());
|
|
7
|
-
|
|
8
|
-
act(() => {
|
|
9
|
-
window.innerHeight = 550;
|
|
10
|
-
window.innerWidth = 350;
|
|
11
|
-
});
|
|
12
|
-
|
|
13
|
-
fireEvent(window, new Event('resize'));
|
|
14
|
-
|
|
15
|
-
expect(result.current).toEqual({
|
|
16
|
-
width: 350,
|
|
17
|
-
height: 550,
|
|
18
|
-
});
|
|
19
|
-
});
|
|
20
|
-
});
|
|
1
|
+
import { renderHook, act, fireEvent } from '@testing-library/react';
|
|
2
|
+
import { useWindowSize } from './useWindowResize';
|
|
3
|
+
|
|
4
|
+
describe('Hook: useWindowResize', () => {
|
|
5
|
+
it('useWindowResize Hook works correctly', () => {
|
|
6
|
+
const { result } = renderHook(() => useWindowSize());
|
|
7
|
+
|
|
8
|
+
act(() => {
|
|
9
|
+
window.innerHeight = 550;
|
|
10
|
+
window.innerWidth = 350;
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
fireEvent(window, new Event('resize'));
|
|
14
|
+
|
|
15
|
+
expect(result.current).toEqual({
|
|
16
|
+
width: 350,
|
|
17
|
+
height: 550,
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
});
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { useEffect, useState } from 'react';
|
|
2
|
-
|
|
3
|
-
export const useWindowSize = () => {
|
|
4
|
-
const [windowSize, setWindowSize] = useState({
|
|
5
|
-
width: window.innerWidth,
|
|
6
|
-
height: window.innerHeight,
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
useEffect(() => {
|
|
10
|
-
function handleResize() {
|
|
11
|
-
setWindowSize({ width: window.innerWidth, height: window.innerHeight });
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
window.addEventListener('resize', handleResize);
|
|
15
|
-
|
|
16
|
-
handleResize();
|
|
17
|
-
|
|
18
|
-
return () => window.removeEventListener('resize', handleResize);
|
|
19
|
-
}, []);
|
|
20
|
-
|
|
21
|
-
return windowSize;
|
|
22
|
-
};
|
|
1
|
+
import { useEffect, useState } from 'react';
|
|
2
|
+
|
|
3
|
+
export const useWindowSize = () => {
|
|
4
|
+
const [windowSize, setWindowSize] = useState({
|
|
5
|
+
width: window.innerWidth,
|
|
6
|
+
height: window.innerHeight,
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
function handleResize() {
|
|
11
|
+
setWindowSize({ width: window.innerWidth, height: window.innerHeight });
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
window.addEventListener('resize', handleResize);
|
|
15
|
+
|
|
16
|
+
handleResize();
|
|
17
|
+
|
|
18
|
+
return () => window.removeEventListener('resize', handleResize);
|
|
19
|
+
}, []);
|
|
20
|
+
|
|
21
|
+
return windowSize;
|
|
22
|
+
};
|
package/src/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './hooks';
|
|
1
|
+
export * from './hooks';
|
package/tsbuildcache
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2022.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2023.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.esnext.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2023.array.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../node_modules/.pnpm/@types+react@18.2.8/node_modules/@types/react/global.d.ts","../../node_modules/.pnpm/csstype@3.1.2/node_modules/csstype/index.d.ts","../../node_modules/.pnpm/@types+prop-types@15.7.5/node_modules/@types/prop-types/index.d.ts","../../node_modules/.pnpm/@types+scheduler@0.16.3/node_modules/@types/scheduler/tracing.d.ts","../../node_modules/.pnpm/@types+react@18.2.8/node_modules/@types/react/index.d.ts","../../node_modules/.pnpm/@types+react@18.2.8/node_modules/@types/react/jsx-runtime.d.ts","./src/hooks/useapi.tsx","./src/hooks/usewindowresize.tsx","./src/hooks/useclickoutside.tsx","./src/hooks/pagination/types.ts","../utils/dist/utils/callall.d.ts","../utils/dist/utils/throttle/throttle.d.ts","../utils/dist/utils/throttle/index.d.ts","../utils/dist/utils/debounce/debounce.d.ts","../utils/dist/utils/debounce/index.d.ts","../utils/dist/utils/dates/dateformatters.d.ts","../utils/dist/utils/objects/mapobjindexed.d.ts","../utils/dist/utils/pagination/types.d.ts","../utils/dist/utils/pagination/generaterange.d.ts","../utils/dist/utils/pagination/index.d.ts","../utils/dist/utils/objects/assocpath.d.ts","../utils/dist/utils/objects/dissocpath.d.ts","../utils/dist/utils/objects/path.d.ts","../utils/dist/utils/objects/pathor.d.ts","../utils/dist/utils/objects/prop.d.ts","../utils/dist/utils/objects/propor.d.ts","../utils/dist/utils/objects/index.d.ts","../utils/dist/utils/types.d.ts","../utils/dist/index.d.ts","./src/hooks/pagination/usepaginationrange.tsx","./src/hooks/text/usetextsizedecrease.ts","./src/hooks/index.ts","./src/index.ts","../../node_modules/.pnpm/@types+aria-query@4.2.2/node_modules/@types/aria-query/index.d.ts","../../node_modules/.pnpm/@testing-library+dom@8.19.0/node_modules/@testing-library/dom/types/matches.d.ts","../../node_modules/.pnpm/@testing-library+dom@8.19.0/node_modules/@testing-library/dom/types/wait-for.d.ts","../../node_modules/.pnpm/@testing-library+dom@8.19.0/node_modules/@testing-library/dom/types/query-helpers.d.ts","../../node_modules/.pnpm/@testing-library+dom@8.19.0/node_modules/@testing-library/dom/types/queries.d.ts","../../node_modules/.pnpm/@testing-library+dom@8.19.0/node_modules/@testing-library/dom/types/get-queries-for-element.d.ts","../../node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/types.d.ts","../../node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/index.d.ts","../../node_modules/.pnpm/@testing-library+dom@8.19.0/node_modules/@testing-library/dom/types/screen.d.ts","../../node_modules/.pnpm/@testing-library+dom@8.19.0/node_modules/@testing-library/dom/types/wait-for-element-to-be-removed.d.ts","../../node_modules/.pnpm/@testing-library+dom@8.19.0/node_modules/@testing-library/dom/types/get-node-text.d.ts","../../node_modules/.pnpm/@testing-library+dom@8.19.0/node_modules/@testing-library/dom/types/events.d.ts","../../node_modules/.pnpm/@testing-library+dom@8.19.0/node_modules/@testing-library/dom/types/pretty-dom.d.ts","../../node_modules/.pnpm/@testing-library+dom@8.19.0/node_modules/@testing-library/dom/types/role-helpers.d.ts","../../node_modules/.pnpm/@testing-library+dom@8.19.0/node_modules/@testing-library/dom/types/config.d.ts","../../node_modules/.pnpm/@testing-library+dom@8.19.0/node_modules/@testing-library/dom/types/suggestions.d.ts","../../node_modules/.pnpm/@testing-library+dom@8.19.0/node_modules/@testing-library/dom/types/index.d.ts","../../node_modules/.pnpm/@types+react-dom@18.2.4/node_modules/@types/react-dom/index.d.ts","../../node_modules/.pnpm/@types+react-dom@18.2.4/node_modules/@types/react-dom/test-utils/index.d.ts","../../node_modules/.pnpm/@testing-library+react@13.4.0_react-dom@18.2.0_react@18.2.0/node_modules/@testing-library/react/types/index.d.ts","./src/hooks/useapi.spec.tsx","./src/hooks/useclickoutside.spec.tsx","./src/hooks/usewindowresize.spec.tsx","./src/hooks/pagination/usepaginationrange.spec.tsx","../../node_modules/.pnpm/@jest+expect-utils@29.6.4/node_modules/@jest/expect-utils/build/index.d.ts","../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts","../../node_modules/.pnpm/@sinclair+typebox@0.27.8/node_modules/@sinclair/typebox/typebox.d.ts","../../node_modules/.pnpm/@jest+schemas@29.6.3/node_modules/@jest/schemas/build/index.d.ts","../../node_modules/.pnpm/pretty-format@29.6.3/node_modules/pretty-format/build/index.d.ts","../../node_modules/.pnpm/jest-diff@29.6.4/node_modules/jest-diff/build/index.d.ts","../../node_modules/.pnpm/jest-matcher-utils@29.6.4/node_modules/jest-matcher-utils/build/index.d.ts","../../node_modules/.pnpm/expect@29.5.0/node_modules/expect/build/index.d.ts","../../node_modules/.pnpm/pretty-format@29.5.0/node_modules/pretty-format/build/index.d.ts","../../node_modules/.pnpm/@types+jest@29.5.2/node_modules/@types/jest/index.d.ts","../../node_modules/.pnpm/@types+testing-library__jest-dom@5.14.6/node_modules/@types/testing-library__jest-dom/matchers.d.ts","../../node_modules/.pnpm/@types+testing-library__jest-dom@5.14.6/node_modules/@types/testing-library__jest-dom/index.d.ts","./src/hooks/text/usetextsizedecrease.spec.tsx","../../node_modules/.pnpm/@types+eslint@8.40.2/node_modules/@types/eslint/helpers.d.ts","../../node_modules/.pnpm/@types+estree@1.0.1/node_modules/@types/estree/index.d.ts","../../node_modules/.pnpm/@types+json-schema@7.0.12/node_modules/@types/json-schema/index.d.ts","../../node_modules/.pnpm/@types+eslint@8.40.2/node_modules/@types/eslint/index.d.ts","../../node_modules/.pnpm/@types+eslint-scope@3.7.4/node_modules/@types/eslint-scope/index.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/assert.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/assert/strict.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/globals.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/async_hooks.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/buffer.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/child_process.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/cluster.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/console.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/constants.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/crypto.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/dgram.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/diagnostics_channel.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/dns.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/dns/promises.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/domain.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/dom-events.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/events.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/fs.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/fs/promises.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/http.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/http2.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/https.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/inspector.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/module.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/net.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/os.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/path.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/perf_hooks.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/process.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/punycode.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/querystring.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/readline.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/readline/promises.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/repl.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/stream.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/stream/promises.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/stream/consumers.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/stream/web.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/string_decoder.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/test.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/timers.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/timers/promises.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/tls.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/trace_events.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/tty.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/url.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/util.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/v8.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/vm.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/wasi.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/worker_threads.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/zlib.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/globals.global.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/index.d.ts"],"fileInfos":[{"version":"f59215c5f1d886b05395ee7aca73e0ac69ddfad2843aa88530e797879d511bad","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","f4e736d6c8d69ae5b3ab0ddfcaa3dc365c3e76909d6660af5b4e979b3934ac20","eeeb3aca31fbadef8b82502484499dfd1757204799a6f5b33116201c810676ec",{"version":"3dda5344576193a4ae48b8d03f105c86f20b2f2aff0a1d1fd7935f5d68649654","affectsGlobalScope":true},{"version":"35299ae4a62086698444a5aaee27fc7aa377c68cbb90b441c9ace246ffd05c97","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":"709efdae0cb5df5f49376cde61daacc95cdd44ae4671da13a540da5088bf3f30","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"61ed9b6d07af959e745fb11f9593ecd743b279418cc8a99448ea3cd5f3b3eb22","affectsGlobalScope":true},{"version":"038a2f66a34ee7a9c2fbc3584c8ab43dff2995f8c68e3f566f4c300d2175e31e","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"f5c92f2c27b06c1a41b88f6db8299205aee52c2a2943f7ed29bd585977f254e8","affectsGlobalScope":true},{"version":"930b0e15811f84e203d3c23508674d5ded88266df4b10abee7b31b2ac77632d2","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"b9ea5778ff8b50d7c04c9890170db34c26a5358cccba36844fe319f50a43a61a","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true},{"version":"25de46552b782d43cb7284df22fe2a265de387cf0248b747a7a1b647d81861f6","affectsGlobalScope":true},{"version":"307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc","affectsGlobalScope":true},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},{"version":"549df62b64a71004aee17685b445a8289013daf96246ce4d9b087d13d7a27a61","affectsGlobalScope":true},"4c68749a564a6facdf675416d75789ee5a557afda8960e0803cf6711fa569288","6a386ff939f180ae8ef064699d8b7b6e62bc2731a62d7fbf5e02589383838dea","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"af6e117b5bbb9d4bd77b596995818e047652c45a4fd7c243db88c6a81ea4f345","affectsGlobalScope":true},"de618fec44f70765cc7bbc30c9049b1c31f3cfb3824e7a7731121ca1785998e4",{"version":"7236416e51bdd7a3e1b4ac10f7c023b395b1afbcd4a7204f3ae61a8b67997f7d","signature":"c31ff29a009906dc52d66dc94af12b237f4247f0e208d1c8851e04229c7489ed"},{"version":"97ff31d772d86155da84ab4c50cf09df65cbc221adced8554d6795eb56694011","signature":"1b6ebe13fde8e28c274cbe1904af2758dbe28d16a0da982533ca6d75012ab040"},{"version":"bea08d3aeffb7fc7916bd3ba24918a36c5bc35d2ec8a46a620059890e03e9c0f","signature":"0a35bba0d5a8ce1f65b47f56bfa5e29c0d4ad5c83cdbfa1753d69e0933635eb4"},{"version":"e3fad4a4298a7ab920cecc49ce606d9b22e45bfec54dc7f06b6937ea0af248a5","signature":"801108b8550f547c4628cbc359ed498a46c6d5a08f40c5cfc48054c56ef55fb1"},"b0de5466e44eb385f6dd697708f142f77bee179fa9a901c129537d6f5c03662f","bc681a177f66fb7b094061bcafd2bfb6ca6df6b032a61fef23339579f81b5f0c","388150f8c5ca50e26452a0412eb6be096f0a304649c21b1ddcef2095c5beddd6","34579746ab6f8e88d8737b95cad72de7c3700f593ad94c1c1a9af3ebf7633645","ae43168792e0e724aee69245c76c4a7cd4b2bafa957c19538dc30fe6ffbb2309","b35ef14f226dd768a3b57077632d4f1fefa8819a6b203df91334de81239a9bc1","63a378cb9641e143f1ec4dacf2ba0d494df3e58b476a5956dfcb3c7cc86ebded","84ba1f043b959f5f0c49c2fd1d04bc4570ad74cb3a768e7d40098a1e44a14c46","4d32060470a17c0313430faa51ac37500262fa75f95fd27fd62c4128c87fdbcb","f2dc944371281c83bc5c4839ff1619aa96235e325be5eb6f16971bac7478ef8d","394218c5dd4e7aab03b47990d824e5778ec18beacb5a78e1c180d136f8d8aa28","36e07532e1360fa5d9bf8f6897428d71f0828dec4b0a354f6f0a344fd8a9c271","22993fda8c36619231e86d3dc25c17865196aa6c3c133169aeb9c2db2fafe4ec","1dd0d6cf40cc4c15bd789310bbcf070732c1c677aa5deefbc741b8399bcaf5fb","4a05f9cc1e23be99d04ead028bc2e7cb2e946af6a975e63fe09530635d2e5ae9","fe4b9b6929826cd37a511fbb9d37ce88ea366718d2883970435e545afdd249f3","ef84c87c1583bb1b7d65f2222006342c5a95da1a321b69a944f96e879dc3f32d","b1aa52406ae2f56b5a5b7efa38eb9b0e5850786770f60e864cd3528b780936a5","4ad806d12106a84dbdd10fd908c3074c4f495dc5834d6a03b30a33bd2c1b836d",{"version":"8594b26b76a292bf55fd1a6bab7b0e61c113c6ca51d214c7f245bff6245abfcf","signature":"6581392dc3b4facdc560d936dd734a68b3a539dba77aa978385ae053ab094a0a"},{"version":"3c35171e4f754b4e058591b0cee2cd50e6e1568d755da7dc171222937f7a250b","signature":"a1af70d1de90a77bbe0aaa6063f7ccefdf6fcfc2dc66b365f143d819aac453d7"},"d3ac02715c6aba25411e7692e8db3161ba3cd18c02e24316a5052e57988ddc2f","5aec7b6736b66bb1d80189c69a837256b452caa8c1d3eedd4bd6148fec28d007","5024433f8da3a7968f6d12cffd32f2cefae4442a9ad1c965fa2d23342338b700","f70bc756d933cc38dc603331a4b5c8dee89e1e1fb956cfb7a6e04ebb4c008091","8387ec1601cf6b8948672537cf8d430431ba0d87b1f9537b4597c1ab8d3ade5b","d16f1c460b1ca9158e030fdf3641e1de11135e0c7169d3e8cf17cc4cc35d5e64","fbc350d1cb7543cb75fdd5f3895ab9ac0322268e1bd6a43417565786044424f3","e3c5ad476eb2fca8505aee5bdfdf9bf11760df5d0f9545db23f12a5c4d72a718","462bccdf75fcafc1ae8c30400c9425e1a4681db5d605d1a0edb4f990a54d8094","5923d8facbac6ecf7c84739a5c701a57af94a6f6648d6229a6c768cf28f0f8cb","d0570ce419fb38287e7b39c910b468becb5b2278cf33b1000a3d3e82a46ecae2","3aca7f4260dad9dcc0a0333654cb3cde6664d34a553ec06c953bce11151764d7","a0a6f0095f25f08a7129bc4d7cb8438039ec422dc341218d274e1e5131115988","cb3aaf306b5ff2ec718359e2e2244263c0b364c35759b1467c16caa113ccb849","45785e608b3d380c79e21957a6d1467e1206ac0281644e43e8ed6498808ace72","a3ce619711ff1bcdaaf4b5187d1e3f84e76064909a7c7ecb2e2f404f145b7b5c","2a90177ebaef25de89351de964c2c601ab54d6e3a157cba60d9cd3eaf5a5ee1a","82200e963d3c767976a5a9f41ecf8c65eca14a6b33dcbe00214fcbe959698c46","b4966c503c08bbd9e834037a8ab60e5f53c5fd1092e8873c4a1c344806acdab2","a95b76aef31395752eb5cb7b386be2e287fdc32dfdf7bdbbb666e333133b1ef7","ad0d1e42d1a8007af715a85992f8b26f23e49d9fa47d34123d4997528b5fad4d","79410b2e5ccc5aef9710303a24d4101159e7b89a6b77dcb694b376b07a6b3b06",{"version":"cb994743c51ee3b898221c3701da9e078ebd5e60a525b3625fbcf3c61f7bbcfd","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"63a0176870c83cc8c926deb9305d3936f24ea95e87412a8bed64732474999ca6","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"39e87b69f1635532c08ad85991a6a1e135846063aaabde2a67fe3fafcecd10df","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"98b0dae7661181b5e97c0c718ff4ba457a0ff85619b3ef2eb7a5897ff2a67043","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},"cdcc132f207d097d7d3aa75615ab9a2e71d6a478162dde8b67f88ea19f3e54de","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","c085e9aa62d1ae1375794c1fb927a445fa105fed891a7e24edbb1c3300f7384a","f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","2cec1a31729b9b01e9294c33fc9425d336eff067282809761ad2e74425d6d2a5","2d47012580f859dae201d2eef898a416bdae719dffc087dfd06aefe3de2f9c8d",{"version":"240c702fb4b3bd54d83ee167d80fa7f0cd7300fef7eea0b32cef33129740893c","affectsGlobalScope":true},"28bc19234e1027156ad72c5644a97eec0538d262aeb9ceb31356767eac0d3fdc",{"version":"910199067bfd07a4605bf51001677680e1691f8d403e9d410c0fe33a6079cd58","affectsGlobalScope":true},{"version":"5bc13f7312a3c7b4ec97ac2c962b744dd76459ddcfdcf7283ceb5a2a1fcc7a6b","signature":"a46d66851af2c056e805fdd574bf5ec3adb1181c43c5e41f0a1c592e338afe64"},{"version":"64d4b35c5456adf258d2cf56c341e203a073253f229ef3208fc0d5020253b241","affectsGlobalScope":true},"bee89e1eb6425eb49894f3f25e4562dc2564e84e5aa7610b7e13d8ecddf8f5db","dca41e86e89dfb2e85e6935260250f02eb6683b86c2fa16bec729ddd1bcd9b4b","894e2eb01e3ac0dda3722dc520d804faa863fd6e2938c801e4c8561e7b0c8a40","e050a0afcdbb269720a900c85076d18e0c1ab73e580202a2bf6964978181222a","587f13f1e8157bd8cec0adda0de4ef558bb8573daa9d518d1e2af38e87ecc91f","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"bce910d9164785c9f0d4dcea4be359f5f92130c7c7833dea6138ab1db310a1f9","affectsGlobalScope":true},"7a435e0c814f58f23e9a0979045ec0ef5909aac95a70986e8bcce30c27dff228",{"version":"241a2e19e03fd1d884e0f304429378d05bc2c1b26b5693c84868f7ad0674982d","affectsGlobalScope":true},"db71be322f07f769200108aa19b79a75dd19a187c9dca2a30c4537b233aa2863","0b70ce7a20fa21c7201a5a972b7f2288cb90ace8a2dde9f3344b5dfc6504abaf",{"version":"49479e21a040c0177d1b1bc05a124c0383df7a08a0726ad4d9457619642e875a","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","3fd0f1af75fb7abe0ea376aa71541daaf489f3d87c394b1165db684ea44b48be","3690133deae19c8127c5505fcb67b04bdc9eb053796008538a9b9abbb70d85aa","5b1c0a23f464f894e7c2b2b6c56df7b9afa60ed48c5345f8618d389a636b2108","be2b092f2765222757c6441b86c53a5ea8dfed47bbc43eab4c5fe37942c866b3","8e6b05abc98adba15e1ac78e137c64576c74002e301d682e66feb77a23907ab8","1ca735bb3d407b2af4fbee7665f3a0a83be52168c728cc209755060ba7ed67bd",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"b85c02e14ecb2a873dad5a1de72319b265160ba48f1b83661aeb3bba1366c1bc","affectsGlobalScope":true},"f1a0b2dde686cb8a995d4ed11848be5eaf76fd5d56532942e0737b39d4a02c6d","fc3764040518a1008dd04bdc80964591b566b896283e00df85c95851c1f46237","55709608060f77965c270ac10ac646286589f1bd1cb174fff1778a2dd9a7ef31","790623a47c5eda62910098884ecb154dc0e5f3a23fc36c1bfb3b5b9ed44e2c2d","42b40e40f2a358cda332456214fad311e1806a6abf3cebaaac72496e07556642","354612fe1d49ecc9551ea3a27d94eef2887b64ef4a71f72ca444efe0f2f0ba80",{"version":"125af9d85cb9d5e508353f10a8d52f01652d2d48b2cea54789a33e5b4d289c1c","affectsGlobalScope":true},"6a325d4c96569bdd5a9a59f819a672e2d5644ee6cf98ab910e0064402557af8d","5e2b91328a540a0933ab5c2203f4358918e6f0fe7505d22840a891a6117735f1","3abc3512fa04aa0230f59ea1019311fd8667bd935d28306311dccc8b17e79d5d",{"version":"14a50dafe3f45713f7f27cb6320dff07c6ac31678f07959c2134260061bf91ff","affectsGlobalScope":true},{"version":"5761c90b0cabdd6bd1f5fb1c3bf942088fdd39e18ed35dbe39b0c34bc733bf13","affectsGlobalScope":true},"1349077576abb41f0e9c78ec30762ff75b710208aff77f5fdcc6a8c8ce6289dd","e2ce82603102b5c0563f59fb40314cc1ff95a4d521a66ad14146e130ea80d89c","a3e0395220255a350aa9c6d56f882bfcb5b85c19fddf5419ec822cf22246a26d","c27b01e8ddff5cd280711af5e13aecd9a3228d1c256ea797dd64f8fdec5f7df5","898840e876dfd21843db9f2aa6ae38ba2eab550eb780ff62b894b9fbfebfae6b","0cab4d7d4edc40cd3af9eea7c3ed6d1016910c0954c49c4297e479bf3822a625","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","785e5be57d4f20f290a20e7b0c6263f6c57fd6e51283050756cef07d6d651c68","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","164deb2409ac5f4da3cd139dbcee7f7d66753d90363a4d7e2db8d8874f272270","1fb6c5ec52332a8b531a8d7a5300ac9301f98c4fe62f68e744e0841ccba65e7e",{"version":"ab294c4b7279318ee2a8fdf681305457ecc05970c94108d304933f18823eeac1","affectsGlobalScope":true},"ad08154d9602429522cac965a715fde27d421d69b24756c5d291877dda75353e","bbda6ea452a2386093a1eda18a6e26a989e98869f1b9f37e46f510a986d2e740","812b25f798033c202baedf386a1ccc41f9191b122f089bffd10fdccce99fba11","244cdeb8c344eb42e6142cbb0727752b9b735443fba7007c11b14ca06ebed97c",{"version":"75dd741ca6a6c8d2437a6ca8349b64b816421dbf9fe82dd026afaba965576962","affectsGlobalScope":true},{"version":"8799401a7ab57764f0d464513a7fa7c72e1d70a226b172ec60fff534ea94d108","affectsGlobalScope":true},"2ce2210032ccaff7710e2abf6a722e62c54960458e73e356b6a365c93ab6ca66","92db194ef7d208d5e4b6242a3434573fd142a621ff996d84cc9dbba3553277d0","69f5747ad0887c24c76858ed458712101771349f2287e21871fcd1562daa7dc0",{"version":"0bd9543cd8fc0959c76fb8f4f5a26626c2ed62ef4be98fd857bce268066db0a2","affectsGlobalScope":true},"1ca6858a0cbcd74d7db72d7b14c5360a928d1d16748a55ecfa6bfaff8b83071b",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"220717df86539e219f619d31965d177e7235185e4bc6f6e6ed7e11a9b004d5ca"],"root":[[68,71],[91,94],[115,118],131],"options":{"declaration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"jsx":4,"module":99,"noImplicitAny":true,"outDir":"./dist","rootDir":"./src","skipLibCheck":true,"strict":true,"strictNullChecks":true,"target":2,"tsBuildInfoFile":"./tsbuildcache"},"fileIdsList":[[183],[121,183],[99,183],[96,97,98,99,100,103,104,105,106,107,108,109,110,183],[95,183],[102,183],[96,97,98,183],[96,97,183],[99,100,102,183],[97,183],[111,112,113,183],[133,135,183],[132,133,134,183],[126,127,183],[137,183],[140,183],[141,146,174,183],[142,153,154,161,171,182,183],[142,143,153,161,183],[144,183],[145,146,154,162,183],[146,171,179,183],[147,149,153,161,183],[148,183],[149,150,183],[153,183],[151,153,183],[153,154,155,171,182,183],[153,154,155,168,171,174,183],[183,187],[149,153,156,161,171,182,183],[153,154,156,157,161,171,179,182,183],[156,158,171,179,182,183],[137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189],[153,159,183],[160,182,183],[149,153,161,171,183],[162,183],[163,183],[140,164,183],[165,181,183,187],[166,183],[167,183],[153,168,169,183],[168,170,183,185],[141,153,171,172,173,174,183],[141,171,173,183],[171,172,183],[174,183],[175,183],[171,183],[153,177,178,183],[177,178,183],[146,161,171,179,183],[180,183],[161,181,183],[141,156,167,182,183],[146,183],[171,183,184],[183,185],[183,186],[141,146,153,155,164,171,182,183,185,187],[171,183,188],[66,183],[66,113,183],[62,63,64,65,183],[128,129,183],[119,125,183],[123,183],[120,124,183],[101,183],[122,183],[67,68,69,70,91,92,183],[67,183],[67,91,114,183],[66,67,71,90,183],[66,67,92,114,130,183],[66,67,69,183],[67,68,114,183],[66,67,183],[66,67,70,114,183],[67,69,114,183],[67,93,183],[72,74,76,77,78,81,88,89,183],[75,183],[78,82,83,84,85,86,87,183],[79,183],[80,183],[73,183],[71],[130],[66]],"referencedMap":[[119,1],[122,2],[121,1],[109,1],[106,1],[105,1],[100,3],[111,4],[96,5],[107,6],[99,7],[98,8],[108,1],[103,9],[110,1],[104,10],[97,1],[114,11],[95,1],[136,12],[132,1],[135,13],[133,1],[128,14],[134,1],[137,15],[138,15],[140,16],[141,17],[142,18],[143,19],[144,20],[145,21],[146,22],[147,23],[148,24],[149,25],[150,25],[152,26],[151,27],[153,26],[154,28],[155,29],[139,30],[189,1],[156,31],[157,32],[158,33],[190,34],[159,35],[160,36],[161,37],[162,38],[163,39],[164,40],[165,41],[166,42],[167,43],[168,44],[169,44],[170,45],[171,46],[173,47],[172,48],[174,49],[175,50],[176,51],[177,52],[178,53],[179,54],[180,55],[181,56],[182,57],[183,58],[184,59],[185,60],[186,61],[187,62],[188,63],[64,1],[112,64],[113,65],[62,1],[66,66],[67,64],[65,1],[130,67],[129,1],[120,1],[63,1],[126,68],[124,69],[125,70],[102,71],[101,1],[127,72],[123,72],[60,1],[61,1],[12,1],[13,1],[15,1],[14,1],[2,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[22,1],[23,1],[3,1],[4,1],[27,1],[24,1],[25,1],[26,1],[28,1],[29,1],[30,1],[5,1],[31,1],[32,1],[33,1],[34,1],[6,1],[38,1],[35,1],[36,1],[37,1],[39,1],[7,1],[40,1],[45,1],[46,1],[41,1],[42,1],[43,1],[44,1],[8,1],[50,1],[47,1],[48,1],[49,1],[51,1],[9,1],[52,1],[53,1],[54,1],[57,1],[55,1],[56,1],[58,1],[10,1],[1,1],[11,1],[59,1],[93,73],[71,74],[118,75],[91,76],[131,77],[92,78],[115,79],[68,80],[116,81],[70,80],[117,82],[69,80],[94,83],[90,84],[72,1],[77,1],[75,1],[76,85],[82,1],[83,1],[88,86],[78,1],[84,1],[85,1],[86,1],[87,1],[80,87],[81,88],[79,1],[74,89],[73,1],[89,1]],"exportedModulesMap":[[119,1],[122,2],[121,1],[109,1],[106,1],[105,1],[100,3],[111,4],[96,5],[107,6],[99,7],[98,8],[108,1],[103,9],[110,1],[104,10],[97,1],[114,11],[95,1],[136,12],[132,1],[135,13],[133,1],[128,14],[134,1],[137,15],[138,15],[140,16],[141,17],[142,18],[143,19],[144,20],[145,21],[146,22],[147,23],[148,24],[149,25],[150,25],[152,26],[151,27],[153,26],[154,28],[155,29],[139,30],[189,1],[156,31],[157,32],[158,33],[190,34],[159,35],[160,36],[161,37],[162,38],[163,39],[164,40],[165,41],[166,42],[167,43],[168,44],[169,44],[170,45],[171,46],[173,47],[172,48],[174,49],[175,50],[176,51],[177,52],[178,53],[179,54],[180,55],[181,56],[182,57],[183,58],[184,59],[185,60],[186,61],[187,62],[188,63],[64,1],[112,64],[113,65],[62,1],[66,66],[67,64],[65,1],[130,67],[129,1],[120,1],[63,1],[126,68],[124,69],[125,70],[102,71],[101,1],[127,72],[123,72],[60,1],[61,1],[12,1],[13,1],[15,1],[14,1],[2,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[22,1],[23,1],[3,1],[4,1],[27,1],[24,1],[25,1],[26,1],[28,1],[29,1],[30,1],[5,1],[31,1],[32,1],[33,1],[34,1],[6,1],[38,1],[35,1],[36,1],[37,1],[39,1],[7,1],[40,1],[45,1],[46,1],[41,1],[42,1],[43,1],[44,1],[8,1],[50,1],[47,1],[48,1],[49,1],[51,1],[9,1],[52,1],[53,1],[54,1],[57,1],[55,1],[56,1],[58,1],[10,1],[1,1],[11,1],[59,1],[93,73],[91,90],[131,91],[92,92],[94,83],[90,84],[72,1],[77,1],[75,1],[76,85],[82,1],[83,1],[88,86],[78,1],[84,1],[85,1],[86,1],[87,1],[80,87],[81,88],[79,1],[74,89],[73,1],[89,1]],"semanticDiagnosticsPerFile":[119,122,121,109,106,105,100,111,96,107,99,98,108,103,110,104,97,114,95,136,132,135,133,128,134,137,138,140,141,142,143,144,145,146,147,148,149,150,152,151,153,154,155,139,189,156,157,158,190,159,160,161,162,163,164,165,166,167,168,169,170,171,173,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,64,112,113,62,66,67,65,130,129,120,63,126,124,125,102,101,127,123,60,61,12,13,15,14,2,16,17,18,19,20,21,22,23,3,4,27,24,25,26,28,29,30,5,31,32,33,34,6,38,35,36,37,39,7,40,45,46,41,42,43,44,8,50,47,48,49,51,9,52,53,54,57,55,56,58,10,1,11,59,93,71,118,91,131,92,115,68,116,70,117,69,94,90,72,77,75,76,82,83,88,78,84,85,86,87,80,81,79,74,73,89]},"version":"5.1.3"}
|
|
1
|
+
{"program":{"fileNames":["../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2022.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2023.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.esnext.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.es2023.array.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/.pnpm/typescript@5.1.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../node_modules/.pnpm/@types+react@18.2.8/node_modules/@types/react/global.d.ts","../../node_modules/.pnpm/csstype@3.1.2/node_modules/csstype/index.d.ts","../../node_modules/.pnpm/@types+prop-types@15.7.5/node_modules/@types/prop-types/index.d.ts","../../node_modules/.pnpm/@types+scheduler@0.16.3/node_modules/@types/scheduler/tracing.d.ts","../../node_modules/.pnpm/@types+react@18.2.8/node_modules/@types/react/index.d.ts","../../node_modules/.pnpm/@types+react@18.2.8/node_modules/@types/react/jsx-runtime.d.ts","./src/hooks/useapi.tsx","./src/hooks/usewindowresize.tsx","./src/hooks/useclickoutside.tsx","../utils/dist/utils/callall.d.ts","../utils/dist/utils/throttle/throttle.d.ts","../utils/dist/utils/throttle/index.d.ts","../utils/dist/utils/debounce/debounce.d.ts","../utils/dist/utils/debounce/index.d.ts","../utils/dist/utils/dates/dateformatters.d.ts","../utils/dist/utils/objects/mapobjindexed.d.ts","../utils/dist/utils/pagination/types.d.ts","../utils/dist/utils/pagination/generaterange.d.ts","../utils/dist/utils/pagination/index.d.ts","../utils/dist/utils/objects/assocpath.d.ts","../utils/dist/utils/objects/dissocpath.d.ts","../utils/dist/utils/objects/path.d.ts","../utils/dist/utils/objects/pathor.d.ts","../utils/dist/utils/objects/prop.d.ts","../utils/dist/utils/objects/propor.d.ts","../utils/dist/utils/objects/index.d.ts","../utils/dist/utils/types.d.ts","../utils/dist/index.d.ts","./src/hooks/pagination/types.ts","./src/hooks/pagination/usepaginationrange.tsx","./src/hooks/text/usetextsizedecrease.ts","./src/hooks/index.ts","./src/index.ts","../../node_modules/.pnpm/@types+aria-query@4.2.2/node_modules/@types/aria-query/index.d.ts","../../node_modules/.pnpm/@testing-library+dom@8.19.0/node_modules/@testing-library/dom/types/matches.d.ts","../../node_modules/.pnpm/@testing-library+dom@8.19.0/node_modules/@testing-library/dom/types/wait-for.d.ts","../../node_modules/.pnpm/@testing-library+dom@8.19.0/node_modules/@testing-library/dom/types/query-helpers.d.ts","../../node_modules/.pnpm/@testing-library+dom@8.19.0/node_modules/@testing-library/dom/types/queries.d.ts","../../node_modules/.pnpm/@testing-library+dom@8.19.0/node_modules/@testing-library/dom/types/get-queries-for-element.d.ts","../../node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/types.d.ts","../../node_modules/.pnpm/pretty-format@27.5.1/node_modules/pretty-format/build/index.d.ts","../../node_modules/.pnpm/@testing-library+dom@8.19.0/node_modules/@testing-library/dom/types/screen.d.ts","../../node_modules/.pnpm/@testing-library+dom@8.19.0/node_modules/@testing-library/dom/types/wait-for-element-to-be-removed.d.ts","../../node_modules/.pnpm/@testing-library+dom@8.19.0/node_modules/@testing-library/dom/types/get-node-text.d.ts","../../node_modules/.pnpm/@testing-library+dom@8.19.0/node_modules/@testing-library/dom/types/events.d.ts","../../node_modules/.pnpm/@testing-library+dom@8.19.0/node_modules/@testing-library/dom/types/pretty-dom.d.ts","../../node_modules/.pnpm/@testing-library+dom@8.19.0/node_modules/@testing-library/dom/types/role-helpers.d.ts","../../node_modules/.pnpm/@testing-library+dom@8.19.0/node_modules/@testing-library/dom/types/config.d.ts","../../node_modules/.pnpm/@testing-library+dom@8.19.0/node_modules/@testing-library/dom/types/suggestions.d.ts","../../node_modules/.pnpm/@testing-library+dom@8.19.0/node_modules/@testing-library/dom/types/index.d.ts","../../node_modules/.pnpm/@types+react-dom@18.2.4/node_modules/@types/react-dom/index.d.ts","../../node_modules/.pnpm/@types+react-dom@18.2.4/node_modules/@types/react-dom/test-utils/index.d.ts","../../node_modules/.pnpm/@testing-library+react@13.4.0_react-dom@18.2.0_react@18.2.0/node_modules/@testing-library/react/types/index.d.ts","./src/hooks/useapi.spec.tsx","./src/hooks/useclickoutside.spec.tsx","./src/hooks/usewindowresize.spec.tsx","./src/hooks/pagination/usepaginationrange.spec.tsx","../../node_modules/.pnpm/@jest+expect-utils@29.6.4/node_modules/@jest/expect-utils/build/index.d.ts","../../node_modules/.pnpm/chalk@4.1.2/node_modules/chalk/index.d.ts","../../node_modules/.pnpm/@sinclair+typebox@0.27.8/node_modules/@sinclair/typebox/typebox.d.ts","../../node_modules/.pnpm/@jest+schemas@29.6.3/node_modules/@jest/schemas/build/index.d.ts","../../node_modules/.pnpm/pretty-format@29.6.3/node_modules/pretty-format/build/index.d.ts","../../node_modules/.pnpm/jest-diff@29.6.4/node_modules/jest-diff/build/index.d.ts","../../node_modules/.pnpm/jest-matcher-utils@29.6.4/node_modules/jest-matcher-utils/build/index.d.ts","../../node_modules/.pnpm/expect@29.5.0/node_modules/expect/build/index.d.ts","../../node_modules/.pnpm/pretty-format@29.5.0/node_modules/pretty-format/build/index.d.ts","../../node_modules/.pnpm/@types+jest@29.5.2/node_modules/@types/jest/index.d.ts","../../node_modules/.pnpm/@types+testing-library__jest-dom@5.14.6/node_modules/@types/testing-library__jest-dom/matchers.d.ts","../../node_modules/.pnpm/@types+testing-library__jest-dom@5.14.6/node_modules/@types/testing-library__jest-dom/index.d.ts","./src/hooks/text/usetextsizedecrease.spec.tsx","../../node_modules/.pnpm/@types+eslint@8.40.2/node_modules/@types/eslint/helpers.d.ts","../../node_modules/.pnpm/@types+estree@1.0.1/node_modules/@types/estree/index.d.ts","../../node_modules/.pnpm/@types+json-schema@7.0.12/node_modules/@types/json-schema/index.d.ts","../../node_modules/.pnpm/@types+eslint@8.40.2/node_modules/@types/eslint/index.d.ts","../../node_modules/.pnpm/@types+eslint-scope@3.7.4/node_modules/@types/eslint-scope/index.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/assert.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/assert/strict.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/globals.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/async_hooks.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/buffer.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/child_process.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/cluster.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/console.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/constants.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/crypto.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/dgram.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/diagnostics_channel.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/dns.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/dns/promises.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/domain.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/dom-events.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/events.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/fs.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/fs/promises.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/http.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/http2.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/https.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/inspector.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/module.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/net.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/os.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/path.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/perf_hooks.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/process.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/punycode.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/querystring.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/readline.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/readline/promises.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/repl.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/stream.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/stream/promises.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/stream/consumers.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/stream/web.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/string_decoder.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/test.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/timers.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/timers/promises.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/tls.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/trace_events.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/tty.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/url.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/util.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/v8.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/vm.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/wasi.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/worker_threads.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/zlib.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/globals.global.d.ts","../../node_modules/.pnpm/@types+node@20.2.5/node_modules/@types/node/index.d.ts"],"fileInfos":[{"version":"f59215c5f1d886b05395ee7aca73e0ac69ddfad2843aa88530e797879d511bad","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","dc48272d7c333ccf58034c0026162576b7d50ea0e69c3b9292f803fc20720fd5","27147504487dc1159369da4f4da8a26406364624fa9bc3db632f7d94a5bae2c3","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","f4e736d6c8d69ae5b3ab0ddfcaa3dc365c3e76909d6660af5b4e979b3934ac20","eeeb3aca31fbadef8b82502484499dfd1757204799a6f5b33116201c810676ec",{"version":"3dda5344576193a4ae48b8d03f105c86f20b2f2aff0a1d1fd7935f5d68649654","affectsGlobalScope":true},{"version":"35299ae4a62086698444a5aaee27fc7aa377c68cbb90b441c9ace246ffd05c97","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":"709efdae0cb5df5f49376cde61daacc95cdd44ae4671da13a540da5088bf3f30","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"61ed9b6d07af959e745fb11f9593ecd743b279418cc8a99448ea3cd5f3b3eb22","affectsGlobalScope":true},{"version":"038a2f66a34ee7a9c2fbc3584c8ab43dff2995f8c68e3f566f4c300d2175e31e","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"f5c92f2c27b06c1a41b88f6db8299205aee52c2a2943f7ed29bd585977f254e8","affectsGlobalScope":true},{"version":"930b0e15811f84e203d3c23508674d5ded88266df4b10abee7b31b2ac77632d2","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"b9ea5778ff8b50d7c04c9890170db34c26a5358cccba36844fe319f50a43a61a","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"50d53ccd31f6667aff66e3d62adf948879a3a16f05d89882d1188084ee415bbc","affectsGlobalScope":true},{"version":"25de46552b782d43cb7284df22fe2a265de387cf0248b747a7a1b647d81861f6","affectsGlobalScope":true},{"version":"307c8b7ebbd7f23a92b73a4c6c0a697beca05b06b036c23a34553e5fe65e4fdc","affectsGlobalScope":true},{"version":"189c0703923150aa30673fa3de411346d727cc44a11c75d05d7cf9ef095daa22","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},{"version":"549df62b64a71004aee17685b445a8289013daf96246ce4d9b087d13d7a27a61","affectsGlobalScope":true},"4c68749a564a6facdf675416d75789ee5a557afda8960e0803cf6711fa569288","6a386ff939f180ae8ef064699d8b7b6e62bc2731a62d7fbf5e02589383838dea","f5a8b384f182b3851cec3596ccc96cb7464f8d3469f48c74bf2befb782a19de5",{"version":"af6e117b5bbb9d4bd77b596995818e047652c45a4fd7c243db88c6a81ea4f345","affectsGlobalScope":true},"de618fec44f70765cc7bbc30c9049b1c31f3cfb3824e7a7731121ca1785998e4",{"version":"6954651c36dde7cfa570922402a94fca8813b5f60d531a6df1bf68c702e8dd98","signature":"c31ff29a009906dc52d66dc94af12b237f4247f0e208d1c8851e04229c7489ed"},{"version":"68c605539ee3a92c7b8cd266f51f73bc509180b0da16e721a2ee91f87125b8ac","signature":"1b6ebe13fde8e28c274cbe1904af2758dbe28d16a0da982533ca6d75012ab040"},{"version":"c64a07e424854c5a4148b900b19160940a302a6c56676f72466fb51cca17c417","signature":"0a35bba0d5a8ce1f65b47f56bfa5e29c0d4ad5c83cdbfa1753d69e0933635eb4"},"b0de5466e44eb385f6dd697708f142f77bee179fa9a901c129537d6f5c03662f","bc681a177f66fb7b094061bcafd2bfb6ca6df6b032a61fef23339579f81b5f0c","388150f8c5ca50e26452a0412eb6be096f0a304649c21b1ddcef2095c5beddd6","34579746ab6f8e88d8737b95cad72de7c3700f593ad94c1c1a9af3ebf7633645","ae43168792e0e724aee69245c76c4a7cd4b2bafa957c19538dc30fe6ffbb2309","b35ef14f226dd768a3b57077632d4f1fefa8819a6b203df91334de81239a9bc1","63a378cb9641e143f1ec4dacf2ba0d494df3e58b476a5956dfcb3c7cc86ebded","84ba1f043b959f5f0c49c2fd1d04bc4570ad74cb3a768e7d40098a1e44a14c46","4d32060470a17c0313430faa51ac37500262fa75f95fd27fd62c4128c87fdbcb","f2dc944371281c83bc5c4839ff1619aa96235e325be5eb6f16971bac7478ef8d","394218c5dd4e7aab03b47990d824e5778ec18beacb5a78e1c180d136f8d8aa28","36e07532e1360fa5d9bf8f6897428d71f0828dec4b0a354f6f0a344fd8a9c271","8851f5cba461d16d68345576d9a9e33630b1506cd4fcf203cdede25366b91dae","ddb5bc3e6790df609f8fd1e937891bd8c497b17ae0f3cdb89aec6d6173e17cec","4a05f9cc1e23be99d04ead028bc2e7cb2e946af6a975e63fe09530635d2e5ae9","fe4b9b6929826cd37a511fbb9d37ce88ea366718d2883970435e545afdd249f3","ef84c87c1583bb1b7d65f2222006342c5a95da1a321b69a944f96e879dc3f32d","b1aa52406ae2f56b5a5b7efa38eb9b0e5850786770f60e864cd3528b780936a5","4ad806d12106a84dbdd10fd908c3074c4f495dc5834d6a03b30a33bd2c1b836d",{"version":"a765c58858bfd8d77c3237135db5cd93cb261cb27c6c641c735fa5ace3056105","signature":"bf52d963ddd3ad7bddfac63770f210918952a6e58b71a957bea9bfd2bdcef3a2"},{"version":"eef5ba556d59f95f803ccd8a85ddba869ce98f91adfc348f67645daf71e41c13","signature":"d71d9c6413bf990fb586b35d79f9e44fcd9a9c9b43797c9a9b7ac9db2539764f"},{"version":"48831be58758df3f49cdb750b04027a2fd0c82101aa89f6e13c1f260f0353a6c","signature":"a1af70d1de90a77bbe0aaa6063f7ccefdf6fcfc2dc66b365f143d819aac453d7"},{"version":"3b4458935f19e88b5e28e03312191d910b02604b0cc37a31d25f0ca30ce9f74c","signature":"d3ac02715c6aba25411e7692e8db3161ba3cd18c02e24316a5052e57988ddc2f"},{"version":"bc0c826238d87caa156c5d304cad585a6325e3d9fe1d5d831e60b64bd7345905","signature":"5aec7b6736b66bb1d80189c69a837256b452caa8c1d3eedd4bd6148fec28d007"},"5024433f8da3a7968f6d12cffd32f2cefae4442a9ad1c965fa2d23342338b700","f70bc756d933cc38dc603331a4b5c8dee89e1e1fb956cfb7a6e04ebb4c008091","8387ec1601cf6b8948672537cf8d430431ba0d87b1f9537b4597c1ab8d3ade5b","d16f1c460b1ca9158e030fdf3641e1de11135e0c7169d3e8cf17cc4cc35d5e64","fbc350d1cb7543cb75fdd5f3895ab9ac0322268e1bd6a43417565786044424f3","e3c5ad476eb2fca8505aee5bdfdf9bf11760df5d0f9545db23f12a5c4d72a718","462bccdf75fcafc1ae8c30400c9425e1a4681db5d605d1a0edb4f990a54d8094","5923d8facbac6ecf7c84739a5c701a57af94a6f6648d6229a6c768cf28f0f8cb","d0570ce419fb38287e7b39c910b468becb5b2278cf33b1000a3d3e82a46ecae2","3aca7f4260dad9dcc0a0333654cb3cde6664d34a553ec06c953bce11151764d7","a0a6f0095f25f08a7129bc4d7cb8438039ec422dc341218d274e1e5131115988","cb3aaf306b5ff2ec718359e2e2244263c0b364c35759b1467c16caa113ccb849","45785e608b3d380c79e21957a6d1467e1206ac0281644e43e8ed6498808ace72","a3ce619711ff1bcdaaf4b5187d1e3f84e76064909a7c7ecb2e2f404f145b7b5c","2a90177ebaef25de89351de964c2c601ab54d6e3a157cba60d9cd3eaf5a5ee1a","82200e963d3c767976a5a9f41ecf8c65eca14a6b33dcbe00214fcbe959698c46","b4966c503c08bbd9e834037a8ab60e5f53c5fd1092e8873c4a1c344806acdab2","a95b76aef31395752eb5cb7b386be2e287fdc32dfdf7bdbbb666e333133b1ef7","ad0d1e42d1a8007af715a85992f8b26f23e49d9fa47d34123d4997528b5fad4d","79410b2e5ccc5aef9710303a24d4101159e7b89a6b77dcb694b376b07a6b3b06",{"version":"f280bbf4ccd92c0e537184377bd6bbf3f22787e1ec727112490ab8efdd507bf9","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"eae5ee64218579da6465eadf46ba7c13904360daa71e349b1cb8fe397ab0f56b","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"8f3a00bb6483030ec01d6c7aa74ef21715de4cf058d8de0c23acd870ce6e56a5","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},{"version":"98a3dd397b59a6d9a15aa4100b7cfddf3169aeaa2ec4a5c2baf09db04aaea331","signature":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881"},"cdcc132f207d097d7d3aa75615ab9a2e71d6a478162dde8b67f88ea19f3e54de","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","c085e9aa62d1ae1375794c1fb927a445fa105fed891a7e24edbb1c3300f7384a","f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","2cec1a31729b9b01e9294c33fc9425d336eff067282809761ad2e74425d6d2a5","2d47012580f859dae201d2eef898a416bdae719dffc087dfd06aefe3de2f9c8d",{"version":"240c702fb4b3bd54d83ee167d80fa7f0cd7300fef7eea0b32cef33129740893c","affectsGlobalScope":true},"28bc19234e1027156ad72c5644a97eec0538d262aeb9ceb31356767eac0d3fdc",{"version":"910199067bfd07a4605bf51001677680e1691f8d403e9d410c0fe33a6079cd58","affectsGlobalScope":true},{"version":"825099dd2ab42b5a8e183e6ad12e07d0578e9dcd62e07908415295c8daa51359","signature":"a46d66851af2c056e805fdd574bf5ec3adb1181c43c5e41f0a1c592e338afe64"},{"version":"64d4b35c5456adf258d2cf56c341e203a073253f229ef3208fc0d5020253b241","affectsGlobalScope":true},"bee89e1eb6425eb49894f3f25e4562dc2564e84e5aa7610b7e13d8ecddf8f5db","dca41e86e89dfb2e85e6935260250f02eb6683b86c2fa16bec729ddd1bcd9b4b","894e2eb01e3ac0dda3722dc520d804faa863fd6e2938c801e4c8561e7b0c8a40","e050a0afcdbb269720a900c85076d18e0c1ab73e580202a2bf6964978181222a","587f13f1e8157bd8cec0adda0de4ef558bb8573daa9d518d1e2af38e87ecc91f","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"bce910d9164785c9f0d4dcea4be359f5f92130c7c7833dea6138ab1db310a1f9","affectsGlobalScope":true},"7a435e0c814f58f23e9a0979045ec0ef5909aac95a70986e8bcce30c27dff228",{"version":"241a2e19e03fd1d884e0f304429378d05bc2c1b26b5693c84868f7ad0674982d","affectsGlobalScope":true},"db71be322f07f769200108aa19b79a75dd19a187c9dca2a30c4537b233aa2863","0b70ce7a20fa21c7201a5a972b7f2288cb90ace8a2dde9f3344b5dfc6504abaf",{"version":"49479e21a040c0177d1b1bc05a124c0383df7a08a0726ad4d9457619642e875a","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","3fd0f1af75fb7abe0ea376aa71541daaf489f3d87c394b1165db684ea44b48be","3690133deae19c8127c5505fcb67b04bdc9eb053796008538a9b9abbb70d85aa","5b1c0a23f464f894e7c2b2b6c56df7b9afa60ed48c5345f8618d389a636b2108","be2b092f2765222757c6441b86c53a5ea8dfed47bbc43eab4c5fe37942c866b3","8e6b05abc98adba15e1ac78e137c64576c74002e301d682e66feb77a23907ab8","1ca735bb3d407b2af4fbee7665f3a0a83be52168c728cc209755060ba7ed67bd",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"b85c02e14ecb2a873dad5a1de72319b265160ba48f1b83661aeb3bba1366c1bc","affectsGlobalScope":true},"f1a0b2dde686cb8a995d4ed11848be5eaf76fd5d56532942e0737b39d4a02c6d","fc3764040518a1008dd04bdc80964591b566b896283e00df85c95851c1f46237","55709608060f77965c270ac10ac646286589f1bd1cb174fff1778a2dd9a7ef31","790623a47c5eda62910098884ecb154dc0e5f3a23fc36c1bfb3b5b9ed44e2c2d","42b40e40f2a358cda332456214fad311e1806a6abf3cebaaac72496e07556642","354612fe1d49ecc9551ea3a27d94eef2887b64ef4a71f72ca444efe0f2f0ba80",{"version":"125af9d85cb9d5e508353f10a8d52f01652d2d48b2cea54789a33e5b4d289c1c","affectsGlobalScope":true},"6a325d4c96569bdd5a9a59f819a672e2d5644ee6cf98ab910e0064402557af8d","5e2b91328a540a0933ab5c2203f4358918e6f0fe7505d22840a891a6117735f1","3abc3512fa04aa0230f59ea1019311fd8667bd935d28306311dccc8b17e79d5d",{"version":"14a50dafe3f45713f7f27cb6320dff07c6ac31678f07959c2134260061bf91ff","affectsGlobalScope":true},{"version":"5761c90b0cabdd6bd1f5fb1c3bf942088fdd39e18ed35dbe39b0c34bc733bf13","affectsGlobalScope":true},"1349077576abb41f0e9c78ec30762ff75b710208aff77f5fdcc6a8c8ce6289dd","e2ce82603102b5c0563f59fb40314cc1ff95a4d521a66ad14146e130ea80d89c","a3e0395220255a350aa9c6d56f882bfcb5b85c19fddf5419ec822cf22246a26d","c27b01e8ddff5cd280711af5e13aecd9a3228d1c256ea797dd64f8fdec5f7df5","898840e876dfd21843db9f2aa6ae38ba2eab550eb780ff62b894b9fbfebfae6b","0cab4d7d4edc40cd3af9eea7c3ed6d1016910c0954c49c4297e479bf3822a625","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","785e5be57d4f20f290a20e7b0c6263f6c57fd6e51283050756cef07d6d651c68","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","164deb2409ac5f4da3cd139dbcee7f7d66753d90363a4d7e2db8d8874f272270","1fb6c5ec52332a8b531a8d7a5300ac9301f98c4fe62f68e744e0841ccba65e7e",{"version":"ab294c4b7279318ee2a8fdf681305457ecc05970c94108d304933f18823eeac1","affectsGlobalScope":true},"ad08154d9602429522cac965a715fde27d421d69b24756c5d291877dda75353e","bbda6ea452a2386093a1eda18a6e26a989e98869f1b9f37e46f510a986d2e740","812b25f798033c202baedf386a1ccc41f9191b122f089bffd10fdccce99fba11","244cdeb8c344eb42e6142cbb0727752b9b735443fba7007c11b14ca06ebed97c",{"version":"75dd741ca6a6c8d2437a6ca8349b64b816421dbf9fe82dd026afaba965576962","affectsGlobalScope":true},{"version":"8799401a7ab57764f0d464513a7fa7c72e1d70a226b172ec60fff534ea94d108","affectsGlobalScope":true},"2ce2210032ccaff7710e2abf6a722e62c54960458e73e356b6a365c93ab6ca66","92db194ef7d208d5e4b6242a3434573fd142a621ff996d84cc9dbba3553277d0","69f5747ad0887c24c76858ed458712101771349f2287e21871fcd1562daa7dc0",{"version":"0bd9543cd8fc0959c76fb8f4f5a26626c2ed62ef4be98fd857bce268066db0a2","affectsGlobalScope":true},"1ca6858a0cbcd74d7db72d7b14c5360a928d1d16748a55ecfa6bfaff8b83071b",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"220717df86539e219f619d31965d177e7235185e4bc6f6e6ed7e11a9b004d5ca"],"root":[[68,70],[90,94],[115,118],131],"options":{"declaration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"jsx":4,"module":99,"noImplicitAny":true,"outDir":"./dist","rootDir":"./src","skipLibCheck":true,"strict":true,"strictNullChecks":true,"target":2,"tsBuildInfoFile":"./tsbuildcache"},"fileIdsList":[[183],[121,183],[99,183],[96,97,98,99,100,103,104,105,106,107,108,109,110,183],[95,183],[102,183],[96,97,98,183],[96,97,183],[99,100,102,183],[97,183],[111,112,113,183],[133,135,183],[132,133,134,183],[126,127,183],[137,183],[140,183],[141,146,174,183],[142,153,154,161,171,182,183],[142,143,153,161,183],[144,183],[145,146,154,162,183],[146,171,179,183],[147,149,153,161,183],[148,183],[149,150,183],[153,183],[151,153,183],[153,154,155,171,182,183],[153,154,155,168,171,174,183],[183,187],[149,153,156,161,171,182,183],[153,154,156,157,161,171,179,182,183],[156,158,171,179,182,183],[137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189],[153,159,183],[160,182,183],[149,153,161,171,183],[162,183],[163,183],[140,164,183],[165,181,183,187],[166,183],[167,183],[153,168,169,183],[168,170,183,185],[141,153,171,172,173,174,183],[141,171,173,183],[171,172,183],[174,183],[175,183],[171,183],[153,177,178,183],[177,178,183],[146,161,171,179,183],[180,183],[161,181,183],[141,156,167,182,183],[146,183],[171,183,184],[183,185],[183,186],[141,146,153,155,164,171,182,183,185,187],[171,183,188],[66,183],[66,113,183],[62,63,64,65,183],[128,129,183],[119,125,183],[123,183],[120,124,183],[101,183],[122,183],[67,68,69,70,91,92,183],[67,183],[67,91,114,183],[66,67,89,90,183],[66,67,92,114,130,183],[66,67,69,183],[67,68,114,183],[66,67,183],[66,67,70,114,183],[67,69,114,183],[67,93,183],[71,73,75,76,77,80,87,88,183],[74,183],[77,81,82,83,84,85,86,183],[78,183],[79,183],[72,183],[68,69,70,91,92],[90],[130],[66],[93]],"referencedMap":[[119,1],[122,2],[121,1],[109,1],[106,1],[105,1],[100,3],[111,4],[96,5],[107,6],[99,7],[98,8],[108,1],[103,9],[110,1],[104,10],[97,1],[114,11],[95,1],[136,12],[132,1],[135,13],[133,1],[128,14],[134,1],[137,15],[138,15],[140,16],[141,17],[142,18],[143,19],[144,20],[145,21],[146,22],[147,23],[148,24],[149,25],[150,25],[152,26],[151,27],[153,26],[154,28],[155,29],[139,30],[189,1],[156,31],[157,32],[158,33],[190,34],[159,35],[160,36],[161,37],[162,38],[163,39],[164,40],[165,41],[166,42],[167,43],[168,44],[169,44],[170,45],[171,46],[173,47],[172,48],[174,49],[175,50],[176,51],[177,52],[178,53],[179,54],[180,55],[181,56],[182,57],[183,58],[184,59],[185,60],[186,61],[187,62],[188,63],[64,1],[112,64],[113,65],[62,1],[66,66],[67,64],[65,1],[130,67],[129,1],[120,1],[63,1],[126,68],[124,69],[125,70],[102,71],[101,1],[127,72],[123,72],[60,1],[61,1],[12,1],[13,1],[15,1],[14,1],[2,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[22,1],[23,1],[3,1],[4,1],[27,1],[24,1],[25,1],[26,1],[28,1],[29,1],[30,1],[5,1],[31,1],[32,1],[33,1],[34,1],[6,1],[38,1],[35,1],[36,1],[37,1],[39,1],[7,1],[40,1],[45,1],[46,1],[41,1],[42,1],[43,1],[44,1],[8,1],[50,1],[47,1],[48,1],[49,1],[51,1],[9,1],[52,1],[53,1],[54,1],[57,1],[55,1],[56,1],[58,1],[10,1],[1,1],[11,1],[59,1],[93,73],[90,74],[118,75],[91,76],[131,77],[92,78],[115,79],[68,80],[116,81],[70,80],[117,82],[69,80],[94,83],[89,84],[71,1],[76,1],[74,1],[75,85],[81,1],[82,1],[87,86],[77,1],[83,1],[84,1],[85,1],[86,1],[79,87],[80,88],[78,1],[73,89],[72,1],[88,1]],"exportedModulesMap":[[119,1],[122,2],[121,1],[109,1],[106,1],[105,1],[100,3],[111,4],[96,5],[107,6],[99,7],[98,8],[108,1],[103,9],[110,1],[104,10],[97,1],[114,11],[95,1],[136,12],[132,1],[135,13],[133,1],[128,14],[134,1],[137,15],[138,15],[140,16],[141,17],[142,18],[143,19],[144,20],[145,21],[146,22],[147,23],[148,24],[149,25],[150,25],[152,26],[151,27],[153,26],[154,28],[155,29],[139,30],[189,1],[156,31],[157,32],[158,33],[190,34],[159,35],[160,36],[161,37],[162,38],[163,39],[164,40],[165,41],[166,42],[167,43],[168,44],[169,44],[170,45],[171,46],[173,47],[172,48],[174,49],[175,50],[176,51],[177,52],[178,53],[179,54],[180,55],[181,56],[182,57],[183,58],[184,59],[185,60],[186,61],[187,62],[188,63],[64,1],[112,64],[113,65],[62,1],[66,66],[67,64],[65,1],[130,67],[129,1],[120,1],[63,1],[126,68],[124,69],[125,70],[102,71],[101,1],[127,72],[123,72],[60,1],[61,1],[12,1],[13,1],[15,1],[14,1],[2,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[22,1],[23,1],[3,1],[4,1],[27,1],[24,1],[25,1],[26,1],[28,1],[29,1],[30,1],[5,1],[31,1],[32,1],[33,1],[34,1],[6,1],[38,1],[35,1],[36,1],[37,1],[39,1],[7,1],[40,1],[45,1],[46,1],[41,1],[42,1],[43,1],[44,1],[8,1],[50,1],[47,1],[48,1],[49,1],[51,1],[9,1],[52,1],[53,1],[54,1],[57,1],[55,1],[56,1],[58,1],[10,1],[1,1],[11,1],[59,1],[93,90],[91,91],[131,92],[92,93],[94,94],[89,84],[71,1],[76,1],[74,1],[75,85],[81,1],[82,1],[87,86],[77,1],[83,1],[84,1],[85,1],[86,1],[79,87],[80,88],[78,1],[73,89],[72,1],[88,1]],"semanticDiagnosticsPerFile":[119,122,121,109,106,105,100,111,96,107,99,98,108,103,110,104,97,114,95,136,132,135,133,128,134,137,138,140,141,142,143,144,145,146,147,148,149,150,152,151,153,154,155,139,189,156,157,158,190,159,160,161,162,163,164,165,166,167,168,169,170,171,173,172,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,64,112,113,62,66,67,65,130,129,120,63,126,124,125,102,101,127,123,60,61,12,13,15,14,2,16,17,18,19,20,21,22,23,3,4,27,24,25,26,28,29,30,5,31,32,33,34,6,38,35,36,37,39,7,40,45,46,41,42,43,44,8,50,47,48,49,51,9,52,53,54,57,55,56,58,10,1,11,59,93,90,118,91,131,92,115,68,116,70,117,69,94,89,71,76,74,75,81,82,87,77,83,84,85,86,79,80,78,73,72,88]},"version":"5.1.3"}
|
package/tsconfig.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../tsconfig.base.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"noEmit": false,
|
|
5
|
-
"outDir": "./dist",
|
|
6
|
-
"rootDir": "./src",
|
|
7
|
-
"tsBuildInfoFile": "./tsbuildcache",
|
|
8
|
-
"typeRoots": [
|
|
9
|
-
"./src/types",
|
|
10
|
-
"./node_modules/@types",
|
|
11
|
-
"../../node_modules/@types"
|
|
12
|
-
],
|
|
13
|
-
"paths": {
|
|
14
|
-
"@hooks/*": ["./src/hooks/*"]
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
"include": ["src/**/*"],
|
|
18
|
-
"exclude": ["dist/**/*"]
|
|
19
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../tsconfig.base.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"noEmit": false,
|
|
5
|
+
"outDir": "./dist",
|
|
6
|
+
"rootDir": "./src",
|
|
7
|
+
"tsBuildInfoFile": "./tsbuildcache",
|
|
8
|
+
"typeRoots": [
|
|
9
|
+
"./src/types",
|
|
10
|
+
"./node_modules/@types",
|
|
11
|
+
"../../node_modules/@types"
|
|
12
|
+
],
|
|
13
|
+
"paths": {
|
|
14
|
+
"@hooks/*": ["./src/hooks/*"]
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"include": ["src/**/*"],
|
|
18
|
+
"exclude": ["dist/**/*"]
|
|
19
|
+
}
|
package/webpack.config.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
2
|
-
const path = require('path');
|
|
3
|
-
const createConfig = require('../../webpack.packages.base');
|
|
4
|
-
|
|
5
|
-
module.exports = () => {
|
|
6
|
-
const currentConfig = createConfig({
|
|
7
|
-
libraryName: 'SSAHooks',
|
|
8
|
-
outputPath: path.resolve(__dirname, 'dist'),
|
|
9
|
-
alias: {
|
|
10
|
-
'@src': path.resolve(__dirname, './src'),
|
|
11
|
-
'@hooks': path.resolve(__dirname, './src/hooks'),
|
|
12
|
-
},
|
|
13
|
-
externals: {
|
|
14
|
-
react: 'react',
|
|
15
|
-
},
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
return currentConfig;
|
|
19
|
-
};
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
2
|
+
const path = require('path');
|
|
3
|
+
const createConfig = require('../../webpack.packages.base');
|
|
4
|
+
|
|
5
|
+
module.exports = () => {
|
|
6
|
+
const currentConfig = createConfig({
|
|
7
|
+
libraryName: 'SSAHooks',
|
|
8
|
+
outputPath: path.resolve(__dirname, 'dist'),
|
|
9
|
+
alias: {
|
|
10
|
+
'@src': path.resolve(__dirname, './src'),
|
|
11
|
+
'@hooks': path.resolve(__dirname, './src/hooks'),
|
|
12
|
+
},
|
|
13
|
+
externals: {
|
|
14
|
+
react: 'react',
|
|
15
|
+
},
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
return currentConfig;
|
|
19
|
+
};
|