UI: Use form attribite with a form in doc root to prevent outer form submit (#4283)

* Use form attribite with a form in doc root to prevent outer form submit

* Fix Unsplash a11y bug — don't focus on hidden links

* Combine search and filter into one SearchFilterInput component for Unsplash

* Refactor Browser and ProviderView

* Refactor FileCard to hooks

* Finish SearchFilterInput, add reset labels and no results copy, better styles

* don't use debounce for now

* combine useEffects, named export, extract RenderMetaFields component

* inputCSSClassName --> inputClassName

* Remove typo

* 🤦

* Patch Preact to work with Jest

* tabs vs spaces

---------

Co-authored-by: Antoine du Hamel <duhamelantoine1995@gmail.com>
This commit is contained in:
Artur Paikin 2023-03-30 15:04:55 +02:00 committed by GitHub
parent e6c9a4690c
commit f9e9702166
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 538 additions and 480 deletions

View file

@ -1,5 +1,53 @@
diff --git a/debug/package.json b/debug/package.json
index 054944f5478a0a5cf7b6b8791950c595f956157b..06a4fe2719605eb42c5ee795101c21cfd10b59ce 100644
--- a/debug/package.json
+++ b/debug/package.json
@@ -9,6 +9,7 @@
"umd:main": "dist/debug.umd.js",
"source": "src/index.js",
"license": "MIT",
+ "type": "module",
"mangle": {
"regex": "^(?!_renderer)^_"
},
diff --git a/devtools/package.json b/devtools/package.json
index 09b04a77690bdfba01083939ff9eaf987dd50bcb..92c159fbb3cf312c6674202085fb237d6fb921ad 100644
--- a/devtools/package.json
+++ b/devtools/package.json
@@ -10,6 +10,7 @@
"source": "src/index.js",
"license": "MIT",
"types": "src/index.d.ts",
+ "type": "module",
"peerDependencies": {
"preact": "^10.0.0"
},
diff --git a/hooks/package.json b/hooks/package.json
index 74807025bf3de273ebada2cd355428a2c972503d..98501726ffbfe55ffa09928e56a9dcafb9a348ff 100644
--- a/hooks/package.json
+++ b/hooks/package.json
@@ -10,6 +10,7 @@
"source": "src/index.js",
"license": "MIT",
"types": "src/index.d.ts",
+ "type": "module",
"scripts": {
"build": "microbundle build --raw",
"dev": "microbundle watch --raw --format cjs",
diff --git a/jsx-runtime/package.json b/jsx-runtime/package.json
index 7a4027831223f16519a74e3028c34f2f8f5f011a..6b58d17dbacce81894467ef43c0a8e2435e388c4 100644
--- a/jsx-runtime/package.json
+++ b/jsx-runtime/package.json
@@ -10,6 +10,7 @@
"source": "src/index.js",
"types": "src/index.d.ts",
"license": "MIT",
+ "type": "module",
"peerDependencies": {
"preact": "^10.0.0"
},
diff --git a/package.json b/package.json
index 60279c24a08b808ffbf7dc64a038272bddb6785d..71cb8aa038daeeb7edf43564ed78a219003a0c99 100644
index 60279c24a08b808ffbf7dc64a038272bddb6785d..088f35fb2c92f2e9b7248557857af2839988d1aa 100644
--- a/package.json
+++ b/package.json
@@ -9,6 +9,7 @@