@ssa-ui-kit/hooks 3.24.0 → 3.25.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/dist/ai/source-map.md +46 -0
- package/package.json +3 -3
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# @ssa-ui-kit/hooks — AI source map
|
|
2
|
+
|
|
3
|
+
Generated from the TypeScript program at build time — do not edit by hand.
|
|
4
|
+
|
|
5
|
+
**Everything below is imported from the package root:** `import { X } from '@ssa-ui-kit/hooks'`
|
|
6
|
+
|
|
7
|
+
1 context · 22 hooks · 1 exported type
|
|
8
|
+
|
|
9
|
+
## Reading this file
|
|
10
|
+
|
|
11
|
+
- This is an index, not a reference. For full documentation and usage examples, read the matching `.d.ts` in `dist/`.
|
|
12
|
+
|
|
13
|
+
## Contexts & providers
|
|
14
|
+
|
|
15
|
+
- `createSafeContext`
|
|
16
|
+
|
|
17
|
+
## Hooks
|
|
18
|
+
|
|
19
|
+
- `useApi`
|
|
20
|
+
- `useCallbackRef`
|
|
21
|
+
- `useClickOutside`
|
|
22
|
+
- `useClipboard`
|
|
23
|
+
- `useControllableState` — The controlled/uncontrolled dance, in one place.
|
|
24
|
+
- `useDebouncedCallback`
|
|
25
|
+
- `useDeviceType`
|
|
26
|
+
- `useElementSize`
|
|
27
|
+
- `useMinLGMediaQuery`
|
|
28
|
+
- `useMinMDMediaQuery`
|
|
29
|
+
- `useMinXLGMediaQuery`
|
|
30
|
+
- `usePaginationRange`
|
|
31
|
+
- `useResizeObserver`
|
|
32
|
+
- `useSMMediaQuery`
|
|
33
|
+
- `useTextSizeDecrease` — The hook does N attempts to decrease the font size if its text content doesn't fit its parent's width. If the text still overflows, it sets the `word-break` css rule.…
|
|
34
|
+
- `useThrottledCallback`
|
|
35
|
+
- `useThrottledCallbackWithClearTimeout`
|
|
36
|
+
- `useToggle`
|
|
37
|
+
- `useUncontrolled`
|
|
38
|
+
- `useUpToMDMediaQuery`
|
|
39
|
+
- `useWindowSize`
|
|
40
|
+
- `useXSMediaQuery`
|
|
41
|
+
|
|
42
|
+
## Exported types
|
|
43
|
+
|
|
44
|
+
_Names only — read the `.d.ts` for their shape._
|
|
45
|
+
|
|
46
|
+
`UseControllableStateOptions`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ssa-ui-kit/hooks",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.25.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"usehooks-ts": "3.1.1",
|
|
34
|
-
"@ssa-ui-kit/utils": "^3.
|
|
34
|
+
"@ssa-ui-kit/utils": "^3.25.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"react": ">=19"
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"module": "dist/index.mjs",
|
|
50
50
|
"scripts": {
|
|
51
51
|
"clean": "node ../../scripts/clean.mjs",
|
|
52
|
-
"build": "node ../../scripts/clean.mjs && webpack --mode=production --node-env=production && node ../../scripts/verify-esm-bundle.mjs && tsc --build && resolve-tspaths",
|
|
52
|
+
"build": "node ../../scripts/clean.mjs && webpack --mode=production --node-env=production && node ../../scripts/verify-esm-bundle.mjs && tsc --build && resolve-tspaths && node ../../scripts/ai-source-map.mjs .",
|
|
53
53
|
"ts-show-config": "tsc --showConfig -p ./tsconfig.json",
|
|
54
54
|
"ts-check": "tsc -p ./tsconfig.json"
|
|
55
55
|
}
|