vevet 3.19.2 → 4.0.0-beta.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 (714) hide show
  1. package/README.md +81 -18
  2. package/lib/cjs/{Application → Vevet}/events/createOnPageLoad/index.js +7 -7
  3. package/lib/cjs/Vevet/events/createOnPageLoad/index.js.map +1 -0
  4. package/lib/cjs/Vevet/events/createOnPageLoad/types.js.map +1 -0
  5. package/lib/cjs/{Application → Vevet}/events/createViewport/index.js +19 -25
  6. package/lib/cjs/Vevet/events/createViewport/index.js.map +1 -0
  7. package/lib/cjs/Vevet/events/createViewport/types.js.map +1 -0
  8. package/lib/cjs/Vevet/exported.js +3 -0
  9. package/lib/cjs/Vevet/exported.js.map +1 -0
  10. package/lib/cjs/Vevet/global.js +3 -0
  11. package/lib/cjs/Vevet/global.js.map +1 -0
  12. package/lib/cjs/Vevet/index.js +94 -0
  13. package/lib/cjs/Vevet/index.js.map +1 -0
  14. package/lib/cjs/{Application → Vevet}/types.js.map +1 -1
  15. package/lib/cjs/{utils/internal → Vevet/utils}/fetchWebpSupport.js +1 -1
  16. package/lib/cjs/Vevet/utils/fetchWebpSupport.js.map +1 -0
  17. package/lib/cjs/Vevet/utils/getDeviceInfo.js.map +1 -0
  18. package/lib/cjs/base/Callbacks/index.js +65 -48
  19. package/lib/cjs/base/Callbacks/index.js.map +1 -1
  20. package/lib/cjs/base/Component/index.js +15 -4
  21. package/lib/cjs/base/Component/index.js.map +1 -1
  22. package/lib/cjs/base/Module/index.js +118 -64
  23. package/lib/cjs/base/Module/index.js.map +1 -1
  24. package/lib/cjs/base/MutableProps/index.js +30 -55
  25. package/lib/cjs/base/MutableProps/index.js.map +1 -1
  26. package/lib/cjs/base/Plugin/index.js +20 -1
  27. package/lib/cjs/base/Plugin/index.js.map +1 -1
  28. package/lib/cjs/components/AnimationFrame/index.js +14 -21
  29. package/lib/cjs/components/AnimationFrame/index.js.map +1 -1
  30. package/lib/cjs/components/Ctx2D/index.js +40 -25
  31. package/lib/cjs/components/Ctx2D/index.js.map +1 -1
  32. package/lib/cjs/components/Ctx2DPrerender/index.js +17 -7
  33. package/lib/cjs/components/Ctx2DPrerender/index.js.map +1 -1
  34. package/lib/cjs/components/CustomCursor/index.js +75 -51
  35. package/lib/cjs/components/CustomCursor/index.js.map +1 -1
  36. package/lib/cjs/components/{SmoothScroll → CustomScroll}/AnimatonFrame.js +2 -2
  37. package/lib/cjs/components/{SmoothScroll → CustomScroll}/AnimatonFrame.js.map +1 -1
  38. package/lib/cjs/components/{SmoothScroll → CustomScroll}/Elements.js +9 -9
  39. package/lib/cjs/components/{SmoothScroll → CustomScroll}/Elements.js.map +1 -1
  40. package/lib/cjs/components/{SmoothScroll → CustomScroll}/index.js +72 -66
  41. package/lib/cjs/components/CustomScroll/index.js.map +1 -0
  42. package/lib/cjs/components/CustomScroll/types.js.map +1 -0
  43. package/lib/cjs/components/{SmoothScrollDragPlugin → CustomScrollDragPlugin}/index.js +45 -44
  44. package/lib/cjs/components/CustomScrollDragPlugin/index.js.map +1 -0
  45. package/lib/cjs/components/CustomScrollDragPlugin/types.js.map +1 -0
  46. package/lib/cjs/components/{SmoothScrollKeyboardPlugin → CustomScrollKeyboardPlugin}/index.js +51 -47
  47. package/lib/cjs/components/CustomScrollKeyboardPlugin/index.js.map +1 -0
  48. package/lib/cjs/components/CustomScrollKeyboardPlugin/types.js.map +1 -0
  49. package/lib/cjs/components/DraggerBase/index.js +74 -26
  50. package/lib/cjs/components/DraggerBase/index.js.map +1 -1
  51. package/lib/cjs/components/DraggerDirection/index.js +12 -6
  52. package/lib/cjs/components/DraggerDirection/index.js.map +1 -1
  53. package/lib/cjs/components/DraggerMove/index.js +44 -13
  54. package/lib/cjs/components/DraggerMove/index.js.map +1 -1
  55. package/lib/cjs/components/Marquee/index.js +240 -160
  56. package/lib/cjs/components/Marquee/index.js.map +1 -1
  57. package/lib/cjs/components/Preloader/index.js +45 -16
  58. package/lib/cjs/components/Preloader/index.js.map +1 -1
  59. package/lib/cjs/components/ProgressPreloader/index.js +79 -41
  60. package/lib/cjs/components/ProgressPreloader/index.js.map +1 -1
  61. package/lib/cjs/components/ProgressPreloader/utils/preloadCustomElement.js +12 -1
  62. package/lib/cjs/components/ProgressPreloader/utils/preloadCustomElement.js.map +1 -1
  63. package/lib/cjs/components/ScrollBar/Bar/index.js +90 -36
  64. package/lib/cjs/components/ScrollBar/Bar/index.js.map +1 -1
  65. package/lib/cjs/components/ScrollBar/index.js +59 -20
  66. package/lib/cjs/components/ScrollBar/index.js.map +1 -1
  67. package/lib/cjs/components/ScrollView/index.js +56 -20
  68. package/lib/cjs/components/ScrollView/index.js.map +1 -1
  69. package/lib/cjs/components/SectionScrollProgress/index.js +68 -31
  70. package/lib/cjs/components/SectionScrollProgress/index.js.map +1 -1
  71. package/lib/cjs/components/SlideProgress/index.js +72 -38
  72. package/lib/cjs/components/SlideProgress/index.js.map +1 -1
  73. package/lib/cjs/components/SplitText/index.js +52 -23
  74. package/lib/cjs/components/SplitText/index.js.map +1 -1
  75. package/lib/cjs/components/SplitText/utils/splitBase.js +6 -1
  76. package/lib/cjs/components/SplitText/utils/splitBase.js.map +1 -1
  77. package/lib/cjs/components/SplitText/utils/wrapLetters.js +11 -3
  78. package/lib/cjs/components/SplitText/utils/wrapLetters.js.map +1 -1
  79. package/lib/cjs/components/SplitText/utils/wrapLines.js +11 -5
  80. package/lib/cjs/components/SplitText/utils/wrapLines.js.map +1 -1
  81. package/lib/cjs/components/SplitText/utils/wrapWords.js +13 -2
  82. package/lib/cjs/components/SplitText/utils/wrapWords.js.map +1 -1
  83. package/lib/cjs/components/Timeline/index.js +77 -21
  84. package/lib/cjs/components/Timeline/index.js.map +1 -1
  85. package/lib/cjs/components/index.js +4 -4
  86. package/lib/cjs/components/index.js.map +1 -1
  87. package/lib/cjs/index.js +10 -3
  88. package/lib/cjs/index.js.map +1 -1
  89. package/lib/cjs/types/index.js +19 -0
  90. package/lib/cjs/types/index.js.map +1 -0
  91. package/lib/cjs/utils/common/PCancelable.js +16 -0
  92. package/lib/cjs/utils/common/PCancelable.js.map +1 -1
  93. package/lib/cjs/utils/common/normalizedTimeoutCallback.js +19 -4
  94. package/lib/cjs/utils/common/normalizedTimeoutCallback.js.map +1 -1
  95. package/lib/cjs/utils/common/objectKeys.js +11 -1
  96. package/lib/cjs/utils/common/objectKeys.js.map +1 -1
  97. package/lib/cjs/utils/common/pickObjectProps.js +14 -2
  98. package/lib/cjs/utils/common/pickObjectProps.js.map +1 -1
  99. package/lib/cjs/utils/common/times.js +12 -3
  100. package/lib/cjs/utils/common/times.js.map +1 -1
  101. package/lib/cjs/utils/common/uid.js +4 -2
  102. package/lib/cjs/utils/common/uid.js.map +1 -1
  103. package/lib/cjs/utils/image/load.js +3 -3
  104. package/lib/cjs/utils/image/load.js.map +1 -1
  105. package/lib/cjs/utils/image/pathsToProps.js +12 -5
  106. package/lib/cjs/utils/image/pathsToProps.js.map +1 -1
  107. package/lib/cjs/utils/image/sizesToSrcSet.js +7 -3
  108. package/lib/cjs/utils/image/sizesToSrcSet.js.map +1 -1
  109. package/lib/cjs/utils/internal/getApp.js +12 -0
  110. package/lib/cjs/utils/internal/getApp.js.map +1 -1
  111. package/lib/cjs/utils/listeners/isIntersectionObserverSupported.js +1 -1
  112. package/lib/cjs/utils/listeners/onResize.js +13 -12
  113. package/lib/cjs/utils/listeners/onResize.js.map +1 -1
  114. package/lib/cjs/utils/math/clamp.js +10 -5
  115. package/lib/cjs/utils/math/clamp.js.map +1 -1
  116. package/lib/cjs/utils/math/clampScope.js +8 -1
  117. package/lib/cjs/utils/math/clampScope.js.map +1 -1
  118. package/lib/cjs/utils/math/easing.js +6 -2
  119. package/lib/cjs/utils/math/easing.js.map +1 -1
  120. package/lib/cjs/utils/math/inScope.js +6 -3
  121. package/lib/cjs/utils/math/inScope.js.map +1 -1
  122. package/lib/cjs/utils/math/lerp.js +11 -3
  123. package/lib/cjs/utils/math/lerp.js.map +1 -1
  124. package/lib/cjs/utils/math/normalizeNestedScope.js +12 -3
  125. package/lib/cjs/utils/math/normalizeNestedScope.js.map +1 -1
  126. package/lib/cjs/utils/math/scoped.js +18 -7
  127. package/lib/cjs/utils/math/scoped.js.map +1 -1
  128. package/lib/cjs/utils/math/spreadScope.js +17 -3
  129. package/lib/cjs/utils/math/spreadScope.js.map +1 -1
  130. package/lib/cjs/utils/math/wrap.js +9 -3
  131. package/lib/cjs/utils/math/wrap.js.map +1 -1
  132. package/lib/cjs/utils/scroll/getScrollValues.js +13 -1
  133. package/lib/cjs/utils/scroll/getScrollValues.js.map +1 -1
  134. package/lib/cjs/utils/scroll/isPageScrolling.js +30 -0
  135. package/lib/cjs/utils/scroll/isPageScrolling.js.map +1 -1
  136. package/lib/cjs/utils/scroll/normalizeWheel.js +7 -2
  137. package/lib/cjs/utils/scroll/normalizeWheel.js.map +1 -1
  138. package/lib/cjs/utils/scroll/onScroll.js +14 -7
  139. package/lib/cjs/utils/scroll/onScroll.js.map +1 -1
  140. package/lib/cjs/utils/scroll/scrollTo.js +8 -7
  141. package/lib/cjs/utils/scroll/scrollTo.js.map +1 -1
  142. package/lib/cjs/utils/scroll/scrollToElement.js +8 -6
  143. package/lib/cjs/utils/scroll/scrollToElement.js.map +1 -1
  144. package/lib/cjs/version.js +1 -1
  145. package/lib/esm/{Application → Vevet}/events/createOnPageLoad/index.js +7 -7
  146. package/lib/esm/Vevet/events/createOnPageLoad/index.js.map +1 -0
  147. package/lib/esm/Vevet/events/createOnPageLoad/types.js.map +1 -0
  148. package/lib/esm/{Application → Vevet}/events/createViewport/index.js +20 -26
  149. package/lib/esm/Vevet/events/createViewport/index.js.map +1 -0
  150. package/lib/esm/Vevet/events/createViewport/types.js.map +1 -0
  151. package/lib/esm/Vevet/exported.js +2 -0
  152. package/lib/esm/Vevet/exported.js.map +1 -0
  153. package/lib/esm/Vevet/global.js +2 -0
  154. package/lib/esm/Vevet/global.js.map +1 -0
  155. package/lib/esm/Vevet/index.js +72 -0
  156. package/lib/esm/Vevet/index.js.map +1 -0
  157. package/lib/esm/{Application → Vevet}/types.js.map +1 -1
  158. package/lib/esm/{utils/internal → Vevet/utils}/fetchWebpSupport.js +1 -1
  159. package/lib/esm/Vevet/utils/fetchWebpSupport.js.map +1 -0
  160. package/lib/esm/Vevet/utils/getDeviceInfo.js.map +1 -0
  161. package/lib/esm/base/Callbacks/index.js +66 -48
  162. package/lib/esm/base/Callbacks/index.js.map +1 -1
  163. package/lib/esm/base/Component/index.js +15 -4
  164. package/lib/esm/base/Component/index.js.map +1 -1
  165. package/lib/esm/base/Module/index.js +119 -65
  166. package/lib/esm/base/Module/index.js.map +1 -1
  167. package/lib/esm/base/MutableProps/index.js +35 -60
  168. package/lib/esm/base/MutableProps/index.js.map +1 -1
  169. package/lib/esm/base/Plugin/index.js +20 -1
  170. package/lib/esm/base/Plugin/index.js.map +1 -1
  171. package/lib/esm/components/AnimationFrame/index.js +14 -21
  172. package/lib/esm/components/AnimationFrame/index.js.map +1 -1
  173. package/lib/esm/components/Ctx2D/index.js +40 -25
  174. package/lib/esm/components/Ctx2D/index.js.map +1 -1
  175. package/lib/esm/components/Ctx2DPrerender/index.js +17 -7
  176. package/lib/esm/components/Ctx2DPrerender/index.js.map +1 -1
  177. package/lib/esm/components/CustomCursor/index.js +75 -51
  178. package/lib/esm/components/CustomCursor/index.js.map +1 -1
  179. package/lib/esm/components/{SmoothScroll → CustomScroll}/AnimatonFrame.js +2 -2
  180. package/lib/esm/components/{SmoothScroll → CustomScroll}/AnimatonFrame.js.map +1 -1
  181. package/lib/esm/components/{SmoothScroll → CustomScroll}/Elements.js +8 -8
  182. package/lib/esm/components/{SmoothScroll → CustomScroll}/Elements.js.map +1 -1
  183. package/lib/esm/components/{SmoothScroll → CustomScroll}/index.js +30 -24
  184. package/lib/esm/components/CustomScroll/index.js.map +1 -0
  185. package/lib/esm/components/CustomScroll/types.js.map +1 -0
  186. package/lib/esm/components/{SmoothScrollDragPlugin → CustomScrollDragPlugin}/index.js +28 -27
  187. package/lib/esm/components/CustomScrollDragPlugin/index.js.map +1 -0
  188. package/lib/esm/components/CustomScrollDragPlugin/types.js.map +1 -0
  189. package/lib/esm/components/{SmoothScrollKeyboardPlugin → CustomScrollKeyboardPlugin}/index.js +37 -33
  190. package/lib/esm/components/CustomScrollKeyboardPlugin/index.js.map +1 -0
  191. package/lib/esm/components/CustomScrollKeyboardPlugin/types.js.map +1 -0
  192. package/lib/esm/components/DraggerBase/index.js +74 -28
  193. package/lib/esm/components/DraggerBase/index.js.map +1 -1
  194. package/lib/esm/components/DraggerDirection/index.js +12 -6
  195. package/lib/esm/components/DraggerDirection/index.js.map +1 -1
  196. package/lib/esm/components/DraggerMove/index.js +44 -13
  197. package/lib/esm/components/DraggerMove/index.js.map +1 -1
  198. package/lib/esm/components/Marquee/index.js +220 -161
  199. package/lib/esm/components/Marquee/index.js.map +1 -1
  200. package/lib/esm/components/Preloader/index.js +45 -16
  201. package/lib/esm/components/Preloader/index.js.map +1 -1
  202. package/lib/esm/components/ProgressPreloader/index.js +79 -40
  203. package/lib/esm/components/ProgressPreloader/index.js.map +1 -1
  204. package/lib/esm/components/ProgressPreloader/utils/preloadCustomElement.js +12 -1
  205. package/lib/esm/components/ProgressPreloader/utils/preloadCustomElement.js.map +1 -1
  206. package/lib/esm/components/ScrollBar/Bar/index.js +89 -32
  207. package/lib/esm/components/ScrollBar/Bar/index.js.map +1 -1
  208. package/lib/esm/components/ScrollBar/index.js +49 -15
  209. package/lib/esm/components/ScrollBar/index.js.map +1 -1
  210. package/lib/esm/components/ScrollView/index.js +56 -20
  211. package/lib/esm/components/ScrollView/index.js.map +1 -1
  212. package/lib/esm/components/SectionScrollProgress/index.js +68 -31
  213. package/lib/esm/components/SectionScrollProgress/index.js.map +1 -1
  214. package/lib/esm/components/SlideProgress/index.js +72 -38
  215. package/lib/esm/components/SlideProgress/index.js.map +1 -1
  216. package/lib/esm/components/SplitText/index.js +52 -23
  217. package/lib/esm/components/SplitText/index.js.map +1 -1
  218. package/lib/esm/components/SplitText/utils/splitBase.js +6 -1
  219. package/lib/esm/components/SplitText/utils/splitBase.js.map +1 -1
  220. package/lib/esm/components/SplitText/utils/wrapLetters.js +11 -3
  221. package/lib/esm/components/SplitText/utils/wrapLetters.js.map +1 -1
  222. package/lib/esm/components/SplitText/utils/wrapLines.js +11 -5
  223. package/lib/esm/components/SplitText/utils/wrapLines.js.map +1 -1
  224. package/lib/esm/components/SplitText/utils/wrapWords.js +13 -2
  225. package/lib/esm/components/SplitText/utils/wrapWords.js.map +1 -1
  226. package/lib/esm/components/Timeline/index.js +70 -22
  227. package/lib/esm/components/Timeline/index.js.map +1 -1
  228. package/lib/esm/components/index.js +4 -4
  229. package/lib/esm/components/index.js.map +1 -1
  230. package/lib/esm/index.js +9 -3
  231. package/lib/esm/index.js.map +1 -1
  232. package/lib/esm/types/index.js +3 -0
  233. package/lib/esm/types/index.js.map +1 -0
  234. package/lib/esm/utils/common/PCancelable.js +16 -0
  235. package/lib/esm/utils/common/PCancelable.js.map +1 -1
  236. package/lib/esm/utils/common/normalizedTimeoutCallback.js +19 -4
  237. package/lib/esm/utils/common/normalizedTimeoutCallback.js.map +1 -1
  238. package/lib/esm/utils/common/objectKeys.js +11 -1
  239. package/lib/esm/utils/common/objectKeys.js.map +1 -1
  240. package/lib/esm/utils/common/pickObjectProps.js +14 -2
  241. package/lib/esm/utils/common/pickObjectProps.js.map +1 -1
  242. package/lib/esm/utils/common/times.js +12 -3
  243. package/lib/esm/utils/common/times.js.map +1 -1
  244. package/lib/esm/utils/common/uid.js +4 -2
  245. package/lib/esm/utils/common/uid.js.map +1 -1
  246. package/lib/esm/utils/image/load.js +3 -3
  247. package/lib/esm/utils/image/load.js.map +1 -1
  248. package/lib/esm/utils/image/pathsToProps.js +12 -5
  249. package/lib/esm/utils/image/pathsToProps.js.map +1 -1
  250. package/lib/esm/utils/image/sizesToSrcSet.js +7 -3
  251. package/lib/esm/utils/image/sizesToSrcSet.js.map +1 -1
  252. package/lib/esm/utils/internal/getApp.js +12 -0
  253. package/lib/esm/utils/internal/getApp.js.map +1 -1
  254. package/lib/esm/utils/listeners/isIntersectionObserverSupported.js +1 -1
  255. package/lib/esm/utils/listeners/onResize.js +11 -12
  256. package/lib/esm/utils/listeners/onResize.js.map +1 -1
  257. package/lib/esm/utils/math/clamp.js +10 -5
  258. package/lib/esm/utils/math/clamp.js.map +1 -1
  259. package/lib/esm/utils/math/clampScope.js +8 -1
  260. package/lib/esm/utils/math/clampScope.js.map +1 -1
  261. package/lib/esm/utils/math/easing.js +6 -2
  262. package/lib/esm/utils/math/easing.js.map +1 -1
  263. package/lib/esm/utils/math/inScope.js +6 -3
  264. package/lib/esm/utils/math/inScope.js.map +1 -1
  265. package/lib/esm/utils/math/lerp.js +11 -3
  266. package/lib/esm/utils/math/lerp.js.map +1 -1
  267. package/lib/esm/utils/math/normalizeNestedScope.js +12 -3
  268. package/lib/esm/utils/math/normalizeNestedScope.js.map +1 -1
  269. package/lib/esm/utils/math/scoped.js +17 -6
  270. package/lib/esm/utils/math/scoped.js.map +1 -1
  271. package/lib/esm/utils/math/spreadScope.js +17 -3
  272. package/lib/esm/utils/math/spreadScope.js.map +1 -1
  273. package/lib/esm/utils/math/wrap.js +9 -3
  274. package/lib/esm/utils/math/wrap.js.map +1 -1
  275. package/lib/esm/utils/scroll/getScrollValues.js +13 -1
  276. package/lib/esm/utils/scroll/getScrollValues.js.map +1 -1
  277. package/lib/esm/utils/scroll/isPageScrolling.js +30 -0
  278. package/lib/esm/utils/scroll/isPageScrolling.js.map +1 -1
  279. package/lib/esm/utils/scroll/normalizeWheel.js +7 -2
  280. package/lib/esm/utils/scroll/normalizeWheel.js.map +1 -1
  281. package/lib/esm/utils/scroll/onScroll.js +14 -7
  282. package/lib/esm/utils/scroll/onScroll.js.map +1 -1
  283. package/lib/esm/utils/scroll/scrollTo.js +8 -7
  284. package/lib/esm/utils/scroll/scrollTo.js.map +1 -1
  285. package/lib/esm/utils/scroll/scrollToElement.js +8 -6
  286. package/lib/esm/utils/scroll/scrollToElement.js.map +1 -1
  287. package/lib/esm/version.js +1 -1
  288. package/lib/styles/base.scss +0 -2
  289. package/lib/styles/components/CustomCursor.scss +7 -7
  290. package/{src/styles/components/SmoothScroll.scss → lib/styles/components/CustomScroll.scss} +3 -3
  291. package/lib/styles/components/Preloader.scss +1 -1
  292. package/lib/styles/components/ScrollBar.scss +4 -4
  293. package/lib/styles/components/index.scss +1 -1
  294. package/lib/styles/index.scss +0 -1
  295. package/lib/types/Vevet/events/createOnPageLoad/index.d.ts +3 -0
  296. package/lib/types/Vevet/events/createOnPageLoad/index.d.ts.map +1 -0
  297. package/lib/types/Vevet/events/createOnPageLoad/types.d.ts +20 -0
  298. package/lib/types/Vevet/events/createOnPageLoad/types.d.ts.map +1 -0
  299. package/lib/types/Vevet/events/createViewport/index.d.ts +4 -0
  300. package/lib/types/Vevet/events/createViewport/index.d.ts.map +1 -0
  301. package/lib/types/Vevet/events/createViewport/types.d.ts +85 -0
  302. package/lib/types/Vevet/events/createViewport/types.d.ts.map +1 -0
  303. package/lib/types/Vevet/exported.d.ts +6 -0
  304. package/lib/types/Vevet/exported.d.ts.map +1 -0
  305. package/lib/types/Vevet/global.d.ts +51 -0
  306. package/lib/types/Vevet/global.d.ts.map +1 -0
  307. package/lib/types/Vevet/index.d.ts +4 -0
  308. package/lib/types/Vevet/index.d.ts.map +1 -0
  309. package/lib/types/Vevet/types.d.ts +43 -0
  310. package/lib/types/Vevet/types.d.ts.map +1 -0
  311. package/lib/types/Vevet/utils/fetchWebpSupport.d.ts +3 -0
  312. package/lib/types/Vevet/utils/fetchWebpSupport.d.ts.map +1 -0
  313. package/lib/types/Vevet/utils/getDeviceInfo.d.ts.map +1 -0
  314. package/lib/types/base/Callbacks/index.d.ts +67 -46
  315. package/lib/types/base/Callbacks/index.d.ts.map +1 -1
  316. package/lib/types/base/Callbacks/types.d.ts +46 -14
  317. package/lib/types/base/Callbacks/types.d.ts.map +1 -1
  318. package/lib/types/base/Component/index.d.ts +19 -5
  319. package/lib/types/base/Component/index.d.ts.map +1 -1
  320. package/lib/types/base/Component/types.d.ts +15 -3
  321. package/lib/types/base/Component/types.d.ts.map +1 -1
  322. package/lib/types/base/Module/index.d.ts +124 -74
  323. package/lib/types/base/Module/index.d.ts.map +1 -1
  324. package/lib/types/base/Module/types.d.ts +29 -3
  325. package/lib/types/base/Module/types.d.ts.map +1 -1
  326. package/lib/types/base/MutableProps/index.d.ts +34 -77
  327. package/lib/types/base/MutableProps/index.d.ts.map +1 -1
  328. package/lib/types/base/MutableProps/types.d.ts +14 -8
  329. package/lib/types/base/MutableProps/types.d.ts.map +1 -1
  330. package/lib/types/base/Plugin/index.d.ts +24 -1
  331. package/lib/types/base/Plugin/index.d.ts.map +1 -1
  332. package/lib/types/base/Plugin/types.d.ts +11 -0
  333. package/lib/types/base/Plugin/types.d.ts.map +1 -1
  334. package/lib/types/components/AnimationFrame/index.d.ts +20 -18
  335. package/lib/types/components/AnimationFrame/index.d.ts.map +1 -1
  336. package/lib/types/components/AnimationFrame/types.d.ts +18 -3
  337. package/lib/types/components/AnimationFrame/types.d.ts.map +1 -1
  338. package/lib/types/components/Ctx2D/index.d.ts +37 -15
  339. package/lib/types/components/Ctx2D/index.d.ts.map +1 -1
  340. package/lib/types/components/Ctx2D/types.d.ts +40 -13
  341. package/lib/types/components/Ctx2D/types.d.ts.map +1 -1
  342. package/lib/types/components/Ctx2DPrerender/index.d.ts +13 -4
  343. package/lib/types/components/Ctx2DPrerender/index.d.ts.map +1 -1
  344. package/lib/types/components/Ctx2DPrerender/types.d.ts +13 -2
  345. package/lib/types/components/Ctx2DPrerender/types.d.ts.map +1 -1
  346. package/lib/types/components/CustomCursor/index.d.ts +59 -36
  347. package/lib/types/components/CustomCursor/index.d.ts.map +1 -1
  348. package/lib/types/components/CustomCursor/types.d.ts +52 -12
  349. package/lib/types/components/CustomCursor/types.d.ts.map +1 -1
  350. package/lib/types/components/{SmoothScroll → CustomScroll}/AnimatonFrame.d.ts.map +1 -1
  351. package/lib/types/components/{SmoothScroll → CustomScroll}/Elements.d.ts +3 -3
  352. package/lib/types/components/{SmoothScroll → CustomScroll}/Elements.d.ts.map +1 -1
  353. package/lib/types/components/{SmoothScroll → CustomScroll}/index.d.ts +46 -32
  354. package/lib/types/components/CustomScroll/index.d.ts.map +1 -0
  355. package/lib/types/components/CustomScroll/types.d.ts +137 -0
  356. package/lib/types/components/CustomScroll/types.d.ts.map +1 -0
  357. package/lib/types/components/CustomScrollDragPlugin/index.d.ts +62 -0
  358. package/lib/types/components/CustomScrollDragPlugin/index.d.ts.map +1 -0
  359. package/lib/types/components/CustomScrollDragPlugin/types.d.ts +52 -0
  360. package/lib/types/components/CustomScrollDragPlugin/types.d.ts.map +1 -0
  361. package/lib/types/components/CustomScrollKeyboardPlugin/index.d.ts +47 -0
  362. package/lib/types/components/CustomScrollKeyboardPlugin/index.d.ts.map +1 -0
  363. package/lib/types/components/CustomScrollKeyboardPlugin/types.d.ts +16 -0
  364. package/lib/types/components/{SmoothScrollKeyboardPlugin → CustomScrollKeyboardPlugin}/types.d.ts.map +1 -1
  365. package/lib/types/components/DraggerBase/index.d.ts +93 -28
  366. package/lib/types/components/DraggerBase/index.d.ts.map +1 -1
  367. package/lib/types/components/DraggerBase/types.d.ts +21 -3
  368. package/lib/types/components/DraggerBase/types.d.ts.map +1 -1
  369. package/lib/types/components/DraggerDirection/index.d.ts +6 -2
  370. package/lib/types/components/DraggerDirection/index.d.ts.map +1 -1
  371. package/lib/types/components/DraggerDirection/types.d.ts +15 -1
  372. package/lib/types/components/DraggerDirection/types.d.ts.map +1 -1
  373. package/lib/types/components/DraggerMove/index.d.ts +38 -8
  374. package/lib/types/components/DraggerMove/index.d.ts.map +1 -1
  375. package/lib/types/components/DraggerMove/types.d.ts +15 -2
  376. package/lib/types/components/DraggerMove/types.d.ts.map +1 -1
  377. package/lib/types/components/Marquee/index.d.ts +59 -36
  378. package/lib/types/components/Marquee/index.d.ts.map +1 -1
  379. package/lib/types/components/Marquee/types.d.ts +18 -8
  380. package/lib/types/components/Marquee/types.d.ts.map +1 -1
  381. package/lib/types/components/Preloader/index.d.ts +52 -15
  382. package/lib/types/components/Preloader/index.d.ts.map +1 -1
  383. package/lib/types/components/Preloader/types.d.ts +16 -5
  384. package/lib/types/components/Preloader/types.d.ts.map +1 -1
  385. package/lib/types/components/ProgressPreloader/index.d.ts +85 -25
  386. package/lib/types/components/ProgressPreloader/index.d.ts.map +1 -1
  387. package/lib/types/components/ProgressPreloader/types.d.ts +51 -14
  388. package/lib/types/components/ProgressPreloader/types.d.ts.map +1 -1
  389. package/lib/types/components/ProgressPreloader/utils/preloadCustomElement.d.ts +3 -0
  390. package/lib/types/components/ProgressPreloader/utils/preloadCustomElement.d.ts.map +1 -1
  391. package/lib/types/components/ScrollBar/Bar/index.d.ts +81 -16
  392. package/lib/types/components/ScrollBar/Bar/index.d.ts.map +1 -1
  393. package/lib/types/components/ScrollBar/Bar/types.d.ts +38 -16
  394. package/lib/types/components/ScrollBar/Bar/types.d.ts.map +1 -1
  395. package/lib/types/components/ScrollBar/index.d.ts +49 -12
  396. package/lib/types/components/ScrollBar/index.d.ts.map +1 -1
  397. package/lib/types/components/ScrollBar/types.d.ts +8 -6
  398. package/lib/types/components/ScrollBar/types.d.ts.map +1 -1
  399. package/lib/types/components/ScrollView/index.d.ts +65 -21
  400. package/lib/types/components/ScrollView/index.d.ts.map +1 -1
  401. package/lib/types/components/SectionScrollProgress/index.d.ts +83 -28
  402. package/lib/types/components/SectionScrollProgress/index.d.ts.map +1 -1
  403. package/lib/types/components/SectionScrollProgress/types.d.ts +15 -6
  404. package/lib/types/components/SectionScrollProgress/types.d.ts.map +1 -1
  405. package/lib/types/components/SlideProgress/index.d.ts +59 -24
  406. package/lib/types/components/SlideProgress/index.d.ts.map +1 -1
  407. package/lib/types/components/SlideProgress/types.d.ts +24 -15
  408. package/lib/types/components/SlideProgress/types.d.ts.map +1 -1
  409. package/lib/types/components/SplitText/index.d.ts +64 -18
  410. package/lib/types/components/SplitText/index.d.ts.map +1 -1
  411. package/lib/types/components/SplitText/types.d.ts +36 -8
  412. package/lib/types/components/SplitText/types.d.ts.map +1 -1
  413. package/lib/types/components/SplitText/utils/splitBase.d.ts +3 -1
  414. package/lib/types/components/SplitText/utils/splitBase.d.ts.map +1 -1
  415. package/lib/types/components/SplitText/utils/wrapLetters.d.ts +3 -1
  416. package/lib/types/components/SplitText/utils/wrapLetters.d.ts.map +1 -1
  417. package/lib/types/components/SplitText/utils/wrapLines.d.ts +3 -1
  418. package/lib/types/components/SplitText/utils/wrapLines.d.ts.map +1 -1
  419. package/lib/types/components/SplitText/utils/wrapWords.d.ts +3 -1
  420. package/lib/types/components/SplitText/utils/wrapWords.d.ts.map +1 -1
  421. package/lib/types/components/Timeline/index.d.ts +69 -21
  422. package/lib/types/components/Timeline/index.d.ts.map +1 -1
  423. package/lib/types/components/Timeline/types.d.ts +32 -7
  424. package/lib/types/components/Timeline/types.d.ts.map +1 -1
  425. package/lib/types/components/index.d.ts +4 -4
  426. package/lib/types/components/index.d.ts.map +1 -1
  427. package/lib/types/index.d.ts +9 -2
  428. package/lib/types/index.d.ts.map +1 -1
  429. package/lib/types/types/index.d.ts +3 -0
  430. package/lib/types/types/index.d.ts.map +1 -0
  431. package/lib/types/types/utility.d.ts +2 -3
  432. package/lib/types/types/utility.d.ts.map +1 -1
  433. package/lib/types/utils/common/PCancelable.d.ts +16 -0
  434. package/lib/types/utils/common/PCancelable.d.ts.map +1 -1
  435. package/lib/types/utils/common/normalizedTimeoutCallback.d.ts +19 -4
  436. package/lib/types/utils/common/normalizedTimeoutCallback.d.ts.map +1 -1
  437. package/lib/types/utils/common/objectKeys.d.ts +11 -1
  438. package/lib/types/utils/common/objectKeys.d.ts.map +1 -1
  439. package/lib/types/utils/common/pickObjectProps.d.ts +14 -2
  440. package/lib/types/utils/common/pickObjectProps.d.ts.map +1 -1
  441. package/lib/types/utils/common/times.d.ts +12 -3
  442. package/lib/types/utils/common/times.d.ts.map +1 -1
  443. package/lib/types/utils/common/uid.d.ts +4 -2
  444. package/lib/types/utils/common/uid.d.ts.map +1 -1
  445. package/lib/types/utils/image/load.d.ts +8 -5
  446. package/lib/types/utils/image/load.d.ts.map +1 -1
  447. package/lib/types/utils/image/pathsToProps.d.ts +10 -4
  448. package/lib/types/utils/image/pathsToProps.d.ts.map +1 -1
  449. package/lib/types/utils/image/sizesToSrcSet.d.ts +7 -3
  450. package/lib/types/utils/image/sizesToSrcSet.d.ts.map +1 -1
  451. package/lib/types/utils/internal/getApp.d.ts +9 -1
  452. package/lib/types/utils/internal/getApp.d.ts.map +1 -1
  453. package/lib/types/utils/listeners/isIntersectionObserverSupported.d.ts +1 -1
  454. package/lib/types/utils/listeners/onResize.d.ts +11 -12
  455. package/lib/types/utils/listeners/onResize.d.ts.map +1 -1
  456. package/lib/types/utils/math/clamp.d.ts +7 -2
  457. package/lib/types/utils/math/clamp.d.ts.map +1 -1
  458. package/lib/types/utils/math/clampScope.d.ts +8 -1
  459. package/lib/types/utils/math/clampScope.d.ts.map +1 -1
  460. package/lib/types/utils/math/easing.d.ts +4 -1
  461. package/lib/types/utils/math/easing.d.ts.map +1 -1
  462. package/lib/types/utils/math/inScope.d.ts +5 -2
  463. package/lib/types/utils/math/inScope.d.ts.map +1 -1
  464. package/lib/types/utils/math/lerp.d.ts +10 -2
  465. package/lib/types/utils/math/lerp.d.ts.map +1 -1
  466. package/lib/types/utils/math/normalizeNestedScope.d.ts +12 -3
  467. package/lib/types/utils/math/normalizeNestedScope.d.ts.map +1 -1
  468. package/lib/types/utils/math/scoped.d.ts +16 -5
  469. package/lib/types/utils/math/scoped.d.ts.map +1 -1
  470. package/lib/types/utils/math/spreadScope.d.ts +17 -3
  471. package/lib/types/utils/math/spreadScope.d.ts.map +1 -1
  472. package/lib/types/utils/math/wrap.d.ts +9 -3
  473. package/lib/types/utils/math/wrap.d.ts.map +1 -1
  474. package/lib/types/utils/scroll/getScrollValues.d.ts +13 -1
  475. package/lib/types/utils/scroll/getScrollValues.d.ts.map +1 -1
  476. package/lib/types/utils/scroll/isPageScrolling.d.ts +20 -0
  477. package/lib/types/utils/scroll/isPageScrolling.d.ts.map +1 -1
  478. package/lib/types/utils/scroll/normalizeWheel.d.ts +10 -2
  479. package/lib/types/utils/scroll/normalizeWheel.d.ts.map +1 -1
  480. package/lib/types/utils/scroll/onScroll.d.ts +10 -5
  481. package/lib/types/utils/scroll/onScroll.d.ts.map +1 -1
  482. package/lib/types/utils/scroll/scrollTo.d.ts +12 -9
  483. package/lib/types/utils/scroll/scrollTo.d.ts.map +1 -1
  484. package/lib/types/utils/scroll/scrollToElement.d.ts +9 -7
  485. package/lib/types/utils/scroll/scrollToElement.d.ts.map +1 -1
  486. package/lib/types/version.d.ts +1 -1
  487. package/package.json +6 -7
  488. package/src/{Application → Vevet}/events/createOnPageLoad/index.ts +8 -8
  489. package/src/Vevet/events/createOnPageLoad/types.ts +21 -0
  490. package/src/{Application → Vevet}/events/createViewport/index.ts +33 -35
  491. package/src/{Application → Vevet}/events/createViewport/stories/index.tsx +7 -5
  492. package/src/Vevet/events/createViewport/types.ts +93 -0
  493. package/src/Vevet/exported.ts +15 -0
  494. package/src/Vevet/global.ts +51 -0
  495. package/src/Vevet/index.ts +98 -0
  496. package/src/{Application → Vevet}/stories/index.tsx +2 -2
  497. package/src/Vevet/types.ts +48 -0
  498. package/src/base/Callbacks/index.ts +70 -51
  499. package/src/base/Callbacks/types.ts +53 -14
  500. package/src/base/Component/index.ts +19 -5
  501. package/src/base/Component/types.ts +15 -3
  502. package/src/base/Module/index.ts +125 -78
  503. package/src/base/Module/types.ts +32 -3
  504. package/src/base/MutableProps/index.ts +44 -73
  505. package/src/base/MutableProps/types.ts +15 -8
  506. package/src/base/Plugin/index.ts +24 -1
  507. package/src/base/Plugin/types.ts +11 -0
  508. package/src/components/AnimationFrame/index.ts +21 -28
  509. package/src/components/AnimationFrame/types.ts +23 -3
  510. package/src/components/Ctx2D/index.ts +46 -34
  511. package/src/components/Ctx2D/types.ts +53 -13
  512. package/src/components/Ctx2DPrerender/index.ts +18 -7
  513. package/src/components/Ctx2DPrerender/types.ts +13 -2
  514. package/src/components/CustomCursor/index.ts +85 -60
  515. package/src/components/CustomCursor/stories/index.tsx +0 -3
  516. package/src/components/CustomCursor/types.ts +63 -12
  517. package/src/components/{SmoothScroll → CustomScroll}/AnimatonFrame.ts +2 -2
  518. package/src/components/{SmoothScroll → CustomScroll}/Elements.ts +14 -14
  519. package/src/components/{SmoothScroll → CustomScroll}/index.ts +61 -44
  520. package/src/components/{SmoothScroll → CustomScroll}/stories/Default.tsx +8 -8
  521. package/src/components/{SmoothScroll → CustomScroll}/stories/WithHorizontal.tsx +9 -9
  522. package/src/components/{SmoothScroll → CustomScroll}/stories/WithInnerLerp.tsx +9 -9
  523. package/src/components/{SmoothScroll → CustomScroll}/stories/index.stories.tsx +1 -1
  524. package/src/components/CustomScroll/types.ts +165 -0
  525. package/src/components/{SmoothScrollDragPlugin → CustomScrollDragPlugin}/index.ts +41 -41
  526. package/src/components/{SmoothScrollDragPlugin → CustomScrollDragPlugin}/stories/index.stories.tsx +1 -1
  527. package/src/components/{SmoothScrollDragPlugin → CustomScrollDragPlugin}/stories/index.tsx +10 -10
  528. package/src/components/CustomScrollDragPlugin/types.ts +59 -0
  529. package/src/components/{SmoothScrollKeyboardPlugin → CustomScrollKeyboardPlugin}/index.ts +47 -43
  530. package/src/components/{SmoothScrollKeyboardPlugin → CustomScrollKeyboardPlugin}/stories/index.stories.tsx +1 -1
  531. package/src/components/{SmoothScrollKeyboardPlugin → CustomScrollKeyboardPlugin}/stories/index.tsx +10 -10
  532. package/src/components/{SmoothScrollKeyboardPlugin → CustomScrollKeyboardPlugin}/types.ts +6 -2
  533. package/src/components/DraggerBase/index.ts +101 -37
  534. package/src/components/DraggerBase/types.ts +25 -3
  535. package/src/components/DraggerDirection/index.ts +12 -6
  536. package/src/components/DraggerDirection/types.ts +18 -1
  537. package/src/components/DraggerMove/index.ts +44 -13
  538. package/src/components/DraggerMove/types.ts +17 -2
  539. package/src/components/Marquee/index.ts +255 -186
  540. package/src/components/Marquee/stories/index.tsx +16 -2
  541. package/src/components/Marquee/types.ts +18 -8
  542. package/src/components/Preloader/index.ts +56 -20
  543. package/src/components/Preloader/types.ts +18 -5
  544. package/src/components/ProgressPreloader/index.ts +104 -48
  545. package/src/components/ProgressPreloader/types.ts +65 -14
  546. package/src/components/ProgressPreloader/utils/preloadCustomElement.ts +13 -2
  547. package/src/components/ScrollBar/Bar/index.ts +112 -62
  548. package/src/components/ScrollBar/Bar/types.ts +46 -17
  549. package/src/components/ScrollBar/index.ts +65 -20
  550. package/src/components/ScrollBar/stories/{WithSmoothScrollComponent.tsx → WithCustomScrollComponent.tsx} +5 -5
  551. package/src/components/ScrollBar/stories/index.stories.tsx +3 -3
  552. package/src/components/ScrollBar/types.ts +10 -6
  553. package/src/components/ScrollView/index.ts +73 -27
  554. package/src/components/ScrollView/stories/index.tsx +5 -2
  555. package/src/components/SectionScrollProgress/index.ts +97 -41
  556. package/src/components/SectionScrollProgress/stories/WithCustomScroll.tsx +6 -6
  557. package/src/components/SectionScrollProgress/types.ts +19 -6
  558. package/src/components/SlideProgress/index.ts +78 -45
  559. package/src/components/SlideProgress/types.ts +24 -15
  560. package/src/components/SplitText/index.ts +71 -31
  561. package/src/components/SplitText/types.ts +48 -8
  562. package/src/components/SplitText/utils/splitBase.ts +6 -2
  563. package/src/components/SplitText/utils/wrapLetters.ts +11 -3
  564. package/src/components/SplitText/utils/wrapLines.ts +11 -5
  565. package/src/components/SplitText/utils/wrapWords.ts +14 -3
  566. package/src/components/Timeline/index.ts +98 -26
  567. package/src/components/Timeline/stories/index.stories.tsx +0 -5
  568. package/src/components/Timeline/types.ts +37 -7
  569. package/src/components/index.ts +4 -4
  570. package/src/index.ts +14 -4
  571. package/src/styles/base.scss +0 -2
  572. package/src/styles/components/CustomCursor.scss +7 -7
  573. package/{lib/styles/components/SmoothScroll.scss → src/styles/components/CustomScroll.scss} +3 -3
  574. package/src/styles/components/Preloader.scss +1 -1
  575. package/src/styles/components/ScrollBar.scss +4 -4
  576. package/src/styles/components/index.scss +1 -1
  577. package/src/styles/index.scss +0 -1
  578. package/src/types/index.ts +2 -0
  579. package/src/types/utility.ts +2 -2
  580. package/src/utils/common/PCancelable.ts +17 -0
  581. package/src/utils/common/normalizedTimeoutCallback.ts +19 -4
  582. package/src/utils/common/objectKeys.ts +12 -2
  583. package/src/utils/common/pickObjectProps.ts +16 -4
  584. package/src/utils/common/times.ts +12 -3
  585. package/src/utils/common/uid.ts +5 -3
  586. package/src/utils/image/load.ts +9 -4
  587. package/src/utils/image/pathsToProps.ts +12 -5
  588. package/src/utils/image/sizesToSrcSet.ts +7 -3
  589. package/src/utils/internal/getApp.ts +25 -0
  590. package/src/utils/listeners/isIntersectionObserverSupported.ts +1 -1
  591. package/src/utils/listeners/onResize.ts +16 -21
  592. package/src/utils/math/clamp.ts +10 -5
  593. package/src/utils/math/clampScope.ts +9 -2
  594. package/src/utils/math/easing.ts +6 -2
  595. package/src/utils/math/inScope.ts +6 -3
  596. package/src/utils/math/lerp.ts +11 -3
  597. package/src/utils/math/normalizeNestedScope.ts +12 -3
  598. package/src/utils/math/scoped.ts +17 -6
  599. package/src/utils/math/spreadScope.ts +17 -3
  600. package/src/utils/math/wrap.ts +9 -3
  601. package/src/utils/scroll/getScrollValues.ts +13 -1
  602. package/src/utils/scroll/isPageScrolling.ts +31 -0
  603. package/src/utils/scroll/normalizeWheel.ts +10 -2
  604. package/src/utils/scroll/onScroll.ts +18 -11
  605. package/src/utils/scroll/scrollTo.ts +16 -10
  606. package/src/utils/scroll/scrollToElement.ts +9 -7
  607. package/src/version.ts +1 -1
  608. package/lib/cjs/Application/events/createOnPageLoad/index.js.map +0 -1
  609. package/lib/cjs/Application/events/createOnPageLoad/types.js.map +0 -1
  610. package/lib/cjs/Application/events/createViewport/index.js.map +0 -1
  611. package/lib/cjs/Application/events/createViewport/types.js.map +0 -1
  612. package/lib/cjs/Application/index.js +0 -222
  613. package/lib/cjs/Application/index.js.map +0 -1
  614. package/lib/cjs/components/BaseTimeline/index.js +0 -125
  615. package/lib/cjs/components/BaseTimeline/index.js.map +0 -1
  616. package/lib/cjs/components/BaseTimeline/types.js.map +0 -1
  617. package/lib/cjs/components/SmoothScroll/index.js.map +0 -1
  618. package/lib/cjs/components/SmoothScroll/types.js.map +0 -1
  619. package/lib/cjs/components/SmoothScrollDragPlugin/index.js.map +0 -1
  620. package/lib/cjs/components/SmoothScrollDragPlugin/types.js.map +0 -1
  621. package/lib/cjs/components/SmoothScrollKeyboardPlugin/index.js.map +0 -1
  622. package/lib/cjs/components/SmoothScrollKeyboardPlugin/types.js +0 -3
  623. package/lib/cjs/components/SmoothScrollKeyboardPlugin/types.js.map +0 -1
  624. package/lib/cjs/utils/internal/fetchWebpSupport.js.map +0 -1
  625. package/lib/cjs/utils/internal/getDeviceInfo.js.map +0 -1
  626. package/lib/cjs/vevet.js +0 -6
  627. package/lib/cjs/vevet.js.map +0 -1
  628. package/lib/esm/Application/events/createOnPageLoad/index.js.map +0 -1
  629. package/lib/esm/Application/events/createOnPageLoad/types.js.map +0 -1
  630. package/lib/esm/Application/events/createViewport/index.js.map +0 -1
  631. package/lib/esm/Application/events/createViewport/types.js.map +0 -1
  632. package/lib/esm/Application/index.js +0 -134
  633. package/lib/esm/Application/index.js.map +0 -1
  634. package/lib/esm/components/BaseTimeline/index.js +0 -75
  635. package/lib/esm/components/BaseTimeline/index.js.map +0 -1
  636. package/lib/esm/components/BaseTimeline/types.js.map +0 -1
  637. package/lib/esm/components/SmoothScroll/index.js.map +0 -1
  638. package/lib/esm/components/SmoothScroll/types.js.map +0 -1
  639. package/lib/esm/components/SmoothScrollDragPlugin/index.js.map +0 -1
  640. package/lib/esm/components/SmoothScrollDragPlugin/types.js.map +0 -1
  641. package/lib/esm/components/SmoothScrollKeyboardPlugin/index.js.map +0 -1
  642. package/lib/esm/components/SmoothScrollKeyboardPlugin/types.js +0 -2
  643. package/lib/esm/components/SmoothScrollKeyboardPlugin/types.js.map +0 -1
  644. package/lib/esm/utils/internal/fetchWebpSupport.js.map +0 -1
  645. package/lib/esm/utils/internal/getDeviceInfo.js.map +0 -1
  646. package/lib/esm/vevet.js +0 -3
  647. package/lib/esm/vevet.js.map +0 -1
  648. package/lib/styles/globals/index.scss +0 -18
  649. package/lib/types/Application/events/createOnPageLoad/index.d.ts +0 -5
  650. package/lib/types/Application/events/createOnPageLoad/index.d.ts.map +0 -1
  651. package/lib/types/Application/events/createOnPageLoad/types.d.ts +0 -5
  652. package/lib/types/Application/events/createOnPageLoad/types.d.ts.map +0 -1
  653. package/lib/types/Application/events/createViewport/index.d.ts +0 -20
  654. package/lib/types/Application/events/createViewport/index.d.ts.map +0 -1
  655. package/lib/types/Application/events/createViewport/types.d.ts +0 -52
  656. package/lib/types/Application/events/createViewport/types.d.ts.map +0 -1
  657. package/lib/types/Application/index.d.ts +0 -89
  658. package/lib/types/Application/index.d.ts.map +0 -1
  659. package/lib/types/Application/types.d.ts +0 -41
  660. package/lib/types/Application/types.d.ts.map +0 -1
  661. package/lib/types/components/BaseTimeline/index.d.ts +0 -40
  662. package/lib/types/components/BaseTimeline/index.d.ts.map +0 -1
  663. package/lib/types/components/BaseTimeline/types.d.ts +0 -34
  664. package/lib/types/components/BaseTimeline/types.d.ts.map +0 -1
  665. package/lib/types/components/SmoothScroll/index.d.ts.map +0 -1
  666. package/lib/types/components/SmoothScroll/types.d.ts +0 -105
  667. package/lib/types/components/SmoothScroll/types.d.ts.map +0 -1
  668. package/lib/types/components/SmoothScrollDragPlugin/index.d.ts +0 -50
  669. package/lib/types/components/SmoothScrollDragPlugin/index.d.ts.map +0 -1
  670. package/lib/types/components/SmoothScrollDragPlugin/types.d.ts +0 -39
  671. package/lib/types/components/SmoothScrollDragPlugin/types.d.ts.map +0 -1
  672. package/lib/types/components/SmoothScrollKeyboardPlugin/index.d.ts +0 -31
  673. package/lib/types/components/SmoothScrollKeyboardPlugin/index.d.ts.map +0 -1
  674. package/lib/types/components/SmoothScrollKeyboardPlugin/types.d.ts +0 -12
  675. package/lib/types/utils/internal/fetchWebpSupport.d.ts +0 -3
  676. package/lib/types/utils/internal/fetchWebpSupport.d.ts.map +0 -1
  677. package/lib/types/utils/internal/getDeviceInfo.d.ts.map +0 -1
  678. package/lib/types/vevet.d.ts +0 -3
  679. package/lib/types/vevet.d.ts.map +0 -1
  680. package/src/Application/events/createOnPageLoad/types.ts +0 -5
  681. package/src/Application/events/createViewport/types.ts +0 -55
  682. package/src/Application/index.ts +0 -204
  683. package/src/Application/types.ts +0 -41
  684. package/src/components/BaseTimeline/index.ts +0 -123
  685. package/src/components/BaseTimeline/stories/Basic.tsx +0 -65
  686. package/src/components/BaseTimeline/stories/Nested.tsx +0 -108
  687. package/src/components/BaseTimeline/stories/index.stories.tsx +0 -16
  688. package/src/components/BaseTimeline/types.ts +0 -36
  689. package/src/components/SmoothScroll/types.ts +0 -114
  690. package/src/components/SmoothScrollDragPlugin/types.ts +0 -40
  691. package/src/components/Timeline/stories/Nested.tsx +0 -135
  692. package/src/styles/globals/index.scss +0 -18
  693. package/src/vevet.ts +0 -4
  694. /package/lib/cjs/{Application → Vevet}/events/createOnPageLoad/types.js +0 -0
  695. /package/lib/cjs/{Application → Vevet}/events/createViewport/types.js +0 -0
  696. /package/lib/cjs/{Application → Vevet}/types.js +0 -0
  697. /package/lib/cjs/{utils/internal → Vevet/utils}/getDeviceInfo.js +0 -0
  698. /package/lib/cjs/components/{BaseTimeline → CustomScroll}/types.js +0 -0
  699. /package/lib/cjs/components/{SmoothScroll → CustomScrollDragPlugin}/types.js +0 -0
  700. /package/lib/cjs/components/{SmoothScrollDragPlugin → CustomScrollKeyboardPlugin}/types.js +0 -0
  701. /package/lib/esm/{Application → Vevet}/events/createOnPageLoad/types.js +0 -0
  702. /package/lib/esm/{Application → Vevet}/events/createViewport/types.js +0 -0
  703. /package/lib/esm/{Application → Vevet}/types.js +0 -0
  704. /package/lib/esm/{utils/internal → Vevet/utils}/getDeviceInfo.js +0 -0
  705. /package/lib/esm/components/{BaseTimeline → CustomScroll}/types.js +0 -0
  706. /package/lib/esm/components/{SmoothScroll → CustomScrollDragPlugin}/types.js +0 -0
  707. /package/lib/esm/components/{SmoothScrollDragPlugin → CustomScrollKeyboardPlugin}/types.js +0 -0
  708. /package/lib/types/{utils/internal → Vevet/utils}/getDeviceInfo.d.ts +0 -0
  709. /package/lib/types/components/{SmoothScroll → CustomScroll}/AnimatonFrame.d.ts +0 -0
  710. /package/src/{Application → Vevet}/events/.eslintrc +0 -0
  711. /package/src/{Application → Vevet}/events/createViewport/stories/index.stories.tsx +0 -0
  712. /package/src/{Application → Vevet}/stories/index.stories.tsx +0 -0
  713. /package/src/{utils/internal → Vevet/utils}/fetchWebpSupport.ts +0 -0
  714. /package/src/{utils/internal → Vevet/utils}/getDeviceInfo.ts +0 -0
