convex-feedback-ui 0.2.0-beta.4 → 0.2.0-beta.6
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 +14 -8
- package/dist/.tsbuildinfo +1 -1
- package/dist/native/expo/RoadmapRoutes.d.ts +8 -0
- package/dist/native/expo/RoadmapRoutes.d.ts.map +1 -1
- package/dist/native/expo/RoadmapRoutes.js +16 -4
- package/dist/native/expo/RoadmapRoutes.js.map +1 -1
- package/dist/native/expo/RoadmapScreen.d.ts +13 -0
- package/dist/native/expo/RoadmapScreen.d.ts.map +1 -1
- package/dist/native/expo/RoadmapScreen.js +8 -3
- package/dist/native/expo/RoadmapScreen.js.map +1 -1
- package/dist/native/expo/RoadmapStackLayout.d.ts +8 -1
- package/dist/native/expo/RoadmapStackLayout.d.ts.map +1 -1
- package/dist/native/expo/RoadmapStackLayout.js +17 -1
- package/dist/native/expo/RoadmapStackLayout.js.map +1 -1
- package/dist/native/expo/index.d.ts +1 -0
- package/dist/native/expo/index.d.ts.map +1 -1
- package/dist/native/expo/index.js +1 -0
- package/dist/native/expo/index.js.map +1 -1
- package/dist/native/expo/stackInsets.d.ts +19 -0
- package/dist/native/expo/stackInsets.d.ts.map +1 -0
- package/dist/native/expo/stackInsets.js +32 -0
- package/dist/native/expo/stackInsets.js.map +1 -0
- package/dist/native/expo/types.d.ts +20 -0
- package/dist/native/expo/types.d.ts.map +1 -1
- package/dist/native/expo/useStackHeaderHeight.d.ts +10 -0
- package/dist/native/expo/useStackHeaderHeight.d.ts.map +1 -0
- package/dist/native/expo/useStackHeaderHeight.js +25 -0
- package/dist/native/expo/useStackHeaderHeight.js.map +1 -0
- package/dist/native/shared/ui/RoadmapBoard.d.ts +16 -13
- package/dist/native/shared/ui/RoadmapBoard.d.ts.map +1 -1
- package/dist/native/shared/ui/RoadmapBoard.js +40 -16
- package/dist/native/shared/ui/RoadmapBoard.js.map +1 -1
- package/dist/native/shared/ui/RoadmapScreen.d.ts +23 -3
- package/dist/native/shared/ui/RoadmapScreen.d.ts.map +1 -1
- package/dist/native/shared/ui/RoadmapScreen.js +14 -15
- package/dist/native/shared/ui/RoadmapScreen.js.map +1 -1
- package/dist/shared/context/FeedbackBodyProvider.d.ts.map +1 -1
- package/dist/shared/context/FeedbackBodyProvider.js +1 -1
- package/dist/shared/context/FeedbackBodyProvider.js.map +1 -1
- package/dist/shared/context/FeedbackProvider.d.ts.map +1 -1
- package/dist/shared/context/FeedbackProvider.js +4 -0
- package/dist/shared/context/FeedbackProvider.js.map +1 -1
- package/package.json +2 -2
- package/src/native/expo/README.md +37 -0
- package/src/native/expo/RoadmapRoutes.tsx +36 -6
- package/src/native/expo/RoadmapScreen.tsx +34 -4
- package/src/native/expo/RoadmapStackLayout.tsx +22 -0
- package/src/native/expo/index.ts +1 -0
- package/src/native/expo/stackInsets.ts +42 -0
- package/src/native/expo/types.ts +20 -0
- package/src/native/expo/useStackHeaderHeight.ts +41 -0
- package/src/native/native/README.md +11 -3
- package/src/native/shared/ui/RoadmapBoard.tsx +62 -31
- package/src/native/shared/ui/RoadmapScreen.tsx +35 -24
- package/src/shared/context/FeedbackBodyProvider.tsx +1 -3
- package/src/shared/context/FeedbackProvider.tsx +5 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
     
