vevet 3.0.0-beta.7 → 3.0.0-beta.8

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 (221) hide show
  1. package/lib/cjs/utils/common/index.js +1 -0
  2. package/lib/cjs/utils/common/index.js.map +1 -1
  3. package/lib/cjs/utils/common/objectKeys.js +9 -0
  4. package/lib/cjs/utils/common/objectKeys.js.map +1 -0
  5. package/lib/cjs/utils/image/pathsToProps.js +1 -1
  6. package/lib/cjs/utils/image/pathsToProps.js.map +1 -1
  7. package/lib/cjs/utils/scroll/normalizeWheel.js +3 -1
  8. package/lib/cjs/utils/scroll/normalizeWheel.js.map +1 -1
  9. package/lib/cjs/version.js +1 -1
  10. package/lib/esm/utils/common/index.js +1 -0
  11. package/lib/esm/utils/common/index.js.map +1 -1
  12. package/lib/esm/utils/common/objectKeys.js +5 -0
  13. package/lib/esm/utils/common/objectKeys.js.map +1 -0
  14. package/lib/esm/utils/image/pathsToProps.js +1 -1
  15. package/lib/esm/utils/image/pathsToProps.js.map +1 -1
  16. package/lib/esm/utils/scroll/normalizeWheel.js +3 -1
  17. package/lib/esm/utils/scroll/normalizeWheel.js.map +1 -1
  18. package/lib/esm/version.js +1 -1
  19. package/lib/types/Application/events/PageLoad/index.d.ts +0 -1
  20. package/lib/types/Application/events/PageLoad/types.d.ts +0 -1
  21. package/lib/types/Application/events/Viewport/index.d.ts +0 -1
  22. package/lib/types/Application/events/Viewport/types.d.ts +0 -1
  23. package/lib/types/Application/index.d.ts +0 -1
  24. package/lib/types/Application/types.d.ts +0 -1
  25. package/lib/types/base/Callbacks/index.d.ts +0 -1
  26. package/lib/types/base/Callbacks/types.d.ts +0 -1
  27. package/lib/types/base/Component/index.d.ts +0 -1
  28. package/lib/types/base/Component/types.d.ts +0 -1
  29. package/lib/types/base/Module/index.d.ts +0 -1
  30. package/lib/types/base/Module/types.d.ts +0 -1
  31. package/lib/types/base/MutableProps/index.d.ts +0 -1
  32. package/lib/types/base/MutableProps/types.d.ts +0 -1
  33. package/lib/types/base/Plugin/index.d.ts +0 -1
  34. package/lib/types/base/Plugin/types.d.ts +0 -1
  35. package/lib/types/base/index.d.ts +0 -1
  36. package/lib/types/components/AnimationFrame/index.d.ts +0 -1
  37. package/lib/types/components/AnimationFrame/types.d.ts +0 -1
  38. package/lib/types/components/BaseTimeline/index.d.ts +0 -1
  39. package/lib/types/components/BaseTimeline/types.d.ts +0 -1
  40. package/lib/types/components/Ctx2D/index.d.ts +0 -1
  41. package/lib/types/components/Ctx2D/types.d.ts +0 -1
  42. package/lib/types/components/Ctx2DPrerender/index.d.ts +0 -1
  43. package/lib/types/components/Ctx2DPrerender/types.d.ts +0 -1
  44. package/lib/types/components/CustomCursor/index.d.ts +0 -1
  45. package/lib/types/components/CustomCursor/types.d.ts +0 -1
  46. package/lib/types/components/DraggerBase/index.d.ts +0 -1
  47. package/lib/types/components/DraggerBase/types.d.ts +0 -1
  48. package/lib/types/components/DraggerDirection/index.d.ts +0 -1
  49. package/lib/types/components/DraggerDirection/types.d.ts +0 -1
  50. package/lib/types/components/DraggerMove/index.d.ts +0 -1
  51. package/lib/types/components/DraggerMove/types.d.ts +0 -1
  52. package/lib/types/components/Preloader/index.d.ts +0 -1
  53. package/lib/types/components/Preloader/types.d.ts +0 -1
  54. package/lib/types/components/ProgressPreloader/index.d.ts +0 -1
  55. package/lib/types/components/ProgressPreloader/types.d.ts +0 -1
  56. package/lib/types/components/ProgressPreloader/utils/preloadCustomElement.d.ts +0 -1
  57. package/lib/types/components/ProgressPreloader/utils/preloadImage.d.ts +0 -1
  58. package/lib/types/components/ProgressPreloader/utils/preloadVideo.d.ts +0 -1
  59. package/lib/types/components/ScrollBar/Bar/index.d.ts +0 -1
  60. package/lib/types/components/ScrollBar/Bar/types.d.ts +0 -1
  61. package/lib/types/components/ScrollBar/index.d.ts +0 -1
  62. package/lib/types/components/ScrollBar/types.d.ts +0 -1
  63. package/lib/types/components/ScrollView/index.d.ts +0 -1
  64. package/lib/types/components/ScrollView/types.d.ts +0 -1
  65. package/lib/types/components/SectionScrollProgress/index.d.ts +0 -1
  66. package/lib/types/components/SectionScrollProgress/types.d.ts +0 -1
  67. package/lib/types/components/SmoothScroll/AnimatonFrame.d.ts +0 -1
  68. package/lib/types/components/SmoothScroll/Elements.d.ts +0 -1
  69. package/lib/types/components/SmoothScroll/index.d.ts +0 -1
  70. package/lib/types/components/SmoothScroll/types.d.ts +0 -1
  71. package/lib/types/components/SmoothScrollDragPlugin/index.d.ts +0 -1
  72. package/lib/types/components/SmoothScrollDragPlugin/types.d.ts +0 -1
  73. package/lib/types/components/SmoothScrollKeyboardPlugin/index.d.ts +0 -1
  74. package/lib/types/components/SmoothScrollKeyboardPlugin/types.d.ts +0 -1
  75. package/lib/types/components/SplitText/index.d.ts +0 -1
  76. package/lib/types/components/SplitText/types.d.ts +0 -1
  77. package/lib/types/components/Timeline/index.d.ts +0 -1
  78. package/lib/types/components/Timeline/types.d.ts +0 -1
  79. package/lib/types/components/index.d.ts +0 -1
  80. package/lib/types/index.d.ts +0 -1
  81. package/lib/types/types/general.d.ts +0 -1
  82. package/lib/types/types/utility.d.ts +0 -1
  83. package/lib/types/utils/common/index.d.ts +1 -1
  84. package/lib/types/utils/common/mergeWithoutArrays.d.ts +0 -1
  85. package/lib/types/utils/common/normalizedTimeoutCallback.d.ts +0 -1
  86. package/lib/types/utils/common/objectKeys.d.ts +2 -0
  87. package/lib/types/utils/common/pickObjectProps.d.ts +0 -1
  88. package/lib/types/utils/common/times.d.ts +0 -1
  89. package/lib/types/utils/common/uid.d.ts +0 -1
  90. package/lib/types/utils/image/index.d.ts +0 -1
  91. package/lib/types/utils/image/load.d.ts +0 -1
  92. package/lib/types/utils/image/pathsToProps.d.ts +0 -1
  93. package/lib/types/utils/image/sizesToSrcSet.d.ts +0 -1
  94. package/lib/types/utils/index.d.ts +0 -1
  95. package/lib/types/utils/internal/fetchWebpSupport.d.ts +0 -1
  96. package/lib/types/utils/internal/getDeviceInfo.d.ts +0 -1
  97. package/lib/types/utils/listeners/index.d.ts +0 -1
  98. package/lib/types/utils/listeners/isIntersectionObserverSupported.d.ts +0 -1
  99. package/lib/types/utils/listeners/onResize.d.ts +0 -1
  100. package/lib/types/utils/math/clamp.d.ts +0 -1
  101. package/lib/types/utils/math/clampScope.d.ts +0 -1
  102. package/lib/types/utils/math/easing.d.ts +0 -1
  103. package/lib/types/utils/math/inScope.d.ts +0 -1
  104. package/lib/types/utils/math/index.d.ts +0 -1
  105. package/lib/types/utils/math/lerp.d.ts +0 -1
  106. package/lib/types/utils/math/normalizeNestedScope.d.ts +0 -1
  107. package/lib/types/utils/math/scoped.d.ts +0 -1
  108. package/lib/types/utils/math/spreadScope.d.ts +0 -1
  109. package/lib/types/utils/math/wrap.d.ts +0 -1
  110. package/lib/types/utils/scroll/getScrollValues.d.ts +0 -1
  111. package/lib/types/utils/scroll/index.d.ts +0 -1
  112. package/lib/types/utils/scroll/normalizeWheel.d.ts +3 -2
  113. package/lib/types/utils/scroll/onScroll.d.ts +0 -1
  114. package/lib/types/utils/scroll/scrollTo.d.ts +0 -1
  115. package/lib/types/utils/scroll/scrollToElement.d.ts +0 -1
  116. package/lib/types/version.d.ts +1 -2
  117. package/lib/types/vevet.d.ts +0 -1
  118. package/package.json +1 -1
  119. package/src/utils/common/index.ts +1 -0
  120. package/src/utils/common/objectKeys.ts +4 -0
  121. package/src/utils/image/pathsToProps.ts +1 -1
  122. package/src/utils/scroll/normalizeWheel.ts +3 -1
  123. package/src/version.ts +1 -1
  124. package/lib/types/Application/events/PageLoad/index.d.ts.map +0 -1
  125. package/lib/types/Application/events/PageLoad/types.d.ts.map +0 -1
  126. package/lib/types/Application/events/Viewport/index.d.ts.map +0 -1
  127. package/lib/types/Application/events/Viewport/types.d.ts.map +0 -1
  128. package/lib/types/Application/index.d.ts.map +0 -1
  129. package/lib/types/Application/types.d.ts.map +0 -1
  130. package/lib/types/base/Callbacks/index.d.ts.map +0 -1
  131. package/lib/types/base/Callbacks/types.d.ts.map +0 -1
  132. package/lib/types/base/Component/index.d.ts.map +0 -1
  133. package/lib/types/base/Component/types.d.ts.map +0 -1
  134. package/lib/types/base/Module/index.d.ts.map +0 -1
  135. package/lib/types/base/Module/types.d.ts.map +0 -1
  136. package/lib/types/base/MutableProps/index.d.ts.map +0 -1
  137. package/lib/types/base/MutableProps/types.d.ts.map +0 -1
  138. package/lib/types/base/Plugin/index.d.ts.map +0 -1
  139. package/lib/types/base/Plugin/types.d.ts.map +0 -1
  140. package/lib/types/base/index.d.ts.map +0 -1
  141. package/lib/types/components/AnimationFrame/index.d.ts.map +0 -1
  142. package/lib/types/components/AnimationFrame/types.d.ts.map +0 -1
  143. package/lib/types/components/BaseTimeline/index.d.ts.map +0 -1
  144. package/lib/types/components/BaseTimeline/types.d.ts.map +0 -1
  145. package/lib/types/components/Ctx2D/index.d.ts.map +0 -1
  146. package/lib/types/components/Ctx2D/types.d.ts.map +0 -1
  147. package/lib/types/components/Ctx2DPrerender/index.d.ts.map +0 -1
  148. package/lib/types/components/Ctx2DPrerender/types.d.ts.map +0 -1
  149. package/lib/types/components/CustomCursor/index.d.ts.map +0 -1
  150. package/lib/types/components/CustomCursor/types.d.ts.map +0 -1
  151. package/lib/types/components/DraggerBase/index.d.ts.map +0 -1
  152. package/lib/types/components/DraggerBase/types.d.ts.map +0 -1
  153. package/lib/types/components/DraggerDirection/index.d.ts.map +0 -1
  154. package/lib/types/components/DraggerDirection/types.d.ts.map +0 -1
  155. package/lib/types/components/DraggerMove/index.d.ts.map +0 -1
  156. package/lib/types/components/DraggerMove/types.d.ts.map +0 -1
  157. package/lib/types/components/Preloader/index.d.ts.map +0 -1
  158. package/lib/types/components/Preloader/types.d.ts.map +0 -1
  159. package/lib/types/components/ProgressPreloader/index.d.ts.map +0 -1
  160. package/lib/types/components/ProgressPreloader/types.d.ts.map +0 -1
  161. package/lib/types/components/ProgressPreloader/utils/preloadCustomElement.d.ts.map +0 -1
  162. package/lib/types/components/ProgressPreloader/utils/preloadImage.d.ts.map +0 -1
  163. package/lib/types/components/ProgressPreloader/utils/preloadVideo.d.ts.map +0 -1
  164. package/lib/types/components/ScrollBar/Bar/index.d.ts.map +0 -1
  165. package/lib/types/components/ScrollBar/Bar/types.d.ts.map +0 -1
  166. package/lib/types/components/ScrollBar/index.d.ts.map +0 -1
  167. package/lib/types/components/ScrollBar/types.d.ts.map +0 -1
  168. package/lib/types/components/ScrollView/index.d.ts.map +0 -1
  169. package/lib/types/components/ScrollView/types.d.ts.map +0 -1
  170. package/lib/types/components/SectionScrollProgress/index.d.ts.map +0 -1
  171. package/lib/types/components/SectionScrollProgress/types.d.ts.map +0 -1
  172. package/lib/types/components/SmoothScroll/AnimatonFrame.d.ts.map +0 -1
  173. package/lib/types/components/SmoothScroll/Elements.d.ts.map +0 -1
  174. package/lib/types/components/SmoothScroll/index.d.ts.map +0 -1
  175. package/lib/types/components/SmoothScroll/types.d.ts.map +0 -1
  176. package/lib/types/components/SmoothScrollDragPlugin/index.d.ts.map +0 -1
  177. package/lib/types/components/SmoothScrollDragPlugin/types.d.ts.map +0 -1
  178. package/lib/types/components/SmoothScrollKeyboardPlugin/index.d.ts.map +0 -1
  179. package/lib/types/components/SmoothScrollKeyboardPlugin/types.d.ts.map +0 -1
  180. package/lib/types/components/SplitText/index.d.ts.map +0 -1
  181. package/lib/types/components/SplitText/types.d.ts.map +0 -1
  182. package/lib/types/components/Timeline/index.d.ts.map +0 -1
  183. package/lib/types/components/Timeline/types.d.ts.map +0 -1
  184. package/lib/types/components/index.d.ts.map +0 -1
  185. package/lib/types/index.d.ts.map +0 -1
  186. package/lib/types/types/general.d.ts.map +0 -1
  187. package/lib/types/types/utility.d.ts.map +0 -1
  188. package/lib/types/utils/common/index.d.ts.map +0 -1
  189. package/lib/types/utils/common/mergeWithoutArrays.d.ts.map +0 -1
  190. package/lib/types/utils/common/normalizedTimeoutCallback.d.ts.map +0 -1
  191. package/lib/types/utils/common/pickObjectProps.d.ts.map +0 -1
  192. package/lib/types/utils/common/times.d.ts.map +0 -1
  193. package/lib/types/utils/common/uid.d.ts.map +0 -1
  194. package/lib/types/utils/image/index.d.ts.map +0 -1
  195. package/lib/types/utils/image/load.d.ts.map +0 -1
  196. package/lib/types/utils/image/pathsToProps.d.ts.map +0 -1
  197. package/lib/types/utils/image/sizesToSrcSet.d.ts.map +0 -1
  198. package/lib/types/utils/index.d.ts.map +0 -1
  199. package/lib/types/utils/internal/fetchWebpSupport.d.ts.map +0 -1
  200. package/lib/types/utils/internal/getDeviceInfo.d.ts.map +0 -1
  201. package/lib/types/utils/listeners/index.d.ts.map +0 -1
  202. package/lib/types/utils/listeners/isIntersectionObserverSupported.d.ts.map +0 -1
  203. package/lib/types/utils/listeners/onResize.d.ts.map +0 -1
  204. package/lib/types/utils/math/clamp.d.ts.map +0 -1
  205. package/lib/types/utils/math/clampScope.d.ts.map +0 -1
  206. package/lib/types/utils/math/easing.d.ts.map +0 -1
  207. package/lib/types/utils/math/inScope.d.ts.map +0 -1
  208. package/lib/types/utils/math/index.d.ts.map +0 -1
  209. package/lib/types/utils/math/lerp.d.ts.map +0 -1
  210. package/lib/types/utils/math/normalizeNestedScope.d.ts.map +0 -1
  211. package/lib/types/utils/math/scoped.d.ts.map +0 -1
  212. package/lib/types/utils/math/spreadScope.d.ts.map +0 -1
  213. package/lib/types/utils/math/wrap.d.ts.map +0 -1
  214. package/lib/types/utils/scroll/getScrollValues.d.ts.map +0 -1
  215. package/lib/types/utils/scroll/index.d.ts.map +0 -1
  216. package/lib/types/utils/scroll/normalizeWheel.d.ts.map +0 -1
  217. package/lib/types/utils/scroll/onScroll.d.ts.map +0 -1
  218. package/lib/types/utils/scroll/scrollTo.d.ts.map +0 -1
  219. package/lib/types/utils/scroll/scrollToElement.d.ts.map +0 -1
  220. package/lib/types/version.d.ts.map +0 -1
  221. package/lib/types/vevet.d.ts.map +0 -1
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./mergeWithoutArrays"), exports);
18
18
  __exportStar(require("./normalizedTimeoutCallback"), exports);
