@studiometa/js-toolkit 2.0.0-beta.13 → 2.0.0-beta.17

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 (105) hide show
  1. package/Base/index.cjs +39 -38
  2. package/Base/index.js +60 -54
  3. package/Base/managers/ChildrenManager.cjs +15 -8
  4. package/Base/managers/ChildrenManager.js +15 -8
  5. package/Base/managers/EventsManager.cjs +50 -44
  6. package/Base/managers/EventsManager.js +50 -44
  7. package/Base/managers/OptionsManager.cjs +16 -14
  8. package/Base/managers/OptionsManager.js +35 -27
  9. package/Base/managers/RefsManager.cjs +10 -4
  10. package/Base/managers/RefsManager.js +10 -4
  11. package/Base/managers/ServicesManager.cjs +14 -8
  12. package/Base/managers/ServicesManager.js +14 -8
  13. package/Base/utils.cjs +1 -0
  14. package/decorators/index.cjs +1 -0
  15. package/decorators/withBreakpointManager.cjs +1 -0
  16. package/decorators/withBreakpointObserver.cjs +17 -11
  17. package/decorators/withBreakpointObserver.js +17 -11
  18. package/decorators/withDrag.cjs +12 -6
  19. package/decorators/withDrag.js +12 -6
  20. package/decorators/withExtraConfig.cjs +9 -3
  21. package/decorators/withExtraConfig.js +9 -3
  22. package/decorators/withIntersectionObserver.cjs +21 -15
  23. package/decorators/withIntersectionObserver.js +21 -15
  24. package/decorators/withMountWhenInView.cjs +24 -18
  25. package/decorators/withMountWhenInView.js +24 -18
  26. package/decorators/withScrolledInView.cjs +39 -30
  27. package/decorators/withScrolledInView.js +39 -30
  28. package/decorators/withVue2.cjs +14 -9
  29. package/decorators/withVue2.js +14 -9
  30. package/helpers/createApp.cjs +1 -0
  31. package/helpers/importOnInteraction.cjs +2 -1
  32. package/helpers/importOnInteraction.js +1 -1
  33. package/helpers/importWhenIdle.cjs +4 -2
  34. package/helpers/importWhenIdle.js +3 -2
  35. package/helpers/importWhenVisible.cjs +2 -1
  36. package/helpers/importWhenVisible.js +1 -1
  37. package/helpers/index.cjs +1 -0
  38. package/helpers/utils.cjs +1 -0
  39. package/index.cjs +1 -0
  40. package/package.json +1 -2
  41. package/services/Service.cjs +7 -1
  42. package/services/Service.js +7 -1
  43. package/services/drag.cjs +59 -33
  44. package/services/drag.d.ts +1 -0
  45. package/services/drag.js +59 -33
  46. package/services/index.cjs +1 -0
  47. package/services/key.cjs +27 -17
  48. package/services/key.js +27 -17
  49. package/services/load.cjs +12 -3
  50. package/services/load.js +12 -3
  51. package/services/pointer.cjs +38 -28
  52. package/services/pointer.js +38 -28
  53. package/services/raf.cjs +16 -7
  54. package/services/raf.js +16 -7
  55. package/services/resize.cjs +16 -7
  56. package/services/resize.js +16 -7
  57. package/services/scroll.cjs +36 -27
  58. package/services/scroll.js +36 -27
  59. package/utils/collide/boundingRectToCircle.cjs +1 -0
  60. package/utils/collide/collideCircleCircle.cjs +1 -0
  61. package/utils/collide/collideCircleRect.cjs +1 -0
  62. package/utils/collide/collidePointCircle.cjs +1 -0
  63. package/utils/collide/collidePointRect.cjs +1 -0
  64. package/utils/collide/collideRectRect.cjs +1 -0
  65. package/utils/collide/index.cjs +1 -0
  66. package/utils/css/classes.cjs +1 -0
  67. package/utils/css/index.cjs +1 -0
  68. package/utils/css/matrix.cjs +3 -1
  69. package/utils/css/matrix.js +2 -1
  70. package/utils/css/styles.cjs +1 -0
  71. package/utils/css/transition.cjs +8 -2
  72. package/utils/css/transition.js +8 -2
  73. package/utils/debounce.cjs +1 -0
  74. package/utils/focusTrap.cjs +1 -0
  75. package/utils/history.cjs +1 -0
  76. package/utils/index.cjs +1 -0
  77. package/utils/keyCodes.cjs +1 -0
  78. package/utils/math/clamp.cjs +1 -0
  79. package/utils/math/clamp01.cjs +1 -0
  80. package/utils/math/damp.cjs +1 -0
  81. package/utils/math/ease.cjs +1 -0
  82. package/utils/math/index.cjs +1 -0
  83. package/utils/math/inertiaFinalValue.cjs +1 -0
  84. package/utils/math/lerp.cjs +1 -0
  85. package/utils/math/map.cjs +1 -0
  86. package/utils/math/round.cjs +1 -0
  87. package/utils/memoize.cjs +1 -0
  88. package/utils/nextFrame.cjs +1 -0
  89. package/utils/object/autoBind.cjs +1 -0
  90. package/utils/object/getAllProperties.cjs +1 -0
  91. package/utils/object/index.cjs +1 -0
  92. package/utils/object/isObject.cjs +1 -0
  93. package/utils/scrollTo.cjs +1 -0
  94. package/utils/string/index.cjs +1 -0
  95. package/utils/string/withLeadingCharacters.cjs +1 -0
  96. package/utils/string/withLeadingSlash.cjs +1 -0
  97. package/utils/string/withTrailingCharacters.cjs +1 -0
  98. package/utils/string/withTrailingSlash.cjs +1 -0
  99. package/utils/string/withoutLeadingCharacters.cjs +1 -0
  100. package/utils/string/withoutLeadingCharactersRecursive.cjs +1 -0
  101. package/utils/string/withoutLeadingSlash.cjs +1 -0
  102. package/utils/string/withoutTrailingCharacters.cjs +1 -0
  103. package/utils/string/withoutTrailingCharactersRecursive.cjs +1 -0
  104. package/utils/string/withoutTrailingSlash.cjs +1 -0
  105. package/utils/throttle.cjs +1 -0
