@aiszlab/relax 1.5.3 → 1.5.5
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/class-name/index.cjs +9 -0
- package/dist/class-name/index.d.ts +2 -0
- package/dist/class-name/index.mjs +2 -0
- package/dist/class-name/normalize.cjs +32 -0
- package/dist/class-name/normalize.d.ts +2 -0
- package/dist/class-name/normalize.mjs +30 -0
- package/dist/{utils/clsx.cjs → class-name/stringify.cjs} +9 -9
- package/dist/{utils/clsx.d.ts → class-name/stringify.d.ts} +1 -1
- package/dist/{utils/clsx.mjs → class-name/stringify.mjs} +9 -9
- package/dist/dom/clipboard.cjs +26 -0
- package/dist/dom/clipboard.mjs +24 -0
- package/dist/dom/index.cjs +2 -0
- package/dist/dom/index.d.ts +2 -0
- package/dist/dom/index.mjs +1 -0
- package/dist/fetch-event-source/fetch.cjs +142 -0
- package/dist/fetch-event-source/fetch.d.ts +42 -0
- package/dist/fetch-event-source/fetch.mjs +139 -0
- package/dist/fetch-event-source/index.cjs +7 -0
- package/dist/fetch-event-source/index.d.ts +2 -0
- package/dist/fetch-event-source/index.mjs +1 -0
- package/dist/fetch-event-source/parse.cjs +182 -0
- package/dist/fetch-event-source/parse.d.ts +36 -0
- package/dist/fetch-event-source/parse.mjs +178 -0
- package/dist/hooks/use-event-source.cjs +20 -0
- package/dist/hooks/use-event-source.d.ts +6 -0
- package/dist/hooks/use-event-source.mjs +18 -0
- package/dist/hooks/use-local-storage-state.cjs +2 -2
- package/dist/hooks/use-local-storage-state.d.ts +2 -2
- package/dist/hooks/use-local-storage-state.mjs +2 -2
- package/dist/hooks/use-raf.cjs +2 -4
- package/dist/hooks/use-raf.mjs +2 -4
- package/dist/hooks/use-session-storage-state.cjs +2 -2
- package/dist/hooks/use-session-storage-state.d.ts +2 -2
- package/dist/hooks/use-session-storage-state.mjs +2 -2
- package/dist/hooks/use-storage-state.cjs +7 -7
- package/dist/hooks/use-storage-state.d.ts +2 -2
- package/dist/hooks/use-storage-state.mjs +7 -7
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +8 -15
package/dist/index.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export { useReactive } from "./hooks/use-reactive";
|
|
|
38
38
|
export { useParentSize } from "./hooks/use-parent-size";
|
|
39
39
|
export { useScreenSize } from "./hooks/use-screen-size";
|
|
40
40
|
export { useDrag } from "./hooks/use-drag";
|
|
41
|
+
export { useEventSource } from "./hooks/use-event-source";
|
|
41
42
|
/**
|
|
42
43
|
* @description
|
|
43
44
|
* is
|
|
@@ -78,7 +79,6 @@ export { clone } from "./utils/clone";
|
|
|
78
79
|
export { toggle } from "./utils/toggle";
|
|
79
80
|
export { taggedTemplateLiterals } from "./utils/tagged-template-literals";
|
|
80
81
|
export { replace } from "./utils/replace";
|
|
81
|
-
export { clsx } from "./utils/clsx";
|
|
82
82
|
export { first } from "./utils/first";
|
|
83
83
|
export { last } from "./utils/last";
|
|
84
84
|
export { merge } from "./utils/merge";
|
package/dist/index.mjs
CHANGED
|
@@ -34,6 +34,7 @@ export { useReactive } from './hooks/use-reactive.mjs';
|
|
|
34
34
|
export { useParentSize } from './hooks/use-parent-size.mjs';
|
|
35
35
|
export { useScreenSize } from './hooks/use-screen-size.mjs';
|
|
36
36
|
export { useDrag } from './hooks/use-drag.mjs';
|
|
37
|
+
export { useEventSource } from './hooks/use-event-source.mjs';
|
|
37
38
|
export { isRefable } from './is/is-refable.mjs';
|
|
38
39
|
export { isUndefined } from './is/is-undefined.mjs';
|
|
39
40
|
export { isNull } from './is/is-null.mjs';
|
|
@@ -66,7 +67,6 @@ export { clone } from './utils/clone.mjs';
|
|
|
66
67
|
export { toggle } from './utils/toggle.mjs';
|
|
67
68
|
export { taggedTemplateLiterals } from './utils/tagged-template-literals.mjs';
|
|
68
69
|
export { replace } from './utils/replace.mjs';
|
|
69
|
-
export { clsx } from './utils/clsx.mjs';
|
|
70
70
|
export { first } from './utils/first.mjs';
|
|
71
71
|
export { last } from './utils/last.mjs';
|
|
72
72
|
export { merge } from './utils/merge.mjs';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aiszlab/relax",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.5",
|
|
4
4
|
"description": "react utils collection",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -10,19 +10,12 @@
|
|
|
10
10
|
"import": "./dist/index.mjs",
|
|
11
11
|
"default": "./dist/index.mjs"
|
|
12
12
|
},
|
|
13
|
-
"
|
|
14
|
-
"types": "./dist
|
|
15
|
-
"node": "./dist
|
|
16
|
-
"require": "./dist
|
|
17
|
-
"import": "./dist
|
|
18
|
-
"default": "./dist
|
|
19
|
-
},
|
|
20
|
-
"./react": {
|
|
21
|
-
"types": "./dist/react/index.d.ts",
|
|
22
|
-
"node": "./dist/react/index.cjs",
|
|
23
|
-
"require": "./dist/react/index.cjs",
|
|
24
|
-
"import": "./dist/react/index.mjs",
|
|
25
|
-
"default": "./dist/react/index.mjs"
|
|
13
|
+
"./*": {
|
|
14
|
+
"types": "./dist/*/index.d.ts",
|
|
15
|
+
"node": "./dist/*/index.cjs",
|
|
16
|
+
"require": "./dist/*/index.cjs",
|
|
17
|
+
"import": "./dist/*/index.mjs",
|
|
18
|
+
"default": "./dist/*/index.mjs"
|
|
26
19
|
},
|
|
27
20
|
"./types": "./dist/types/index.d.ts"
|
|
28
21
|
},
|
|
@@ -59,7 +52,7 @@
|
|
|
59
52
|
"jest-environment-jsdom": "^29.7.0",
|
|
60
53
|
"react": "^18.3.1",
|
|
61
54
|
"react-dom": "^18.3.1",
|
|
62
|
-
"rollup": "^4.24.
|
|
55
|
+
"rollup": "^4.24.2",
|
|
63
56
|
"typescript": "5.6.2"
|
|
64
57
|
},
|
|
65
58
|
"peerDependencies": {
|