19
+ __exportStar(require("./objectKeys"), exports);
19
20
  __exportStar(require("./pickObjectProps"), exports);
20
21
  __exportStar(require("./uid"), exports);
21
22
  __exportStar(require("./times"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/utils/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,8DAA4C;AAC5C,oDAAkC;AAClC,wCAAsB;AACtB,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/utils/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,8DAA4C;AAC5C,+CAA6B;AAC7B,oDAAkC;AAClC,wCAAsB;AACtB,0CAAwB"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.objectKeys = void 0;
4
+ /** Get object keys */
5
+ function objectKeys(object) {
6
+ return Object.keys(object);
7
+ }
8
+ exports.objectKeys = objectKeys;
9
+ //# sourceMappingURL=objectKeys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"objectKeys.js","sourceRoot":"","sources":["../../../../src/utils/common/objectKeys.ts"],"names":[],"mappings":";;;AAAA,sBAAsB;AACtB,SAAgB,UAAU,CAAI,MAAS;IACrC,OAAO,MAAM,CAAC,IAAI,CAAC,MAAa,CAAQ,CAAC;AAC3C,CAAC;AAFD,gCAEC"}
@@ -38,7 +38,7 @@ var sizesToSrcSet_1 = require("./sizesToSrcSet");
38
38
  * // => {"src":"/thumb.webp","srcSet":"/640.webp 640w, /750.webp 750w, /1024.webp 1024w, /1440.webp 1440w, /1920.webp 1920w, /2560.webp 2560w"}
39
39
  */
40
40
  function imagePathsToProps(data) {
41
- var app = window.vevetApp;
41
+ var app = typeof window !== 'undefined' ? window.vevetApp : undefined;
42
42
  // get src
43
43
  var src = data.original;
44
44
  if (data.thumb) {
@@ -1 +1 @@
1
- {"version":3,"file":"pathsToProps.js","sourceRoot":"","sources":["../../../../src/utils/image/pathsToProps.ts"],"names":[],"mappings":";;;AAAA,iDAAqD;AAerD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,SAAgB,iBAAiB,CAAC,IAAuC;IACvE,IAAM,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC;IAE5B,UAAU;IACV,IAAI,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC;IACxB,IAAI,IAAI,CAAC,KAAK,EAAE;QACd,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC;KAClB;IACD,IAAI,GAAG,IAAI,GAAG,CAAC,eAAe,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE;QAClD,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC;KACtB;IAED,cAAc;IACd,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,kBAAkB;IAClB,IAAI,GAAG,IAAI,GAAG,CAAC,eAAe,IAAI,WAAW,IAAI,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE;QACzE,MAAM,GAAG,IAAA,kCAAkB,EAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KAC7C;SAAM,IAAI,OAAO,IAAI,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE;QAC1C,MAAM,GAAG,IAAA,kCAAkB,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACzC;IAED,OAAO;QACL,GAAG,KAAA;QACH,MAAM,QAAA;KACP,CAAC;AACJ,CAAC;AAzBD,8CAyBC"}
1
+ {"version":3,"file":"pathsToProps.js","sourceRoot":"","sources":["../../../../src/utils/image/pathsToProps.ts"],"names":[],"mappings":";;;AAAA,iDAAqD;AAerD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,SAAgB,iBAAiB,CAAC,IAAuC;IACvE,IAAM,GAAG,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;IAExE,UAAU;IACV,IAAI,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC;IACxB,IAAI,IAAI,CAAC,KAAK,EAAE;QACd,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC;KAClB;IACD,IAAI,GAAG,IAAI,GAAG,CAAC,eAAe,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE;QAClD,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC;KACtB;IAED,cAAc;IACd,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,kBAAkB;IAClB,IAAI,GAAG,IAAI,GAAG,CAAC,eAAe,IAAI,WAAW,IAAI,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE;QACzE,MAAM,GAAG,IAAA,kCAAkB,EAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KAC7C;SAAM,IAAI,OAAO,IAAI,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE;QAC1C,MAAM,GAAG,IAAA,kCAAkB,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACzC;IAED,OAAO;QACL,GAAG,KAAA;QACH,MAAM,QAAA;KACP,CAAC;AACJ,CAAC;AAzBD,8CAyBC"}
@@ -6,7 +6,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.normalizeWheel = void 0;
7
7
  var normalize_wheel_1 = __importDefault(require("normalize-wheel"));
8
8
  /**
9
- * Normalize wheel delta
9
+ * Normalize wheel delta. This function is reexported from `normalize-wheel` for convenience.
10
+ *
11
+ * @see https://www.npmjs.com/package/normalize-wheel
10
12
  *
11
13
  * @example
12
14
  *
@@ -1 +1 @@
1
- {"version":3,"file":"normalizeWheel.js","sourceRoot":"","sources":["../../../../src/utils/scroll/normalizeWheel.ts"],"names":[],"mappings":";;;;;;AAAA,oEAAiD;AAEjD;;;;;;GAMG;AACH,SAAgB,cAAc,CAAC,KAAiB;IAC9C,OAAO,IAAA,yBAAkB,EAAC,KAAK,CAAC,CAAC;AACnC,CAAC;AAFD,wCAEC"}
1
+ {"version":3,"file":"normalizeWheel.js","sourceRoot":"","sources":["../../../../src/utils/scroll/normalizeWheel.ts"],"names":[],"mappings":";;;;;;AAAA,oEAAiD;AAEjD;;;;;;;;GAQG;AACH,SAAgB,cAAc,CAAC,KAAiB;IAC9C,OAAO,IAAA,yBAAkB,EAAC,KAAK,CAAC,CAAC;AACnC,CAAC;AAFD,wCAEC"}
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var version = '3.0.0-beta.7';
3
+ var version = '3.0.0-beta.8';
4
4
  exports.default = version;
5
5
  //# sourceMappingURL=version.js.map
@@ -1,5 +1,6 @@
1
1
  export * from './mergeWithoutArrays';
2
2
  export * from './normalizedTimeoutCallback';
3
+ export * from './objectKeys';
3
4
  export * from './pickObjectProps';
4
5
  export * from './uid';
5
6
  export * from './times';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/utils/common/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.js","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"}
@@ -0,0 +1,5 @@
1
+ /** Get object keys */
2
+ export function objectKeys(object) {
3
+ return Object.keys(object);
4
+ }
5
+ //# sourceMappingURL=objectKeys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"objectKeys.js","sourceRoot":"","sources":["../../../../src/utils/common/objectKeys.ts"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,MAAM,UAAU,UAAU,CAAI,MAAS;IACrC,OAAO,MAAM,CAAC,IAAI,CAAC,MAAa,CAAQ,CAAC;AAC3C,CAAC"}
@@ -35,7 +35,7 @@ import { imageSizesToSrcSet } from './sizesToSrcSet';
35
35
  * // => {"src":"/thumb.webp","srcSet":"/640.webp 640w, /750.webp 750w, /1024.webp 1024w, /1440.webp 1440w, /1920.webp 1920w, /2560.webp 2560w"}
36
36
  */
37
37
  export function imagePathsToProps(data) {
38
- const app = window.vevetApp;
38
+ const app = typeof window !== 'undefined' ? window.vevetApp : undefined;
39
39
  // get src
40
40
  let src = data.original;
41
41
  if (data.thumb) {
@@ -1 +1 @@
1
- {"version":3,"file":"pathsToProps.js","sourceRoot":"","sources":["../../../../src/utils/image/pathsToProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAerD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAuC;IACvE,MAAM,GAAG,GAAG,MAAM,CAAC,QAAQ,CAAC;IAE5B,UAAU;IACV,IAAI,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC;IACxB,IAAI,IAAI,CAAC,KAAK,EAAE;QACd,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC;KAClB;IACD,IAAI,GAAG,IAAI,GAAG,CAAC,eAAe,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE;QAClD,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC;KACtB;IAED,cAAc;IACd,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,kBAAkB;IAClB,IAAI,GAAG,IAAI,GAAG,CAAC,eAAe,IAAI,WAAW,IAAI,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE;QACzE,MAAM,GAAG,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KAC7C;SAAM,IAAI,OAAO,IAAI,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE;QAC1C,MAAM,GAAG,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACzC;IAED,OAAO;QACL,GAAG;QACH,MAAM;KACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"pathsToProps.js","sourceRoot":"","sources":["../../../../src/utils/image/pathsToProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAerD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAM,UAAU,iBAAiB,CAAC,IAAuC;IACvE,MAAM,GAAG,GAAG,OAAO,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;IAExE,UAAU;IACV,IAAI,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC;IACxB,IAAI,IAAI,CAAC,KAAK,EAAE;QACd,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC;KAClB;IACD,IAAI,GAAG,IAAI,GAAG,CAAC,eAAe,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE;QAClD,GAAG,GAAG,IAAI,CAAC,SAAS,CAAC;KACtB;IAED,cAAc;IACd,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,kBAAkB;IAClB,IAAI,GAAG,IAAI,GAAG,CAAC,eAAe,IAAI,WAAW,IAAI,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE;QACzE,MAAM,GAAG,kBAAkB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KAC7C;SAAM,IAAI,OAAO,IAAI,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE;QAC1C,MAAM,GAAG,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACzC;IAED,OAAO;QACL,GAAG;QACH,MAAM;KACP,CAAC;AACJ,CAAC"}
@@ -1,6 +1,8 @@
1
1
  import normalizeWheelFunc from 'normalize-wheel';
2
2
  /**
3
- * Normalize wheel delta
3
+ * Normalize wheel delta. This function is reexported from `normalize-wheel` for convenience.
4
+ *
5
+ * @see https://www.npmjs.com/package/normalize-wheel
4
6
  *
5
7
  * @example
6
8
  *
@@ -1 +1 @@
1
- {"version":3,"file":"normalizeWheel.js","sourceRoot":"","sources":["../../../../src/utils/scroll/normalizeWheel.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,iBAAiB,CAAC;AAEjD;;;;;;GAMG;AACH,MAAM,UAAU,cAAc,CAAC,KAAiB;IAC9C,OAAO,kBAAkB,CAAC,KAAK,CAAC,CAAC;AACnC,CAAC"}
1
+ {"version":3,"file":"normalizeWheel.js","sourceRoot":"","sources":["../../../../src/utils/scroll/normalizeWheel.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,MAAM,iBAAiB,CAAC;AAEjD;;;;;;;;GAQG;AACH,MAAM,UAAU,cAAc,CAAC,KAAiB;IAC9C,OAAO,kBAAkB,CAAC,KAAK,CAAC,CAAC;AACnC,CAAC"}
@@ -1,3 +1,3 @@
1
- const version = '3.0.0-beta.7';
1
+ const version = '3.0.0-beta.8';
2
2
  export default version;
3
3
  //# sourceMappingURL=version.js.map
@@ -22,4 +22,3 @@ export declare class PageLoad extends Callbacks<NPageLoad.ICallbacksTypes> {
22
22
  onLoad(callback: () => void): import("../../../base/Callbacks").NCallbacks.IAddedCallback | undefined;
23
23
  destroy(): void;
24
24
  }
25
- //# sourceMappingURL=index.d.ts.map
@@ -4,4 +4,3 @@ export declare namespace NPageLoad {
4
4
  loaded: undefined;
5
5
  }
6
6
  }
7
- //# sourceMappingURL=types.d.ts.map
@@ -56,4 +56,3 @@ export declare class Viewport extends Callbacks<NViewport.ICallbacksTypes> {
56
56
  forceResize(): void;
57
57
  destroy(): void;
58
58
  }
59
- //# sourceMappingURL=index.d.ts.map
@@ -49,4 +49,3 @@ export declare enum EOrientationTypes {
49
49
  Landscape = "landscape",
50
50
  Portrait = "portrait"
51
51
  }
52
- //# sourceMappingURL=types.d.ts.map
@@ -74,4 +74,3 @@ declare global {
74
74
  vevetApp: Application;
75
75
  }
76
76
  }
77
- //# sourceMappingURL=index.d.ts.map
@@ -34,4 +34,3 @@ export declare namespace NApplication {
34
34
  hasWebpSupportCheck: boolean;
35
35
  }
36
36
  }
37
- //# sourceMappingURL=types.d.ts.map
@@ -76,4 +76,3 @@ export declare class Callbacks<Types extends NCallbacks.ITypes = NCallbacks.ITyp
76
76
  /** Destroy the callbacks */
77
77
  destroy(): void;
78
78
  }
79
- //# sourceMappingURL=index.d.ts.map
@@ -38,4 +38,3 @@ export declare namespace NCallbacks {
38
38
  remove: () => void;
39
39
  }
40
40
  }
41
- //# sourceMappingURL=types.d.ts.map
@@ -15,4 +15,3 @@ export declare class Component<StaticProps extends NComponent.IStaticProps = NCo
15
15
  /** Destroy the component */
16
16
  protected _destroy(): void;
17
17
  }
18
- //# sourceMappingURL=index.d.ts.map
@@ -10,4 +10,3 @@ export declare namespace NComponent {
10
10
  interface ICallbacksTypes extends NModule.ICallbacksTypes {
11
11
  }
12
12
  }
13
- //# sourceMappingURL=types.d.ts.map
@@ -123,4 +123,3 @@ export declare class Module<StaticProps extends NModule.IStaticProps = NModule.I
123
123
  /** Destroy the module */
124
124
  protected _destroy(): void;
125
125
  }
126
- //# sourceMappingURL=index.d.ts.map
@@ -21,4 +21,3 @@ export declare namespace NModule {
21
21
  className: string;
22
22
  }
23
23
  }
24
- //# sourceMappingURL=types.d.ts.map
@@ -137,4 +137,3 @@ ChangeableProps extends Record<string, any>> {
137
137
  */
138
138
  destroy(): void;
139
139
  }
140
- //# sourceMappingURL=index.d.ts.map
@@ -17,4 +17,3 @@ export declare namespace NMutableProps {
17
17
  settings: Partial<S>;
18
18
  }
19
19
  }
20
- //# sourceMappingURL=types.d.ts.map
@@ -11,4 +11,3 @@ export declare abstract class Plugin<StaticProps extends NPlugin.IStaticProps =
11
11
  set component(value: Component);
12
12
  init(): void;
13
13
  }
14
- //# sourceMappingURL=index.d.ts.map
@@ -7,4 +7,3 @@ export declare namespace NPlugin {
7
7
  interface ICallbacksTypes extends NModule.ICallbacksTypes {
8
8
  }
9
9
  }
10
- //# sourceMappingURL=types.d.ts.map
@@ -3,4 +3,3 @@ export * from './Component';
3
3
  export * from './Module';
4
4
  export * from './MutableProps';
5
5
  export * from './Plugin';
6
- //# sourceMappingURL=index.d.ts.map
@@ -47,4 +47,3 @@ export declare class AnimationFrame<StaticProps extends NAnimationFrame.IStaticP
47
47
  /** Destroy the animation frame */
48
48
  protected _destroy(): void;
49
49
  }