@@ -36,3 +36,4 @@ function withoutLeadingSlash(string) {
36
36
  return (0, import_withoutLeadingCharacters.default)(string, "/");
37
37
  }
38
38
  module.exports = __toCommonJS(withoutLeadingSlash_exports);
39
+ if (module.exports.default) module.exports = module.exports.default;
@@ -30,3 +30,4 @@ function withoutTrailingCharacters(string, characters) {
30
30
  return string.replace(new RegExp(`${characters}$`), "");
31
31
  }
32
32
  module.exports = __toCommonJS(withoutTrailingCharacters_exports);
33
+ if (module.exports.default) module.exports = module.exports.default;
@@ -41,3 +41,4 @@ function withoutTrailingCharactersRecursive(string, characters) {
41
41
  return str;
42
42
  }
43
43
  module.exports = __toCommonJS(withoutTrailingCharactersRecursive_exports);
44
+ if (module.exports.default) module.exports = module.exports.default;
@@ -36,3 +36,4 @@ function withoutTrailingSlash(string) {
36
36
  return (0, import_withoutTrailingCharacters.default)(string, "/");
37
37
  }
38
38
  module.exports = __toCommonJS(withoutTrailingSlash_exports);
39
+ if (module.exports.default) module.exports = module.exports.default;
@@ -38,3 +38,4 @@ function throttle(fn, delay = 16) {
38
38
  };
39
39
  }
40
40
  module.exports = __toCommonJS(throttle_exports);
41
+ if (module.exports.default) module.exports = module.exports.default;