@vvedantb/native-ui 0.38.0 → 0.40.0
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/dist/Avatar.jsx +22 -19
- package/dist/BottomSheetContainer.jsx +0 -6
- package/dist/BulkActionBar.jsx +0 -24
- package/dist/Button.jsx +92 -116
- package/dist/Card.jsx +56 -50
- package/dist/ColorSwatches.jsx +0 -6
- package/dist/Dialog.jsx +0 -12
- package/dist/DropdownMenu.jsx +0 -10
- package/dist/EmptyState.jsx +0 -3
- package/dist/ExpoWebRoot.jsx +0 -6
- package/dist/Field.jsx +0 -17
- package/dist/FloatingSurface.jsx +95 -80
- package/dist/FloatingTabBar.jsx +0 -23
- package/dist/IconButton.jsx +0 -1
- package/dist/LoadingState.jsx +0 -6
- package/dist/PasswordInput.jsx +0 -15
- package/dist/PillTabs.jsx +39 -36
- package/dist/SearchInput.jsx +0 -13
- package/dist/SectionLabel.jsx +0 -1
- package/dist/SharedTransition.jsx +0 -3
- package/dist/Skeleton.jsx +0 -2
- package/dist/Spinner.jsx +0 -2
- package/dist/StatusDot.jsx +0 -5
- package/dist/Switch.jsx +32 -22
- package/dist/Tabs.jsx +27 -26
- package/dist/Textarea.jsx +0 -1
- package/dist/ThemeToggle.jsx +0 -1
- package/dist/Toast.jsx +80 -91
- package/dist/UpdateChecker.jsx +0 -1
- package/dist/ai/activity-question.jsx +0 -6
- package/dist/ai/activity-step-label.js +0 -6
- package/dist/ai/activity-step-types.js +0 -4
- package/dist/ai/activity-tasks-utils.js +0 -17
- package/dist/ai/activity-timeline.js +0 -8
- package/dist/ai/attachments.jsx +0 -2
- package/dist/ai/chain-of-thought.jsx +0 -3
- package/dist/ai/chat-text.js +2 -3
- package/dist/ai/chat-thread.jsx +0 -1
- package/dist/ai/choice-question.jsx +0 -10
- package/dist/ai/code-block.jsx +0 -31
- package/dist/ai/collapsible.jsx +0 -14
- package/dist/ai/conversation-context.js +0 -3
- package/dist/ai/conversation.jsx +2 -48
- package/dist/ai/file-chip.jsx +0 -2
- package/dist/ai/icon-button.jsx +10 -18
- package/dist/ai/index.js +0 -5
- package/dist/ai/message-context-menu.jsx +0 -7
- package/dist/ai/message.jsx +0 -21
- package/dist/ai/prompt-input-menu.jsx +0 -3
- package/dist/ai/prompt-input.jsx +2 -29
- package/dist/ai/response-text.jsx +0 -6
- package/dist/ai/sources.jsx +0 -1
- package/dist/ai/suggestion.jsx +0 -1
- package/dist/ai/trace.jsx +0 -11
- package/dist/ai/unified-diff.jsx +0 -4
- package/dist/auth/AuthScreen.jsx +0 -5
- package/dist/auth/GoogleSignInButton.jsx +0 -3
- package/dist/auth/SecondFactorScreen.jsx +0 -2
- package/dist/auth/SignInScreen.jsx +0 -17
- package/dist/auth/authErrors.js +0 -4
- package/dist/auth/clerkCore3.js +0 -7
- package/dist/auth/index.js +0 -4
- package/dist/auth/totp.js +0 -2
- package/dist/brand/GoogleMark.jsx +0 -1
- package/dist/brand/ProviderIcon.jsx +0 -2
- package/dist/brand/index.js +0 -3
- package/dist/brand/svg.js +0 -6
- package/dist/configureTheme.js +0 -9
- package/dist/controlStyles.js +0 -14
- package/dist/crash/lastCrash.js +3 -24
- package/dist/entries/ai.js +0 -3
- package/dist/entries/ambient.js +0 -2
- package/dist/entries/app-root.js +0 -5
- package/dist/entries/auth.js +0 -4
- package/dist/entries/bottom-sheet.js +0 -2
- package/dist/entries/brand.js +0 -1
- package/dist/entries/button.js +0 -1
- package/dist/entries/crash.js +0 -3
- package/dist/entries/date-time.js +0 -2
- package/dist/entries/expo-router.js +0 -3
- package/dist/entries/expo-web-root.js +0 -2
- package/dist/entries/floating.js +0 -2
- package/dist/entries/generative-ui.js +0 -4
- package/dist/entries/gesture-handler.js +0 -3
- package/dist/entries/keyboard-controller.js +0 -3
- package/dist/entries/layout.js +0 -2
- package/dist/entries/markdown.js +0 -3
- package/dist/entries/marketing.js +0 -1
- package/dist/entries/page-title.js +0 -5
- package/dist/entries/password-input.js +0 -2
- package/dist/entries/paste-input.js +0 -3
- package/dist/entries/primitives.js +0 -6
- package/dist/entries/search-input.js +0 -2
- package/dist/entries/tab-bar.js +0 -2
- package/dist/entries/theme.js +1 -2
- package/dist/entries/toast.js +0 -3
- package/dist/entries/video.js +0 -2
- package/dist/entries/webview.js +0 -2
- package/dist/examples/AiChatGallery.jsx +0 -11
- package/dist/examples/ParityGallery.jsx +0 -12
- package/dist/floating.js +0 -8
- package/dist/generative-ui/GenerativeUiPanel.jsx +0 -2
- package/dist/generative-ui/components.jsx +0 -8
- package/dist/glass.js +55 -0
- package/dist/glassBlur.jsx +0 -12
- package/dist/highlight.js +0 -26
- package/dist/index.js +1 -2
- package/dist/loadingGrid.js +0 -13
- package/dist/markdown/Markdown.jsx +0 -59
- package/dist/markdown/MarkdownTable.jsx +0 -18
- package/dist/markdown/tableText.js +0 -5
- package/dist/marketing/UpgradeToProCard.jsx +0 -5
- package/dist/marketing/pricing.js +0 -3
- package/dist/media/ImageGallery.jsx +0 -16
- package/dist/media/imageZoom.js +0 -4
- package/dist/media/zoom-image-gesture.jsx +0 -8
- package/dist/media/zoomImage.js +0 -3
- package/dist/motion.js +0 -3
- package/dist/neutralTheme.js +0 -5
- package/dist/pagerSwipe.js +0 -16
- package/dist/palette.js +0 -10
- package/dist/primitives/button.jsx +0 -5
- package/dist/primitives/keyboard-controller.jsx +0 -27
- package/dist/primitives/native-only-animated-view.jsx +0 -5
- package/dist/primitives/overlay.jsx +0 -2
- package/dist/primitives/pager-gesture.jsx +3 -29
- package/dist/primitives/paste-input.jsx +0 -5
- package/dist/primitives/select.jsx +0 -8
- package/dist/primitives/sheet-drag.jsx +0 -3
- package/dist/primitives/sheet-gesture.jsx +0 -8
- package/dist/primitives/swipe-row-gesture.jsx +3 -45
- package/dist/primitives/text.jsx +0 -5
- package/dist/primitives/toast-drag-gesture.jsx +4 -24
- package/dist/primitives/web-click-guard.js +0 -3
- package/dist/primitives/window-layer.jsx +0 -14
- package/dist/push.js +0 -6
- package/dist/relativeTime.js +0 -13
- package/dist/settings/MoreFromProjectV.jsx +0 -5
- package/dist/settings/ThemeModePicker.jsx +0 -4
- package/dist/settings/projectVMobileApps.js +1 -6
- package/dist/sheetDrag.js +0 -10
- package/dist/swipeRow.js +0 -15
- package/dist/tabBarRoutes.js +0 -4
- package/dist/tabIndicator.js +0 -4
- package/dist/tailwind-preset.cjs +0 -54
- package/dist/tailwind-preset.d.cts +0 -8
- package/dist/theme.jsx +29 -21
- package/dist/themeModeStore.js +0 -5
- package/dist/toastChrome.js +0 -6
- package/dist/toastDrag.js +0 -14
- package/dist/toastStore.js +0 -4
- package/dist/updateCheck.js +0 -7
- package/dist/video/InlineVideo.jsx +0 -2
- package/dist/webview/htmlView.js +0 -5
- package/package.json +3 -3
- package/src/ArtifactList.tsx +0 -2
- package/src/Avatar.tsx +3 -3
- package/src/Badge.tsx +0 -1
- package/src/BottomSheetContainer.tsx +0 -11
- package/src/BulkActionBar.tsx +0 -66
- package/src/Button.tsx +4 -40
- package/src/CaptureButton.tsx +0 -1
- package/src/Card.tsx +3 -15
- package/src/Checkbox.tsx +0 -2
- package/src/ColorSwatches.tsx +0 -9
- package/src/ConfirmDialog.tsx +0 -7
- package/src/DateTimeField.tsx +0 -5
- package/src/Dialog.tsx +0 -27
- package/src/DividedList.tsx +0 -1
- package/src/DropdownMenu.tsx +0 -51
- package/src/EmptyState.tsx +0 -5
- package/src/ExpoWebRoot.tsx +0 -10
- package/src/Field.tsx +0 -14
- package/src/FloatingFAB.tsx +0 -3
- package/src/FloatingSurface.tsx +11 -8
- package/src/FloatingTabBar.tsx +0 -25
- package/src/IconButton.tsx +0 -5
- package/src/Input.tsx +0 -1
- package/src/Label.tsx +0 -1
- package/src/LabeledSwitchRow.tsx +0 -2
- package/src/ListRow.tsx +0 -12
- package/src/LoadingState.tsx +0 -12
- package/src/MenuSheet.tsx +0 -2
- package/src/PageIndicator.tsx +0 -2
- package/src/PageTitle.tsx +0 -15
- package/src/Pager.tsx +0 -9
- package/src/PasswordInput.tsx +0 -24
- package/src/PillTabs.tsx +3 -11
- package/src/PinnedBotTile.tsx +0 -6
- package/src/Progress.tsx +0 -3
- package/src/ReactionRow.tsx +0 -8
- package/src/ScreenContainer.tsx +0 -4
- package/src/SearchInput.tsx +0 -25
- package/src/SectionLabel.tsx +0 -2
- package/src/Select.tsx +0 -6
- package/src/Separator.tsx +0 -2
- package/src/SharedTransition.tsx +0 -7
- package/src/Sheet.tsx +0 -3
- package/src/SheetRow.tsx +0 -12
- package/src/Skeleton.tsx +0 -10
- package/src/Spinner.tsx +0 -6
- package/src/StackPageHeader.tsx +0 -16
- package/src/StatGrid.tsx +0 -1
- package/src/StatusDot.tsx +0 -6
- package/src/SurfaceRow.tsx +0 -12
- package/src/SwipeableRow.tsx +0 -4
- package/src/Switch.tsx +3 -4
- package/src/Tabs.tsx +3 -27
- package/src/Textarea.tsx +0 -2
- package/src/ThemeToggle.tsx +0 -1
- package/src/Toast.tsx +3 -19
- package/src/UpdateChecker.tsx +0 -46
- package/src/ai/activity-question.tsx +0 -8
- package/src/ai/activity-step-detail.tsx +0 -5
- package/src/ai/activity-step-label.ts +0 -5
- package/src/ai/activity-step-types.ts +0 -24
- package/src/ai/activity-step.tsx +0 -4
- package/src/ai/activity-tasks-utils.ts +0 -13
- package/src/ai/activity-timeline.ts +0 -6
- package/src/ai/attachments.tsx +0 -13
- package/src/ai/chain-of-thought.tsx +0 -5
- package/src/ai/chat-jump-rail.tsx +0 -2
- package/src/ai/chat-text.ts +2 -3
- package/src/ai/chat-thread.tsx +0 -9
- package/src/ai/choice-question.tsx +0 -36
- package/src/ai/code-block.tsx +0 -52
- package/src/ai/collapsible.tsx +0 -12
- package/src/ai/conversation-context.ts +0 -14
- package/src/ai/conversation.tsx +0 -58
- package/src/ai/file-chip.tsx +0 -1
- package/src/ai/icon-button.tsx +5 -22
- package/src/ai/index.ts +0 -5
- package/src/ai/message-action-sheet.tsx +0 -8
- package/src/ai/message-context-menu.tsx +0 -22
- package/src/ai/message-quote.tsx +0 -4
- package/src/ai/message.tsx +0 -66
- package/src/ai/prompt-input-menu.tsx +0 -19
- package/src/ai/prompt-input.tsx +1 -98
- package/src/ai/reasoning.tsx +0 -6
- package/src/ai/reply-quote-chip.tsx +0 -5
- package/src/ai/response-text.tsx +0 -8
- package/src/ai/shimmer.tsx +0 -2
- package/src/ai/sources.tsx +0 -3
- package/src/ai/subagent-cards.tsx +0 -13
- package/src/ai/suggestion.tsx +0 -4
- package/src/ai/tool-approval-card.tsx +0 -14
- package/src/ai/trace.tsx +0 -23
- package/src/ai/unified-diff.tsx +0 -16
- package/src/ai/use-streaming-disclosure.ts +0 -4
- package/src/app-root/AuthGroupGate.tsx +0 -8
- package/src/app-root/SsoCallbackScreen.tsx +0 -10
- package/src/app-root/fonts.ts +0 -2
- package/src/auth/AccountScreens.tsx +0 -16
- package/src/auth/AuthProviders.tsx +0 -13
- package/src/auth/AuthScreen.tsx +0 -12
- package/src/auth/GoogleSignInButton.tsx +0 -12
- package/src/auth/SecondFactorScreen.tsx +0 -16
- package/src/auth/SignInScreen.tsx +0 -68
- package/src/auth/authErrors.ts +0 -6
- package/src/auth/clerkCore3.ts +0 -6
- package/src/auth/index.ts +0 -4
- package/src/auth/totp.ts +0 -13
- package/src/brand/AppIcons.tsx +0 -6
- package/src/brand/AppMark.tsx +0 -5
- package/src/brand/AppWordmark.tsx +0 -7
- package/src/brand/GoogleMark.tsx +0 -4
- package/src/brand/ProviderIcon.tsx +0 -6
- package/src/brand/familyApps.ts +0 -2
- package/src/brand/index.ts +0 -3
- package/src/brand/svg.ts +0 -9
- package/src/configureTheme.ts +0 -10
- package/src/controlStyles.ts +0 -12
- package/src/crash/LastCrashDialog.tsx +0 -6
- package/src/crash/lastCrash.ts +0 -21
- package/src/entries/ai.ts +0 -3
- package/src/entries/ambient.ts +0 -2
- package/src/entries/app-root.ts +0 -5
- package/src/entries/auth.ts +0 -4
- package/src/entries/bottom-sheet.ts +0 -2
- package/src/entries/brand.ts +0 -1
- package/src/entries/button.ts +0 -1
- package/src/entries/crash.ts +0 -3
- package/src/entries/date-time.ts +0 -2
- package/src/entries/expo-router.ts +0 -3
- package/src/entries/expo-web-root.ts +0 -2
- package/src/entries/floating.ts +0 -2
- package/src/entries/generative-ui.ts +0 -4
- package/src/entries/gesture-handler.ts +0 -3
- package/src/entries/keyboard-controller.ts +0 -3
- package/src/entries/layout.ts +0 -2
- package/src/entries/markdown.ts +0 -3
- package/src/entries/marketing.ts +0 -1
- package/src/entries/page-title.ts +0 -5
- package/src/entries/password-input.ts +0 -2
- package/src/entries/paste-input.ts +0 -3
- package/src/entries/primitives.ts +0 -6
- package/src/entries/search-input.ts +0 -2
- package/src/entries/tab-bar.ts +0 -2
- package/src/entries/theme.ts +2 -2
- package/src/entries/toast.ts +0 -3
- package/src/entries/video.ts +0 -2
- package/src/entries/webview.ts +0 -2
- package/src/examples/AiChatGallery.tsx +0 -11
- package/src/examples/ParityGallery.tsx +0 -25
- package/src/floating.ts +0 -6
- package/src/generative-ui/GenerativeUiPanel.tsx +0 -15
- package/src/generative-ui/components.tsx +0 -9
- package/src/generative-ui/context.ts +0 -2
- package/src/glass.ts +31 -0
- package/src/glassBlur.tsx +0 -15
- package/src/highlight.ts +0 -20
- package/src/index.ts +2 -2
- package/src/loadingGrid.ts +0 -12
- package/src/markdown/Markdown.tsx +0 -71
- package/src/markdown/MarkdownTable.tsx +0 -23
- package/src/markdown/tableText.ts +0 -3
- package/src/marketing/PricingModal.tsx +0 -13
- package/src/marketing/UpgradeToProCard.tsx +0 -14
- package/src/marketing/pricing.ts +0 -12
- package/src/media/ImageGallery.tsx +0 -18
- package/src/media/MediaCard.tsx +0 -8
- package/src/media/imageZoom.ts +0 -4
- package/src/media/zoom-image-gesture.tsx +0 -9
- package/src/media/zoomImage.ts +0 -5
- package/src/motion.ts +0 -3
- package/src/neutralTheme.ts +0 -3
- package/src/pagerSwipe.ts +0 -13
- package/src/palette.ts +0 -10
- package/src/pressScale.ts +0 -7
- package/src/primitives/button.tsx +0 -4
- package/src/primitives/card.tsx +0 -1
- package/src/primitives/input.tsx +0 -4
- package/src/primitives/keyboard-controller.tsx +0 -25
- package/src/primitives/keyboard-parts.tsx +0 -27
- package/src/primitives/native-only-animated-view.tsx +0 -5
- package/src/primitives/overlay.tsx +0 -25
- package/src/primitives/pager-gesture.tsx +0 -20
- package/src/primitives/paste-input.tsx +0 -4
- package/src/primitives/paste-parts.tsx +0 -1
- package/src/primitives/select.tsx +0 -16
- package/src/primitives/sheet-drag.tsx +0 -19
- package/src/primitives/sheet-gesture.tsx +0 -22
- package/src/primitives/swipe-row-gesture.tsx +0 -33
- package/src/primitives/switch.tsx +0 -4
- package/src/primitives/text.tsx +0 -4
- package/src/primitives/toast-drag-gesture.tsx +0 -13
- package/src/primitives/web-click-guard.ts +0 -2
- package/src/primitives/window-layer.tsx +0 -18
- package/src/push.ts +0 -15
- package/src/relativeTime.ts +0 -21
- package/src/router/RouterStackPageHeader.tsx +0 -1
- package/src/settings/MoreFromProjectV.tsx +0 -8
- package/src/settings/SettingsEmptyState.tsx +0 -2
- package/src/settings/SettingsSection.tsx +0 -3
- package/src/settings/SettingsToggleRow.tsx +0 -4
- package/src/settings/ThemeModePicker.tsx +0 -11
- package/src/settings/projectVMobileApps.ts +0 -8
- package/src/sheetDrag.ts +0 -9
- package/src/swipeRow.ts +0 -23
- package/src/tabBarRoutes.ts +0 -13
- package/src/tabIndicator.ts +0 -5
- package/src/tailwind-preset.cjs +0 -54
- package/src/tailwind-preset.d.cts +0 -8
- package/src/theme.tsx +11 -2
- package/src/themeModeStore.ts +0 -9
- package/src/toastChrome.ts +0 -6
- package/src/toastDrag.ts +0 -13
- package/src/toastStore.ts +0 -7
- package/src/updateCheck.ts +0 -15
- package/src/video/InlineVideo.tsx +0 -5
- package/src/webview/HtmlView.tsx +0 -23
- package/src/webview/HtmlView.web.tsx +0 -1
- package/src/webview/htmlView.ts +0 -5
|
@@ -154,7 +154,6 @@ export function SignInScreen({
|
|
|
154
154
|
heroForeground
|
|
155
155
|
};
|
|
156
156
|
const labelled = (label, control) => showFieldLabels ? <SettingsField label={label}>{control}</SettingsField> : control;
|
|
157
|
-
// Both are always defined: before Clerk loads, a call waits for it.
|
|
158
157
|
const signIn = signInCalls(useSignIn().signIn);
|
|
159
158
|
const signUpAttempt = useSignUp().signUp;
|
|
160
159
|
const router = useRouter();
|
|
@@ -184,7 +183,6 @@ export function SignInScreen({
|
|
|
184
183
|
});
|
|
185
184
|
const [error, setError] = useState("");
|
|
186
185
|
const [submitting, setSubmitting] = useState(false);
|
|
187
|
-
// The field each "next" key moves to.
|
|
188
186
|
const passwordField = useRef(null);
|
|
189
187
|
const confirmField = useRef(null);
|
|
190
188
|
const signUp = mode === "sign-up";
|
|
@@ -201,8 +199,6 @@ export function SignInScreen({
|
|
|
201
199
|
const warnIncomplete = attempt => {
|
|
202
200
|
console.warn(`[native-ui] Sign-in not complete: status=${attempt.status}, ` + `secondFactors=${JSON.stringify((attempt.supportedSecondFactors ?? []).map(f => f.strategy))}, ` + `firstFactors=${JSON.stringify((attempt.supportedFirstFactors ?? []).map(f_0 => f_0.strategy))}. ` + "Pass onIncomplete to handle it in the app.");
|
|
203
201
|
};
|
|
204
|
-
|
|
205
|
-
// A status the built-in UI cannot finish: the app's `onIncomplete`, or the web fallback.
|
|
206
202
|
const unhandled = attempt_0 => {
|
|
207
203
|
if (onIncomplete) return onIncomplete(attempt_0);
|
|
208
204
|
warnIncomplete(attempt_0);
|
|
@@ -243,10 +239,7 @@ export function SignInScreen({
|
|
|
243
239
|
setFirstFactors(list_2);
|
|
244
240
|
await chooseFirstStrategy(strategy_2, list_2);
|
|
245
241
|
};
|
|
246
|
-
|
|
247
|
-
// Routes a sign-in attempt. `needs_first_factor` is built in only after `signIn.create`.
|
|
248
242
|
const routeAttempt = async (attempt_3, afterCreate) => {
|
|
249
|
-
// Clerk's `SignInStatus` omits `needs_client_trust`: widen before comparing.
|
|
250
243
|
const status = attempt_3.status;
|
|
251
244
|
if (status === "complete" && attempt_3.createdSessionId) {
|
|
252
245
|
await withAuthTimeout(signIn.setActive(), "set-active", stageTimeoutMs);
|
|
@@ -302,13 +295,11 @@ export function SignInScreen({
|
|
|
302
295
|
setError("");
|
|
303
296
|
try {
|
|
304
297
|
const result_0 = await withAuthTimeout(signIn.resetPassword(newPassword), "reset-password", stageTimeoutMs);
|
|
305
|
-
// Clerk's `SignInStatus` omits `needs_client_trust`: widen before comparing.
|
|
306
298
|
const afterReset = result_0.status;
|
|
307
299
|
if (afterReset === "complete" && result_0.createdSessionId) {
|
|
308
300
|
await withAuthTimeout(signIn.setActive(), "set-active", stageTimeoutMs);
|
|
309
301
|
done();
|
|
310
302
|
} else if (afterReset === "needs_second_factor" || afterReset === "needs_client_trust") {
|
|
311
|
-
// A reset on an account with two-step verification: the code step, then the session.
|
|
312
303
|
setPendingNewPassword(false);
|
|
313
304
|
await startSecondFactor(result_0, afterReset === "needs_client_trust");
|
|
314
305
|
} else if (onIncomplete) {
|
|
@@ -341,8 +332,6 @@ export function SignInScreen({
|
|
|
341
332
|
setSubmitting(false);
|
|
342
333
|
}
|
|
343
334
|
};
|
|
344
|
-
|
|
345
|
-
// Emails the reset code. Throws what the call throws.
|
|
346
335
|
const requestResetCode = async () => {
|
|
347
336
|
await withAuthTimeout(signIn.sendResetCode(email.trim()), "create", stageTimeoutMs);
|
|
348
337
|
};
|
|
@@ -375,8 +364,6 @@ export function SignInScreen({
|
|
|
375
364
|
setResetLoading(false);
|
|
376
365
|
}
|
|
377
366
|
};
|
|
378
|
-
|
|
379
|
-
// Checks the emailed code. A good code gives `needs_new_password`, which `routeAttempt` shows.
|
|
380
367
|
const onResetCode = async resetCode => {
|
|
381
368
|
if (resetLoading) return;
|
|
382
369
|
setResetLoading(true);
|
|
@@ -405,7 +392,6 @@ export function SignInScreen({
|
|
|
405
392
|
if (result_1.ok) done();
|
|
406
393
|
};
|
|
407
394
|
const onSecondFactorBack = () => {
|
|
408
|
-
// The pending attempt stays; the next `signIn.create` replaces it.
|
|
409
395
|
setPendingSecondFactor(false);
|
|
410
396
|
setPendingFirstFactor(false);
|
|
411
397
|
setFirstError("");
|
|
@@ -425,7 +411,6 @@ export function SignInScreen({
|
|
|
425
411
|
return fail(AUTH_MESSAGES.signUpFailed, `Use at least ${minPasswordLength} characters for the password`);
|
|
426
412
|
}
|
|
427
413
|
if (password !== signUpConfirm) {
|
|
428
|
-
// Always under the confirm field, also with `errorDisplay="toast"`.
|
|
429
414
|
setError("");
|
|
430
415
|
setMismatch(true);
|
|
431
416
|
return;
|
|
@@ -510,7 +495,6 @@ export function SignInScreen({
|
|
|
510
495
|
const active = secondFactor.strategy;
|
|
511
496
|
const available = supportedSecondFactorStrategies(factors);
|
|
512
497
|
const others_0 = available.filter(strategy_4 => strategy_4 !== active);
|
|
513
|
-
// From a backup code, go back to the default non-backup method. Otherwise offer a backup code.
|
|
514
498
|
const switchTo_0 = active === "backup_code" ? pickSecondFactorStrategy(factors.filter(factor_1 => factor_1.strategy !== "backup_code")) : others_0.includes("backup_code") ? "backup_code" : null;
|
|
515
499
|
const copy_0 = secondFactorCopy(active, clientTrust);
|
|
516
500
|
const backup = active === "backup_code";
|
|
@@ -564,7 +548,6 @@ export function SignInScreen({
|
|
|
564
548
|
<Button testID={id("submit")} loading={submitting} onPress={() => void (reset ? onResetRequest() : signUp ? onSignUp() : onSignIn())}>
|
|
565
549
|
{reset ? AUTH_MESSAGES.sendResetCode : submitLabel ?? (signUp ? "Create account" : "Sign in")}
|
|
566
550
|
</Button>
|
|
567
|
-
{/* Bot protection mounts its widget here on web sign-up. */}
|
|
568
551
|
{signUp ? <View nativeID="clerk-captcha" /> : null}
|
|
569
552
|
</AuthScreen>;
|
|
570
553
|
}
|
package/dist/auth/authErrors.js
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { isClerkAPIResponseError } from "@clerk/expo";
|
|
2
|
-
|
|
3
|
-
/** Words that must not reach the user: the auth provider and stack names. */
|
|
4
2
|
const PRODUCT_NAMES = /\b(clerk|convex)\b/gi;
|
|
5
3
|
|
|
6
4
|
/** The only Clerk codes that mean "Invalid email or password". */
|
|
7
5
|
export const CREDENTIAL_ERROR_CODES = ["form_password_incorrect", "form_identifier_not_found"];
|
|
8
6
|
const asString = value => typeof value === "string" && value.length > 0 ? value : undefined;
|
|
9
|
-
|
|
10
|
-
/** Reads a Clerk API error, or a plain `{ errors: [...] }` object. No `zod`. */
|
|
11
7
|
function parseAuthError(error) {
|
|
12
8
|
if (typeof error !== "object" || error === null) return null;
|
|
13
9
|
const record = error;
|
package/dist/auth/clerkCore3.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/** The sign-in resource of the `useSignIn` hook at the root of `@clerk/expo` 4. */
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
2
|
* Awaits a call on Clerk's sign-in or sign-up resource. These calls resolve
|
|
5
3
|
* with `{ error }` where the older ones rejected: this throws that error, so
|
|
@@ -32,7 +30,6 @@ export function signInCalls(signIn) {
|
|
|
32
30
|
get supportedSecondFactors() {
|
|
33
31
|
return signIn.supportedSecondFactors;
|
|
34
32
|
},
|
|
35
|
-
/** Starts a new sign-in with email and password. */
|
|
36
33
|
async password(identifier, password) {
|
|
37
34
|
await clerkCall(signIn.password({
|
|
38
35
|
identifier,
|
|
@@ -40,7 +37,6 @@ export function signInCalls(signIn) {
|
|
|
40
37
|
}));
|
|
41
38
|
return state();
|
|
42
39
|
},
|
|
43
|
-
/** Starts a new sign-in for `identifier` and emails its password-reset code. */
|
|
44
40
|
async sendResetCode(identifier) {
|
|
45
41
|
await clerkCall(signIn.create({
|
|
46
42
|
identifier
|
|
@@ -53,7 +49,6 @@ export function signInCalls(signIn) {
|
|
|
53
49
|
}));
|
|
54
50
|
return state();
|
|
55
51
|
},
|
|
56
|
-
/** Sets the new password. Other sessions stay signed in, as before. */
|
|
57
52
|
async resetPassword(password) {
|
|
58
53
|
await clerkCall(signIn.resetPasswordEmailCode.submitPassword({
|
|
59
54
|
password,
|
|
@@ -83,7 +78,6 @@ export function signInCalls(signIn) {
|
|
|
83
78
|
}));
|
|
84
79
|
return state();
|
|
85
80
|
},
|
|
86
|
-
/** Sends the second-factor code. Clerk picks the phone number or email of the sign-in itself. */
|
|
87
81
|
async prepareSecondFactor(params) {
|
|
88
82
|
if (params.strategy === "phone_code") await clerkCall(signIn.mfa.sendPhoneCode());else await clerkCall(signIn.mfa.sendEmailCode());
|
|
89
83
|
},
|
|
@@ -102,7 +96,6 @@ export function signInCalls(signIn) {
|
|
|
102
96
|
}));
|
|
103
97
|
return state();
|
|
104
98
|
},
|
|
105
|
-
/** Makes the session of a complete sign-in the active one. */
|
|
106
99
|
async setActive() {
|
|
107
100
|
await clerkCall(signIn.finalize());
|
|
108
101
|
}
|
package/dist/auth/index.js
CHANGED
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
// Clerk + Convex providers and the shared sign-in and sign-up screens. On
|
|
2
|
-
// `@vvedantb/native-ui/auth` only: they import `@clerk/expo`, `convex`,
|
|
3
|
-
// `expo-auth-session`, `expo-web-browser` and `expo-router`, and Metro does not
|
|
4
|
-
// tree-shake.
|
|
5
1
|
export { AuthProviders } from "./AuthProviders";
|
|
6
2
|
export { AuthScreen, OrDivider, FieldError } from "./AuthScreen";
|
|
7
3
|
export { authErrorMessage, logAuthFailure, withAuthTimeout, AuthTimeoutError, isAuthTimeoutError, AUTH_TIMEOUT_CODE, DEFAULT_STAGE_TIMEOUT_MS, CREDENTIAL_ERROR_CODES } from "./authErrors";
|
package/dist/auth/totp.js
CHANGED
|
@@ -3,8 +3,6 @@ import { useState } from "react";
|
|
|
3
3
|
import { useSignIn } from "@clerk/expo";
|
|
4
4
|
import { authErrorMessage, DEFAULT_STAGE_TIMEOUT_MS, isAuthTimeoutError, logAuthFailure, withAuthTimeout } from "./authErrors";
|
|
5
5
|
import { signInCalls } from "./clerkCore3";
|
|
6
|
-
|
|
7
|
-
/** Logs a timed-out stage. Other failures are not logged here. */
|
|
8
6
|
const logTimeout = (stage, error) => {
|
|
9
7
|
if (isAuthTimeoutError(error)) logAuthFailure(stage, error);
|
|
10
8
|
};
|
|
@@ -2,7 +2,6 @@ import { c as _c } from "react/compiler-runtime";
|
|
|
2
2
|
import { Platform } from "react-native";
|
|
3
3
|
import Svg, { Path } from "react-native-svg";
|
|
4
4
|
import { svgA11yProps } from "../svgA11y";
|
|
5
|
-
/** The four paths of the Google "G" on the 24 grid, each in its brand colour. */
|
|
6
5
|
const GOOGLE_G = [{
|
|
7
6
|
fill: "#4285F4",
|
|
8
7
|
d: "M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z"
|
|
@@ -4,8 +4,6 @@ import Svg, { Path, Rect } from "react-native-svg";
|
|
|
4
4
|
import { svgA11yProps } from "../svgA11y";
|
|
5
5
|
import { useScheme } from "../useScheme";
|
|
6
6
|
|
|
7
|
-
/** A fill that follows the colour scheme, as the web `text-black dark:text-white`. */
|
|
8
|
-
|
|
9
7
|
/** Providers with a mark. Any other provider draws the Claude mark, as the web. */
|
|
10
8
|
|
|
11
9
|
/**
|
package/dist/brand/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
// `svg.ts`, `familyApps.ts` and `vProAppBenefits.ts` are byte-identical copies of
|
|
2
|
-
// `@vvedantb/ui` `src/brand/` (pure data, no imports beyond each other). A test
|
|
3
|
-
// in this package fails when they differ: change both together.
|
|
4
1
|
export { APP_ICONS, IconBee, IconEva, IconProjectV, IconVelth, IconVerve, IconVhub, IconVibot, IconVmem } from "./AppIcons";
|
|
5
2
|
export { AppMark } from "./AppMark";
|
|
6
3
|
export { AppWordmark } from "./AppWordmark";
|
package/dist/brand/svg.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
// Geometry and raw SVG strings for the family app marks. No imports, so the
|
|
2
|
-
// asset script can load this file directly with Node.
|
|
3
|
-
|
|
4
1
|
/** Every mark. `eva` and `bee` are marks and icons only: they are not family apps, so `FAMILY_APPS` leaves them out. */
|
|
5
2
|
export const APP_NAMES = ["projectv", "vibot", "vhub", "vmem", "verve", "velth", "eva", "bee"];
|
|
6
3
|
|
|
@@ -62,7 +59,6 @@ export const APP_MARKS = {
|
|
|
62
59
|
paths: ["M304 530.7A208.1 208.1 0 1 1 720.1 530.7A208.1 208.1 0 1 1 304 530.7", "M447.5 414.2L447.5 445.4", "M576.5 414.2L576.5 445.4", "M306.3 561.9L717.7 561.9", "M344 653.4L680 653.4", "M468.3 341.4Q455.8 291.4 420.5 260.2", "M555.7 341.4Q568.2 291.4 603.5 260.2"]
|
|
63
60
|
}
|
|
64
61
|
};
|
|
65
|
-
/** Roots in (0, 1) of the derivative of a Bezier with 1D control values `v` (quadratic or cubic). */
|
|
66
62
|
function bezierExtrema(v) {
|
|
67
63
|
const roots = [];
|
|
68
64
|
if (v.length === 3) {
|
|
@@ -86,8 +82,6 @@ function bezierAt(v, t) {
|
|
|
86
82
|
const [p0, p1, p2, p3] = v;
|
|
87
83
|
return v.length === 3 ? u * u * p0 + 2 * u * t * p1 + t * t * p2 : u ** 3 * p0 + 3 * u * u * t * p1 + 3 * u * t * t * p2 + t ** 3 * p3;
|
|
88
84
|
}
|
|
89
|
-
|
|
90
|
-
/** Extreme points of an SVG elliptical arc (endpoint form, no rotation), including both ends. */
|
|
91
85
|
function arcPoints(from, [rx0, ry0,, large, sweep, x, y]) {
|
|
92
86
|
const [x0, y0] = from;
|
|
93
87
|
let rx = Math.abs(rx0);
|
package/dist/configureTheme.js
CHANGED
|
@@ -2,17 +2,10 @@ import { palette } from "./palette";
|
|
|
2
2
|
import { tokens } from "./tokens";
|
|
3
3
|
import { fontFamily } from "./typography";
|
|
4
4
|
|
|
5
|
-
/** `tokens` and `palette` value types with the literal hex widened to `string` and `readonly` dropped. */
|
|
6
|
-
|
|
7
5
|
/** The `tokens.color` shape: each key a `{ light, dark }` pair, except `white` and `black`. */
|
|
8
6
|
|
|
9
7
|
/** The `palette` shape: each key a `{ light, dark }` pair, except `destructive`. */
|
|
10
8
|
|
|
11
|
-
/**
|
|
12
|
-
* Copies each given key onto `target`. A `{ light, dark }` pair is copied into
|
|
13
|
-
* the existing pair object, so values that hold the pair (`floatingFill`,
|
|
14
|
-
* `floatingHairline`, `floatingSolidFill`) follow it.
|
|
15
|
-
*/
|
|
16
9
|
function assignValues(target, source) {
|
|
17
10
|
for (const [key, value] of Object.entries(source)) {
|
|
18
11
|
if (value === undefined) continue;
|
|
@@ -22,8 +15,6 @@ function assignValues(target, source) {
|
|
|
22
15
|
});
|
|
23
16
|
}
|
|
24
17
|
}
|
|
25
|
-
|
|
26
|
-
/** Bumped by each `configureTheme` call; `useScheme` redraws on it. */
|
|
27
18
|
let themeVersion = 0;
|
|
28
19
|
const themeListeners = new Set();
|
|
29
20
|
|
package/dist/controlStyles.js
CHANGED
|
@@ -1,12 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Colours for `Button`, `Input`, `Textarea`, the `Select` trigger, `Switch`,
|
|
3
|
-
* `Checkbox`, `Tabs`, `Card` and component text, taken from `palette` and
|
|
4
|
-
* `tokens` instead of NativeWind theme keys (`bg-primary`, `bg-input`,
|
|
5
|
-
* `text-foreground`) that apps do not define, or define without a dark value.
|
|
6
|
-
* Also text weights and sizes as styles, the page title type, the
|
|
7
|
-
* `SearchInput` metrics, the compact window test for dialogs and the
|
|
8
|
-
* touch-target maths. No React Native import, so the tests can load this file.
|
|
9
|
-
*/
|
|
10
1
|
import { palette, withAlpha } from "./palette";
|
|
11
2
|
import { tokens } from "./tokens";
|
|
12
3
|
|
|
@@ -140,8 +131,6 @@ export function typeStyle(weight) {
|
|
|
140
131
|
fontWeight: FONT_WEIGHT[weight]
|
|
141
132
|
};
|
|
142
133
|
}
|
|
143
|
-
|
|
144
|
-
/** Tailwind `text-*` sizes with their default line heights, in points. */
|
|
145
134
|
const TEXT_SIZE = {
|
|
146
135
|
"text-xs": {
|
|
147
136
|
fontSize: 12,
|
|
@@ -168,7 +157,6 @@ const TEXT_SIZE = {
|
|
|
168
157
|
lineHeight: 32
|
|
169
158
|
}
|
|
170
159
|
};
|
|
171
|
-
/** Tailwind `leading-tight`, `leading-snug` and `leading-relaxed`, as multiples of the size. */
|
|
172
160
|
const LEADING = {
|
|
173
161
|
tight: 1.25,
|
|
174
162
|
snug: 1.375,
|
|
@@ -192,8 +180,6 @@ export function sizeStyle(size, leading) {
|
|
|
192
180
|
lineHeight: leading ? fontSize * LEADING[leading] : lineHeight
|
|
193
181
|
};
|
|
194
182
|
}
|
|
195
|
-
|
|
196
|
-
/** Tailwind `tracking-tight` and `tracking-wide`, in em. */
|
|
197
183
|
const TRACKING = {
|
|
198
184
|
tight: -0.025,
|
|
199
185
|
wide: 0.025
|
package/dist/crash/lastCrash.js
CHANGED
|
@@ -1,24 +1,12 @@
|
|
|
1
1
|
import { useSyncExternalStore } from "react";
|
|
2
2
|
|
|
3
|
-
// The last error that closed the app. A release build closes with no message
|
|
4
|
-
// and no log a phone user can read, so the global error handler saves the
|
|
5
|
-
// error here and the next launch shows it (`LastCrashDialog`), ready to copy.
|
|
6
|
-
// Moved from eva (`apps/mobile/src/logging`). Not moved: eva's native exit
|
|
7
|
-
// record (its own Expo module) and the report to its backend.
|
|
8
|
-
|
|
9
3
|
/** Where the crash is kept between launches, for example `expo-secure-store`. */
|
|
10
4
|
|
|
11
5
|
/** What a fatal error leaves behind for the next launch. */
|
|
12
6
|
|
|
13
7
|
const KEY = "v.lastCrash";
|
|
14
|
-
/** SecureStore values over 2 KB warn on iOS, so a report is cut below that. */
|
|
15
8
|
const MAX_CHARS = 1_800;
|
|
16
|
-
/** How long a fatal error waits for the save before the app closes anyway. */
|
|
17
9
|
const FATAL_SAVE_MS = 1_000;
|
|
18
|
-
|
|
19
|
-
// `expo-secure-store` and `expo-constants` are optional peers. Metro bundles a
|
|
20
|
-
// `require` placed directly in a `try` block as optional, so a missing peer
|
|
21
|
-
// does not break the bundle.
|
|
22
10
|
let secureStore;
|
|
23
11
|
function defaultStorage() {
|
|
24
12
|
if (secureStore === undefined) {
|
|
@@ -92,9 +80,7 @@ export async function saveLastCrash(report) {
|
|
|
92
80
|
});
|
|
93
81
|
}
|
|
94
82
|
await storage.setItem(KEY, json);
|
|
95
|
-
} catch {
|
|
96
|
-
// A crash logger must never throw.
|
|
97
|
-
}
|
|
83
|
+
} catch {}
|
|
98
84
|
}
|
|
99
85
|
|
|
100
86
|
/** Reads the saved crash, so `LastCrashDialog` shows it. Never throws. */
|
|
@@ -103,9 +89,7 @@ export async function loadLastCrash() {
|
|
|
103
89
|
const saved = await current().storage?.getItem(KEY);
|
|
104
90
|
const parsed = saved ? JSON.parse(saved) : null;
|
|
105
91
|
if (isLastCrash(parsed)) publish(parsed);
|
|
106
|
-
} catch {
|
|
107
|
-
// Nothing to show.
|
|
108
|
-
}
|
|
92
|
+
} catch {}
|
|
109
93
|
}
|
|
110
94
|
|
|
111
95
|
/** Shows `crash` in `LastCrashDialog` without saving it. For the gallery. */
|
|
@@ -146,8 +130,6 @@ function trackerOf(env) {
|
|
|
146
130
|
const tracker = env.HermesInternal?.enablePromiseRejectionTracker;
|
|
147
131
|
return typeof tracker === "function" ? tracker : null;
|
|
148
132
|
}
|
|
149
|
-
|
|
150
|
-
/** Logs name, message and a short stack, so release builds show it in logcat. Never throws. */
|
|
151
133
|
function logUncaught(kind, caught, isFatal) {
|
|
152
134
|
try {
|
|
153
135
|
const report = fatalReport(caught);
|
|
@@ -158,9 +140,7 @@ function logUncaught(kind, caught, isFatal) {
|
|
|
158
140
|
errorMessage: report.message.slice(0, 200),
|
|
159
141
|
stack: report.stack.split("\n").slice(0, 6).join("\n")
|
|
160
142
|
});
|
|
161
|
-
} catch {
|
|
162
|
-
// A logger must never throw.
|
|
163
|
-
}
|
|
143
|
+
} catch {}
|
|
164
144
|
}
|
|
165
145
|
let installed = false;
|
|
166
146
|
/**
|
|
@@ -193,7 +173,6 @@ export function installCrashCapture(options = {}) {
|
|
|
193
173
|
previous(error, isFatal);
|
|
194
174
|
return;
|
|
195
175
|
}
|
|
196
|
-
// Save first, then let the app close as before.
|
|
197
176
|
const timeout = new Promise(resolve => setTimeout(resolve, FATAL_SAVE_MS));
|
|
198
177
|
void Promise.race([saveLastCrash(fatalReport(error)), timeout]).finally(() => previous(error, isFatal));
|
|
199
178
|
});
|
package/dist/entries/ai.js
CHANGED
package/dist/entries/ambient.js
CHANGED
package/dist/entries/app-root.js
CHANGED
|
@@ -1,6 +1 @@
|
|
|
1
|
-
// `@vvedantb/native-ui/app-root`: the Instrument Sans font helper, the splash hide
|
|
2
|
-
// helper, `AuthGroupGate` and `SsoCallbackScreen` for Expo app shells. Apps keep their
|
|
3
|
-
// own provider trees. Not on the root entry: it imports `@clerk/expo`, `expo-router`,
|
|
4
|
-
// `expo-font`, `expo-splash-screen` and `@expo-google-fonts/instrument-sans`, and Metro
|
|
5
|
-
// does not tree-shake.
|
|
6
1
|
export * from "../app-root";
|
package/dist/entries/auth.js
CHANGED
|
@@ -1,5 +1 @@
|
|
|
1
|
-
// `@vvedantb/native-ui/auth`: `AuthProviders`, `SignInScreen`, `SignUpScreen`,
|
|
2
|
-
// `GoogleSignInButton` and the auth frame. Not on the root entry: it imports
|
|
3
|
-
// `@clerk/expo`, `convex`, `expo-auth-session`, `expo-web-browser` and
|
|
4
|
-
// `expo-router`, and Metro does not tree-shake.
|
|
5
1
|
export * from "../auth";
|
package/dist/entries/brand.js
CHANGED
package/dist/entries/button.js
CHANGED
package/dist/entries/crash.js
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
// `@vvedantb/native-ui/crash`: shows the error that closed the app last time.
|
|
2
|
-
// Call `installCrashCapture()` once at the top of the root layout and mount
|
|
3
|
-
// `<LastCrashDialog appName="…" />` inside it.
|
|
4
1
|
export { LastCrashDialog } from "../crash/LastCrashDialog";
|
|
5
2
|
export { crashDetails, dismissLastCrash, fatalReport, installCrashCapture, loadLastCrash, saveLastCrash, showLastCrash, useLastCrash } from "../crash/lastCrash";
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
// `@vvedantb/native-ui/expo-router`: components that need `expo-router`, an
|
|
2
|
-
// optional peer. Not on the root, `/layout` or `/page-title` entries: they
|
|
3
|
-
// never import it.
|
|
4
1
|
export { RouterStackPageHeader, goBackOrReplace } from "../router/RouterStackPageHeader";
|
|
5
2
|
export { TabScreen } from "../router/TabScreen";
|
package/dist/entries/floating.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
// `@vvedantb/native-ui/floating`: floating surfaces, glass blur targets and
|
|
2
|
-
// metrics. Reaches `expo-blur` only through its optional-peer loader.
|
|
3
1
|
export { FLOATING_INSET, FLOATING_TAB_BAR_HEIGHT, FLOATING_TAB_BAR_HEIGHT_LARGE, FLOATING_RADIUS, FLOATING_ROW_RADIUS, FLOATING_PILL_RADIUS, floatingShadow, floatingHairline, floatingFill, floatingSolidFill, tabBarReserve } from "../floating";
|
|
4
2
|
export { useReduceTransparency } from "../useReduceTransparency";
|
|
5
3
|
export { FloatingSurface, GlassSheetBackground } from "../FloatingSurface";
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
// `@vvedantb/native-ui/generative-ui`: agent-composed panels from the shared
|
|
2
|
-
// catalog (`@vvedantb/server/generative-ui`), as the web
|
|
3
|
-
// `@vvedantb/ui/generative-ui`. Imports `@json-render/react-native` (an
|
|
4
|
-
// optional peer): the only entry that does, so an app without it bundles none.
|
|
5
1
|
export { GenerativeUiPanel } from "../generative-ui/GenerativeUiPanel";
|
|
6
2
|
export { generativeUiNativeCatalog } from "../generative-ui/renderer";
|
|
@@ -1,4 +1 @@
|
|
|
1
|
-
// `@vvedantb/native-ui/keyboard-controller`. Imports
|
|
2
|
-
// `react-native-keyboard-controller` (an optional peer): the only entry that
|
|
3
|
-
// does, so an app without it keeps React Native's `KeyboardAvoidingView`.
|
|
4
1
|
export { KeyboardControllerProvider } from "../primitives/keyboard-controller";
|
package/dist/entries/layout.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
// `@vvedantb/native-ui/layout`: screen containers, page headers, section
|
|
2
|
-
// labels and settings chrome.
|
|
3
1
|
export { SafeAreaContainer } from "../SafeAreaContainer";
|
|
4
2
|
export { ScreenContainer } from "../ScreenContainer";
|
|
5
3
|
export { PageTitle, PageHeader } from "../PageTitle";
|
package/dist/entries/markdown.js
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
// `@vvedantb/native-ui/markdown`: `Markdown`, chat markdown styled as the web
|
|
2
|
-
// `.markdown` block. Not on the root entry: it imports the optional peer
|
|
3
|
-
// `react-native-marked`, and Metro does not tree-shake.
|
|
4
1
|
export { Markdown, markdownStyles, inlineCodeStyle, MARKDOWN_SCALE, MARKDOWN_LIST } from "../markdown/Markdown";
|
|
@@ -1,7 +1,2 @@
|
|
|
1
|
-
// `@vvedantb/native-ui/page-title`: `PageTitle`, `PageHeader` and (from 0.5.0)
|
|
2
|
-
// `StackPageHeader`. Reaches no optional peer, not even a loader.
|
|
3
|
-
// `StackPageHeader` imports one Tabler icon (a required peer) for its back
|
|
4
|
-
// button; Metro does not tree-shake by default, so that bundles the Tabler
|
|
5
|
-
// package with this entry.
|
|
6
1
|
export { PageTitle, PageHeader } from "../PageTitle";
|
|
7
2
|
export { StackPageHeader } from "../StackPageHeader";
|
|
@@ -1,7 +1,3 @@
|
|
|
1
|
-
// `@vvedantb/native-ui/primitives`: fields, display, tabs, overlays and
|
|
2
|
-
// toasts. `BottomSheetContainer`, `DateTimeField` and `AmbientBackground` are
|
|
3
|
-
// not here; they have their own entries. `Text` and `TextClassContext` are the
|
|
4
|
-
// `primitives/text` variants (from 0.5.0); they are not on the root entry.
|
|
5
1
|
export { Text, TextClassContext } from "../primitives/text";
|
|
6
2
|
export { Button } from "../Button";
|
|
7
3
|
export { Input } from "../Input";
|
|
@@ -61,7 +57,5 @@ export { fetchGitHubUpdate, isNewerVersion, newerGitHubRelease } from "../update
|
|
|
61
57
|
export { Sheet, SheetTrigger, SheetClose, SheetContent, SheetHandle, SheetHeader, SheetTitle, SheetDescription, SheetBody, SheetFooter } from "../Sheet";
|
|
62
58
|
export { Toaster } from "../Toast";
|
|
63
59
|
export { toast } from "../toastStore";
|
|
64
|
-
// Shared element transitions (Reanimated 4.8): the same `tag` on two screens moves the view between them.
|
|
65
60
|
export { DEFAULT_SHARED_TRANSITION, DEFAULT_FADE_CONTENT, createSharedTransition, sharedTransitionTag, useSharedTransitionStyle, SharedTransitionView, SharedTransitionText } from "../SharedTransition";
|
|
66
|
-
// Overlays in the app's window (the hold menu, the image viewer): wrap the navigator once.
|
|
67
61
|
export { WindowLayerHost } from "../primitives/window-layer";
|
package/dist/entries/tab-bar.js
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
// `@vvedantb/native-ui/tab-bar`. Does not import `expo-router`; reaches
|
|
2
|
-
// `expo-blur` and `expo-haptics` only through their optional-peer loaders.
|
|
3
1
|
export { FloatingTabBar } from "../FloatingTabBar";
|
|
4
2
|
export { FLOATING_INSET, FLOATING_TAB_BAR_HEIGHT, FLOATING_TAB_BAR_HEIGHT_LARGE, tabBarReserve } from "../floating";
|
package/dist/entries/theme.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
// `@vvedantb/native-ui/theme`: the provider, tokens and colour helpers.
|
|
2
1
|
export { cn } from "../cn";
|
|
3
|
-
export { tokens, NativeUiProvider, useNativeUi, useLargerText, useAccentColor, DEFAULT_ACCENT } from "../theme";
|
|
2
|
+
export { tokens, NativeUiProvider, useNativeUi, useLargerText, useAccentColor, useSurface, DEFAULT_ACCENT } from "../theme";
|
|
4
3
|
export { palette, withAlpha } from "../palette";
|
|
5
4
|
export { configureTheme } from "../configureTheme";
|
|
6
5
|
export { NEUTRAL_PALETTE, NEUTRAL_CHANNELS, paintDarkFamily } from "../neutralTheme";
|
package/dist/entries/toast.js
CHANGED
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
// `@vvedantb/native-ui/toast`: `toast()` and `<Toaster />`. Reaches no heavy
|
|
2
|
-
// optional peer, not even a loader (the toast surface is flat from 0.3.12): no
|
|
3
|
-
// `expo-blur`, bottom sheet, date picker, `dayjs` or `expo-router`.
|
|
4
1
|
export { Toaster } from "../Toast";
|
|
5
2
|
export { toast } from "../toastStore";
|
package/dist/entries/video.js
CHANGED
package/dist/entries/webview.js
CHANGED
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
// `@vvedantb/native-ui/webview`. Imports `react-native-webview` (an optional
|
|
2
|
-
// peer): the only entry that does, so an app without it bundles no WebView.
|
|
3
1
|
export { HtmlView } from "../webview/HtmlView";
|
|
4
2
|
export { HTML_VIEW_HEIGHT_SCRIPT, htmlViewNavigation, htmlViewPostScript, parseHtmlViewHeight } from "../webview/htmlView";
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
// Reference screen for the AI chat parts (`@vvedantb/native-ui/ai`). Render
|
|
3
|
-
// `AiChatGallery` in a full-screen Expo route, with the same NativeWind setup
|
|
4
|
-
// as the rest of the package and a `SafeAreaProvider` above it. The thread is
|
|
5
|
-
// fixed sample text, not a model. It follows the app's larger-text setting.
|
|
6
|
-
// `ParityGallery` shows `AiChatSamples` in its "AI chat" section.
|
|
7
2
|
import { useState } from "react";
|
|
8
3
|
import { View } from "react-native";
|
|
9
4
|
import { IconFileText, IconPaperclip, IconSearch } from "@tabler/icons-react-native";
|
|
@@ -22,12 +17,6 @@ const FINISHED_REASONING = "The question is how to keep one list the same on two
|
|
|
22
17
|
const FINISHED_REPLY = "Keep one copy of the list on a server and have each device read and write it.\n\nWhen a device changes an item, it sends the change with a timestamp. The other device fetches changes it has not seen.";
|
|
23
18
|
const SAMPLE_CODE = `type Change = {\n itemId: string;\n updatedAt: number;\n};`;
|
|
24
19
|
const STREAMING_REASONING = "Offline edits need to wait in a queue on the device.\nWhen the connection returns, send the queue in order and merge by timestamp…";
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* The sample thread: a user message, a finished assistant message (folded
|
|
28
|
-
* reasoning and trace, reply, code, sources and actions), a second user
|
|
29
|
-
* message, and an assistant message that is still working while `streaming`.
|
|
30
|
-
*/
|
|
31
20
|
const DRAFT_FIELDS = [{
|
|
32
21
|
key: "to",
|
|
33
22
|
role: "to",
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import { c as _c } from "react/compiler-runtime";
|
|
2
|
-
// Reference screen for the components that mirror `@vvedantb/ui`. Render it in
|
|
3
|
-
// an Expo route to compare against the web: it needs the same NativeWind setup
|
|
4
|
-
// as the rest of the package and a `SafeAreaProvider` above it. It always
|
|
5
|
-
// renders the default sizes (larger text off), as the web does. Prices, names
|
|
6
|
-
// and figures below are placeholders, not real data.
|
|
7
2
|
import { useState } from "react";
|
|
8
3
|
import { ScrollView, Text, View } from "react-native";
|
|
9
4
|
import { IconCopy, IconDots, IconInbox, IconPencil, IconPhoto, IconRefresh, IconTrash, IconX } from "@tabler/icons-react-native";
|
|
@@ -12,16 +7,11 @@ import { typeStyle } from "../controlStyles";
|
|
|
12
7
|
import { useScheme } from "../useScheme";
|
|
13
8
|
import { ChainOfThought, ChainOfThoughtContent, ChainOfThoughtHeader, ChainOfThoughtSearchResult, ChainOfThoughtSearchResults, ChainOfThoughtStep, ConversationEmptyState, Suggestion, Suggestions } from "../ai";
|
|
14
9
|
import { AiChatSamples } from "./AiChatGallery";
|
|
15
|
-
|
|
16
|
-
// Every shared variant; the aliases (`primary`, `tertiary`, `danger`) draw as the name they alias.
|
|
17
10
|
const BUTTON_VARIANTS = ["default", "primary", "secondary", "outline", "destructive", "danger", "ghost", "tertiary", "flat", "success", "warning", "link"];
|
|
18
11
|
const BADGE_VARIANTS = ["default", "secondary", "destructive", "destructive-soft", "outline", "success", "warning"];
|
|
19
12
|
const STATUS_TONES = ["progress", "business-review", "code-review", "done", "cancelled", "active", "critical", "info", "neutral"];
|
|
20
13
|
const SWATCHES = ["#db2777", "#2563eb", "#16a34a", "#f59e0b", "#181818", "#ffffff"];
|
|
21
14
|
const SWATCH_LABELS = ["Pink", "Blue", "Green", "Amber", "Black", "White"];
|
|
22
|
-
|
|
23
|
-
// Space after the last section, so Card, Upgrade and Overlays can scroll to the
|
|
24
|
-
// top of an 844-tall phone for screenshot crops.
|
|
25
15
|
const GALLERY_END_SPACE = 720;
|
|
26
16
|
const PLANS = [{
|
|
27
17
|
id: "free",
|
|
@@ -44,8 +34,6 @@ const PLANS = [{
|
|
|
44
34
|
featured: true,
|
|
45
35
|
intro: "Everything in Free, and:"
|
|
46
36
|
}];
|
|
47
|
-
|
|
48
|
-
/** Body text in the scheme's foreground (a style, so it reads in dark mode too). */
|
|
49
37
|
function GalleryText(t0) {
|
|
50
38
|
const $ = _c(13);
|
|
51
39
|
let className;
|
package/dist/floating.js
CHANGED
|
@@ -11,14 +11,6 @@ export const FLOATING_RADIUS = tokens.radius.card;
|
|
|
11
11
|
export const FLOATING_ROW_RADIUS = 20;
|
|
12
12
|
export const FLOATING_PILL_RADIUS = tokens.radius.pill;
|
|
13
13
|
const FLOATING_BOX_SHADOW = "0px 8px 24px rgba(10, 10, 10, 0.12)";
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Only the shadow keys, not `ViewStyle`: an Expo-widened `ViewStyle`
|
|
17
|
-
* (`position: "fixed"`, `backgroundImage`) is not assignable to a React
|
|
18
|
-
* Native 0.88 View `style`. A plain inferred type would be `{}` and lose
|
|
19
|
-
* `floatingShadow.shadowColor` and the rest for callers.
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
14
|
export const floatingShadow = Platform.select({
|
|
23
15
|
ios: {
|
|
24
16
|
shadowColor: "#0a0a0a",
|