50
- //# sourceMappingURL=index.d.ts.map
@@ -26,4 +26,3 @@ export declare namespace NAnimationFrame {
26
26
  frame: undefined;
27
27
  }
28
28
  }
29
- //# sourceMappingURL=types.d.ts.map
@@ -34,4 +34,3 @@ export declare class BaseTimeline<StaticProps extends NBaseTimeline.IStaticProps
34
34
  /** Destroy the module */
35
35
  protected _destroy(): void;
36
36
  }
37
- //# sourceMappingURL=index.d.ts.map
@@ -31,4 +31,3 @@ export declare namespace NBaseTimeline {
31
31
  progress: IProgressParameter;
32
32
  }
33
33
  }
34
- //# sourceMappingURL=types.d.ts.map
@@ -52,4 +52,3 @@ export declare class Ctx2D<StaticProps extends NCtx2D.IStaticProps = NCtx2D.ISta
52
52
  /** Render the scene if possible */
53
53
  render(renderProp: NCtx2D.TRender): void;
54
54
  }
55
- //# sourceMappingURL=index.d.ts.map
@@ -68,4 +68,3 @@ export declare namespace NCtx2D {
68
68
  }
69
69
  type TRender = (props: IRenderProps) => void;
70
70
  }
71
- //# sourceMappingURL=types.d.ts.map
@@ -23,4 +23,3 @@ export declare class Ctx2DPrerender<StaticProps extends NCtx2DPrerender.IStaticP
23
23
  /** Prerender the scene */
