vevet 3.0.0-beta.8 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (255) hide show
  1. package/README.md +0 -1
  2. package/lib/cjs/Application/index.js +4 -4
  3. package/lib/cjs/Application/index.js.map +1 -1
  4. package/lib/cjs/components/Ctx2D/index.js +3 -3
  5. package/lib/cjs/components/Ctx2D/index.js.map +1 -1
  6. package/lib/cjs/components/CustomCursor/index.js +22 -11
  7. package/lib/cjs/components/CustomCursor/index.js.map +1 -1
  8. package/lib/cjs/components/ScrollBar/Bar/index.js +2 -2
  9. package/lib/cjs/components/ScrollBar/Bar/index.js.map +1 -1
  10. package/lib/cjs/components/ScrollBar/index.js +1 -1
  11. package/lib/cjs/components/ScrollBar/index.js.map +1 -1
  12. package/lib/cjs/components/SmoothScroll/index.js +5 -5
  13. package/lib/cjs/components/SmoothScroll/index.js.map +1 -1
  14. package/lib/cjs/components/Timeline/index.js +2 -2
  15. package/lib/cjs/components/Timeline/index.js.map +1 -1
  16. package/lib/cjs/utils/scroll/scrollTo.js +1 -1
  17. package/lib/cjs/utils/scroll/scrollTo.js.map +1 -1
  18. package/lib/cjs/version.js +1 -1
  19. package/lib/cjs/version.js.map +1 -1
  20. package/lib/esm/Application/index.js +4 -4
  21. package/lib/esm/Application/index.js.map +1 -1
  22. package/lib/esm/components/Ctx2D/index.js +3 -3
  23. package/lib/esm/components/Ctx2D/index.js.map +1 -1
  24. package/lib/esm/components/CustomCursor/index.js +18 -11
  25. package/lib/esm/components/CustomCursor/index.js.map +1 -1
  26. package/lib/esm/components/ScrollBar/Bar/index.js +2 -2
  27. package/lib/esm/components/ScrollBar/Bar/index.js.map +1 -1
  28. package/lib/esm/components/ScrollBar/index.js +1 -1
  29. package/lib/esm/components/ScrollBar/index.js.map +1 -1
  30. package/lib/esm/components/SmoothScroll/index.js +5 -5
  31. package/lib/esm/components/SmoothScroll/index.js.map +1 -1
  32. package/lib/esm/components/Timeline/index.js +2 -2
  33. package/lib/esm/components/Timeline/index.js.map +1 -1
  34. package/lib/esm/utils/scroll/scrollTo.js +1 -1
  35. package/lib/esm/utils/scroll/scrollTo.js.map +1 -1
  36. package/lib/esm/version.js +1 -1
  37. package/lib/esm/version.js.map +1 -1
  38. package/lib/styles/components/CustomCursor.scss +1 -1
  39. package/lib/types/Application/events/PageLoad/index.d.ts +1 -0
  40. package/lib/types/Application/events/PageLoad/index.d.ts.map +1 -0
  41. package/lib/types/Application/events/PageLoad/types.d.ts +1 -0
  42. package/lib/types/Application/events/PageLoad/types.d.ts.map +1 -0
  43. package/lib/types/Application/events/Viewport/index.d.ts +1 -0
  44. package/lib/types/Application/events/Viewport/index.d.ts.map +1 -0
  45. package/lib/types/Application/events/Viewport/types.d.ts +1 -0
  46. package/lib/types/Application/events/Viewport/types.d.ts.map +1 -0
  47. package/lib/types/Application/index.d.ts +1 -0
  48. package/lib/types/Application/index.d.ts.map +1 -0
  49. package/lib/types/Application/types.d.ts +3 -2
  50. package/lib/types/Application/types.d.ts.map +1 -0
  51. package/lib/types/base/Callbacks/index.d.ts +1 -0
  52. package/lib/types/base/Callbacks/index.d.ts.map +1 -0
  53. package/lib/types/base/Callbacks/types.d.ts +1 -0
  54. package/lib/types/base/Callbacks/types.d.ts.map +1 -0
  55. package/lib/types/base/Component/index.d.ts +1 -0
  56. package/lib/types/base/Component/index.d.ts.map +1 -0
  57. package/lib/types/base/Component/types.d.ts +1 -0
  58. package/lib/types/base/Component/types.d.ts.map +1 -0
  59. package/lib/types/base/Module/index.d.ts +1 -0
  60. package/lib/types/base/Module/index.d.ts.map +1 -0
  61. package/lib/types/base/Module/types.d.ts +1 -0
  62. package/lib/types/base/Module/types.d.ts.map +1 -0
  63. package/lib/types/base/MutableProps/index.d.ts +1 -0
  64. package/lib/types/base/MutableProps/index.d.ts.map +1 -0
  65. package/lib/types/base/MutableProps/types.d.ts +1 -0
  66. package/lib/types/base/MutableProps/types.d.ts.map +1 -0
  67. package/lib/types/base/Plugin/index.d.ts +1 -0
  68. package/lib/types/base/Plugin/index.d.ts.map +1 -0
  69. package/lib/types/base/Plugin/types.d.ts +1 -0
  70. package/lib/types/base/Plugin/types.d.ts.map +1 -0
  71. package/lib/types/base/index.d.ts +1 -0
  72. package/lib/types/base/index.d.ts.map +1 -0
  73. package/lib/types/components/AnimationFrame/index.d.ts +1 -0
  74. package/lib/types/components/AnimationFrame/index.d.ts.map +1 -0
  75. package/lib/types/components/AnimationFrame/types.d.ts +1 -0
  76. package/lib/types/components/AnimationFrame/types.d.ts.map +1 -0
  77. package/lib/types/components/BaseTimeline/index.d.ts +1 -0
  78. package/lib/types/components/BaseTimeline/index.d.ts.map +1 -0
  79. package/lib/types/components/BaseTimeline/types.d.ts +1 -0
  80. package/lib/types/components/BaseTimeline/types.d.ts.map +1 -0
  81. package/lib/types/components/Ctx2D/index.d.ts +2 -1
  82. package/lib/types/components/Ctx2D/index.d.ts.map +1 -0
  83. package/lib/types/components/Ctx2D/types.d.ts +2 -1
  84. package/lib/types/components/Ctx2D/types.d.ts.map +1 -0
  85. package/lib/types/components/Ctx2DPrerender/index.d.ts +3 -2
  86. package/lib/types/components/Ctx2DPrerender/index.d.ts.map +1 -0
  87. package/lib/types/components/Ctx2DPrerender/types.d.ts +1 -0
  88. package/lib/types/components/Ctx2DPrerender/types.d.ts.map +1 -0
  89. package/lib/types/components/CustomCursor/index.d.ts +6 -1
  90. package/lib/types/components/CustomCursor/index.d.ts.map +1 -0
  91. package/lib/types/components/CustomCursor/types.d.ts +2 -1
  92. package/lib/types/components/CustomCursor/types.d.ts.map +1 -0
  93. package/lib/types/components/DraggerBase/index.d.ts +1 -0
  94. package/lib/types/components/DraggerBase/index.d.ts.map +1 -0
  95. package/lib/types/components/DraggerBase/types.d.ts +1 -0
  96. package/lib/types/components/DraggerBase/types.d.ts.map +1 -0
  97. package/lib/types/components/DraggerDirection/index.d.ts +1 -0
  98. package/lib/types/components/DraggerDirection/index.d.ts.map +1 -0
  99. package/lib/types/components/DraggerDirection/types.d.ts +1 -0
  100. package/lib/types/components/DraggerDirection/types.d.ts.map +1 -0
  101. package/lib/types/components/DraggerMove/index.d.ts +1 -0
  102. package/lib/types/components/DraggerMove/index.d.ts.map +1 -0
  103. package/lib/types/components/DraggerMove/types.d.ts +1 -0
  104. package/lib/types/components/DraggerMove/types.d.ts.map +1 -0
  105. package/lib/types/components/Preloader/index.d.ts +1 -0
  106. package/lib/types/components/Preloader/index.d.ts.map +1 -0
  107. package/lib/types/components/Preloader/types.d.ts +1 -0
  108. package/lib/types/components/Preloader/types.d.ts.map +1 -0
  109. package/lib/types/components/ProgressPreloader/index.d.ts +1 -0
  110. package/lib/types/components/ProgressPreloader/index.d.ts.map +1 -0
  111. package/lib/types/components/ProgressPreloader/types.d.ts +1 -0
  112. package/lib/types/components/ProgressPreloader/types.d.ts.map +1 -0
  113. package/lib/types/components/ProgressPreloader/utils/preloadCustomElement.d.ts +1 -0
  114. package/lib/types/components/ProgressPreloader/utils/preloadCustomElement.d.ts.map +1 -0
  115. package/lib/types/components/ProgressPreloader/utils/preloadImage.d.ts +1 -0
  116. package/lib/types/components/ProgressPreloader/utils/preloadImage.d.ts.map +1 -0
  117. package/lib/types/components/ProgressPreloader/utils/preloadVideo.d.ts +1 -0
  118. package/lib/types/components/ProgressPreloader/utils/preloadVideo.d.ts.map +1 -0
  119. package/lib/types/components/ScrollBar/Bar/index.d.ts +1 -0
  120. package/lib/types/components/ScrollBar/Bar/index.d.ts.map +1 -0
  121. package/lib/types/components/ScrollBar/Bar/types.d.ts +2 -1
  122. package/lib/types/components/ScrollBar/Bar/types.d.ts.map +1 -0
  123. package/lib/types/components/ScrollBar/index.d.ts +2 -1
  124. package/lib/types/components/ScrollBar/index.d.ts.map +1 -0
  125. package/lib/types/components/ScrollBar/types.d.ts +2 -1
  126. package/lib/types/components/ScrollBar/types.d.ts.map +1 -0
  127. package/lib/types/components/ScrollView/index.d.ts +1 -0
  128. package/lib/types/components/ScrollView/index.d.ts.map +1 -0
  129. package/lib/types/components/ScrollView/types.d.ts +1 -0
  130. package/lib/types/components/ScrollView/types.d.ts.map +1 -0
  131. package/lib/types/components/SectionScrollProgress/index.d.ts +1 -0
  132. package/lib/types/components/SectionScrollProgress/index.d.ts.map +1 -0
  133. package/lib/types/components/SectionScrollProgress/types.d.ts +1 -0
  134. package/lib/types/components/SectionScrollProgress/types.d.ts.map +1 -0
  135. package/lib/types/components/SmoothScroll/AnimatonFrame.d.ts +1 -0
  136. package/lib/types/components/SmoothScroll/AnimatonFrame.d.ts.map +1 -0
  137. package/lib/types/components/SmoothScroll/Elements.d.ts +1 -0
  138. package/lib/types/components/SmoothScroll/Elements.d.ts.map +1 -0
  139. package/lib/types/components/SmoothScroll/index.d.ts +3 -2
  140. package/lib/types/components/SmoothScroll/index.d.ts.map +1 -0
  141. package/lib/types/components/SmoothScroll/types.d.ts +3 -2
  142. package/lib/types/components/SmoothScroll/types.d.ts.map +1 -0
  143. package/lib/types/components/SmoothScrollDragPlugin/index.d.ts +1 -0
  144. package/lib/types/components/SmoothScrollDragPlugin/index.d.ts.map +1 -0
  145. package/lib/types/components/SmoothScrollDragPlugin/types.d.ts +1 -0
  146. package/lib/types/components/SmoothScrollDragPlugin/types.d.ts.map +1 -0
  147. package/lib/types/components/SmoothScrollKeyboardPlugin/index.d.ts +1 -0
  148. package/lib/types/components/SmoothScrollKeyboardPlugin/index.d.ts.map +1 -0
  149. package/lib/types/components/SmoothScrollKeyboardPlugin/types.d.ts +1 -0
  150. package/lib/types/components/SmoothScrollKeyboardPlugin/types.d.ts.map +1 -0
  151. package/lib/types/components/SplitText/index.d.ts +1 -0
  152. package/lib/types/components/SplitText/index.d.ts.map +1 -0
  153. package/lib/types/components/SplitText/types.d.ts +1 -0
  154. package/lib/types/components/SplitText/types.d.ts.map +1 -0
  155. package/lib/types/components/Timeline/index.d.ts +2 -1
  156. package/lib/types/components/Timeline/index.d.ts.map +1 -0
  157. package/lib/types/components/Timeline/types.d.ts +2 -1
  158. package/lib/types/components/Timeline/types.d.ts.map +1 -0
  159. package/lib/types/components/index.d.ts +1 -0
  160. package/lib/types/components/index.d.ts.map +1 -0
  161. package/lib/types/index.d.ts +1 -0
  162. package/lib/types/index.d.ts.map +1 -0
  163. package/lib/types/types/general.d.ts +1 -0
  164. package/lib/types/types/general.d.ts.map +1 -0
  165. package/lib/types/types/utility.d.ts +1 -0
  166. package/lib/types/types/utility.d.ts.map +1 -0
  167. package/lib/types/utils/common/index.d.ts +1 -0
  168. package/lib/types/utils/common/index.d.ts.map +1 -0
  169. package/lib/types/utils/common/mergeWithoutArrays.d.ts +1 -0
  170. package/lib/types/utils/common/mergeWithoutArrays.d.ts.map +1 -0
  171. package/lib/types/utils/common/normalizedTimeoutCallback.d.ts +1 -0
  172. package/lib/types/utils/common/normalizedTimeoutCallback.d.ts.map +1 -0
  173. package/lib/types/utils/common/objectKeys.d.ts +1 -0
  174. package/lib/types/utils/common/objectKeys.d.ts.map +1 -0
  175. package/lib/types/utils/common/pickObjectProps.d.ts +1 -0
  176. package/lib/types/utils/common/pickObjectProps.d.ts.map +1 -0
  177. package/lib/types/utils/common/times.d.ts +1 -0
  178. package/lib/types/utils/common/times.d.ts.map +1 -0
  179. package/lib/types/utils/common/uid.d.ts +1 -0
  180. package/lib/types/utils/common/uid.d.ts.map +1 -0
  181. package/lib/types/utils/image/index.d.ts +1 -0
  182. package/lib/types/utils/image/index.d.ts.map +1 -0
  183. package/lib/types/utils/image/load.d.ts +1 -0
  184. package/lib/types/utils/image/load.d.ts.map +1 -0
  185. package/lib/types/utils/image/pathsToProps.d.ts +1 -0
  186. package/lib/types/utils/image/pathsToProps.d.ts.map +1 -0
  187. package/lib/types/utils/image/sizesToSrcSet.d.ts +1 -0
  188. package/lib/types/utils/image/sizesToSrcSet.d.ts.map +1 -0
  189. package/lib/types/utils/index.d.ts +1 -0
  190. package/lib/types/utils/index.d.ts.map +1 -0
  191. package/lib/types/utils/internal/fetchWebpSupport.d.ts +1 -0
  192. package/lib/types/utils/internal/fetchWebpSupport.d.ts.map +1 -0
  193. package/lib/types/utils/internal/getDeviceInfo.d.ts +1 -0
  194. package/lib/types/utils/internal/getDeviceInfo.d.ts.map +1 -0
  195. package/lib/types/utils/listeners/index.d.ts +1 -0
  196. package/lib/types/utils/listeners/index.d.ts.map +1 -0
  197. package/lib/types/utils/listeners/isIntersectionObserverSupported.d.ts +1 -0
  198. package/lib/types/utils/listeners/isIntersectionObserverSupported.d.ts.map +1 -0
  199. package/lib/types/utils/listeners/onResize.d.ts +1 -0
  200. package/lib/types/utils/listeners/onResize.d.ts.map +1 -0
  201. package/lib/types/utils/math/clamp.d.ts +1 -0
  202. package/lib/types/utils/math/clamp.d.ts.map +1 -0
  203. package/lib/types/utils/math/clampScope.d.ts +1 -0
  204. package/lib/types/utils/math/clampScope.d.ts.map +1 -0
  205. package/lib/types/utils/math/easing.d.ts +1 -0
  206. package/lib/types/utils/math/easing.d.ts.map +1 -0
  207. package/lib/types/utils/math/inScope.d.ts +1 -0
  208. package/lib/types/utils/math/inScope.d.ts.map +1 -0
  209. package/lib/types/utils/math/index.d.ts +1 -0
  210. package/lib/types/utils/math/index.d.ts.map +1 -0
  211. package/lib/types/utils/math/lerp.d.ts +1 -0
  212. package/lib/types/utils/math/lerp.d.ts.map +1 -0
  213. package/lib/types/utils/math/normalizeNestedScope.d.ts +1 -0
  214. package/lib/types/utils/math/normalizeNestedScope.d.ts.map +1 -0
  215. package/lib/types/utils/math/scoped.d.ts +1 -0
  216. package/lib/types/utils/math/scoped.d.ts.map +1 -0
  217. package/lib/types/utils/math/spreadScope.d.ts +1 -0
  218. package/lib/types/utils/math/spreadScope.d.ts.map +1 -0
  219. package/lib/types/utils/math/wrap.d.ts +1 -0
  220. package/lib/types/utils/math/wrap.d.ts.map +1 -0
  221. package/lib/types/utils/scroll/getScrollValues.d.ts +1 -0
  222. package/lib/types/utils/scroll/getScrollValues.d.ts.map +1 -0
  223. package/lib/types/utils/scroll/index.d.ts +1 -0
  224. package/lib/types/utils/scroll/index.d.ts.map +1 -0
  225. package/lib/types/utils/scroll/normalizeWheel.d.ts +1 -0
  226. package/lib/types/utils/scroll/normalizeWheel.d.ts.map +1 -0
  227. package/lib/types/utils/scroll/onScroll.d.ts +1 -0
  228. package/lib/types/utils/scroll/onScroll.d.ts.map +1 -0
  229. package/lib/types/utils/scroll/scrollTo.d.ts +1 -0
  230. package/lib/types/utils/scroll/scrollTo.d.ts.map +1 -0
  231. package/lib/types/utils/scroll/scrollToElement.d.ts +1 -0
  232. package/lib/types/utils/scroll/scrollToElement.d.ts.map +1 -0
  233. package/lib/types/version.d.ts +2 -1
  234. package/lib/types/version.d.ts.map +1 -0
  235. package/lib/types/vevet.d.ts +1 -0
  236. package/lib/types/vevet.d.ts.map +1 -0
  237. package/package.json +2 -2
  238. package/src/Application/index.ts +4 -4
  239. package/src/Application/types.ts +2 -2
  240. package/src/components/Ctx2D/index.ts +3 -3
  241. package/src/components/Ctx2D/types.ts +1 -1
  242. package/src/components/CustomCursor/index.ts +22 -13
  243. package/src/components/CustomCursor/types.ts +1 -1
  244. package/src/components/ScrollBar/Bar/index.ts +2 -2
  245. package/src/components/ScrollBar/Bar/types.ts +1 -1
  246. package/src/components/ScrollBar/index.ts +1 -1
  247. package/src/components/ScrollBar/types.ts +1 -1
  248. package/src/components/SmoothScroll/index.ts +6 -6
  249. package/src/components/SmoothScroll/stories/WithHorizontal.tsx +1 -1
  250. package/src/components/SmoothScroll/types.ts +2 -2
  251. package/src/components/Timeline/index.ts +2 -2
  252. package/src/components/Timeline/types.ts +1 -1
  253. package/src/styles/components/CustomCursor.scss +1 -1
  254. package/src/utils/scroll/scrollTo.ts +1 -1
  255. package/src/version.ts +1 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Timeline/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEpC,YAAY,EAAE,SAAS,EAAE,CAAC;AAE1B;;GAEG;AACH,qBAAa,QAAQ,CACnB,WAAW,SAAS,SAAS,CAAC,YAAY,GAAG,SAAS,CAAC,YAAY,EACnE,eAAe,SAAS,SAAS,CAAC,gBAAgB,GAAG,SAAS,CAAC,gBAAgB,EAC/E,cAAc,SAAS,SAAS,CAAC,eAAe,GAAG,SAAS,CAAC,eAAe,CAC5E,SAAQ,YAAY,CAAC,WAAW,EAAE,eAAe,EAAE,cAAc,CAAC;IAClE,SAAS,CAAC,gBAAgB;;;;;;;IAQ1B,0BAA0B;IAC1B,OAAO,CAAC,eAAe,CAAC,CAAS;IAEjC,6DAA6D;IAC7D,OAAO,CAAC,uBAAuB,CAAS;IAExC,0BAA0B;IAC1B,IAAI,SAAS,YAEZ;IAED,2BAA2B;IAC3B,OAAO,CAAC,WAAW,CAAU;IAE7B,2BAA2B;IAC3B,IAAI,UAAU,YAEb;IAED,yBAAyB;IACzB,OAAO,CAAC,SAAS,CAAU;IAE3B,yBAAyB;IACzB,IAAI,QAAQ,YAEX;gBAEW,YAAY,CAAC,EAAE,WAAW,GAAG,eAAe,EAAE,OAAO,UAAO;IAcxE,wBAAwB;IACjB,IAAI;IAcX,uBAAuB;IAChB,OAAO;IAcd,sBAAsB;IACf,KAAK;IAaZ,qBAAqB;IACd,KAAK;IASZ,sBAAsB;IACtB,OAAO,CAAC,QAAQ;IAoChB,yBAAyB;IACzB,SAAS,CAAC,qBAAqB;IAkB/B,2BAA2B;IAC3B,SAAS,CAAC,QAAQ;CAKnB"}
