-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into refactor/chip
- Loading branch information
Showing
73 changed files
with
1,183 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"version": "0.10.0", | ||
"version": "0.11.0", | ||
"npmClient": "yarn", | ||
"useWorkspaces": true, | ||
"packages": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", | ||
"mainEntryPointFilePath": "<projectFolder>/dist/index.d.ts", | ||
"bundledPackages": [], | ||
"compiler": {}, | ||
"apiReport": { | ||
"enabled": false | ||
}, | ||
"docModel": { | ||
"enabled": true | ||
}, | ||
"dtsRollup": { | ||
"enabled": false | ||
}, | ||
"tsdocMetadata": {}, | ||
"messages": { | ||
"compilerMessageReporting": { | ||
"default": { | ||
"logLevel": "warning" | ||
} | ||
}, | ||
"extractorMessageReporting": { | ||
"default": { | ||
"logLevel": "warning" | ||
} | ||
}, | ||
"tsdocMessageReporting": { | ||
"default": { | ||
"logLevel": "warning" | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@rocket.chat/fuselage-hooks](./fuselage-hooks.md) | ||
|
||
## fuselage-hooks package | ||
|
||
## Functions | ||
|
||
| Function | Description | | ||
| --- | --- | | ||
| [useDebouncedReducer(reducer, initialArg, init, delay)](./fuselage-hooks.usedebouncedreducer.md) | | | ||
| [useDebouncedReducer(reducer, initialArg, init, delay)](./fuselage-hooks.usedebouncedreducer_1.md) | | | ||
| [useDebouncedReducer(reducer, initialArg, init, delay)](./fuselage-hooks.usedebouncedreducer_2.md) | | | ||
| [useDebouncedState(initialValue, delay)](./fuselage-hooks.usedebouncedstate.md) | Hook to create a state with a debounced setter function. | | ||
| [useDebouncedUpdates(\[state, dispatch\], delay)](./fuselage-hooks.usedebouncedupdates.md) | Hook to debounce the state dispatcher function returned by hooks like <code>useState()</code> and <code>useReducer()</code>. | | ||
| [useDebouncedUpdates(\[state, dispatch\], delay)](./fuselage-hooks.usedebouncedupdates_1.md) | | | ||
|
||
## Variables | ||
|
||
| Variable | Description | | ||
| --- | --- | | ||
| [useAutoFocus](./fuselage-hooks.useautofocus.md) | Hook to automatically request focus for an DOM element. | | ||
| [useBreakpoints](./fuselage-hooks.usebreakpoints.md) | Hook to catch which responsive design' breakpoints are active. | | ||
| [useDebouncedCallback](./fuselage-hooks.usedebouncedcallback.md) | Hook to memoize a debounced version of a callback. | | ||
| [useDebouncedValue](./fuselage-hooks.usedebouncedvalue.md) | Hook to keep a debounced reference of a value. | | ||
| [useIsomorphicLayoutEffect](./fuselage-hooks.useisomorphiclayouteffect.md) | Replacement for the <code>useEffect</code> hook that is safely ignored on SSR. | | ||
| [useLazyRef](./fuselage-hooks.uselazyref.md) | Hook equivalent to useRef, but with a lazy initialization for computed value. | | ||
| [useLocalStorage](./fuselage-hooks.uselocalstorage.md) | Hook to deal with localStorage | | ||
| [useMediaQueries](./fuselage-hooks.usemediaqueries.md) | Hook to listen to a set of media queries. | | ||
| [useMediaQuery](./fuselage-hooks.usemediaquery.md) | Hook to listen to a media query. | | ||
| [useMergedRefs](./fuselage-hooks.usemergedrefs.md) | Hook to merge refs and callbacks refs into a single callback ref. Useful when your component need a internal ref while receiving a forwared ref. | | ||
| [useMutableCallback](./fuselage-hooks.usemutablecallback.md) | Hook to create a stable callback from a mutable one. | | ||
| [useResizeObserver](./fuselage-hooks.useresizeobserver.md) | Hook to track dimension changes in a DOM element using the ResizeObserver API. | | ||
| [useSafely](./fuselage-hooks.usesafely.md) | Hook that wraps pairs of state and dispatcher to provide a new dispatcher which can be safe and asynchronically called even after the component unmounted. | | ||
| [useSessionStorage](./fuselage-hooks.usesessionstorage.md) | Hook to deal with sessionStorage | | ||
| [useStableArray](./fuselage-hooks.usestablearray.md) | Hook to create an array with stable identity if its elements are equal. | | ||
| [useToggle](./fuselage-hooks.usetoggle.md) | Hook to create a toggleable boolean state. | | ||
| [useUniqueId](./fuselage-hooks.useuniqueid.md) | Hook to keep a unique ID string. | | ||
|
15 changes: 15 additions & 0 deletions
15
packages/fuselage-hooks/docs/fuselage-hooks.useautofocus.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@rocket.chat/fuselage-hooks](./fuselage-hooks.md) > [useAutoFocus](./fuselage-hooks.useautofocus.md) | ||
|
||
## useAutoFocus variable | ||
|
||
Hook to automatically request focus for an DOM element. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
useAutoFocus: (isFocused?: boolean, options?: FocusOptions) => Ref<{ | ||
focus: (options?: FocusOptions) => void; | ||
}> | ||
``` |
13 changes: 13 additions & 0 deletions
13
packages/fuselage-hooks/docs/fuselage-hooks.usebreakpoints.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [@rocket.chat/fuselage-hooks](./fuselage-hooks.md) > [useBreakpoints](./fuselage-hooks.usebreakpoints.md) | ||
|
||
## useBreakpoints variable | ||
|
||
Hook to catch which responsive design' breakpoints are active. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
useBreakpoints: () => string[] | ||
``` |
Oops, something went wrong.