24
24
  protected _prerender({ width, height, ctx }: NCtx2D.IRenderProps): void;
25
25
  }
26
- //# sourceMappingURL=index.d.ts.map
@@ -14,4 +14,3 @@ export declare namespace NCtx2DPrerender {
14
14
  prerender: undefined;
15
15
  }
16
16
  }
17
- //# sourceMappingURL=types.d.ts.map
@@ -91,4 +91,3 @@ export declare class CustomCursor<StaticProps extends NCustomCursor.IStaticProps
91
91
  /** Disable cursor animation */
92
92
  protected _disable(): void;
93
93
  }
94
- //# sourceMappingURL=index.d.ts.map
@@ -79,4 +79,3 @@ export declare namespace NCustomCursor {
79
79
  padding?: number;
80
80
  }
81
81
  }
82
- //# sourceMappingURL=types.d.ts.map
@@ -75,4 +75,3 @@ export declare abstract class DraggerBase<StaticProps extends NDraggerBase.IStat
75
75
  /** Destroy the module */
76
76
  protected _destroy(): void;
77
77
  }
78
- //# sourceMappingURL=index.d.ts.map
@@ -34,4 +34,3 @@ export declare namespace NDraggerBase {
34
34
  y: number;
35
35
  }
36
36
  }
37
- //# sourceMappingURL=types.d.ts.map
@@ -14,4 +14,3 @@ export declare class DraggerDirection<StaticProps extends NDraggerDirection.ISta
14
14
  /** Event on drag end */