@@ -18,14 +18,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.Component = void 0;
19
19
  var Module_1 = require("../Module");
20
20
  /**
21
- * A class for Components.
21
+ * A class representing a component that extends the functionality of the {@link Module} class.
22
+ * It allows for the addition of plugins, which can further extend or enhance the component's behavior.
22
23
  */
23
24
  var Component = /** @class */ (function (_super) {
24
25
  __extends(Component, _super);
25
26
  function Component() {
26
27
  return _super !== null && _super.apply(this, arguments) || this;
27
28
  }
28
- /** Add a single plugin */
29
+ /**
30
+ * Adds a plugin to the component. The plugin is initialized upon being added,
31
+ * and the plugin's `component` property is set to the current component instance.
32
+ *
33
+ * @param plugin - An instance of the {@link Plugin} class to be added.
34
+ */
29
35
  Component.prototype.addPlugin = function (plugin) {
30
36
  if (typeof this._plugins === 'undefined') {
31
37
  this._plugins = [];
@@ -35,12 +41,17 @@ var Component = /** @class */ (function (_super) {
35
41
  plugin.component = this;
36
42
  plugin.init();
37
43
  };
38
- /** Destroy all plugins */
44
+ /**
45
+ * Destroys all plugins associated with the component.
46
+ * This ensures proper cleanup when the component is destroyed.
47
+ */
39
48
  Component.prototype._destroyPlugins = function () {
40
49
  var _a;
41
50
  (_a = this._plugins) === null || _a === void 0 ? void 0 : _a.forEach(function (plugin) { return plugin.destroy(); });
42
51
  };
43
- /** Destroy the component */
52
+ /**
53
+ * Destroys the component, ensuring that all plugins are properly destroyed as well.
54
+ */
44
55
  Component.prototype._destroy = function () {
45
56
  _super.prototype._destroy.call(this);
46
57
  this._destroyPlugins();
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/base/Component/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,oCAAmC;AAMnC;;GAEG;AACH;IAMU,6BAAoD;IAN9D;;IAkCA,CAAC;IAxBC,0BAA0B;IACnB,6BAAS,GAAhB,UAAuD,MAAS;QAC9D,IAAI,OAAO,IAAI,CAAC,QAAQ,KAAK,WAAW,EAAE;YACxC,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;SACpB;QAED,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAE3B,6CAA6C;QAC7C,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC;QACxB,MAAM,CAAC,IAAI,EAAE,CAAC;IAChB,CAAC;IAED,0BAA0B;IAClB,mCAAe,GAAvB;;QACE,MAAA,IAAI,CAAC,QAAQ,0CAAE,OAAO,CAAC,UAAC,MAAM,IAAK,OAAA,MAAM,CAAC,OAAO,EAAE,EAAhB,CAAgB,CAAC,CAAC;IACvD,CAAC;IAED,4BAA4B;IAClB,4BAAQ,GAAlB;QACE,iBAAM,QAAQ,WAAE,CAAC;QAEjB,IAAI,CAAC,eAAe,EAAE,CAAC;IACzB,CAAC;IACH,gBAAC;AAAD,CAAC,AAlCD,CAMU,eAAM,GA4Bf;AAlCY,8BAAS"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/base/Component/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,oCAAmC;AAMnC;;;GAGG;AACH;IAMU,6BAAoD;IAN9D;;IA+CA,CAAC;IAlCC;;;;;OAKG;IACI,6BAAS,GAAhB,UAAuD,MAAS;QAC9D,IAAI,OAAO,IAAI,CAAC,QAAQ,KAAK,WAAW,EAAE;YACxC,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;SACpB;QAED,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAE3B,6CAA6C;QAC7C,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC;QACxB,MAAM,CAAC,IAAI,EAAE,CAAC;IAChB,CAAC;IAED;;;OAGG;IACK,mCAAe,GAAvB;;QACE,MAAA,IAAI,CAAC,QAAQ,0CAAE,OAAO,CAAC,UAAC,MAAM,IAAK,OAAA,MAAM,CAAC,OAAO,EAAE,EAAhB,CAAgB,CAAC,CAAC;IACvD,CAAC;IAED;;OAEG;IACO,4BAAQ,GAAlB;QACE,iBAAM,QAAQ,WAAE,CAAC;QAEjB,IAAI,CAAC,eAAe,EAAE,CAAC;IACzB,CAAC;IACH,gBAAC;AAAD,CAAC,AA/CD,CAMU,eAAM,GAyCf;AA/CY,8BAAS"}
@@ -17,61 +17,56 @@ var MutableProps_1 = require("../MutableProps");
17
17
  var Callbacks_1 = require("../Callbacks");
18
18
  var getApp_1 = require("../../utils/internal/getApp");
19
19
  /**
20
- * Module base
20
+ * A base class for modules that handle responsive properties, event listeners, and custom callbacks.
21
+ * This class provides a structure for modules that can dynamically respond to viewport changes, property mutations, and various lifecycle events.
22
+ *
23
+ * @example
24
+ *
25
+ * interface IStaticProps extends NModule.IStaticProps {
26
+ * staticName: 'My name';
27
+ * }
28
+ *
29
+ * interface IChangeableProps extends NModule.IChangeableProps {
30
+ * weight: number;
31
+ * height: number;
32
+ * }
33
+ *
34
+ * interface ICallbacks extends NModule.ICallbacksTypes {}
35
+ *
36
+ * const module = new Module<IStaticProps, IChangeableProps, ICallbacks>({
37
+ * staticName: 'My name',
38
+ * weight: 70,
39
+ * height: 175,
40
+ * }, false);
41
+ *
42
+ * module.addResponsiveProps({
43
+ * breakpoint: 'viewport_phone',
44
+ * settings: {
45
+ * weight: 80,
46
+ * },
47
+ * });
48
+ *
49
+ * module.init();
50
+ *
51
+ * module.addCallback('propsMutate', () => console.log('mutate props'));
52
+ * module.addCallback('destroy', () => console.log('destroy'));
21
53
  */
22
54
  var Module = /** @class */ (function () {
23
55
  /**
24
- * @example
56
+ * Creates a new instance of the Module class.
25
57
  *
26
- * interface IStaticProps extends NModule.IStaticProps {
27
- * staticName: 'My name';
28
- * }
29
-
30
- * interface IChangeableProps extends NModule.IChangeableProps {
31
- * weight: number;
32
- * height: number;
33
- * }
34
-
35
- * interface ICallbacks extends NModule.ICallbacksTypes {}
36
-
37
- * const module = new Module<IStaticProps, IChangeableProps, ICallbacks>(
38
- * {
39
- * staticName: 'My name',
40
- * weight: 70,
41
- * height: 175,
42
- * },
43
- * false
44
- * );
45
-
46
- * module.addResponsiveProps({
47
- * breakpoint: 'viewport_phone',
48
- * settings: {
49
- * weight: 80,
50
- * },
51
- * });
52
-
53
- * module.init();
54
-
55
- * module.addCallback('propsMutate', () => console.log('mutate props'));
56
-
57
- * module.addCallback('destroy', () => console.log('destroy'));
58
+ * @param initialProps - The initial static and changeable properties to be used by the module.
59
+ * @param canInit - Whether to automatically initialize the module after construction. Set this to `false` if you want to add responsive properties before initializing.
58
60
  */
59
- function Module(
60
- /** Initial properties */
61
- initialProps,
62
- /**
63
- * Defines if you need to call {@linkcode Module.init} at the constructor's end.
64
- * If you want to add responsive properties, set this parameter to `false`.
65
- */
66
- canInit) {
61
+ function Module(initialProps, canInit) {
67
62
  if (canInit === void 0) { canInit = true; }
68
63
  var _this = this;
69
- /** The module is initialized */
64
+ /** Tracks whether the module has been initialized */
70
65
  this._isInitialized = false;
71
- /** The module is destroyed */
66
+ /** Tracks whether the module has been destroyed */
72
67
  this._isDestroyed = false;
73
68
  if (!(0, getApp_1.getApp)()) {
74
- throw new Error('Vevet.Application does not exist yet. Call "new Vevet.Application()" before using all the stuff');
69
+ throw new Error('Vevet.Application does not exist yet');
75
70
  }
76
71
  this._callbacks = new Callbacks_1.Callbacks();
77
72
  this._listeners = [];
@@ -84,13 +79,16 @@ var Module = /** @class */ (function () {
84
79
  }
85
80
  }
86
81
  /**
87
- * Get Default properties (should be extended)
82
+ * Retrieves the default properties for the module. This method is intended to be overridden in subclasses to provide default values for the module's properties.
88
83
  */
89
84
  Module.prototype._getDefaultProps = function () {
90
85
  return {};
91
86
  };
92
87
  Object.defineProperty(Module.prototype, "props", {
93
- /** Current properties */
88
+ /**
89
+ * The current properties of the module, which include both static and changeable properties.
90
+ * These can be retrieved dynamically during the module's lifecycle.
91
+ */
94
92
  get: function () {
95
93
  return this._mutableProps.props;
96
94
  },
@@ -98,7 +96,9 @@ var Module = /** @class */ (function () {
98
96
  configurable: true
99
97
  });
100
98
  Object.defineProperty(Module.prototype, "callbacks", {
101
- /** Module Callbacks */
99
+ /**
100
+ * Retrieves the module's registered callbacks.
101
+ */
102
102
  get: function () {
103
103
  return this._callbacks;
104
104
  },
@@ -106,7 +106,7 @@ var Module = /** @class */ (function () {
106
106
  configurable: true
107
107
  });
108
108
  Object.defineProperty(Module.prototype, "name", {
109
- /** Module name */
109
+ /** The name of the module, derived from the class name */
110
110
  get: function () {
111
111
  return this.constructor.name;
112
112
  },
@@ -114,7 +114,7 @@ var Module = /** @class */ (function () {
114
114
  configurable: true
115
115
  });
116
116
  Object.defineProperty(Module.prototype, "prefix", {
117
- /** Module prefix */
117
+ /** Optional prefix for class names used by the module */
118
118
  get: function () {
119
119
  return '';
120
120
  },
@@ -122,7 +122,9 @@ var Module = /** @class */ (function () {
122
122
  configurable: true
123
123
  });
124
124
  Object.defineProperty(Module.prototype, "isInitialized", {
125
- /** The module is initialized */
125
+ /**
126
+ * Checks if the module has been initialized.
127
+ */
126
128
  get: function () {
127
129
  return this._isInitialized;
128
130
  },
@@ -130,14 +132,20 @@ var Module = /** @class */ (function () {
130
132
  configurable: true
131
133
  });
132
134
  Object.defineProperty(Module.prototype, "isDestroyed", {
133
- /** The module is destroyed */
135
+ /**
136
+ * Checks if the module has been destroyed.
137
+ */
134
138
  get: function () {
135
139
  return this._isDestroyed;
136
140
  },
137
141
  enumerable: false,
138
142
  configurable: true
139
143
  });
140
- /** Add responsive rules */
144
+ /**
145
+ * Adds responsive property rules to the module. This must be done before initialization.
146
+ *
147
+ * @param rules - The responsive property rules to be added.
148
+ */
141
149
  Module.prototype.addResponsiveProps = function (rules) {
142
150
  if (this.isInitialized) {
143
151
  throw new Error('Responsive properties cannot be added after `init` is called');
@@ -146,7 +154,11 @@ var Module = /** @class */ (function () {
146
154
  this._mutableProps.addResponsiveProps(rules);
147
155
  }
148
156
  };
149
- /** Change module properties */
157
+ /**
158
+ * Updates the changeable properties of the module.
159
+ *
160
+ * @param props - The properties to be updated.
161
+ */
150
162
  Module.prototype.changeProps = function (props) {
151
163
  if (this.isDestroyed) {
152
164
  return;
@@ -155,12 +167,14 @@ var Module = /** @class */ (function () {
155
167
  this._callbacks.tbt('propsChange', undefined);
156
168
  };
157
169
  /**
158
- * This method is called on properties change
170
+ * This method is called internally when the module's properties change.
159
171
  */
160
172
  Module.prototype._onPropsMutate = function () {
161
173
  this._callbacks.tbt('propsMutate', undefined);
162
174
  };
163
- /** Initializes the class */
175
+ /**
176
+ * Initializes the module. Calls the internal `_init` method and marks the module as initialized.
177
+ */
164
178
  Module.prototype.init = function () {
165
179
  if (this.isInitialized) {
166
180
  return;
@@ -168,26 +182,49 @@ var Module = /** @class */ (function () {
168
182
  this._isInitialized = true;
169
183
  this._init();
170
184
  };
171
- /** Inner extra initialization */
185
+ /**
186
+ * Additional initialization logic that can be overridden in subclasses.
187
+ */
172
188
  Module.prototype._init = function () { };
173
- /** Add destroyable actions */
189
+ /**
190
+ * Adds an action to the list of actions to be executed when the module is destroyed.
191
+ *
192
+ * @param action - The function to execute during destruction.
193
+ */
174
194
  Module.prototype.addDestroyableAction = function (action) {
175
195
  this._destroyableActions.push(action);
176
196
  };
177
197
  /**
178
- * Add a viewport callback that will be removed on class destroy
198
+ * Adds a viewport callback that will be automatically removed when the module is destroyed.
199
+ *
200
+ * @param target - The viewport target (e.g., width or height).
201
+ * @param action - The callback function to execute when the viewport target changes.
202
+ * @param data - Additional data for the callback.
179
203
  */
180
204
  Module.prototype.addViewportCallback = function (target, action, data) {
181
205
  if (data === void 0) { data = {}; }
182
206
  var callback = (0, getApp_1.getApp)().viewport.callbacks.add(target, action, __assign(__assign({}, data), { name: this.constructor.name }));
183
207
  this.addDestroyableAction(function () { return callback.remove(); });
184
208
  };
185
- /** Add a module callback */
209
+ /**
210
+ * Adds a custom callback to the module.
211
+ *
212
+ * @param target - The event type to listen for (e.g., 'propsChange', 'destroy').
213
+ * @param action - The function to execute when the event is triggered.
214
+ * @param settings - Additional settings for the callback.
215
+ */
186
216
  Module.prototype.addCallback = function (target, action, settings) {
187
217
  if (settings === void 0) { settings = {}; }
188
218
  return this.callbacks.add(target, action, settings);
189
219
  };
190
- /** Add a DOM event listener */
220
+ /**
221
+ * Adds a DOM event listener that will be automatically removed when the module is destroyed.
222
+ *
223
+ * @param el - The target element for the event listener.
224
+ * @param target - The event type to listen for (e.g., 'click', 'resize').
225
+ * @param callback - The callback function to execute when the event is triggered.
226
+ * @param options - Additional options for the event listener.
227
+ */
191
228
  Module.prototype.addEventListener = function (el, target, callback, options) {
192
229
  var _this = this;
193
230
  var listener = (0, vevet_dom_1.addEventListener)(el, target, callback, options);
@@ -197,6 +234,12 @@ var Module = /** @class */ (function () {
197
234
  return listener.remove();
198
235
  } });
199
236
  };
237
+ /**
238
+ * Helper function to generate class names with the module's prefix.
239
+ *
240
+ * @param classNames - The class names to generate.
241
+ * @returns A string of class names with the module's prefix applied.
242
+ */
200
243
  Module.prototype.className = function () {
201
244
  var _this = this;
202
245
  var classNames = [];
@@ -205,7 +248,13 @@ var Module = /** @class */ (function () {
205
248
  }
206
249
  return classNames.map(function (value) { return "".concat(_this.prefix).concat(value); }).join(' ');
207
250
  };
208
- /** Toggle classList */
251
+ /**
252
+ * Toggles a class name on an element, and keeps track of it for removal when the module is destroyed.
253
+ *
254
+ * @param element - The target DOM element.
255
+ * @param className - The class name to toggle.
256
+ * @param isActive - Whether the class should be added or removed.
257
+ */
209
258
  Module.prototype.toggleClassName = function (element, className, isActive) {
210
259
  var isAlreadyExists = element.classList.contains(className);
211
260
  element.classList.toggle(className, isActive);
@@ -213,14 +262,19 @@ var Module = /** @class */ (function () {
213
262
  this._classNamesToRemove.push({ element: element, className: className });
214
263
  }
215
264
  };
216
- /** Destroy the module */
265
+ /**
266
+ * Destroys the module, cleaning up resources, callbacks, and event listeners.
267
+ */
217
268
  Module.prototype.destroy = function () {
218
269
  if (this.isDestroyed) {
219
270
  return;
220
271
  }
221
272
  this._destroy();
222
273
  };
223
- /** Destroy the module */
274
+ /**
275
+ * Internal method to handle the destruction of the module.
276
+ * It removes all callbacks, destroys properties, and cleans up event listeners and class names.
277
+ */
224
278
  Module.prototype._destroy = function () {
225
279
  this._callbacks.tbt('destroy', undefined);
226
280
  this._callbacks.destroy();
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/base/Module/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,uCAKmB;AAEnB,gDAA8D;AAC9D,0CAAqD;AAErD,kDAAiD;AAOjD;;GAEG;AACH;IAqEE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH;IACE,yBAAyB;IACzB,YAA4C;IAC5C;;;OAGG;IACH,OAAc;QAAd,wBAAA,EAAA,cAAc;QAPhB,iBAkCC;QAtFD,gCAAgC;QACxB,mBAAc,GAAG,KAAK,CAAC;QAO/B,8BAA8B;QACtB,iBAAY,GAAG,KAAK,CAAC;QAoD3B,IAAI,CAAC,IAAA,eAAM,GAAE,EAAE;YACb,M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AS,CAAC,MAAM,CAAC,SAAS,CAAC;QAAnC,CAAmC,CACpC,CAAC;QAEF,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;IAC3B,CAAC;IACH,aAAC;AAAD,CAAC,AA3SD,IA2SC;AA3SY,wBAAM"}
@@ -23,89 +23,60 @@ Object.defineProperty(exports, "__esModule", { value: true });
23
23
  exports.MutableProps = void 0;
24
24
  var getApp_1 = require("../../utils/internal/getApp");
25
25
  /**
26
- * A class for creating mutable properties that can change on window resize. <br><br>
27
- *
28
- * There are two ways to change properties:
29
- * - To set a resize-listener on window (or use {@linkcode Viewport}).
30
- * When the window is resized, change the properties with the help of
31
- * {@linkcode MutableProps.changeProps}
32
- *
33
- * - The second way is to use the MutableProps and add responsive properties
34
- * with help of {@linkcode MutableProps.addResponsiveProps}.
26
+ * A class for managing mutable properties that can change based on window size (responsive design).
27
+ * This allows certain properties to update dynamically when the window is resized or in response to manual changes.
35
28
  *
36
29
  * @example
37
30
  *
38
31
  * interface IStatic {
39
32
  * static: string;
40
33
  * }
41
-
34
+ *
42
35
  * interface IChangeable {
43
36
  * changeable: string;
44
37
  * }
45
-
38
+ *
46
39
  * const props = new MutableProps<IStatic, IChangeable>({
47
40
  * static: '',
48
41
  * changeable: 'something',
49
42
  * });
50
-
43
+ *
51
44
  * props.addResponsiveProps({
52
45
  * breakpoint: 'viewport_phone',
53
46
  * settings: {
54
47
  * changeable: 'phone',
55
48
  * },
56
49
  * });
57
-
50
+ *
58
51
  * props.changeProps({ changeable: 'changed' });
59
52
  */
60
53
  var MutableProps = /** @class */ (function () {
61
54
  /**
62
- * @example
63
- *
64
- * const static = {
65
- * myProp: true,
66
- * };
55
+ * Initializes the `MutableProps` instance with static and changeable properties,
56
+ * and sets up a mutation callback to be called when properties change.
67
57
  *
68
- * const responsive = [
69
- * {
70
- * breakpoint: 'm',
71
- * settings: {
72
- * myProp: false
73
- * }
74
- * }
75
- * ];
76
- *
77
- * const props = new MutableProps(static, responsive);
58
+ * @param initProps - Initial properties, including both static and changeable properties.
59
+ * @param _onMutate - Callback function triggered whenever the properties change.
60
+ * @param _name - The name used to identify the set of responsive properties.
78
61
  */
79
- function MutableProps(
80
- /**
81
- * The properties that were set while initialization.
82
- * These properties will nevet change.
83
- */
84
- _initProps,
85
- /**
86
- * A callback that is launched when properties are changed
87
- */
88
- _onMutate,
89
- /**
90
- * Name of the responsive properties.
91
- */
92
- _name) {
62
+ function MutableProps(initProps, _onMutate, _name) {
93
63
  if (_onMutate === void 0) { _onMutate = function () { }; }
94
64
  if (_name === void 0) { _name = 'Responsive Props'; }
95
- this._initProps = _initProps;
96
65
  this._onMutate = _onMutate;
97
66
  this._name = _name;
98
67
  /**
99
- * A set of responsive rules
68
+ * A set of responsive rules defining how properties should change based on viewport size or device type.
69
+ * Each rule is defined by a breakpoint and corresponding property settings.
100
70
  */
101
71
  this._responsiveRules = [];
102
- this._refProps = __assign({}, _initProps);
103
- this._props = __assign({}, _initProps);
72
+ this._refProps = __assign({}, initProps);
73
+ this._props = __assign({}, initProps);
104
74
  this._activeBreakpoints = [];
105
75
  }
106
76
  Object.defineProperty(MutableProps.prototype, "props", {
107
77
  /**
108
- * Get current properties
78
+ * Retrieves the current properties.
79
+ * These may change either due to responsive rules or through manual updates.
109
80
  */
110
81
  get: function () {
111
82
  return this._props;
@@ -114,18 +85,21 @@ var MutableProps = /** @class */ (function () {
114
85
  configurable: true
115
86
  });
116
87
  /**
117
- * Add responsive rules
88
+ * Adds responsive rules that define how the properties should change based on viewport breakpoints.
89
+ *
90
+ * @param rules - Responsive rules specifying breakpoints and corresponding property settings.
118
91
  */
119
92
  MutableProps.prototype.addResponsiveProps = function (rules) {
120
93
  this._responsiveRules.push(rules);
121
94
  this._responseProps();
122
- if (typeof this._viewportCallback !== 'undefined') {
95
+ if (this._viewportCallback) {
123
96
  return;
124
97
  }
125
98
  this._viewportCallback = (0, getApp_1.getApp)().viewport.callbacks.add('width', this._responseProps.bind(this), { name: this._name });
126
99
  };
127
100
  /**
128
- * Change properties according to the "responsive" settings
101
+ * Handles updating the properties based on the current viewport size.
102
+ * It checks all responsive rules and applies the appropriate settings for active breakpoints.
129
103
  */
130
104
  MutableProps.prototype._responseProps = function () {
131
105
  var _this = this;
@@ -135,8 +109,7 @@ var MutableProps = /** @class */ (function () {
135
109
  var statProp = __assign({}, this._refProps);
136
110
  var prevActiveBreakpointsString = __spreadArray([], this._activeBreakpoints, true).join('_');
137
111
  this._activeBreakpoints = [];
138
- // go through all breakpoints
139
- // and check if a proper breakpoint exists
112
+ // Evaluate each responsive rule to see if it should be applied
140
113
  this._responsiveRules.forEach(function (_a) {
141
114
  var settings = _a.settings, breakpoint = _a.breakpoint;
142
115
  if (typeof breakpoint === 'number') {
@@ -173,13 +146,15 @@ var MutableProps = /** @class */ (function () {
173
146
  // otherwise, change the properties
174
147
  this._props = __assign(__assign({}, this._props), newProps);
175
148
  }
176
- // callback
149
+ // Call the mutation callback if properties have changed
177
150
  if (isPropsChanged) {
178
151
  this._onMutate();
179
152
  }
180
153
  };
181
154
  /**
182
- * This method allows you to change the properties manually.
155
+ * Manually changes the properties. The updated properties persist and trigger the mutation callback.
156
+ *
157
+ * @param props - A partial set of changeable properties to be updated.
183
158
  */
184
159
  MutableProps.prototype.changeProps = function (props) {
185
160
  this._props = __assign(__assign({}, this._props), props);
@@ -187,7 +162,7 @@ var MutableProps = /** @class */ (function () {
187
162
  this._onMutate();
188
163
  };
189
164
  /**
190
- * Destroy the responsive properties.
165
+ * Cleans up and destroys the responsive properties.
191
166
  */
192
167
  MutableProps.prototype.destroy = function () {
193
168
  if (this._viewportCallback) {
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/base/MutableProps/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAiD;AAMjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH;IA6CE;;;;;;;;;;;;;;;;;OAiBG;IACH;IACE;;;OA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AClB,uBAAuB,KAAK,2BAA2B,CAAC;QAE1D,8CAA8C;QAC9C,IAAI,CAAC,QAAQ,EAAE;YACb,IAAI,CAAC,MAAM,yBAAQ,IAAI,CAAC,MAAM,GAAK,IAAI,CAAC,SAAS,CAAE,CAAC;SACrD;aAAM;YACL,mCAAmC;YACnC,IAAI,CAAC,MAAM,yBAAQ,IAAI,CAAC,MAAM,GAAM,QAAgB,CAAE,CAAC;SACxD;QAED,wDAAwD;QACxD,IAAI,cAAc,EAAE;YAClB,IAAI,CAAC,SAAS,EAAE,CAAC;SAClB;IACH,CAAC;IAED;;;;OAIG;IACI,kCAAW,GAAlB,UAAmB,KAA+B;QAChD,IAAI,CAAC,MAAM,yBAAQ,IAAI,CAAC,MAAM,GAAK,KAAK,CAAE,CAAC;QAC3C,IAAI,CAAC,SAAS,yBAAQ,IAAI,CAAC,SAAS,GAAK,KAAK,CAAE,CAAC;QAEjD,IAAI,CAAC,SAAS,EAAE,CAAC;IACnB,CAAC;IAED;;OAEG;IACI,8BAAO,GAAd;QACE,IAAI,IAAI,CAAC,iBAAiB,EAAE;YAC1B,IAAI,CAAC,iBAAiB,CAAC,MAAM,EAAE,CAAC;SACjC;IACH,CAAC;IACH,mBAAC;AAAD,CAAC,AAlKD,IAkKC;AAlKY,oCAAY"}
@@ -18,23 +18,42 @@ Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.Plugin = void 0;
19
19
  var Module_1 = require("../Module");
20
20
  /**
21
- * A class for Plugins.
21
+ * A base abstract class for Plugins that extend the functionality of components.
22
+ * A plugin is designed to attach to a component and modify or enhance its behavior.
23
+ * It inherits from the {@link Module} class and adds functionality to work with a component.
22
24
  */
23
25
  var Plugin = /** @class */ (function (_super) {
24
26
  __extends(Plugin, _super);
27
+ /**
28
+ * Constructs the plugin.
29
+ *
30
+ * @param initialProps - Initial static and changeable properties for the plugin.
31
+ */
25
32
  function Plugin(initialProps) {
26
33
  return _super.call(this, initialProps, false) || this;
27
34
  }
28
35
  Object.defineProperty(Plugin.prototype, "component", {
36
+ /**
37
+ * Retrieves the component to which this plugin is attached.
38
+ */
29
39
  get: function () {
30
40
  return this._component;
31
41
  },
42
+ /**
43
+ * Sets the component for this plugin. This method is called by the parent component when the plugin is added.
44
+ */
32
45
  set: function (value) {
33
46
  this._component = value;
34
47
  },
35
48
  enumerable: false,
36
49
  configurable: true
37
50
  });
51
+ /**
52
+ * Initializes the plugin and ensures it is properly associated with a component.
53
+ * If the component is not set before calling `init`, it throws an error.
54
+ *
55
+ * @throws {Error} If `component` is not set.
56
+ */
38
57
  Plugin.prototype.init = function () {
39
58
  if (!this.component) {
40
59
  throw new Error('Component is unknown. Be sure that `plugin.component` is non-nullable.');
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/base/Plugin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,oCAAmC;AAKnC;;GAEG;AACH;IAKU,0BAAoD;IAC5D,gBAAY,YAA4C;eACtD,kBAAM,YAAY,EAAE,KAAK,CAAC;IAC5B,CAAC;IAID,sBAAI,6BAAS;aAAb;YACE,OAAO,IAAI,CAAC,UAAU,CAAC;QACzB,CAAC;aAED,UAAc,KAAK;YACjB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC1B,CAAC;;;OAJA;IAMM,qBAAI,GAAX;QACE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;YACnB,MAAM,IAAI,KAAK,CACb,wEAAwE,CACzE,CAAC;SACH;QAED,iBAAM,IAAI,WAAE,CAAC;IACf,CAAC;IACH,aAAC;AAAD,CAAC,AA7BD,CAKU,eAAM,GAwBf;AA7BqB,wBAAM"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/base/Plugin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,oCAAmC;AAKnC;;;;GAIG;AACH;IAKU,0BAAoD;IAC5D;;;;OAIG;IACH,gBAAY,YAA4C;eACtD,kBAAM,YAAY,EAAE,KAAK,CAAC;IAC5B,CAAC;IAWD,sBAAI,6BAAS;QAHb;;WAEG;aACH;YACE,OAAO,IAAI,CAAC,UAAU,CAAC;QACzB,CAAC;QAED;;WAEG;aACH,UAAc,KAAK;YACjB,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;QAC1B,CAAC;;;OAPA;IASD;;;;;OAKG;IACI,qBAAI,GAAX;QACE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;YACnB,MAAM,IAAI,KAAK,CACb,wEAAwE,CACzE,CAAC;SACH;QAED,iBAAM,IAAI,WAAE,CAAC;IACf,CAAC;IACH,aAAC;AAAD,CAAC,AAlDD,CAKU,eAAM,GA6Cf;AAlDqB,wBAAM"}