@aiszlab/relax 1.2.17-beta.1 → 1.2.19
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.
- package/dist/dom/index.mjs +1 -0
- package/dist/dom/{scroll-to.js → scroll-to.mjs} +1 -1
- package/dist/hooks/{use-controlled-state.js → use-controlled-state.mjs} +3 -3
- package/dist/hooks/use-counter.d.ts +2 -0
- package/dist/hooks/{use-counter.js → use-counter.mjs} +2 -1
- package/dist/hooks/{use-default.js → use-default.mjs} +1 -1
- package/dist/hooks/{use-mount.js → use-mount.mjs} +1 -1
- package/dist/hooks/{use-mounted.js → use-mounted.mjs} +1 -1
- package/dist/hooks/{use-refs.js → use-refs.mjs} +1 -1
- package/dist/hooks/{use-scroll-locker.js → use-scroll-locker.mjs} +3 -3
- package/dist/hooks/{use-scrollable.js → use-scrollable.mjs} +1 -1
- package/dist/hooks/{use-toggleable.js → use-toggleable.mjs} +2 -2
- package/dist/hooks/{use-update-effect.js → use-update-effect.mjs} +2 -2
- package/dist/index.mjs +34 -0
- package/dist/is/{is-empty.js → is-empty.mjs} +2 -2
- package/dist/is/{is-void.js → is-void.mjs} +2 -2
- package/dist/utils/{thenable-effect-callback.js → thenable-effect-callback.mjs} +1 -1
- package/package.json +10 -4
- package/dist/dom/index.js +0 -1
- package/dist/index.js +0 -34
- /package/dist/hooks/{use-boolean.js → use-boolean.mjs} +0 -0
- /package/dist/hooks/{use-debounce-callback.js → use-debounce-callback.mjs} +0 -0
- /package/dist/hooks/{use-event.js → use-event.mjs} +0 -0
- /package/dist/hooks/{use-force-update.js → use-force-update.mjs} +0 -0
- /package/dist/hooks/{use-image-loader.js → use-image-loader.mjs} +0 -0
- /package/dist/hooks/{use-throttle-callback.js → use-throttle-callback.mjs} +0 -0
- /package/dist/hooks/{use-timeout.js → use-timeout.mjs} +0 -0
- /package/dist/is/{is-array.js → is-array.mjs} +0 -0
- /package/dist/is/{is-complex.js → is-complex.mjs} +0 -0
- /package/dist/is/{is-dom-usable.js → is-dom-usable.mjs} +0 -0
- /package/dist/is/{is-function.js → is-function.mjs} +0 -0
- /package/dist/is/{is-mobile.js → is-mobile.mjs} +0 -0
- /package/dist/is/{is-null.js → is-null.mjs} +0 -0
- /package/dist/is/{is-overflow.js → is-overflow.mjs} +0 -0
- /package/dist/is/{is-refable.js → is-refable.mjs} +0 -0
- /package/dist/is/{is-state-getter.js → is-state-getter.mjs} +0 -0
- /package/dist/is/{is-style-element.js → is-style-element.mjs} +0 -0
- /package/dist/is/{is-thenable.js → is-thenable.mjs} +0 -0
- /package/dist/is/{is-undefined.js → is-undefined.mjs} +0 -0
- /package/dist/node_modules/tslib/{tslib.es6.js → tslib.es6.mjs} +0 -0
- /package/dist/utils/{range.js → range.mjs} +0 -0
- /package/dist/utils/{unique.js → unique.mjs} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { scrollTo } from './scroll-to.mjs';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __classPrivateFieldSet, __classPrivateFieldGet } from '../node_modules/tslib/tslib.es6.
|
|
1
|
+
import { __classPrivateFieldSet, __classPrivateFieldGet } from '../node_modules/tslib/tslib.es6.mjs';
|
|
2
2
|
|
|
3
3
|
var _a, _Scroller_scrolled, _Scroller_scroller;
|
|
4
4
|
class Scroller {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useState } from 'react';
|
|
2
|
-
import { isStateGetter } from '../is/is-state-getter.
|
|
3
|
-
import { isUndefined } from '../is/is-undefined.
|
|
4
|
-
import { useUpdateEffect } from './use-update-effect.
|
|
2
|
+
import { isStateGetter } from '../is/is-state-getter.mjs';
|
|
3
|
+
import { isUndefined } from '../is/is-undefined.mjs';
|
|
4
|
+
import { useUpdateEffect } from './use-update-effect.mjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @author murukal
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
/**
|
|
2
3
|
* @author murukal
|
|
3
4
|
*
|
|
@@ -9,4 +10,5 @@ export declare const useCounter: () => {
|
|
|
9
10
|
next: () => void;
|
|
10
11
|
prev: () => void;
|
|
11
12
|
first: () => void;
|
|
13
|
+
setCount: import("react").Dispatch<import("react").SetStateAction<number>>;
|
|
12
14
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { __classPrivateFieldSet, __classPrivateFieldGet } from '../node_modules/tslib/tslib.es6.
|
|
1
|
+
import { __classPrivateFieldSet, __classPrivateFieldGet } from '../node_modules/tslib/tslib.es6.mjs';
|
|
2
2
|
import { useId, useLayoutEffect } from 'react';
|
|
3
|
-
import { isOverflow } from '../is/is-overflow.
|
|
4
|
-
import { isStyleElement } from '../is/is-style-element.
|
|
3
|
+
import { isOverflow } from '../is/is-overflow.mjs';
|
|
4
|
+
import { isStyleElement } from '../is/is-style-element.mjs';
|
|
5
5
|
|
|
6
6
|
var _ScrollLocker_scrollLocker, _ScrollLocker_barSize;
|
|
7
7
|
const isComputable = (value) => /^(.*)px$/.test(value);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { __rest, __classPrivateFieldSet, __classPrivateFieldGet } from '../node_modules/tslib/tslib.es6.
|
|
1
|
+
import { __rest, __classPrivateFieldSet, __classPrivateFieldGet } from '../node_modules/tslib/tslib.es6.mjs';
|
|
2
2
|
import { useMemo, useCallback } from 'react';
|
|
3
|
-
import { useControlledState } from './use-controlled-state.
|
|
3
|
+
import { useControlledState } from './use-controlled-state.mjs';
|
|
4
4
|
|
|
5
5
|
var _Tree_groupedLeaves, _Leaf_key, _Leaf_belongTo, _Leaf_parent, _Leaf_children;
|
|
6
6
|
class Tree {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useRef, useEffect } from 'react';
|
|
2
|
-
import { useMounted } from './use-mounted.
|
|
3
|
-
import { callAsEffect } from '../utils/thenable-effect-callback.
|
|
2
|
+
import { useMounted } from './use-mounted.mjs';
|
|
3
|
+
import { callAsEffect } from '../utils/thenable-effect-callback.mjs';
|
|
4
4
|
|
|
5
5
|
const useUpdateEffect = (callable, deps) => {
|
|
6
6
|
const isMounted = useRef(false);
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export { useBoolean } from './hooks/use-boolean.mjs';
|
|
2
|
+
export { useDebounceCallback } from './hooks/use-debounce-callback.mjs';
|
|
3
|
+
export { useThrottleCallback } from './hooks/use-throttle-callback.mjs';
|
|
4
|
+
export { useImageLoader } from './hooks/use-image-loader.mjs';
|
|
5
|
+
export { useMount } from './hooks/use-mount.mjs';
|
|
6
|
+
export { useMounted } from './hooks/use-mounted.mjs';
|
|
7
|
+
export { useTimeout } from './hooks/use-timeout.mjs';
|
|
8
|
+
export { useControlledState } from './hooks/use-controlled-state.mjs';
|
|
9
|
+
export { useDefault } from './hooks/use-default.mjs';
|
|
10
|
+
export { useScrollLocker } from './hooks/use-scroll-locker.mjs';
|
|
11
|
+
export { useForceUpdate } from './hooks/use-force-update.mjs';
|
|
12
|
+
export { useScrollable } from './hooks/use-scrollable.mjs';
|
|
13
|
+
export { useRefs } from './hooks/use-refs.mjs';
|
|
14
|
+
export { useToggleable } from './hooks/use-toggleable.mjs';
|
|
15
|
+
export { useEvent } from './hooks/use-event.mjs';
|
|
16
|
+
export { useUpdateEffect } from './hooks/use-update-effect.mjs';
|
|
17
|
+
export { useCounter } from './hooks/use-counter.mjs';
|
|
18
|
+
export { isRefable } from './is/is-refable.mjs';
|
|
19
|
+
export { isUndefined } from './is/is-undefined.mjs';
|
|
20
|
+
export { isStateGetter } from './is/is-state-getter.mjs';
|
|
21
|
+
export { isNull } from './is/is-null.mjs';
|
|
22
|
+
export { isVoid } from './is/is-void.mjs';
|
|
23
|
+
export { isArray } from './is/is-array.mjs';
|
|
24
|
+
export { isComplex } from './is/is-complex.mjs';
|
|
25
|
+
export { isEmpty } from './is/is-empty.mjs';
|
|
26
|
+
export { isDomUsable } from './is/is-dom-usable.mjs';
|
|
27
|
+
export { isMobile } from './is/is-mobile.mjs';
|
|
28
|
+
export { isOverflow } from './is/is-overflow.mjs';
|
|
29
|
+
export { isStyleElement } from './is/is-style-element.mjs';
|
|
30
|
+
export { isFunction } from './is/is-function.mjs';
|
|
31
|
+
export { isThenable } from './is/is-thenable.mjs';
|
|
32
|
+
export { callAsEffect } from './utils/thenable-effect-callback.mjs';
|
|
33
|
+
export { unique, uniqueBy } from './utils/unique.mjs';
|
|
34
|
+
export { range } from './utils/range.mjs';
|
package/package.json
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiszlab/relax",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.19",
|
|
4
4
|
"description": "react utils collection",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
7
|
-
".":
|
|
8
|
-
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"default": "./dist/index.mjs"
|
|
10
|
+
},
|
|
11
|
+
"./dom": {
|
|
12
|
+
"types": "./dist/dom/index.d.ts",
|
|
13
|
+
"default": "./dist/dom/index.mjs"
|
|
14
|
+
}
|
|
9
15
|
},
|
|
10
16
|
"scripts": {
|
|
11
17
|
"dev": "rollup -c -w",
|
|
12
18
|
"build": "rollup -c",
|
|
13
|
-
"clean:build": "rm -rf dist
|
|
19
|
+
"clean:build": "rm -rf dist",
|
|
14
20
|
"pub": "npm run clean:build && npm run build && npm publish"
|
|
15
21
|
},
|
|
16
22
|
"dependencies": {
|
package/dist/dom/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { scrollTo } from './scroll-to.js';
|
package/dist/index.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export { useBoolean } from './hooks/use-boolean.js';
|
|
2
|
-
export { useDebounceCallback } from './hooks/use-debounce-callback.js';
|
|
3
|
-
export { useThrottleCallback } from './hooks/use-throttle-callback.js';
|
|
4
|
-
export { useImageLoader } from './hooks/use-image-loader.js';
|
|
5
|
-
export { useMount } from './hooks/use-mount.js';
|
|
6
|
-
export { useMounted } from './hooks/use-mounted.js';
|
|
7
|
-
export { useTimeout } from './hooks/use-timeout.js';
|
|
8
|
-
export { useControlledState } from './hooks/use-controlled-state.js';
|
|
9
|
-
export { useDefault } from './hooks/use-default.js';
|
|
10
|
-
export { useScrollLocker } from './hooks/use-scroll-locker.js';
|
|
11
|
-
export { useForceUpdate } from './hooks/use-force-update.js';
|
|
12
|
-
export { useScrollable } from './hooks/use-scrollable.js';
|
|
13
|
-
export { useRefs } from './hooks/use-refs.js';
|
|
14
|
-
export { useToggleable } from './hooks/use-toggleable.js';
|
|
15
|
-
export { useEvent } from './hooks/use-event.js';
|
|
16
|
-
export { useUpdateEffect } from './hooks/use-update-effect.js';
|
|
17
|
-
export { useCounter } from './hooks/use-counter.js';
|
|
18
|
-
export { isRefable } from './is/is-refable.js';
|
|
19
|
-
export { isUndefined } from './is/is-undefined.js';
|
|
20
|
-
export { isStateGetter } from './is/is-state-getter.js';
|
|
21
|
-
export { isNull } from './is/is-null.js';
|
|
22
|
-
export { isVoid } from './is/is-void.js';
|
|
23
|
-
export { isArray } from './is/is-array.js';
|
|
24
|
-
export { isComplex } from './is/is-complex.js';
|
|
25
|
-
export { isEmpty } from './is/is-empty.js';
|
|
26
|
-
export { isDomUsable } from './is/is-dom-usable.js';
|
|
27
|
-
export { isMobile } from './is/is-mobile.js';
|
|
28
|
-
export { isOverflow } from './is/is-overflow.js';
|
|
29
|
-
export { isStyleElement } from './is/is-style-element.js';
|
|
30
|
-
export { isFunction } from './is/is-function.js';
|
|
31
|
-
export { isThenable } from './is/is-thenable.js';
|
|
32
|
-
export { callAsEffect } from './utils/thenable-effect-callback.js';
|
|
33
|
-
export { unique, uniqueBy } from './utils/unique.js';
|
|
34
|
-
export { range } from './utils/range.js';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|