15
15
  protected _handleEnd(event: NDraggerBase.TEvent): void;
16
16
  }
17
- //# sourceMappingURL=index.d.ts.map
@@ -16,4 +16,3 @@ export declare namespace NDraggerDirection {
16
16
  right: undefined;
17
17
  }
18
18
  }
19
- //# sourceMappingURL=types.d.ts.map
@@ -31,4 +31,3 @@ export declare class DraggerMove<StaticProps extends NDraggerMove.IStaticProps =
31
31
  /** Destroy the module */
32
32
  protected _destroy(): void;
33
33
  }
34
- //# sourceMappingURL=index.d.ts.map
@@ -19,4 +19,3 @@ export declare namespace NDraggerMove {
19
19
  diff: NDraggerBase.IVector2;
20
20
  }
21
21
  }
22
- //# sourceMappingURL=types.d.ts.map
@@ -51,4 +51,3 @@ export declare class Preloader<StaticProps extends NPreloader.IStaticProps = NPr
51
51
  /** Callback for the moment when the preloader is hidden */
52
52
  onHidden(action: () => void): import("../..").NCallbacks.IAddedCallback | undefined;
53
53
  }
54
- //# sourceMappingURL=index.d.ts.map
@@ -23,4 +23,3 @@ export declare namespace NPreloader {
23
23
  hidden: undefined;
24
24
  }
