@adamjanicki/ui 1.3.9 → 1.4.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.
@@ -16,5 +16,5 @@ type UseScrollToHashConfig = {
16
16
  /**
17
17
  * A hook for scrolling to a hash on the page.
18
18
  */
19
- declare const useScrollToHash: (config: UseScrollToHashConfig) => void;
19
+ declare const useScrollToHash: (config?: UseScrollToHashConfig) => void;
20
20
  export default useScrollToHash;
@@ -4,6 +4,7 @@ import scrollToId from "../functions/scrollToId";
4
4
  * A hook for scrolling to a hash on the page.
5
5
  */
6
6
  var useScrollToHash = function (config) {
7
+ if (config === void 0) { config = {}; }
7
8
  var _a = config.active, active = _a === void 0 ? true : _a, behavior = config.behavior, delay = config.delay;
8
9
  useEffect(function () {
9
10
  var hash = window.location.hash;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adamjanicki/ui",
3
- "version": "1.3.9",
3
+ "version": "1.4.0",
4
4
  "description": "Basic UI components and hooks for React in TypeScript",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",