@fringeworks/react-utils 0.8.1 → 0.9.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.
- package/README.ja.md +307 -0
- package/README.md +307 -3
- package/_helpers/_traverseChildren.cjs +32 -0
- package/_helpers/_traverseChildren.d.cts +24 -0
- package/_helpers/_traverseChildren.d.mts +24 -0
- package/_helpers/_traverseChildren.mjs +30 -0
- package/hooks/index.cjs +21 -40
- package/hooks/index.d.cts +5 -7
- package/hooks/index.d.mts +5 -7
- package/hooks/index.mjs +1 -14
- package/hooks/useCombinedRefs/index.cjs +4 -2
- package/hooks/useCombinedRefs/index.d.cts +1 -1
- package/hooks/useCombinedRefs/index.d.mts +1 -1
- package/hooks/useCombinedRefs/index.mjs +1 -1
- package/hooks/useCombinedRefs/useCombinedRefs.cjs +7 -6
- package/hooks/useCombinedRefs/useCombinedRefs.d.cts +0 -1
- package/hooks/useCombinedRefs/useCombinedRefs.d.mts +2 -4
- package/hooks/useConstant/index.cjs +4 -2
- package/hooks/useConstant/index.d.cts +1 -1
- package/hooks/useConstant/index.d.mts +1 -1
- package/hooks/useConstant/index.mjs +1 -1
- package/hooks/useConstant/useConstant.cjs +2 -1
- package/hooks/useConstant/useConstant.d.mts +2 -3
- package/hooks/useExecutionAt/index.cjs +4 -2
- package/hooks/useExecutionAt/index.d.cts +1 -1
- package/hooks/useExecutionAt/index.d.mts +1 -1
- package/hooks/useExecutionAt/index.mjs +1 -1
- package/hooks/useExecutionAt/types.cjs +1 -0
- package/hooks/useExecutionAt/types.d.cts +5 -7
- package/hooks/useExecutionAt/types.d.mts +5 -7
- package/hooks/useExecutionAt/useExecutionAt.cjs +4 -3
- package/hooks/useExecutionAt/useExecutionAt.d.cts +0 -1
- package/hooks/useExecutionAt/useExecutionAt.d.mts +2 -4
- package/hooks/useIsMounted/index.cjs +4 -2
- package/hooks/useIsMounted/index.d.cts +1 -1
- package/hooks/useIsMounted/index.d.mts +1 -1
- package/hooks/useIsMounted/index.mjs +1 -1
- package/hooks/useIsMounted/useIsMounted.cjs +8 -3
- package/hooks/useIsMounted/useIsMounted.d.cts +5 -1
- package/hooks/useIsMounted/useIsMounted.d.mts +7 -4
- package/hooks/useIsMounted/useIsMounted.mjs +7 -3
- package/hooks/useLatestRef/index.cjs +4 -2
- package/hooks/useLatestRef/index.d.cts +1 -1
- package/hooks/useLatestRef/index.d.mts +1 -1
- package/hooks/useLatestRef/index.mjs +1 -1
- package/hooks/useLatestRef/types.cjs +1 -0
- package/hooks/useLatestRef/types.d.cts +2 -3
- package/hooks/useLatestRef/types.d.mts +2 -3
- package/hooks/useLatestRef/useLatestRef.cjs +2 -1
- package/hooks/useLatestRef/useLatestRef.d.cts +0 -1
- package/hooks/useLatestRef/useLatestRef.d.mts +2 -4
- package/hooks/usePreviousValue/index.cjs +4 -2
- package/hooks/usePreviousValue/index.d.cts +1 -1
- package/hooks/usePreviousValue/index.d.mts +1 -1
- package/hooks/usePreviousValue/index.mjs +1 -1
- package/hooks/usePreviousValue/types.cjs +1 -0
- package/hooks/usePreviousValue/types.d.cts +8 -9
- package/hooks/usePreviousValue/types.d.mts +8 -9
- package/hooks/usePreviousValue/usePreviousValue.cjs +10 -5
- package/hooks/usePreviousValue/usePreviousValue.d.cts +6 -2
- package/hooks/usePreviousValue/usePreviousValue.d.mts +8 -5
- package/hooks/usePreviousValue/usePreviousValue.mjs +8 -4
- package/hooks/useStableLength/index.cjs +4 -2
- package/hooks/useStableLength/index.d.cts +1 -1
- package/hooks/useStableLength/index.d.mts +1 -1
- package/hooks/useStableLength/index.mjs +1 -1
- package/hooks/useStableLength/useStableLength.cjs +2 -1
- package/hooks/useStableLength/useStableLength.d.cts +1 -1
- package/hooks/useStableLength/useStableLength.d.mts +2 -3
- package/index.cjs +34 -14
- package/index.d.cts +25 -3
- package/index.d.mts +25 -3
- package/index.mjs +19 -3
- package/package.json +160 -38
- package/types.cjs +1 -0
- package/types.d.cts +2 -4
- package/types.d.mts +2 -4
- package/utils/applyDefaultProps/applyDefaultProps.cjs +6 -2
- package/utils/applyDefaultProps/applyDefaultProps.d.cts +6 -3
- package/utils/applyDefaultProps/applyDefaultProps.d.mts +8 -5
- package/utils/applyDefaultProps/applyDefaultProps.mjs +4 -0
- package/utils/applyDefaultProps/index.cjs +4 -2
- package/utils/applyDefaultProps/index.d.cts +1 -1
- package/utils/applyDefaultProps/index.d.mts +1 -1
- package/utils/applyDefaultProps/index.mjs +1 -1
- package/utils/applyDefaultProps/types.cjs +1 -0
- package/utils/applyDefaultProps/types.d.cts +6 -6
- package/utils/applyDefaultProps/types.d.mts +6 -6
- package/utils/ensureComponent/ensureComponent.cjs +2 -1
- package/utils/ensureComponent/ensureComponent.d.cts +0 -1
- package/utils/ensureComponent/ensureComponent.d.mts +2 -4
- package/utils/ensureComponent/index.cjs +4 -2
- package/utils/ensureComponent/index.d.cts +1 -1
- package/utils/ensureComponent/index.d.mts +1 -1
- package/utils/ensureComponent/index.mjs +1 -1
- package/utils/extendElement/extendElement.cjs +21 -17
- package/utils/extendElement/extendElement.d.cts +11 -6
- package/utils/extendElement/extendElement.d.mts +12 -8
- package/utils/extendElement/extendElement.mjs +19 -16
- package/utils/extendElement/index.cjs +4 -2
- package/utils/extendElement/index.d.cts +2 -1
- package/utils/extendElement/index.d.mts +2 -1
- package/utils/extendElement/index.mjs +1 -1
- package/utils/extendElement/types.cjs +1 -0
- package/utils/extendElement/types.d.cts +16 -0
- package/utils/extendElement/types.d.mts +16 -0
- package/utils/extendElement/types.mjs +1 -0
- package/utils/forEachContent/forEachContent.cjs +5 -4
- package/utils/forEachContent/forEachContent.d.cts +1 -2
- package/utils/forEachContent/forEachContent.d.mts +3 -5
- package/utils/forEachContent/forEachContent.mjs +3 -3
- package/utils/forEachContent/index.cjs +4 -2
- package/utils/forEachContent/index.d.cts +1 -1
- package/utils/forEachContent/index.d.mts +1 -1
- package/utils/forEachContent/index.mjs +1 -1
- package/utils/forEachElement/forEachElement.cjs +6 -4
- package/utils/forEachElement/forEachElement.d.cts +1 -2
- package/utils/forEachElement/forEachElement.d.mts +3 -5
- package/utils/forEachElement/forEachElement.mjs +4 -3
- package/utils/forEachElement/index.cjs +4 -2
- package/utils/forEachElement/index.d.cts +1 -1
- package/utils/forEachElement/index.d.mts +1 -1
- package/utils/forEachElement/index.mjs +1 -1
- package/utils/index.cjs +24 -45
- package/utils/index.d.cts +11 -5
- package/utils/index.d.mts +11 -5
- package/utils/index.mjs +1 -16
- package/utils/markAt/index.cjs +4 -2
- package/utils/markAt/index.d.cts +1 -1
- package/utils/markAt/index.d.mts +1 -1
- package/utils/markAt/index.mjs +1 -1
- package/utils/markAt/markAt.cjs +2 -2
- package/utils/markAt/markAt.d.cts +0 -1
- package/utils/markAt/markAt.d.mts +2 -4
- package/utils/markAt/types.cjs +1 -0
- package/utils/markAt/types.d.cts +2 -3
- package/utils/markAt/types.d.mts +2 -3
- package/utils/setRefCurrent/index.cjs +4 -2
- package/utils/setRefCurrent/index.d.cts +1 -1
- package/utils/setRefCurrent/index.d.mts +1 -1
- package/utils/setRefCurrent/index.mjs +1 -1
- package/utils/setRefCurrent/setRefCurrent.cjs +2 -2
- package/utils/setRefCurrent/setRefCurrent.d.cts +0 -1
- package/utils/setRefCurrent/setRefCurrent.d.mts +2 -4
- package/utils/transformContent/index.cjs +4 -2
- package/utils/transformContent/index.d.cts +1 -1
- package/utils/transformContent/index.d.mts +1 -1
- package/utils/transformContent/index.mjs +1 -1
- package/utils/transformContent/transformContent.cjs +11 -4
- package/utils/transformContent/transformContent.d.cts +7 -2
- package/utils/transformContent/transformContent.d.mts +9 -5
- package/utils/transformContent/transformContent.mjs +9 -3
- package/utils/transformElement/index.cjs +4 -2
- package/utils/transformElement/index.d.cts +1 -1
- package/utils/transformElement/index.d.mts +1 -1
- package/utils/transformElement/index.mjs +1 -1
- package/utils/transformElement/transformElement.cjs +12 -4
- package/utils/transformElement/transformElement.d.cts +7 -2
- package/utils/transformElement/transformElement.d.mts +9 -5
- package/utils/transformElement/transformElement.mjs +10 -3
- package/_helpers/_traverseContent.cjs +0 -24
- package/_helpers/_traverseContent.d.cts +0 -15
- package/_helpers/_traverseContent.d.mts +0 -16
- package/_helpers/_traverseContent.mjs +0 -22
- package/_helpers/_traverseElement.cjs +0 -23
- package/_helpers/_traverseElement.d.cts +0 -15
- package/_helpers/_traverseElement.d.mts +0 -16
- package/_helpers/_traverseElement.mjs +0 -21
- package/_virtual/_rolldown/runtime.cjs +0 -43
- package/_virtual/_rolldown/runtime.mjs +0 -18
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
1
2
|
let react = require("react");
|
|
2
3
|
|
|
3
4
|
//#region src/hooks/useLatestRef/useLatestRef.ts
|
|
@@ -20,4 +21,4 @@ function useLatestRef(value) {
|
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
//#endregion
|
|
23
|
-
|
|
24
|
+
exports.default = useLatestRef;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { LatestRef } from "./types.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/hooks/useLatestRef/useLatestRef.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* 最新の値を保持する参照を返すhook
|
|
@@ -11,6 +10,5 @@ import { LatestRef } from "./types.mjs";
|
|
|
11
10
|
* @param value 値
|
|
12
11
|
* @returns 最新の値を保持する参照
|
|
13
12
|
*/
|
|
14
|
-
|
|
15
|
-
//#endregion
|
|
16
|
-
export { useLatestRef as default };
|
|
13
|
+
export default function useLatestRef<T>(value: T): LatestRef<T>;
|
|
14
|
+
//#endregion
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
+
const require_hooks_usePreviousValue_usePreviousValue = require("./usePreviousValue.cjs");
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
exports.default = require_hooks_usePreviousValue_usePreviousValue.default;
|
|
5
|
+
exports.usePreviousValue = require_hooks_usePreviousValue_usePreviousValue.default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
//#region src/hooks/usePreviousValue/types.d.ts
|
|
2
|
-
type UsePreviousValueOptions<T =
|
|
2
|
+
export type UsePreviousValueOptions<T = unknown> = {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* 値が一度も変わっていない間に返す値
|
|
5
5
|
*/
|
|
6
6
|
initialValue?: T;
|
|
7
7
|
/**
|
|
8
8
|
* 値の比較関数
|
|
9
9
|
* falseの場合に値を更新する
|
|
10
|
-
*
|
|
11
|
-
* @param oldValue
|
|
12
|
-
* @param newValue
|
|
13
|
-
* @returns
|
|
10
|
+
* 未指定の場合は`Object.is`で比較
|
|
11
|
+
* @param oldValue 最後に確定した値
|
|
12
|
+
* @param newValue 現在の値
|
|
13
|
+
* @returns 同じ値とみなす場合はtrue
|
|
14
14
|
*/
|
|
15
|
-
isEqual?: (oldValue: T
|
|
15
|
+
isEqual?: (oldValue: T, newValue: T) => boolean;
|
|
16
16
|
};
|
|
17
|
-
//#endregion
|
|
18
|
-
export { UsePreviousValueOptions };
|
|
17
|
+
//#endregion
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
//#region src/hooks/usePreviousValue/types.d.ts
|
|
2
|
-
type UsePreviousValueOptions<T =
|
|
2
|
+
export type UsePreviousValueOptions<T = unknown> = {
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* 値が一度も変わっていない間に返す値
|
|
5
5
|
*/
|
|
6
6
|
initialValue?: T;
|
|
7
7
|
/**
|
|
8
8
|
* 値の比較関数
|
|
9
9
|
* falseの場合に値を更新する
|
|
10
|
-
*
|
|
11
|
-
* @param oldValue
|
|
12
|
-
* @param newValue
|
|
13
|
-
* @returns
|
|
10
|
+
* 未指定の場合は`Object.is`で比較
|
|
11
|
+
* @param oldValue 最後に確定した値
|
|
12
|
+
* @param newValue 現在の値
|
|
13
|
+
* @returns 同じ値とみなす場合はtrue
|
|
14
14
|
*/
|
|
15
|
-
isEqual?: (oldValue: T
|
|
15
|
+
isEqual?: (oldValue: T, newValue: T) => boolean;
|
|
16
16
|
};
|
|
17
|
-
//#endregion
|
|
18
|
-
export { UsePreviousValueOptions };
|
|
17
|
+
//#endregion
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
1
2
|
let react = require("react");
|
|
2
3
|
|
|
3
4
|
//#region src/hooks/usePreviousValue/usePreviousValue.ts
|
|
4
|
-
const defaultIsEqual = (oldValue, newValue) => oldValue === newValue;
|
|
5
5
|
/**
|
|
6
6
|
* 前回の値を返すhook
|
|
7
|
+
*
|
|
8
|
+
* 値が変わったときに、レンダリング中のステート更新で前回値を更新する。
|
|
9
|
+
* 比較が毎回falseになる値(レンダリング中に作るオブジェクトや配列など)を渡すと
|
|
10
|
+
* 再レンダリングが止まらなくなるため、参照が安定した値を渡すか、`isEqual`を指定すること。
|
|
11
|
+
*
|
|
7
12
|
* @param value 現在の値
|
|
8
13
|
* @param options オプション
|
|
9
|
-
* @returns
|
|
14
|
+
* @returns 前回の値。値が一度も変わっていない場合は`initialValue`
|
|
10
15
|
*/
|
|
11
16
|
function usePreviousValue(value, options = {}) {
|
|
12
|
-
const isEqual = options.isEqual ??
|
|
13
|
-
const [currentValue, setCurrentValue] = (0, react.useState)(
|
|
17
|
+
const isEqual = options.isEqual ?? Object.is;
|
|
18
|
+
const [currentValue, setCurrentValue] = (0, react.useState)(value);
|
|
14
19
|
const [prevValue, setPrevValue] = (0, react.useState)(options.initialValue);
|
|
15
20
|
if (!isEqual(currentValue, value)) {
|
|
16
21
|
setPrevValue(currentValue);
|
|
@@ -20,4 +25,4 @@ function usePreviousValue(value, options = {}) {
|
|
|
20
25
|
}
|
|
21
26
|
|
|
22
27
|
//#endregion
|
|
23
|
-
|
|
28
|
+
exports.default = usePreviousValue;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import { UsePreviousValueOptions } from "./types.cjs";
|
|
2
|
-
|
|
3
2
|
//#region src/hooks/usePreviousValue/usePreviousValue.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* 前回の値を返すhook
|
|
5
|
+
*
|
|
6
|
+
* 値が変わったときに、レンダリング中のステート更新で前回値を更新する。
|
|
7
|
+
* 比較が毎回falseになる値(レンダリング中に作るオブジェクトや配列など)を渡すと
|
|
8
|
+
* 再レンダリングが止まらなくなるため、参照が安定した値を渡すか、`isEqual`を指定すること。
|
|
9
|
+
*
|
|
6
10
|
* @param value 現在の値
|
|
7
11
|
* @param options オプション
|
|
8
|
-
* @returns
|
|
12
|
+
* @returns 前回の値。値が一度も変わっていない場合は`initialValue`
|
|
9
13
|
*/
|
|
10
14
|
declare function usePreviousValue<T = unknown>(value: T, options?: UsePreviousValueOptions<T>): T | undefined;
|
|
11
15
|
export = usePreviousValue;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { UsePreviousValueOptions } from "./types.mjs";
|
|
2
|
-
|
|
3
2
|
//#region src/hooks/usePreviousValue/usePreviousValue.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* 前回の値を返すhook
|
|
5
|
+
*
|
|
6
|
+
* 値が変わったときに、レンダリング中のステート更新で前回値を更新する。
|
|
7
|
+
* 比較が毎回falseになる値(レンダリング中に作るオブジェクトや配列など)を渡すと
|
|
8
|
+
* 再レンダリングが止まらなくなるため、参照が安定した値を渡すか、`isEqual`を指定すること。
|
|
9
|
+
*
|
|
6
10
|
* @param value 現在の値
|
|
7
11
|
* @param options オプション
|
|
8
|
-
* @returns
|
|
12
|
+
* @returns 前回の値。値が一度も変わっていない場合は`initialValue`
|
|
9
13
|
*/
|
|
10
|
-
|
|
11
|
-
//#endregion
|
|
12
|
-
export { usePreviousValue as default };
|
|
14
|
+
export default function usePreviousValue<T = unknown>(value: T, options?: UsePreviousValueOptions<T>): T | undefined;
|
|
15
|
+
//#endregion
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { useState } from "react";
|
|
2
2
|
|
|
3
3
|
//#region src/hooks/usePreviousValue/usePreviousValue.ts
|
|
4
|
-
const defaultIsEqual = (oldValue, newValue) => oldValue === newValue;
|
|
5
4
|
/**
|
|
6
5
|
* 前回の値を返すhook
|
|
6
|
+
*
|
|
7
|
+
* 値が変わったときに、レンダリング中のステート更新で前回値を更新する。
|
|
8
|
+
* 比較が毎回falseになる値(レンダリング中に作るオブジェクトや配列など)を渡すと
|
|
9
|
+
* 再レンダリングが止まらなくなるため、参照が安定した値を渡すか、`isEqual`を指定すること。
|
|
10
|
+
*
|
|
7
11
|
* @param value 現在の値
|
|
8
12
|
* @param options オプション
|
|
9
|
-
* @returns
|
|
13
|
+
* @returns 前回の値。値が一度も変わっていない場合は`initialValue`
|
|
10
14
|
*/
|
|
11
15
|
function usePreviousValue(value, options = {}) {
|
|
12
|
-
const isEqual = options.isEqual ??
|
|
13
|
-
const [currentValue, setCurrentValue] = useState(
|
|
16
|
+
const isEqual = options.isEqual ?? Object.is;
|
|
17
|
+
const [currentValue, setCurrentValue] = useState(value);
|
|
14
18
|
const [prevValue, setPrevValue] = useState(options.initialValue);
|
|
15
19
|
if (!isEqual(currentValue, value)) {
|
|
16
20
|
setPrevValue(currentValue);
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
2
|
+
const require_hooks_useStableLength_useStableLength = require("./useStableLength.cjs");
|
|
2
3
|
|
|
3
|
-
|
|
4
|
+
exports.default = require_hooks_useStableLength_useStableLength.default;
|
|
5
|
+
exports.useStableLength = require_hooks_useStableLength_useStableLength.default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import useStableLength from "./useStableLength.cjs";
|
|
2
|
-
export
|
|
2
|
+
export { useStableLength as default, useStableLength };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import useStableLength from "./useStableLength.mjs";
|
|
2
|
-
export { useStableLength as default };
|
|
2
|
+
export { useStableLength as default, useStableLength };
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
1
2
|
let react = require("react");
|
|
2
3
|
|
|
3
4
|
//#region src/hooks/useStableLength/useStableLength.ts
|
|
@@ -13,4 +14,4 @@ function useStableLength(arr) {
|
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
//#endregion
|
|
16
|
-
|
|
17
|
+
exports.default = useStableLength;
|
package/index.cjs
CHANGED
|
@@ -1,16 +1,36 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const
|
|
3
|
-
const
|
|
2
|
+
const require_utils_setRefCurrent_setRefCurrent = require("./utils/setRefCurrent/setRefCurrent.cjs");
|
|
3
|
+
const require_hooks_useStableLength_useStableLength = require("./hooks/useStableLength/useStableLength.cjs");
|
|
4
|
+
const require_hooks_useCombinedRefs_useCombinedRefs = require("./hooks/useCombinedRefs/useCombinedRefs.cjs");
|
|
5
|
+
const require_hooks_useConstant_useConstant = require("./hooks/useConstant/useConstant.cjs");
|
|
6
|
+
const require_utils_markAt_markAt = require("./utils/markAt/markAt.cjs");
|
|
7
|
+
const require_hooks_useExecutionAt_useExecutionAt = require("./hooks/useExecutionAt/useExecutionAt.cjs");
|
|
8
|
+
const require_hooks_useIsMounted_useIsMounted = require("./hooks/useIsMounted/useIsMounted.cjs");
|
|
9
|
+
const require_hooks_useLatestRef_useLatestRef = require("./hooks/useLatestRef/useLatestRef.cjs");
|
|
10
|
+
const require_hooks_usePreviousValue_usePreviousValue = require("./hooks/usePreviousValue/usePreviousValue.cjs");
|
|
11
|
+
require("./hooks/index.cjs");
|
|
12
|
+
const require_utils_applyDefaultProps_applyDefaultProps = require("./utils/applyDefaultProps/applyDefaultProps.cjs");
|
|
13
|
+
const require_utils_ensureComponent_ensureComponent = require("./utils/ensureComponent/ensureComponent.cjs");
|
|
14
|
+
const require_utils_extendElement_extendElement = require("./utils/extendElement/extendElement.cjs");
|
|
15
|
+
const require_utils_forEachContent_forEachContent = require("./utils/forEachContent/forEachContent.cjs");
|
|
16
|
+
const require_utils_forEachElement_forEachElement = require("./utils/forEachElement/forEachElement.cjs");
|
|
17
|
+
const require_utils_transformContent_transformContent = require("./utils/transformContent/transformContent.cjs");
|
|
18
|
+
const require_utils_transformElement_transformElement = require("./utils/transformElement/transformElement.cjs");
|
|
19
|
+
require("./utils/index.cjs");
|
|
4
20
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
21
|
+
exports.applyDefaultProps = require_utils_applyDefaultProps_applyDefaultProps.default;
|
|
22
|
+
exports.ensureComponent = require_utils_ensureComponent_ensureComponent.default;
|
|
23
|
+
exports.extendElement = require_utils_extendElement_extendElement.default;
|
|
24
|
+
exports.forEachContent = require_utils_forEachContent_forEachContent.default;
|
|
25
|
+
exports.forEachElement = require_utils_forEachElement_forEachElement.default;
|
|
26
|
+
exports.markAt = require_utils_markAt_markAt.default;
|
|
27
|
+
exports.setRefCurrent = require_utils_setRefCurrent_setRefCurrent.default;
|
|
28
|
+
exports.transformContent = require_utils_transformContent_transformContent.default;
|
|
29
|
+
exports.transformElement = require_utils_transformElement_transformElement.default;
|
|
30
|
+
exports.useCombinedRefs = require_hooks_useCombinedRefs_useCombinedRefs.default;
|
|
31
|
+
exports.useConstant = require_hooks_useConstant_useConstant.default;
|
|
32
|
+
exports.useExecutionAt = require_hooks_useExecutionAt_useExecutionAt.default;
|
|
33
|
+
exports.useIsMounted = require_hooks_useIsMounted_useIsMounted.default;
|
|
34
|
+
exports.useLatestRef = require_hooks_useLatestRef_useLatestRef.default;
|
|
35
|
+
exports.usePreviousValue = require_hooks_usePreviousValue_usePreviousValue.default;
|
|
36
|
+
exports.useStableLength = require_hooks_useStableLength_useStableLength.default;
|
package/index.d.cts
CHANGED
|
@@ -1,4 +1,26 @@
|
|
|
1
|
-
import
|
|
1
|
+
import useCombinedRefs from "./hooks/useCombinedRefs/useCombinedRefs.cjs";
|
|
2
|
+
import useConstant from "./hooks/useConstant/useConstant.cjs";
|
|
3
|
+
import { MarkAtResult } from "./utils/markAt/types.cjs";
|
|
4
|
+
import markAt from "./utils/markAt/markAt.cjs";
|
|
5
|
+
import { ExecutionFunction, ExecutionRequest, UseExecutionAtOptions, UseExecutionAtResult } from "./hooks/useExecutionAt/types.cjs";
|
|
6
|
+
import useExecutionAt from "./hooks/useExecutionAt/useExecutionAt.cjs";
|
|
7
|
+
import useIsMounted from "./hooks/useIsMounted/useIsMounted.cjs";
|
|
8
|
+
import { LatestRef } from "./hooks/useLatestRef/types.cjs";
|
|
9
|
+
import useLatestRef from "./hooks/useLatestRef/useLatestRef.cjs";
|
|
10
|
+
import { UsePreviousValueOptions } from "./hooks/usePreviousValue/types.cjs";
|
|
11
|
+
import usePreviousValue from "./hooks/usePreviousValue/usePreviousValue.cjs";
|
|
12
|
+
import useStableLength from "./hooks/useStableLength/useStableLength.cjs";
|
|
13
|
+
import "./hooks/index.cjs";
|
|
2
14
|
import { CSSPropertiesWithVars } from "./types.cjs";
|
|
3
|
-
import {
|
|
4
|
-
|
|
15
|
+
import { AppliedProps, SkippedDefaults } from "./utils/applyDefaultProps/types.cjs";
|
|
16
|
+
import applyDefaultProps from "./utils/applyDefaultProps/applyDefaultProps.cjs";
|
|
17
|
+
import ensureComponent from "./utils/ensureComponent/ensureComponent.cjs";
|
|
18
|
+
import { ExtendableProps } from "./utils/extendElement/types.cjs";
|
|
19
|
+
import extendElement from "./utils/extendElement/extendElement.cjs";
|
|
20
|
+
import forEachContent from "./utils/forEachContent/forEachContent.cjs";
|
|
21
|
+
import forEachElement from "./utils/forEachElement/forEachElement.cjs";
|
|
22
|
+
import setRefCurrent from "./utils/setRefCurrent/setRefCurrent.cjs";
|
|
23
|
+
import transformContent from "./utils/transformContent/transformContent.cjs";
|
|
24
|
+
import transformElement from "./utils/transformElement/transformElement.cjs";
|
|
25
|
+
import "./utils/index.cjs";
|
|
26
|
+
export { type AppliedProps, type CSSPropertiesWithVars, type ExecutionFunction, type ExecutionRequest, type ExtendableProps, type LatestRef, type MarkAtResult, type SkippedDefaults, type UseExecutionAtOptions, type UseExecutionAtResult, type UsePreviousValueOptions, applyDefaultProps, ensureComponent, extendElement, forEachContent, forEachElement, markAt, setRefCurrent, transformContent, transformElement, useCombinedRefs, useConstant, useExecutionAt, useIsMounted, useLatestRef, usePreviousValue, useStableLength };
|
package/index.d.mts
CHANGED
|
@@ -1,4 +1,26 @@
|
|
|
1
|
-
import
|
|
1
|
+
import useCombinedRefs from "./hooks/useCombinedRefs/useCombinedRefs.mjs";
|
|
2
|
+
import useConstant from "./hooks/useConstant/useConstant.mjs";
|
|
3
|
+
import { MarkAtResult } from "./utils/markAt/types.mjs";
|
|
4
|
+
import markAt from "./utils/markAt/markAt.mjs";
|
|
5
|
+
import { ExecutionFunction, ExecutionRequest, UseExecutionAtOptions, UseExecutionAtResult } from "./hooks/useExecutionAt/types.mjs";
|
|
6
|
+
import useExecutionAt from "./hooks/useExecutionAt/useExecutionAt.mjs";
|
|
7
|
+
import useIsMounted from "./hooks/useIsMounted/useIsMounted.mjs";
|
|
8
|
+
import { LatestRef } from "./hooks/useLatestRef/types.mjs";
|
|
9
|
+
import useLatestRef from "./hooks/useLatestRef/useLatestRef.mjs";
|
|
10
|
+
import { UsePreviousValueOptions } from "./hooks/usePreviousValue/types.mjs";
|
|
11
|
+
import usePreviousValue from "./hooks/usePreviousValue/usePreviousValue.mjs";
|
|
12
|
+
import useStableLength from "./hooks/useStableLength/useStableLength.mjs";
|
|
13
|
+
import "./hooks/index.mjs";
|
|
2
14
|
import { CSSPropertiesWithVars } from "./types.mjs";
|
|
3
|
-
import {
|
|
4
|
-
|
|
15
|
+
import { AppliedProps, SkippedDefaults } from "./utils/applyDefaultProps/types.mjs";
|
|
16
|
+
import applyDefaultProps from "./utils/applyDefaultProps/applyDefaultProps.mjs";
|
|
17
|
+
import ensureComponent from "./utils/ensureComponent/ensureComponent.mjs";
|
|
18
|
+
import { ExtendableProps } from "./utils/extendElement/types.mjs";
|
|
19
|
+
import extendElement from "./utils/extendElement/extendElement.mjs";
|
|
20
|
+
import forEachContent from "./utils/forEachContent/forEachContent.mjs";
|
|
21
|
+
import forEachElement from "./utils/forEachElement/forEachElement.mjs";
|
|
22
|
+
import setRefCurrent from "./utils/setRefCurrent/setRefCurrent.mjs";
|
|
23
|
+
import transformContent from "./utils/transformContent/transformContent.mjs";
|
|
24
|
+
import transformElement from "./utils/transformElement/transformElement.mjs";
|
|
25
|
+
import "./utils/index.mjs";
|
|
26
|
+
export { type AppliedProps, type CSSPropertiesWithVars, type ExecutionFunction, type ExecutionRequest, type ExtendableProps, type LatestRef, type MarkAtResult, type SkippedDefaults, type UseExecutionAtOptions, type UseExecutionAtResult, type UsePreviousValueOptions, applyDefaultProps, ensureComponent, extendElement, forEachContent, forEachElement, markAt, setRefCurrent, transformContent, transformElement, useCombinedRefs, useConstant, useExecutionAt, useIsMounted, useLatestRef, usePreviousValue, useStableLength };
|
package/index.mjs
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import setRefCurrent from "./utils/setRefCurrent/setRefCurrent.mjs";
|
|
2
|
+
import useStableLength from "./hooks/useStableLength/useStableLength.mjs";
|
|
3
|
+
import useCombinedRefs from "./hooks/useCombinedRefs/useCombinedRefs.mjs";
|
|
4
|
+
import useConstant from "./hooks/useConstant/useConstant.mjs";
|
|
5
|
+
import markAt from "./utils/markAt/markAt.mjs";
|
|
6
|
+
import useExecutionAt from "./hooks/useExecutionAt/useExecutionAt.mjs";
|
|
7
|
+
import useIsMounted from "./hooks/useIsMounted/useIsMounted.mjs";
|
|
8
|
+
import useLatestRef from "./hooks/useLatestRef/useLatestRef.mjs";
|
|
9
|
+
import usePreviousValue from "./hooks/usePreviousValue/usePreviousValue.mjs";
|
|
10
|
+
import "./hooks/index.mjs";
|
|
11
|
+
import applyDefaultProps from "./utils/applyDefaultProps/applyDefaultProps.mjs";
|
|
12
|
+
import ensureComponent from "./utils/ensureComponent/ensureComponent.mjs";
|
|
13
|
+
import extendElement from "./utils/extendElement/extendElement.mjs";
|
|
14
|
+
import forEachContent from "./utils/forEachContent/forEachContent.mjs";
|
|
15
|
+
import forEachElement from "./utils/forEachElement/forEachElement.mjs";
|
|
16
|
+
import transformContent from "./utils/transformContent/transformContent.mjs";
|
|
17
|
+
import transformElement from "./utils/transformElement/transformElement.mjs";
|
|
18
|
+
import "./utils/index.mjs";
|
|
3
19
|
|
|
4
|
-
export {
|
|
20
|
+
export { applyDefaultProps, ensureComponent, extendElement, forEachContent, forEachElement, markAt, setRefCurrent, transformContent, transformElement, useCombinedRefs, useConstant, useExecutionAt, useIsMounted, useLatestRef, usePreviousValue, useStableLength };
|