25
25
  }
26
- //# sourceMappingURL=types.d.ts.map
@@ -68,4 +68,3 @@ export declare class ProgressPreloader<StaticProps extends NProgressPreloader.IS
68
68
  /** Destroy the component */
69
69
  protected _destroy(): void;
70
70
  }
71
- //# sourceMappingURL=index.d.ts.map
@@ -73,4 +73,3 @@ export declare namespace NProgressPreloader {
73
73
  targetProgress: number;
74
74
  }
75
75
  }
76
- //# sourceMappingURL=types.d.ts.map
@@ -1,4 +1,3 @@
1
1
  import { Module } from '../../../base/Module';
2
2
  import { NProgressPreloader } from '../types';
3
3
  export declare function preloadCustomElement(data: NProgressPreloader.ICustomResourceData, instance: Module<any, any, any>): Promise<void>;
4
- //# sourceMappingURL=preloadCustomElement.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function preloadImage(imageProp: HTMLImageElement, action: (isSuccess: boolean) => void): void;
2
- //# sourceMappingURL=preloadImage.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function preloadVideo(video: HTMLVideoElement, action: (isSuccess: boolean) => void): void;
2
- //# sourceMappingURL=preloadVideo.d.ts.map
@@ -41,4 +41,3 @@ export default class Bar {
41
41
  resize(): void;
42
42
  destroy(): void;
43
43
  }
