giggles 0.2.1 → 0.2.3
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.md +10 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +9 -1
package/README.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
|
-
[](https://github.com/zion-off/giggles/actions/workflows/giggles-lint.yml)
|
|
2
|
-
[](https://github.com/zion-off/giggles/actions/workflows/giggles-cd.yml)
|
|
3
1
|
[](https://www.npmjs.com/package/giggles)
|
|
4
2
|
[](https://www.npmjs.com/package/giggles)
|
|
3
|
+
[](https://giggles.zzzzion.com)
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
# giggles
|
|
6
|
+
|
|
7
|
+
the easiest way to build terminal apps with react.
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
npx create-giggles-app
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
see [giggles.zzzzion.com](https://giggles.zzzzion.com) for docs.
|
package/dist/index.d.ts
CHANGED
|
@@ -80,4 +80,4 @@ type NavigationContextValue = {
|
|
|
80
80
|
|
|
81
81
|
declare const useNavigation: () => NavigationContextValue;
|
|
82
82
|
|
|
83
|
-
export { FocusGroup, type FocusHandle, FocusTrap, GigglesError, GigglesProvider, type KeyHandler, type KeybindingOptions, type Keybindings, type NavigationContextValue, Router, Screen,
|
|
83
|
+
export { FocusGroup, type FocusHandle, FocusTrap, GigglesError, GigglesProvider, type KeyHandler, type KeybindingOptions, type Keybindings, type NavigationContextValue, Router, Screen, useFocus, useFocusState, useKeybindings, useNavigation };
|
package/dist/index.js
CHANGED
|
@@ -481,7 +481,7 @@ function ScreenEntry({
|
|
|
481
481
|
focusFirstChild(screenNodeId);
|
|
482
482
|
}
|
|
483
483
|
wasTopRef.current = isTop;
|
|
484
|
-
}, [isTop, screenNodeId, focusFirstChild, focusNode, getFocusedId]);
|
|
484
|
+
}, [isTop, screenNodeId, restoreFocus, focusFirstChild, focusNode, getFocusedId]);
|
|
485
485
|
const value = useMemo2(
|
|
486
486
|
() => ({ currentRoute: entry, active: isTop, canGoBack, push, pop, replace, reset }),
|
|
487
487
|
[entry, isTop, canGoBack, push, pop, replace, reset]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "giggles",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,6 +15,13 @@
|
|
|
15
15
|
"types": "./dist/index.d.ts"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
+
"keywords": [
|
|
19
|
+
"tui",
|
|
20
|
+
"terminal",
|
|
21
|
+
"cli",
|
|
22
|
+
"react",
|
|
23
|
+
"ink"
|
|
24
|
+
],
|
|
18
25
|
"engines": {
|
|
19
26
|
"node": ">=16"
|
|
20
27
|
},
|
|
@@ -22,6 +29,7 @@
|
|
|
22
29
|
"build": "tsup",
|
|
23
30
|
"build:watch": "nodemon --watch src --ext ts,tsx --exec tsup",
|
|
24
31
|
"dev": "tsx --watch playground/index.tsx",
|
|
32
|
+
"dev:docs": "pnpm build && cd documentation && pnpm link ../ && pnpm dev",
|
|
25
33
|
"lint": "prettier --write . && eslint . --fix"
|
|
26
34
|
},
|
|
27
35
|
"files": [
|