@ramonclaudio/create-vexpo 0.1.0 → 0.1.1
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 +10 -10
- package/dist/index.js +8 -7
- package/dist/templates/default/.eas/workflows/asc-events.yml +9 -6
- package/dist/templates/default/.eas/workflows/deploy-production.yml +28 -15
- package/dist/templates/default/.eas/workflows/e2e-tests.yml +3 -2
- package/dist/templates/default/.eas/workflows/pr-preview.yml +12 -21
- package/dist/templates/default/.eas/workflows/release.yml +3 -7
- package/dist/templates/default/.eas/workflows/rollback.yml +54 -28
- package/dist/templates/default/.eas/workflows/rollout.yml +27 -33
- package/dist/templates/default/.eas/workflows/rotate-apple-jwt.yml +1 -5
- package/dist/templates/default/.eas/workflows/testflight.yml +3 -7
- package/dist/templates/default/.github/workflows/check.yml +20 -12
- package/dist/templates/default/.maestro/launch.yaml +19 -10
- package/dist/templates/default/AGENTS.md +25 -8
- package/dist/templates/default/DESIGN.md +14 -10
- package/dist/templates/default/README.md +83 -78
- package/dist/templates/default/SETUP.md +159 -152
- package/dist/templates/default/__tests__/convex/_auth-harness.test.ts +112 -0
- package/dist/templates/default/__tests__/convex/_harness.ts +132 -0
- package/dist/templates/default/__tests__/convex/appAttest.test.ts +172 -0
- package/dist/templates/default/__tests__/convex/appAttestStore.test.ts +48 -0
- package/dist/templates/default/__tests__/convex/pushTokens-remove.test.ts +106 -0
- package/dist/templates/default/__tests__/convex/pushTokens-upsert.test.ts +146 -0
- package/dist/templates/default/__tests__/convex/users-deleteAccount.test.ts +140 -0
- package/dist/templates/default/__tests__/convex/users-deleteAvatar.test.ts +104 -0
- package/dist/templates/default/__tests__/convex/users-getMe.test.ts +98 -0
- package/dist/templates/default/__tests__/convex/users-getUser.test.ts +120 -0
- package/dist/templates/default/__tests__/convex/users-hardDeleteExpired.test.ts +67 -0
- package/dist/templates/default/__tests__/convex/users-restoreAccount.test.ts +96 -0
- package/dist/templates/default/__tests__/convex/users-updateAvatar.test.ts +92 -0
- package/dist/templates/default/__tests__/convex/users-updateProfile.test.ts +126 -0
- package/dist/templates/default/__tests__/convex/webhook.test.ts +31 -0
- package/dist/templates/default/__tests__/lib/deep-link.test.ts +51 -6
- package/dist/templates/default/__tests__/lib/schemas.test.ts +205 -0
- package/dist/templates/default/__tests__/lib/text-style.test.ts +31 -0
- package/dist/templates/default/_env.example +7 -7
- package/dist/templates/default/_gitattributes +1 -1
- package/dist/templates/default/_gitignore +17 -2
- package/dist/templates/default/_npmrc +7 -0
- package/dist/templates/default/_oxlintrc.json +1 -1
- package/dist/templates/default/app-store/accessibility.config.json +20 -0
- package/dist/templates/default/app-store/privacy.config.json +27 -0
- package/dist/templates/default/app.config.ts +105 -33
- package/dist/templates/default/app.json +1 -9
- package/dist/templates/default/convex/_generated/api.d.ts +12 -0
- package/dist/templates/default/convex/admin.ts +0 -13
- package/dist/templates/default/convex/appAttest.ts +467 -0
- package/dist/templates/default/convex/appAttestStore.ts +141 -0
- package/dist/templates/default/convex/apple.ts +53 -0
- package/dist/templates/default/convex/auth.ts +6 -45
- package/dist/templates/default/convex/constants.ts +2 -7
- package/dist/templates/default/convex/crons.ts +12 -5
- package/dist/templates/default/convex/email.ts +4 -24
- package/dist/templates/default/convex/env.ts +0 -4
- package/dist/templates/default/convex/errors.ts +0 -7
- package/dist/templates/default/convex/functions.ts +0 -26
- package/dist/templates/default/convex/http.ts +3 -5
- package/dist/templates/default/convex/log.ts +2 -25
- package/dist/templates/default/convex/pushSender.ts +145 -0
- package/dist/templates/default/convex/pushTokens.ts +110 -13
- package/dist/templates/default/convex/rateLimit.ts +8 -39
- package/dist/templates/default/convex/schema.ts +48 -5
- package/dist/templates/default/convex/tsconfig.json +1 -0
- package/dist/templates/default/convex/users.ts +143 -61
- package/dist/templates/default/convex/validators.ts +1 -38
- package/dist/templates/default/convex/webhook.ts +1 -31
- package/dist/templates/default/convex.json +1 -2
- package/dist/templates/default/metro.config.js +9 -1
- package/dist/templates/default/package.json +67 -70
- package/dist/templates/default/plugins/README.md +5 -1
- package/dist/templates/default/scripts/README.md +9 -9
- package/dist/templates/default/scripts/_run.mjs +3 -20
- package/dist/templates/default/scripts/clean.ts +81 -69
- package/dist/templates/default/scripts/gen-update-cert.mjs +98 -0
- package/dist/templates/default/{app → src/app}/(app)/(tabs)/(home)/index.tsx +21 -6
- package/dist/templates/default/{app → src/app}/(app)/(tabs)/(home,search)/_layout.tsx +9 -8
- package/dist/templates/default/{app → src/app}/(app)/(tabs)/(search)/index.tsx +26 -24
- package/dist/templates/default/{app → src/app}/(app)/(tabs)/_layout.tsx +3 -4
- package/dist/templates/default/{app → src/app}/(app)/(tabs)/settings/_layout.tsx +10 -6
- package/dist/templates/default/{app → src/app}/(app)/(tabs)/settings/index.tsx +81 -51
- package/dist/templates/default/{app → src/app}/(app)/(tabs)/settings/preferences.tsx +72 -12
- package/dist/templates/default/src/app/(app)/_layout.tsx +147 -0
- package/dist/templates/default/{app/(auth) → src/app/(app)/auth}/_layout.tsx +4 -5
- package/dist/templates/default/{app/(auth) → src/app/(app)/auth}/forgot-password.tsx +15 -9
- package/dist/templates/default/{app/(auth) → src/app/(app)/auth}/reset-password.tsx +88 -14
- package/dist/templates/default/{app/(auth) → src/app/(app)/auth}/sign-in.tsx +65 -35
- package/dist/templates/default/{app/(auth) → src/app/(app)/auth}/sign-up.tsx +131 -196
- package/dist/templates/default/src/app/(app)/debug.tsx +479 -0
- package/dist/templates/default/{app → src/app}/(app)/help.tsx +76 -64
- package/dist/templates/default/{app → src/app}/(app)/linked.tsx +21 -27
- package/dist/templates/default/{app → src/app}/(app)/privacy.tsx +35 -8
- package/dist/templates/default/src/app/(app)/profile/change-password.tsx +264 -0
- package/dist/templates/default/{app/(app)/profile.tsx → src/app/(app)/profile/index.tsx} +179 -255
- package/dist/templates/default/src/app/(app)/restore-account.tsx +192 -0
- package/dist/templates/default/src/app/(app)/sessions.tsx +287 -0
- package/dist/templates/default/src/app/(app)/welcome.tsx +194 -0
- package/dist/templates/default/src/app/+native-intent.tsx +25 -0
- package/dist/templates/default/src/app/+not-found.tsx +43 -0
- package/dist/templates/default/{app → src/app}/_layout.tsx +28 -37
- package/dist/templates/default/src/components/auth/apple-button.tsx +51 -0
- package/dist/templates/default/{components → src/components}/auth/otp-verification.tsx +79 -58
- package/dist/templates/default/{components → src/components}/auth/password-field.tsx +74 -18
- package/dist/templates/default/src/components/auth/segmented-toggle.tsx +71 -0
- package/dist/templates/default/src/components/ui/content-unavailable.tsx +81 -0
- package/dist/templates/default/src/components/ui/convex-error.tsx +21 -0
- package/dist/templates/default/src/components/ui/error-boundary.tsx +89 -0
- package/dist/templates/default/{components → src/components}/ui/loading-screen.tsx +5 -4
- package/dist/templates/default/{components → src/components}/ui/material.tsx +50 -17
- package/dist/templates/default/src/components/ui/offline-banner.tsx +59 -0
- package/dist/templates/default/{components → src/components}/ui/prominent-button.tsx +8 -11
- package/dist/templates/default/{components → src/components}/ui/skeleton.tsx +31 -13
- package/dist/templates/default/src/components/ui/status-text.tsx +64 -0
- package/dist/templates/default/src/components/ui/update-banner.tsx +85 -0
- package/dist/templates/default/{constants → src/constants}/layout.ts +0 -6
- package/dist/templates/default/{constants → src/constants}/theme.ts +49 -64
- package/dist/templates/default/{constants → src/constants}/ui.ts +13 -4
- package/dist/templates/default/src/hooks/use-debounce.ts +12 -0
- package/dist/templates/default/src/hooks/use-deep-link.ts +51 -0
- package/dist/templates/default/src/hooks/use-delete-account.ts +35 -0
- package/dist/templates/default/src/hooks/use-motion-screen-options.ts +13 -0
- package/dist/templates/default/src/hooks/use-network.ts +34 -0
- package/dist/templates/default/{hooks → src/hooks}/use-notifications.ts +39 -30
- package/dist/templates/default/src/hooks/use-reduce-transparency.ts +30 -0
- package/dist/templates/default/{hooks → src/hooks}/use-theme.ts +0 -5
- package/dist/templates/default/src/lib/appAttest.ts +78 -0
- package/dist/templates/default/src/lib/assets.ts +9 -0
- package/dist/templates/default/src/lib/deep-link.ts +82 -0
- package/dist/templates/default/{lib → src/lib}/dev-menu.ts +0 -4
- package/dist/templates/default/{lib → src/lib}/device.ts +1 -13
- package/dist/templates/default/{lib → src/lib}/dynamic-font.ts +13 -10
- package/dist/templates/default/src/lib/dynamic-symbol-size.ts +33 -0
- package/dist/templates/default/src/lib/masks.ts +21 -0
- package/dist/templates/default/src/lib/native-state.ts +20 -0
- package/dist/templates/default/{lib → src/lib}/notifications.ts +7 -45
- package/dist/templates/default/{lib → src/lib}/preferences.ts +0 -2
- package/dist/templates/default/{lib → src/lib}/schemas.ts +19 -16
- package/dist/templates/default/src/lib/text-style.ts +20 -0
- package/dist/templates/default/{lib → src/lib}/updates.ts +0 -7
- package/dist/templates/default/store.config.json +1 -1
- package/dist/templates/default/tsconfig.json +3 -1
- package/dist/templates/default/vitest.config.ts +8 -1
- package/package.json +5 -5
- package/dist/templates/default/app/(app)/_layout.tsx +0 -73
- package/dist/templates/default/app/(app)/debug.tsx +0 -389
- package/dist/templates/default/app/(app)/sessions.tsx +0 -191
- package/dist/templates/default/app/(app)/welcome.tsx +0 -140
- package/dist/templates/default/app/+native-intent.tsx +0 -14
- package/dist/templates/default/app/+not-found.tsx +0 -51
- package/dist/templates/default/bun.lock +0 -1860
- package/dist/templates/default/components/auth/segmented-toggle.tsx +0 -47
- package/dist/templates/default/components/ui/convex-error.tsx +0 -32
- package/dist/templates/default/components/ui/error-boundary.tsx +0 -57
- package/dist/templates/default/components/ui/offline-banner.tsx +0 -58
- package/dist/templates/default/components/ui/status-text.tsx +0 -49
- package/dist/templates/default/components/ui/update-banner.tsx +0 -82
- package/dist/templates/default/fingerprint.config.js +0 -9
- package/dist/templates/default/hooks/use-debounce.ts +0 -20
- package/dist/templates/default/hooks/use-deep-link.ts +0 -43
- package/dist/templates/default/hooks/use-network.ts +0 -11
- package/dist/templates/default/lib/assets.ts +0 -17
- package/dist/templates/default/lib/deep-link.ts +0 -71
- package/dist/templates/default/patches/PR-368.patch +0 -91
- package/dist/templates/default/patches/convex-dev-better-auth-0.12.2.tgz +0 -0
- /package/dist/templates/default/{hooks → src/hooks}/use-navigation-tracking.ts +0 -0
- /package/dist/templates/default/{hooks → src/hooks}/use-onboarding.ts +0 -0
- /package/dist/templates/default/{hooks → src/hooks}/use-reduced-motion.ts +0 -0
- /package/dist/templates/default/{hooks → src/hooks}/use-updates.ts +0 -0
- /package/dist/templates/default/{lib → src/lib}/a11y.ts +0 -0
- /package/dist/templates/default/{lib → src/lib}/app.ts +0 -0
- /package/dist/templates/default/{lib → src/lib}/auth-client.ts +0 -0
- /package/dist/templates/default/{lib → src/lib}/convex-auth.tsx +0 -0
- /package/dist/templates/default/{lib → src/lib}/env.ts +0 -0
- /package/dist/templates/default/{lib → src/lib}/haptics.ts +0 -0
- /package/dist/templates/default/{lib → src/lib}/storage.ts +0 -0
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
import { useState } from "react";
|
|
2
|
-
import { Image as ExpoImage } from "expo-image";
|
|
3
|
-
import { router } from "expo-router";
|
|
4
|
-
import {
|
|
5
|
-
Host,
|
|
6
|
-
VStack,
|
|
7
|
-
Text,
|
|
8
|
-
Button,
|
|
9
|
-
Spacer,
|
|
10
|
-
Image,
|
|
11
|
-
ProgressView,
|
|
12
|
-
RNHostView,
|
|
13
|
-
} from "@expo/ui/swift-ui";
|
|
14
|
-
import {
|
|
15
|
-
foregroundStyle,
|
|
16
|
-
buttonStyle,
|
|
17
|
-
multilineTextAlignment,
|
|
18
|
-
progressViewStyle,
|
|
19
|
-
frame,
|
|
20
|
-
padding,
|
|
21
|
-
kerning,
|
|
22
|
-
tint,
|
|
23
|
-
accessibilityLabel,
|
|
24
|
-
accessibilityValue,
|
|
25
|
-
} from "@expo/ui/swift-ui/modifiers";
|
|
26
|
-
import { useDynamicFont } from "@/lib/dynamic-font";
|
|
27
|
-
import { Button as ButtonTokens } from "@/constants/layout";
|
|
28
|
-
import { ProminentButton } from "@/components/ui/prominent-button";
|
|
29
|
-
|
|
30
|
-
import { assets } from "@/lib/assets";
|
|
31
|
-
import { haptics } from "@/lib/haptics";
|
|
32
|
-
import { useColors, useThemedAsset } from "@/hooks/use-theme";
|
|
33
|
-
import { useOnboarding } from "@/hooks/use-onboarding";
|
|
34
|
-
|
|
35
|
-
type WelcomeStep =
|
|
36
|
-
| { brand: true; title: string; subtitle: string }
|
|
37
|
-
| { icon: "hammer.fill" | "checkmark.circle.fill"; title: string; subtitle: string };
|
|
38
|
-
|
|
39
|
-
const STEPS: readonly WelcomeStep[] = [
|
|
40
|
-
{ brand: true, title: "Welcome", subtitle: "Your new app starts here." },
|
|
41
|
-
{ icon: "hammer.fill", title: "Built with Expo", subtitle: "Universal, fast, native." },
|
|
42
|
-
{
|
|
43
|
-
icon: "checkmark.circle.fill",
|
|
44
|
-
title: "Ready to Go",
|
|
45
|
-
subtitle: "Start building something great.",
|
|
46
|
-
},
|
|
47
|
-
] as const;
|
|
48
|
-
|
|
49
|
-
export default function WelcomeScreen() {
|
|
50
|
-
const dfont = useDynamicFont();
|
|
51
|
-
const colors = useColors();
|
|
52
|
-
const brandIcon = useThemedAsset(assets.brandIconLight, assets.brandIconDark);
|
|
53
|
-
const [step, setStep] = useState(0);
|
|
54
|
-
const { markSeen } = useOnboarding();
|
|
55
|
-
|
|
56
|
-
const handleContinue = async () => {
|
|
57
|
-
haptics.medium();
|
|
58
|
-
await markSeen();
|
|
59
|
-
router.replace("/");
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
const handleNext = () => {
|
|
63
|
-
haptics.light();
|
|
64
|
-
setStep((s) => Math.min(s + 1, STEPS.length - 1));
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
const current = STEPS[step];
|
|
68
|
-
const isLast = step === STEPS.length - 1;
|
|
69
|
-
|
|
70
|
-
return (
|
|
71
|
-
<Host style={{ flex: 1 }}>
|
|
72
|
-
<VStack spacing={0} modifiers={[padding({ horizontal: 24 }), tint(colors.primary as string)]}>
|
|
73
|
-
<VStack spacing={12} modifiers={[padding({ top: 24 })]}>
|
|
74
|
-
<ProgressView
|
|
75
|
-
value={(step + 1) / STEPS.length}
|
|
76
|
-
modifiers={[
|
|
77
|
-
progressViewStyle("linear"),
|
|
78
|
-
accessibilityLabel("Onboarding progress"),
|
|
79
|
-
accessibilityValue(`Step ${step + 1} of ${STEPS.length}`),
|
|
80
|
-
]}
|
|
81
|
-
/>
|
|
82
|
-
</VStack>
|
|
83
|
-
|
|
84
|
-
<Spacer />
|
|
85
|
-
|
|
86
|
-
<VStack key={step} spacing={12} alignment="center">
|
|
87
|
-
{"brand" in current ? (
|
|
88
|
-
<RNHostView matchContents>
|
|
89
|
-
<ExpoImage
|
|
90
|
-
source={brandIcon}
|
|
91
|
-
style={{ width: 96, height: 96 }}
|
|
92
|
-
contentFit="contain"
|
|
93
|
-
accessibilityLabel="App icon"
|
|
94
|
-
/>
|
|
95
|
-
</RNHostView>
|
|
96
|
-
) : (
|
|
97
|
-
<Image
|
|
98
|
-
systemName={current.icon}
|
|
99
|
-
size={48}
|
|
100
|
-
color={colors.primary as string}
|
|
101
|
-
modifiers={[frame({ width: 80, height: 80 })]}
|
|
102
|
-
/>
|
|
103
|
-
)}
|
|
104
|
-
<Text modifiers={[dfont({ size: 34, weight: "bold" }), kerning(-0.5)]}>
|
|
105
|
-
{current.title}
|
|
106
|
-
</Text>
|
|
107
|
-
<Text
|
|
108
|
-
modifiers={[
|
|
109
|
-
dfont({ size: 17 }),
|
|
110
|
-
foregroundStyle(colors.mutedForeground as string),
|
|
111
|
-
multilineTextAlignment("center"),
|
|
112
|
-
]}
|
|
113
|
-
>
|
|
114
|
-
{current.subtitle}
|
|
115
|
-
</Text>
|
|
116
|
-
</VStack>
|
|
117
|
-
|
|
118
|
-
<Spacer />
|
|
119
|
-
|
|
120
|
-
<VStack spacing={12} modifiers={[padding({ bottom: 24 })]}>
|
|
121
|
-
<ProminentButton
|
|
122
|
-
label={isLast ? "Get Started" : "Next"}
|
|
123
|
-
onPress={isLast ? handleContinue : handleNext}
|
|
124
|
-
/>
|
|
125
|
-
{!isLast && (
|
|
126
|
-
<Button
|
|
127
|
-
label="Skip"
|
|
128
|
-
modifiers={[
|
|
129
|
-
buttonStyle("plain"),
|
|
130
|
-
dfont({ size: ButtonTokens.fontSize, weight: ButtonTokens.secondaryFontWeight }),
|
|
131
|
-
foregroundStyle(colors.mutedForeground as string),
|
|
132
|
-
]}
|
|
133
|
-
onPress={handleContinue}
|
|
134
|
-
/>
|
|
135
|
-
)}
|
|
136
|
-
</VStack>
|
|
137
|
-
</VStack>
|
|
138
|
-
</Host>
|
|
139
|
-
);
|
|
140
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { NativeIntent } from "expo-router";
|
|
2
|
-
import { isValidDeepLink } from "@/lib/deep-link";
|
|
3
|
-
|
|
4
|
-
export const redirectSystemPath: NativeIntent["redirectSystemPath"] = ({
|
|
5
|
-
path,
|
|
6
|
-
initial: _initial,
|
|
7
|
-
}) => {
|
|
8
|
-
if (!isValidDeepLink(path)) {
|
|
9
|
-
if (__DEV__) console.warn("[NativeIntent] Blocked:", path);
|
|
10
|
-
return "/";
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
return path;
|
|
14
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { router, Stack } from "expo-router";
|
|
2
|
-
import { Host, VStack, Text, Spacer, Image } from "@expo/ui/swift-ui";
|
|
3
|
-
import {
|
|
4
|
-
foregroundStyle,
|
|
5
|
-
multilineTextAlignment,
|
|
6
|
-
padding,
|
|
7
|
-
tint,
|
|
8
|
-
} from "@expo/ui/swift-ui/modifiers";
|
|
9
|
-
import { useDynamicFont } from "@/lib/dynamic-font";
|
|
10
|
-
import { ProminentButton } from "@/components/ui/prominent-button";
|
|
11
|
-
import { useColors } from "@/hooks/use-theme";
|
|
12
|
-
|
|
13
|
-
export default function NotFoundScreen() {
|
|
14
|
-
const dfont = useDynamicFont();
|
|
15
|
-
const colors = useColors();
|
|
16
|
-
return (
|
|
17
|
-
<>
|
|
18
|
-
<Stack.Header>
|
|
19
|
-
<Stack.Screen.Title>Lost?</Stack.Screen.Title>
|
|
20
|
-
</Stack.Header>
|
|
21
|
-
<Host style={{ flex: 1 }}>
|
|
22
|
-
<VStack
|
|
23
|
-
spacing={20}
|
|
24
|
-
alignment="center"
|
|
25
|
-
modifiers={[padding({ horizontal: 24, vertical: 32 }), tint(colors.primary as string)]}
|
|
26
|
-
>
|
|
27
|
-
<Spacer />
|
|
28
|
-
<Image
|
|
29
|
-
systemName="questionmark.circle"
|
|
30
|
-
size={56}
|
|
31
|
-
color={colors.mutedForeground as string}
|
|
32
|
-
/>
|
|
33
|
-
<Text modifiers={[dfont({ size: 24, weight: "bold" }), multilineTextAlignment("center")]}>
|
|
34
|
-
This page doesn't exist
|
|
35
|
-
</Text>
|
|
36
|
-
<Text
|
|
37
|
-
modifiers={[
|
|
38
|
-
dfont({ size: 15 }),
|
|
39
|
-
foregroundStyle(colors.mutedForeground as string),
|
|
40
|
-
multilineTextAlignment("center"),
|
|
41
|
-
]}
|
|
42
|
-
>
|
|
43
|
-
The page you were looking for moved or was never here.
|
|
44
|
-
</Text>
|
|
45
|
-
<ProminentButton label="Take me home" onPress={() => router.replace("/")} />
|
|
46
|
-
<Spacer />
|
|
47
|
-
</VStack>
|
|
48
|
-
</Host>
|
|
49
|
-
</>
|
|
50
|
-
);
|
|
51
|
-
}
|