@@ -5,7 +5,7 @@ export declare namespace NTimeline {
5
5
  * Destroy the timeline on animation end
6
6
  * @default false
7
7
  */
8
- isDestroyOnEnd?: boolean;
8
+ shouldDestroyOnEnd?: boolean;
9
9
  }
10
10
  interface IChangeableProps extends NBaseTimeline.IChangeableProps {
11
11
  /**
@@ -19,3 +19,4 @@ export declare namespace NTimeline {
19
19
  end: undefined;
20
20
  }
21
21
  }
22
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Timeline/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,yBAAiB,SAAS,CAAC;IACzB,UAAiB,YAAa,SAAQ,aAAa,CAAC,YAAY;QAC9D;;;WAGG;QACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;KAC9B;IAED,UAAiB,gBAAiB,SAAQ,aAAa,CAAC,gBAAgB;QACtE;;;WAGG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB;IAED,UAAiB,eAAgB,SAAQ,aAAa,CAAC,eAAe;QACpE,KAAK,EAAE,SAAS,CAAC;QACjB,GAAG,EAAE,SAAS,CAAC;KAChB;CACF"}
@@ -15,3 +15,4 @@ export * from './SmoothScrollDragPlugin';
15
15
  export * from './SmoothScrollKeyboardPlugin';
16
16
  export * from './SplitText';
17
17
  export * from './Timeline';
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC"}
@@ -3,3 +3,4 @@ export * from './utils';
3
3
  export * from './Application';
4
4
  export * from './base';
5
5
  export * from './components';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAEhC,cAAc,SAAS,CAAC;AAExB,cAAc,eAAe,CAAC;AAE9B,cAAc,QAAQ,CAAC;AAEvB,cAAc,cAAc,CAAC"}
@@ -13,3 +13,4 @@ export interface IScrollLike {
13
13
  scrollLeft: number;
14
14
  scrollTo(options: ScrollToOptions): void;
15
15
  }
16
+ //# sourceMappingURL=general.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../../src/types/general.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,OAAO,EAAE,eAAe,GAAG,IAAI,CAAC;CAC1C"}
@@ -11,3 +11,4 @@ declare type TDeepRequired<T> = T extends TBuiltin ? NonNullable<T> : T extends
11
11
  } : NonNullable<T>;
12
12
  export declare type TRequiredModuleProp<T> = TDeepRequired<T>;
13
13
  export {};
14
+ //# sourceMappingURL=utility.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utility.d.ts","sourceRoot":"","sources":["../../../src/types/utility.ts"],"names":[],"mappings":"AAAA,UAAU,WAAW;IACnB,IAAI,EAAE,GAAG,CAAC;IACV,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,MAAM,UAAU,GAC1B,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,GACT,IAAI,CAAC;AAET,MAAM,CAAC,OAAO,MAAM,QAAQ,GACxB,UAAU,GACV,QAAQ,GACR,IAAI,GACJ,KAAK,GACL,MAAM,GACN,OAAO,GACP,MAAM,GACN,WAAW,CAAC;AAEhB,OAAO,MAAM,aAAa,CAAC,CAAC,IAAI,CAAC,SAAS,QAAQ,GAC9C,WAAW,CAAC,CAAC,CAAC,GACd,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,GAC/B,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,GACvC,CAAC,SAAS,WAAW,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,GACvC,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,GAC/C,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,GACnC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC,GAC3C,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,CAAC,GACtB,GAAG,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,GACrB,CAAC,SAAS,WAAW,CAAC,MAAM,CAAC,CAAC,GAC9B,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,GAC7B,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,CAAC,GAC1B,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,GACzB,CAAC,SAAS,OAAO,CAAC,MAAM,CAAC,CAAC,GAC1B,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,GACzB,CAAC,SAAS,EAAE,GACZ;KACG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACtC,GACD,WAAW,CAAC,CAAC,CAAC,CAAC;AAEnB,MAAM,CAAC,OAAO,MAAM,mBAAmB,CAAC,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,CAAC"}
@@ -4,3 +4,4 @@ export * from './objectKeys';
4
4
  export * from './pickObjectProps';
5
5
  export * from './uid';
6
6
  export * from './times';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC"}
@@ -7,3 +7,4 @@
7
7
  * mergeWithoutArrays({ a: 1, b: 2 }, { b: 3, c: 4 }); // => { a: 1, b: 3, c: 4 }
8
8
  */
9
9
  export declare function mergeWithoutArrays<A extends Record<string, any>, B extends Record<string, any>>(object: A, source: B): A & B;
10
+ //# sourceMappingURL=mergeWithoutArrays.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mergeWithoutArrays.d.ts","sourceRoot":"","sources":["../../../../src/utils/common/mergeWithoutArrays.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wBAAgB,kBAAkB,CAChC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7B,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAQ7B"}
@@ -10,3 +10,4 @@
10
10
  export declare function normalizedTimeoutCallback(callback: Function, delay: number): {
11
11
  clear: () => void;
12
12
  };
13
+ //# sourceMappingURL=normalizedTimeoutCallback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalizedTimeoutCallback.d.ts","sourceRoot":"","sources":["../../../../src/utils/common/normalizedTimeoutCallback.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM;;EAgB1E"}
@@ -1,2 +1,3 @@
1
1
  /** Get object keys */
2
2
  export declare function objectKeys<T>(object: T): (keyof T)[];
3
+ //# sourceMappingURL=objectKeys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"objectKeys.d.ts","sourceRoot":"","sources":["../../../../src/utils/common/objectKeys.ts"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,wBAAgB,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAEpD"}
@@ -6,3 +6,4 @@
6
6
  * pickObjectProps({ a: 1, b: 2, c: 3 }, ['a', 'c']); // => { a: 1, c: 3 }
7
7
  */
8
8
  export declare function pickObjectProps<T extends Record<string, any>, K extends keyof T>(source: T, keys: K[]): Pick<T, K>;
9
+ //# sourceMappingURL=pickObjectProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pickObjectProps.d.ts","sourceRoot":"","sources":["../../../../src/utils/common/pickObjectProps.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC7B,CAAC,SAAS,MAAM,CAAC,EACjB,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAQlC"}
@@ -7,3 +7,4 @@
7
7
  * // [0, 0.2, 0.4, 0.6, 0.8]
8
8
  */
9
9
  export declare function times<T>(callback: (index: number, count: number) => T, count: number): T[];
10
+ //# sourceMappingURL=times.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"times.d.ts","sourceRoot":"","sources":["../../../../src/utils/common/times.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,KAAK,CAAC,CAAC,EACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,CAAC,EAC7C,KAAK,EAAE,MAAM,GACZ,CAAC,EAAE,CAUL"}
@@ -8,3 +8,4 @@
8
8
  * uid('0'); // => '0_3'
9
9
  */
10
10
  export declare function uid(prefix?: string): string;
11
+ //# sourceMappingURL=uid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"uid.d.ts","sourceRoot":"","sources":["../../../../src/utils/common/uid.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,wBAAgB,GAAG,CAAC,MAAM,SAAO,UAIhC"}
@@ -1,3 +1,4 @@
1
1
  export * from './sizesToSrcSet';
2
2
  export * from './pathsToProps';
3
3
  export * from './load';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/image/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC"}
@@ -25,3 +25,4 @@ type TLoadImageProps = {
25
25
  */
26
26
  export declare function loadImage(source: string | HTMLImageElement, props?: TLoadImageProps): PCancelable<HTMLImageElement>;
27
27
  export {};
28
+ //# sourceMappingURL=load.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load.d.ts","sourceRoot":"","sources":["../../../../src/utils/image/load.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,cAAc,CAAC;AAOvC,KAAK,eAAe,GAAG;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,wBAAgB,SAAS,CACvB,MAAM,EAAE,MAAM,GAAG,gBAAgB,EACjC,KAAK,CAAC,EAAE,eAAe,iCAgExB"}
@@ -46,3 +46,4 @@ export declare function imagePathsToProps(data: IImagePaths | IImageAdaptivePath
46
46
  src: string;
47
47
  srcSet: string;
48
48
  };
49
+ //# sourceMappingURL=pathsToProps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pathsToProps.d.ts","sourceRoot":"","sources":["../../../../src/utils/image/pathsToProps.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,mBAAmB,CAClC,CAAC,SAAS,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,MAAM,CAAC,GAAG,EAAE,CAC9C,SAAQ,WAAW;IACnB,KAAK,CAAC,EAAE,CAAC,CAAC;IACV,SAAS,CAAC,EAAE,CAAC,CAAC;CACf;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,WAAW,GAAG,mBAAmB;;;EAyBxE"}
@@ -13,3 +13,4 @@
13
13
  * // => "/640.jpg 640w, /750.jpg 750w, /1024.jpg 1024w, /1440.jpg 1440w"
14
14
  */
15
15
  export declare function imageSizesToSrcSet(sizes: Record<string | number, string>): string;
16
+ //# sourceMappingURL=sizesToSrcSet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sizesToSrcSet.d.ts","sourceRoot":"","sources":["../../../../src/utils/image/sizesToSrcSet.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,MAAM,CAAC,UAYxE"}
@@ -3,3 +3,4 @@ export * from './image';
3
3
  export * from './listeners';
4
4
  export * from './math';
5
5
  export * from './scroll';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC"}
@@ -1,2 +1,3 @@
1
1
  import PCancelable from 'p-cancelable';
2
2
  export declare function fetchWebpSupport(): PCancelable<unknown>;
3
+ //# sourceMappingURL=fetchWebpSupport.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fetchWebpSupport.d.ts","sourceRoot":"","sources":["../../../../src/utils/internal/fetchWebpSupport.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,cAAc,CAAC;AAEvC,wBAAgB,gBAAgB,yBAiB/B"}
@@ -3,3 +3,4 @@ export declare function getDeviceInfo(): {
3
3
  browserName: string;
4
4
  device: import("ismobilejs").isMobileResult;
5
5
  };
6
+ //# sourceMappingURL=getDeviceInfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getDeviceInfo.d.ts","sourceRoot":"","sources":["../../../../src/utils/internal/getDeviceInfo.ts"],"names":[],"mappings":"AAGA,wBAAgB,aAAa;;;;EAa5B"}
@@ -1,2 +1,3 @@
1
1
  export * from './isIntersectionObserverSupported';
2
2
  export * from './onResize';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/listeners/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,YAAY,CAAC"}
@@ -2,3 +2,4 @@
2
2
  * Check if intersection observer is supported
3
3
  */
4
4
  export declare function isIntersectionObserverSupported(): boolean;
5
+ //# sourceMappingURL=isIntersectionObserverSupported.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isIntersectionObserverSupported.d.ts","sourceRoot":"","sources":["../../../../src/utils/listeners/isIntersectionObserverSupported.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAgB,+BAA+B,YAU9C"}
@@ -59,3 +59,4 @@ export interface IOnResize {
59
59
  * handler.remove();
60
60
  */
61
61
  export declare function onResize({ onResize: handleResize, element, viewportTarget, hasBothEvents, resizeDebounce, }: IOnResizeProps): IOnResize;
62
+ //# sourceMappingURL=onResize.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onResize.d.ts","sourceRoot":"","sources":["../../../../src/utils/listeners/onResize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAG9D,MAAM,MAAM,eAAe,GAAG,MAAM,SAAS,CAAC,eAAe,CAAC;AAE9D,MAAM,WAAW,cAAc;IAC7B,yBAAyB;IACzB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,yBAAyB;IACzB,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,EAAE,GAAG,KAAK,CAAC;IACtC;;;;;OAKG;IACH,cAAc,CAAC,EAAE,eAAe,CAAC;IACjC;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,SAAS;IACxB,2BAA2B;IAC3B,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,6BAA6B;IAC7B,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,2CAA2C;IAC3C,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,gCAAgC;IAChC,iBAAiB,EAAE,OAAO,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,QAAQ,CAAC,EACvB,QAAQ,EAAE,YAAY,EACtB,OAAO,EACP,cAAsB,EACtB,aAAqB,EACrB,cAAkB,GACnB,EAAE,cAAc,GAAG,SAAS,CAwD5B"}
@@ -7,3 +7,4 @@
7
7
  * clamp(0.001, [0.1, 0.9]); // => 0.1
8
8
  */
9
9
  export declare function clamp(val: number, scope?: number[]): number;
10
+ //# sourceMappingURL=clamp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clamp.d.ts","sourceRoot":"","sources":["../../../../src/utils/math/clamp.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,WAAS,UAShD"}
@@ -7,3 +7,4 @@
7
7
  * clampScope(0.38, [0.35, 1], [0.1, 1]); // => 0.1
8
8
  */
9
9
  export declare function clampScope(value: number, scopeProp?: number[], clampProp?: number[]): number;
10
+ //# sourceMappingURL=clampScope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"clampScope.d.ts","sourceRoot":"","sources":["../../../../src/utils/math/clampScope.ts"],"names":[],"mappings":"AAGA;;;;;;;GAOG;AACH,wBAAgB,UAAU,CACxB,KAAK,EAAE,MAAM,EACb,SAAS,WAAS,EAClB,SAAS,WAAS,UAGnB"}
@@ -10,3 +10,4 @@ export { Easing } from 'easing-progress';
10
10
  * easing(0.35, (value) => Math.sin(Math.PI * 0.5 * value)); // => 0.522
11
11
  */
12
12
  export declare const easing: typeof easingProgress;
13
+ //# sourceMappingURL=easing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"easing.d.ts","sourceRoot":"","sources":["../../../../src/utils/math/easing.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC;;;;;;;;GAQG;AACH,eAAO,MAAM,MAAM,EAAE,OAAO,cAGa,CAAC"}
@@ -9,3 +9,4 @@
9
9
  * inScope(-1, [0, 1]); // => false
10
10
  */
11
11
  export declare function inScope(val: number, scopeValue?: number[]): boolean;
12
+ //# sourceMappingURL=inScope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inScope.d.ts","sourceRoot":"","sources":["../../../../src/utils/math/inScope.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,WAAS,WAEvD"}
@@ -7,3 +7,4 @@ export * from './normalizeNestedScope';
7
7
  export * from './scoped';
8
8
  export * from './spreadScope';
9
9
  export * from './wrap';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/math/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,wBAAwB,CAAC;AACvC,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC"}
@@ -7,3 +7,4 @@
7
7
  * lerp(0.75, 0.8, 0.98); // => 0.799
8
8
  */
9
9
  export declare function lerp(current: number, target: number, ease: number, approximationLeft?: number): number;
10
+ //# sourceMappingURL=lerp.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lerp.d.ts","sourceRoot":"","sources":["../../../../src/utils/math/lerp.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,IAAI,CAClB,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,iBAAiB,SAAQ,UAU1B"}
@@ -7,3 +7,4 @@
7
7
  * normalizeNestedScope([0.2, 0.9], [0.1, 0.8]); // => [0.24, 0.73]
8
8
  */
9
9
  export declare function normalizeNestedScope(innerScope: [number, number] | number[], globalScope: [number, number] | number[]): [number, number];
10
+ //# sourceMappingURL=normalizeNestedScope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalizeNestedScope.d.ts","sourceRoot":"","sources":["../../../../src/utils/math/normalizeNestedScope.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAClC,UAAU,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,EAAE,EACvC,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,MAAM,EAAE,GACvC,CAAC,MAAM,EAAE,MAAM,CAAC,CAOlB"}
@@ -8,3 +8,4 @@
8
8
  * scoped(0.35, [0.25, 0.9]); // => 0.153
9
9
  */
10
10
  export declare function scoped(val: number, scopeValue?: number[]): number;
11
+ //# sourceMappingURL=scoped.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scoped.d.ts","sourceRoot":"","sources":["../../../../src/utils/math/scoped.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,WAAS,UAItD"}
@@ -7,3 +7,4 @@
7
7
  * spreadScope(3, 0.9); // => [[0,0.8333333333333334],[0.08333333333333331,0.9166666666666667],[0.16666666666666663,1]]
8
8
  */
9
9
  export declare function spreadScope(quantity: number, shift: number): number[][];
10
+ //# sourceMappingURL=spreadScope.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spreadScope.d.ts","sourceRoot":"","sources":["../../../../src/utils/math/spreadScope.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAc1D"}
@@ -12,3 +12,4 @@
12
12
  * wrap(0, 3, -3); // => 0
13
13
  */
14
14
  export declare function wrap(min: number, max: number, value: number): number;
15
+ //# sourceMappingURL=wrap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wrap.d.ts","sourceRoot":"","sources":["../../../../src/utils/math/wrap.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,UAO3D"}
@@ -11,3 +11,4 @@ export interface IGetScrollValues {
11
11
  * getScrollValues(window); // => { scrollTop: 0, scrollLeft: 0 }
12
12
  */
13
13
  export declare function getScrollValues(selector?: Window | Element | IScrollLike | undefined): IGetScrollValues | undefined;
14
+ //# sourceMappingURL=getScrollValues.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getScrollValues.d.ts","sourceRoot":"","sources":["../../../../src/utils/scroll/getScrollValues.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAC7B,QAAQ,GAAE,MAAM,GAAG,OAAO,GAAG,WAAW,GAAG,SAAkB,GAC5D,gBAAgB,GAAG,SAAS,CAe9B"}
@@ -3,3 +3,4 @@ export * from './normalizeWheel';
3
3
  export * from './onScroll';
4
4
  export * from './scrollTo';
5
5
  export * from './scrollToElement';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/scroll/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC"}
@@ -13,3 +13,4 @@ export declare function normalizeWheel(event: WheelEvent): {
13
13
  pixelX: number;
14
14
  pixelY: number;
15
15
  };
16
+ //# sourceMappingURL=normalizeWheel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"normalizeWheel.d.ts","sourceRoot":"","sources":["../../../../src/utils/scroll/normalizeWheel.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,UAAU;;;;;EAE/C"}
@@ -23,3 +23,4 @@ export interface IOnScrollProps {
23
23
  */
24
24
  export declare function onScroll({ container, callback, isPassive, }: IOnScrollProps): IRemovable;
25
25
  export {};
26
+ //# sourceMappingURL=onScroll.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"onScroll.d.ts","sourceRoot":"","sources":["../../../../src/utils/scroll/onScroll.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAE7C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAG9D,KAAK,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,YAAY,GAAG,MAAM,CAAC;AAE3D,MAAM,WAAW,0BAA0B;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;CACpB;AAaD,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,UAAU,CAAC;IACtB,QAAQ,EAAE,CAAC,IAAI,EAAE,0BAA0B,KAAK,IAAI,CAAC;IACrD,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAID;;;;;;;;;;GAUG;AACH,wBAAgB,QAAQ,CAAC,EACvB,SAAS,EACT,QAAQ,EACR,SAAiB,GAClB,EAAE,cAAc,GAAG,UAAU,CAyE7B"}
@@ -44,3 +44,4 @@ export interface IScrollToProps {
44
44
  * .catch(() => {});
45
45
  */
46
46
  export declare function scrollTo({ container, top, left, duration: durationProp, }: IScrollToProps): Promise<void>;
47
+ //# sourceMappingURL=scrollTo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scrollTo.d.ts","sourceRoot":"","sources":["../../../../src/utils/scroll/scrollTo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAI9C,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,WAAW,CAAC;IAC3C;;;OAGG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC,CAAC;CACpD;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,QAAQ,CAAC,EACvB,SAAkB,EAClB,GAAO,EACP,IAAQ,EACR,QAAQ,EAAE,YAAkB,GAC7B,EAAE,cAAc,iBAuChB"}
@@ -34,3 +34,4 @@ export interface IScrollToElementProps extends IScrollToProps {
34
34
  * .catch(() => {});
35
35
  */
36
36
  export declare function scrollToElement({ container, element: elementProp, top, left, ...props }: IScrollToElementProps): Promise<void>;
37
+ //# sourceMappingURL=scrollToElement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scrollToElement.d.ts","sourceRoot":"","sources":["../../../../src/utils/scroll/scrollToElement.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAY,MAAM,YAAY,CAAC;AAEtD,MAAM,WAAW,qBAAsB,SAAQ,cAAc;IAC3D;;OAEG;IACH,OAAO,EAAE,OAAO,GAAG,MAAM,CAAC;CAC3B;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,eAAe,CAAC,EAC9B,SAAkB,EAClB,OAAO,EAAE,WAAW,EACpB,GAAO,EACP,IAAQ,EACR,GAAG,KAAK,EACT,EAAE,qBAAqB,iBAgCvB"}
@@ -1,2 +1,3 @@
1
- declare const version = "3.0.0-beta.8";
1
+ declare const version = "3.0.0";
2
2
  export default version;
3
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,OAAO,UAAU,CAAC;AACxB,eAAe,OAAO,CAAC"}
@@ -1,2 +1,3 @@
1
1
  import { Application } from '.';
2
2
  export declare const vevet: Application;
3
+ //# sourceMappingURL=vevet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vevet.d.ts","sourceRoot":"","sources":["../../src/vevet.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,GAAG,CAAC;AAEhC,eAAO,MAAM,KAAK,aAC4D,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vevet",
3
- "version": "3.0.0-beta.8",
3
+ "version": "3.0.0",
4
4
  "description": "Vevet - a JavaScript library of ready-made solutions and helpers",
5
5
  "scripts": {
6
6
  "storybook": "storybook dev -p 6006",
@@ -17,7 +17,7 @@
17
17
  "build:docs": "typedoc --out build/docs ./src --theme default --hideGenerator",
18
18
  "version": "node ./config/version.js && git add ./src/version.ts && git commit -m \"Update version\"",
19
19
  "deploy": "gh-pages -d build",
20
- "prepublishOnly": "run-s version lint build"
20
+ "prepublishOnly": "run-s version lint build deploy"
21
21
  },
22
22
  "main": "./lib/cjs/index.js",
23
23
  "types": "./lib/types/index.d.ts",
@@ -26,13 +26,13 @@ export class Application {
26
26
  /** Default properties */
27
27
  get defaultProps(): NApplication.IProps {
28
28
  return {
29
- isVersionPrinted: true,
29
+ shouldPrintVersion: true,
30
30
  tablet: 1199,
31
31
  phone: 899,
32
32
  prefix: 'v-',
33
33
  easing: [0.25, 0.1, 0.25, 1],
34
34
  resizeDebounce: 16,
35
- hasWebpSupportCheck: true,
35
+ shouldCheckWebpSupport: true,
36
36
  };
37
37
  }
38
38
 
@@ -165,7 +165,7 @@ export class Application {
165
165
  html.classList.toggle(`${prefix}desktop`, this._isDesktop);
166
166
 
167
167
  // check webp support
168
- if (this.props.hasWebpSupportCheck) {
168
+ if (this.props.shouldCheckWebpSupport) {
169
169
  fetchWebpSupport()
170
170
  .then(() => {
171
171
  this._isWebpSupported = true;
@@ -198,7 +198,7 @@ export class Application {
198
198
 
199
199
  /** Output current version */
200
200
  private _printVersion() {
201
- if (!this.props.isVersionPrinted) {
201
+ if (!this.props.shouldPrintVersion) {
202
202
  return;
203
203
  }
204
204
 
@@ -2,7 +2,7 @@ import { EasingType } from 'easing-progress';
2
2
 
3
3
  export namespace NApplication {
4
4
  export interface IProps {
5
- isVersionPrinted: boolean;
5
+ shouldPrintVersion: boolean;
6
6
  /**
7
7
  * Tablet identification max width
8
8
  * @default 1199
@@ -32,6 +32,6 @@ export namespace NApplication {
32
32
  * Check if the browser supports WebP
33
33
  * @default false
34
34
  */
35
- hasWebpSupportCheck: boolean;
35
+ shouldCheckWebpSupport: boolean;
36
36
  }
37
37
  }
@@ -18,7 +18,7 @@ export class Ctx2D<
18
18
  return {
19
19
  ...super._getDefaultProps(),
20
20
  container: false,
21
- isAppend: true,
21
+ shouldAppend: true,
22
22
  hasInitialResize: true,
23
23
  hasResize: false,
24
24
  viewportTarget: 'any',
@@ -92,7 +92,7 @@ export class Ctx2D<
92
92
  constructor(initialProps?: StaticProps & ChangeableProps, canInit = true) {
93
93
  super(initialProps, false);
94
94
 
95
- const { isAppend, container } = this.props;
95
+ const { shouldAppend, container } = this.props;
96
96
 
97
97
  // set default values
98
98
  this._width = 0;
@@ -108,7 +108,7 @@ export class Ctx2D<
108
108
  this._canvas.style.height = '100%';
109
109
 
110
110
  // append canvas
111
- if (isAppend && container instanceof Element) {
111
+ if (shouldAppend && container instanceof Element) {
112
112
  container.append(this._canvas);
113
113
 
114
114
  this.addDestroyableAction(() => this.canvas.remove());
@@ -13,7 +13,7 @@ export namespace NCtx2D {
13
13
  * Defines if you need to append the canvas element to the parent element
14
14
  * @default true
15
15
  */
16
- isAppend?: boolean;
16
+ shouldAppend?: boolean;
17
17
  /**
18
18
  * Resize on init
19
19
  * @default true
@@ -24,7 +24,7 @@ export class CustomCursor<
24
24
  height: 36,
25
25
  lerp: 0.2,
26
26
  isFpsNormalized: true,
27
- isAutoStop: true,
27
+ shouldAutoStop: true,
28
28
  };
29
29
  }
30
30
 
@@ -46,7 +46,7 @@ export class CustomCursor<
46
46
  /** DOM parent for the cursor element */
47
47
  get domContainer(): HTMLElement {
48
48
  if (this.container instanceof Window) {
49
- return this.app.html;
49
+ return this.app.body;
50
50
  }
51
51
 
52
52
  return this.container as HTMLElement;
@@ -145,8 +145,9 @@ export class CustomCursor<
145
145
  this._isContainerWindow = container instanceof Window;
146
146
 
147
147
  // set default vars
148
- this._coords = { x: 0, y: 0, width: 0, height: 0 };
149
- this._targetCoords = { x: 0, y: 0, width: 0, height: 0 };
148
+ const { width, height } = this.props;
149
+ this._coords = { x: 0, y: 0, width, height };
150
+ this._targetCoords = { x: 0, y: 0, width, height };
150
151
 
151
152
  if (canInit) {
152
153
  this.init();
@@ -356,20 +357,28 @@ export class CustomCursor<
356
357
  return { remove };
357
358
  }
358
359
 
360
+ /**
361
+ * If all coordinates are interpolated
362
+ */
363
+ public get isCoordsInterpolated() {
364
+ const { coords, targetCoords } = this;
365
+
366
+ return (
367
+ coords.x === targetCoords.x &&
368
+ coords.y === targetCoords.y &&
369
+ coords.width === targetCoords.width &&
370
+ coords.height === targetCoords.height
371
+ );
372
+ }
373
+
359
374
  /** Render the scene */
360
375
  public render() {
361
- const { props, coords, targetCoords } = this;
376
+ const { props } = this;
362
377
 
363
378
  this._calculateCoords();
364
379
  const realCoords = this._renderElements();
365
380
 
366
- if (
367
- props.isAutoStop &&
368
- coords.x === targetCoords.x &&
369
- coords.y === targetCoords.y &&
370
- coords.width === targetCoords.width &&
371
- coords.height === targetCoords.height
372
- ) {
381
+ if (props.shouldAutoStop && this.isCoordsInterpolated) {
373
382
  this._animationFrame.pause();
374
383
  }
375
384
 
@@ -433,6 +442,6 @@ export class CustomCursor<
433
442
  this.outerElement.classList.add(this.className('-disabled'));
434
443
  this.innerElement.classList.add(this.className('-disabled'));
435
444
 
436
- this._animationFrame.destroy();
445
+ this._animationFrame.pause();
437
446
  }
438
447
  }