44
- //# sourceMappingURL=index.d.ts.map
@@ -26,4 +26,3 @@ export interface ICoords {
26
26
  scrollLeft: number;
27
27
  scrollTop: number;
28
28
  }
29
- //# sourceMappingURL=types.d.ts.map
@@ -40,4 +40,3 @@ export declare class ScrollBar<StaticProps extends NScrollBar.IStaticProps = NSc
40
40
  /** Destroy the module */
41
41
  protected _destroy(): void;
42
42
  }
43
- //# sourceMappingURL=index.d.ts.map
@@ -27,4 +27,3 @@ export declare namespace NScrollBar {
27
27
  }
28
28
  }
29
29
  export {};
30
- //# sourceMappingURL=types.d.ts.map
@@ -69,4 +69,3 @@ export declare class ScrollView<StaticProps extends NScrollView.IStaticProps = N
69
69
  /** Destroy the module */
70
70
  protected _destroy(): void;
71
71
  }
72
- //# sourceMappingURL=index.d.ts.map
@@ -68,4 +68,3 @@ export declare namespace NScrollView {
68
68
  isScrollViewIn?: boolean;
69
69
  }
70
70
  }
71
- //# sourceMappingURL=types.d.ts.map
@@ -64,4 +64,3 @@ export declare class SectionScrollProgress<StaticProps extends NScrollSectionPro
64
64
  /** Render the scene */