|
|
2
2
|
|
|
3
3
|
[Vite demo](https://convex-feedback-vite.vercel.app/) • [Expo demo](https://convex-feedback-expo.vercel.app/) • [React Native demo](https://convex-feedback-native.vercel.app/)
|
|
4
4
|
|
|
@@ -98,6 +98,8 @@ import { FeedbackScreen } from "convex-feedback-ui/native";
|
|
|
98
98
|
|
|
99
99
|
The native `FeedbackScreen` includes the feedback UI using React Native components.
|
|
100
100
|
|
|
101
|
+
The native roadmap exports also include the reusable `RoadmapBoard` and `RoadmapScreenContent`. Their `topInset` defaults to `0`, while `bottomInset` defaults to the bottom safe-area inset. These props describe space occupied by host navigation chrome: an explicit `bottomInset` is the total space, including the safe area, and replaces the default even when set to `0`. NativeTabs normally bounds content above its tab bar, so it should be left unset there.
|
|
102
|
+
|
|
101
103
|
## Expo Router
|
|
102
104
|
|
|
103
105
|
Expo Router projects can use the `/expo` entry point:
|
|
@@ -164,6 +166,12 @@ its text label:
|
|
|
164
166
|
/>
|
|
165
167
|
```
|
|
166
168
|
|
|
169
|
+
### Roadmap stack insets
|
|
170
|
+
|
|
171
|
+
The stack-enabled Expo `RoadmapScreen` and routed `RoadmapStackLayout` use a transparent native header by default. The board automatically reserves the measured native-stack header height; if that context is unavailable, the fallback is 44 points on iOS or 56 points on Android, plus the top safe-area inset. If `headerTransparent` is `false`, the native stack already places the board below the header and the automatic top inset is `0`. Set `topInset` to override that space, including with `0`.
|
|
172
|
+
|
|
173
|
+
The routed and stack-enabled roadmap also renders its native bottom search toolbar on iOS 26 and newer and includes its standard 44-point height in the default `bottomInset`. Android and older iOS versions do not receive an empty toolbar. If your host draws a toolbar or tab bar over the screen, pass `bottomInset` as the total occupied height, including the safe area; an explicit value replaces the automatic default, including `0`. NativeTabs content is already bounded above the tab bar, so omit `bottomInset` there.
|
|
174
|
+
|
|
167
175
|
### Using the Expo screen without stack integration
|
|
168
176
|
|
|
169
177
|
Expo projects do not have to use the native stack integration.
|
|
@@ -279,12 +287,7 @@ export default function Layout() {
|
|
|
279
287
|
}
|
|
280
288
|
```
|
|
281
289
|
|
|
282
|
-
The board's search and loaded list remain mounted when another screen is
|
|
283
|
-
pushed, so returning restores the prior query and scroll position. The create
|
|
284
|
-
route is a modal navigator by default. Duplicate suggestions push the normal
|
|
285
|
-
detail screen inside that modal's stack, with back and close controls. After
|
|
286
|
-
creation, the complete modal is dismissed and the created entry replaces it on
|
|
287
|
-
the board stack.
|
|
290
|
+
The board's search and loaded list remain mounted when another screen is pushed, so returning restores the prior query and scroll position. The create route is a modal navigator by default. Duplicate suggestions push the normal detail screen inside that modal's stack, with back and close controls. After creation, the complete modal is dismissed and the created entry replaces it on the board stack.
|
|
288
291
|
|
|
289
292
|
See `packages/example-expo-routed` for a complete application.
|
|
290
293
|
|
|
@@ -328,6 +331,10 @@ entry route is supplied. The board title and search field are rendered by the
|
|
|
328
331
|
Expo Router Stack, and `RoadmapBoard` is exported from the native entry points
|
|
329
332
|
for sharing the admin-style stage layout with custom cards.
|
|
330
333
|
|
|
334
|
+
On this routed stack, `topInset` and `bottomInset` can be supplied on
|
|
335
|
+
`RoadmapStackLayout` to replace the automatic header and bottom-toolbar
|
|
336
|
+
spacing.
|
|
337
|
+
|
|
331
338
|
## Diagnostic metadata
|
|
332
339
|
|
|
333
340
|
Prebuilt screens can collect creation-time diagnostic metadata for feedback entries. Collection is disabled by default and never applies to comments.
|
|
@@ -367,7 +374,6 @@ Or combine global defaults with per-kind behavior:
|
|
|
367
374
|
- A kind set to `false` disables all metadata collection for that kind.
|
|
368
375
|
- Collection happens only when the user finally submits.
|
|
369
376
|
- Unavailable or failed collection sources are omitted without blocking feedback submission.
|
|
370
|
-
|
|
371
377
|
- Web defaults include `platform`, `user agent`, `language`, `timezone`, `screen` and `viewport` dimensions, and `device pixel ratio`.
|
|
372
378
|
- React Native defaults include `platform`, `OS` version, available device model, screen `dimensions`, `pixel ratio`, and `font scale`.
|
|
373
379
|
- The Expo entry point additionally uses `expo-constants` for app `version`, `build` number, `application ID`, `Expo runtime version`, and execution `environment` when available.
|