@stoker-platform/web-app 0.5.99 → 0.5.100
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/CHANGELOG.md +9 -0
- package/package.json +4 -4
- package/src/SearchAllResults.tsx +2 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @stoker-platform/web-app
|
|
2
2
|
|
|
3
|
+
## 0.5.100
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- feat(web-app): add search-all to titles context parameter
|
|
8
|
+
- @stoker-platform/node-client@0.5.57
|
|
9
|
+
- @stoker-platform/utils@0.5.48
|
|
10
|
+
- @stoker-platform/web-client@0.5.57
|
|
11
|
+
|
|
3
12
|
## 0.5.99
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stoker-platform/web-app",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.100",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
6
6
|
"scripts": {
|
|
@@ -51,9 +51,9 @@
|
|
|
51
51
|
"@radix-ui/react-tooltip": "^1.2.8",
|
|
52
52
|
"@react-google-maps/api": "^2.20.8",
|
|
53
53
|
"@sentry/react": "^10.50.0",
|
|
54
|
-
"@stoker-platform/node-client": "0.5.
|
|
55
|
-
"@stoker-platform/utils": "0.5.
|
|
56
|
-
"@stoker-platform/web-client": "0.5.
|
|
54
|
+
"@stoker-platform/node-client": "0.5.57",
|
|
55
|
+
"@stoker-platform/utils": "0.5.48",
|
|
56
|
+
"@stoker-platform/web-client": "0.5.57",
|
|
57
57
|
"@tanstack/react-table": "^8.21.3",
|
|
58
58
|
"@types/react": "18.3.13",
|
|
59
59
|
"@types/react-dom": "18.3.1",
|
package/src/SearchAllResults.tsx
CHANGED
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
getLoadingState,
|
|
12
12
|
getSome,
|
|
13
13
|
subscribeMany,
|
|
14
|
+
tryPromise,
|
|
14
15
|
} from "@stoker-platform/web-client"
|
|
15
16
|
import { Query } from "./Collection"
|
|
16
17
|
import { QueryConstraint, where, WhereFilterOp } from "firebase/firestore"
|
|
@@ -166,12 +167,7 @@ export function SearchAllResults({ collection, search }: { collection: Collectio
|
|
|
166
167
|
|
|
167
168
|
useEffect(() => {
|
|
168
169
|
const initialize = async () => {
|
|
169
|
-
const collectionTitles = await
|
|
170
|
-
"collections",
|
|
171
|
-
labels.collection,
|
|
172
|
-
"admin",
|
|
173
|
-
"titles",
|
|
174
|
-
])
|
|
170
|
+
const collectionTitles = await tryPromise(customization.admin?.titles, ["search-all"])
|
|
175
171
|
setTitle(collectionTitles?.collection || labels.collection)
|
|
176
172
|
const icon = await getCachedConfigValue(customization, ["collections", labels.collection, "admin", "icon"])
|
|
177
173
|
setIcon(icon)
|