65
65
  protected _render(scrollValues: IGetScrollValues, isForce?: boolean): void;
66
66
  }
67
- //# sourceMappingURL=index.d.ts.map
@@ -30,4 +30,3 @@ export declare namespace NScrollSectionProgress {
30
30
  resize: undefined;
31
31
  }
32
32
  }
33
- //# sourceMappingURL=types.d.ts.map
@@ -17,4 +17,3 @@ export declare class AnimationFrame {
17
17
  destroy(): void;
18
18
  }
19
19
  export {};
20
- //# sourceMappingURL=AnimatonFrame.d.ts.map
@@ -27,4 +27,3 @@ export declare class Elements {
27
27
  destroy(): void;
28
28
  }
29
29
  export {};
30
- //# sourceMappingURL=Elements.d.ts.map
@@ -136,4 +136,3 @@ export declare class SmoothScroll<StaticProps extends NSmoothScroll.IStaticProps
136
136
  /** Destroy the module */
137
137
  protected _destroy(): void;
138
138
  }
139
- //# sourceMappingURL=index.d.ts.map
@@ -102,4 +102,3 @@ export declare namespace NSmoothScroll {
102
102
  smoothScrollLerp?: number;
103
103
  }
104
104
  }
105
- //# sourceMappingURL=types.d.ts.map
@@ -45,4 +45,3 @@ export declare class SmoothScrollDragPlugin<StaticProp extends NSmoothScrollDrag
45
45
  /** Destroy the plugin */
46
46
  protected _destroy(): void;
47
47
  }
48
- //# sourceMappingURL=index.d.ts.map
@@ -36,4 +36,3 @@ export declare namespace NSmoothScrollDragPlugin {
36
36
  end: undefined;
37
37
  }
38
38
  }
39
- //# sourceMappingURL=types.d.ts.map
@@ -25,4 +25,3 @@ export declare class SmoothScrollKeyboardPlugin<StaticProps extends NSmoothScrol
25
25
  /** Destroy the plugin */
26
26
  protected _destroy(): void;
27
27
  }
28
- //# sourceMappingURL=index.d.ts.map
@@ -9,4 +9,3 @@ export declare namespace NSmoothScrollKeyboardPlugin {
9
9
  interface ICallbacksTypes extends NPlugin.ICallbacksTypes {
10
10
  }
11
11
  }
12
- //# sourceMappingURL=types.d.ts.map
@@ -56,4 +56,3 @@ export declare class SplitText<StaticProps extends NSplitText.IStaticProps = NSp
56
56
  /** Destroy the module */
57
57
  protected _destroy(): void;
58
58
  }
59
- //# sourceMappingURL=index.d.ts.map
@@ -57,4 +57,3 @@ export declare namespace NSplitText {
57
57
  word: NSplitText.IWord;
58
58
  }
59
59
  }
60
- //# sourceMappingURL=types.d.ts.map
@@ -42,4 +42,3 @@ export declare class Timeline<StaticProps extends NTimeline.IStaticProps = NTime
42
42
  /** Destroy the timeline */
43
43
  protected _destroy(): void;
44
44
  }
45
- //# sourceMappingURL=index.d.ts.map
@@ -19,4 +19,3 @@ export declare namespace NTimeline {
19
19
  end: undefined;
20
20
  }
21
21
  }
22
- //# sourceMappingURL=types.d.ts.map
@@ -15,4 +15,3 @@ export * from './SmoothScrollDragPlugin';
15
15
  export * from './SmoothScrollKeyboardPlugin';
16
16
  export * from './SplitText';
17
17
  export * from './Timeline';
18
- //# sourceMappingURL=index.d.ts.map
@@ -3,4 +3,3 @@ export * from './utils';
3
3
  export * from './Application';
4
4
  export * from './base';
5
5
  export * from './components';
6
- //# sourceMappingURL=index.d.ts.map
@@ -13,4 +13,3 @@ export interface IScrollLike {
13
13
  scrollLeft: number;
14
14
  scrollTo(options: ScrollToOptions): void;
15
15
  }
16
- //# sourceMappingURL=general.d.ts.map
@@ -11,4 +11,3 @@ 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
@@ -1,6 +1,6 @@
1
1
  export * from './mergeWithoutArrays';
2
2
  export * from './normalizedTimeoutCallback';
3
+ export * from './objectKeys';
3
4
  export * from './pickObjectProps';
4
5
  export * from './uid';
5
6
  export * from './times';
6
- //# sourceMappingURL=index.d.ts.map
@@ -7,4 +7,3 @@
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
@@ -10,4 +10,3 @@
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,2 @@
1
+ /** Get object keys */
2
+ export declare function objectKeys<T>(object: T): (keyof T)[];
@@ -6,4 +6,3 @@
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
@@ -7,4 +7,3 @@
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
@@ -8,4 +8,3 @@
8
8
  * uid('0'); // => '0_3'
9
9
  */
10
10
  export declare function uid(prefix?: string): string;
11
- //# sourceMappingURL=uid.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export * from './sizesToSrcSet';
2
2
  export * from './pathsToProps';
3
3
  export * from './load';
4
- //# sourceMappingURL=index.d.ts.map
@@ -25,4 +25,3 @@ 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
@@ -46,4 +46,3 @@ export declare function imagePathsToProps(data: IImagePaths | IImageAdaptivePath
46
46
  src: string;
47
47
  srcSet: string;
48
48
  };
49
- //# sourceMappingURL=pathsToProps.d.ts.map
@@ -13,4 +13,3 @@
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