giggles 0.5.0 → 0.5.1

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.
Files changed (2) hide show
  1. package/dist/ui/index.js +15 -1
  2. package/package.json +2 -2
package/dist/ui/index.js CHANGED
@@ -78,6 +78,7 @@ function Inner({ onClose, render }) {
78
78
  },
79
79
  {
80
80
  capture: true,
81
+ passthrough: ["escape", "enter", "left", "right", "backspace"],
81
82
  onKeypress: (input, key) => {
82
83
  if (input.length === 1 && !key.ctrl) {
83
84
  setQuery((q) => q + input);
@@ -643,7 +644,20 @@ function Autocomplete({
643
644
  },
644
645
  {
645
646
  capture: true,
646
- passthrough: ["tab", "shift+tab", "escape"],
647
+ passthrough: [
648
+ "tab",
649
+ "shift+tab",
650
+ "escape",
651
+ "backspace",
652
+ "delete",
653
+ "left",
654
+ "right",
655
+ "home",
656
+ "end",
657
+ "up",
658
+ "down",
659
+ "enter"
660
+ ],
647
661
  onKeypress: (input, key) => {
648
662
  if (input.length === 1 && !key.ctrl && !key.return && !key.escape && !key.tab) {
649
663
  const c = cursorRef.current;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "giggles",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -40,7 +40,7 @@
40
40
  "scripts": {
41
41
  "build": "tsup",
42
42
  "build:watch": "nodemon --watch src --ext ts,tsx --exec tsup",
43
- "dev": "tsx --watch playground/index.tsx",
43
+ "play": "tsx --watch",
44
44
  "dev:docs": "pnpm build && concurrently --kill-others \"pnpm build:watch\" \"pnpm --filter documentation dev\"",
45
45
  "lint": "prettier --write . && eslint . --fix"
46
46
  },