feat: library search (#9903)

* feat(utils): add support for search input type in isWritableElement

* feat(i18n): add search text

* feat(cmdp+lib): add search functionality for command pallete and lib menu items

* chore: fix formats, and whitespaces

* fix: opt to optimal code changes

* chore: fix for linting

* focus input on mount

* tweak placeholder

* design and UX changes

* tweak item hover/active/seletected states

* unrelated: move publish button above delete/clear to keep it more stable

* esc to clear search input / close sidebar

* refactor command pallete library stuff

* make library commands bigger

---------

Co-authored-by: dwelle <5153846+dwelle@users.noreply.github.com>
This commit is contained in:
Archie Sengupta
2025-09-28 22:16:28 +02:00
committed by GitHub
co-authored by dwelle
parent dcdeb2be57
commit ec070911b8
19 changed files with 458 additions and 182 deletions
+7 -2
View File
@@ -181,7 +181,12 @@
"library": {
"noItems": "No items added yet...",
"hint_emptyLibrary": "Select an item on canvas to add it here, or install a library from the public repository, below.",
"hint_emptyPrivateLibrary": "Select an item on canvas to add it here."
"hint_emptyPrivateLibrary": "Select an item on canvas to add it here.",
"search": {
"inputPlaceholder": "Search library",
"heading": "Library matches",
"noResults": "No matching items found..."
}
},
"search": {
"title": "Find on canvas",
@@ -227,7 +232,7 @@
"clear": "Clear",
"remove": "Remove",
"embed": "Toggle embedding",
"publishLibrary": "Publish",
"publishLibrary": "Publish selected",
"submit": "Submit",
"confirm": "Confirm",
"embeddableInteractionButton": "Click to interact"