fix(mobile): reduce dev-client reload and Metro startup cost (#8694)

Co-authored-by: Julius Marminge <[email protected]>
This commit is contained in:
Julius MarmingeandJulius Marminge authored and GitHub committed 2026-08-29 16:46:54 -07:00
1 parent 3d32797f6f
commit 1f8ed54add
31 files changed
+1809 -469

No files matched your search

+1 -1
View File
@@ -80,7 +80,6 @@ Run Metro from `apps/mobile`.
APP_VARIANT=development vp exec expo start \
--dev-client \
--scheme t3code-dev \
--clear \
--lan \
--port <metro-port>
```
@@ -179,6 +178,7 @@ Keep local verification focused. Do not turn this workflow into a full repositor
## Troubleshoot predictable failures
- **Old UI or an old error appears:** verify Metro's worktree, variant, URL, and port before diagnosing the app.
- **Metro serves stale or invalid transforms after those checks:** stop the owned Metro process and run `vp run dev:client:reset` once on the standard port. For a custom port, add `--clear` to the complete explicit `expo start` command above.
- **The environment remains empty:** verify the platform-specific HTTP origin, use a fresh token, and confirm project seeding used the identical base directory.
- **A second client cannot pair:** pairing tokens are single-use; issue another token.
- **The pairing form opens but does not connect:** confirm the deep link uses the existing `connections/new` route, includes `autoConnect=1`, and carries a freshly minted encoded `pairingUrl`.
+1
View File
@@ -104,6 +104,7 @@ An empty database is a bad test. Seed your worktree's `.t3` with a copy of real
## Verifying
- Smallest proof that the change works. `vp test run <files>` for the tests you touched, targeted lint and typecheck for the scope you changed.
- Test meaningful logic or observable behavior. Do not render components to static markup to assert props or attributes, or add tests that merely assert callback wiring or mirror the implementation.
- **Do not run repo-wide checks.** No `vp check`, no `vp run -r test`, no `vp run -r typecheck` unless I ask. CI owns the full suite.
- Backend behavior changes ship with focused tests for that behavior.
- The server is event-sourced and its async flows emit typed receipts. Wait on receipts and worker drains, never on sleeps or polling. A test that needs a timeout to pass is wrong.
+20 -1
View File
@@ -28,6 +28,23 @@ Start Metro for the dev client:
vp run dev:client
```
Metro keeps its transform cache between ordinary starts. If the cache itself is causing stale or
invalid output, clear it for one development-client start:
```bash
vp run dev:client:reset
```
Run that reset once after installing or changing the Uniwind dependency patch. Cached transforms
can otherwise reference its previous pnpm package path. Ordinary Metro starts still keep the cache.
Component edits use Fast Refresh. Connection-runtime edits replace the active Effect layer through
a stable atom runtime, preserving navigation and existing atom subscribers. Replaced registries
and managed runtimes dispose their resources; the app does not force a JavaScript reload. The Uniwind patch
skips global style invalidation when generated styles and themes are unchanged, while real style
changes still refresh. See [mobile development lifecycle](../../docs/internals/mobile-development.md)
for the lifetime boundaries.
Build and run the local iOS dev client:
```bash
@@ -89,7 +106,9 @@ The native lint task runs SwiftLint for Swift plus ktlint and detekt for Kotlin.
## EAS Builds
CI uses Expo fingerprinting with the `preview:dev` profile to reuse an existing compatible build when possible, or start a new internal EAS build when native runtime inputs change. Production and default local builds continue to use the `appVersion` runtime policy.
Preview and production variants use Expo fingerprinting so OTA updates only reach binaries with matching native dependencies, config plugins, and patches. CI uses the `preview:dev` profile to reuse a compatible native build when possible.
The development variant uses `appVersion` to avoid recalculating the native fingerprint for each Metro launch manifest. `MOBILE_VERSION_POLICY` can override either default. If you distribute a custom Release build with the development identity and publish OTA updates to it, set `MOBILE_VERSION_POLICY=fingerprint` for both its build and updates. Changing the runtime policy requires a native rebuild for OTA matching; an existing dev client can still load local Metro bundles.
For preview or production EAS environments, set `T3CODE_CLERK_PUBLISHABLE_KEY`,
`T3CODE_CLERK_JWT_TEMPLATE`, and `T3CODE_RELAY_URL`
+7 -5
View File
@@ -10,6 +10,9 @@ Object.assign(process.env, repoEnv);
const APP_VARIANT = resolveAppVariant(repoEnv.APP_VARIANT);
const isIosPersonalTeamBuild = repoEnv.T3CODE_IOS_PERSONAL_TEAM === "1";
const runtimeVersionPolicy =
process.env.MOBILE_VERSION_POLICY ??
(APP_VARIANT === "development" ? "appVersion" : "fingerprint");
const personalTeamBundleIdentifier = repoEnv.T3CODE_IOS_PERSONAL_TEAM_BUNDLE_ID?.trim();
const IOS_BUNDLE_IDENTIFIER_PATTERN = /^[A-Za-z0-9-]+(?:\.[A-Za-z0-9-]+)+$/;
@@ -166,11 +169,10 @@ const config: ExpoConfig = {
scheme: variant.scheme,
version: "1.0.4",
runtimeVersion: {
// Fingerprint (not appVersion) so an OTA only reaches binaries whose native
// project — native deps, config plugins, AND patches/ — matches the update.
// With appVersion, every 0.1.0 build shares a runtime version, so a JS update
// could land on a binary missing the native changes it needs and crash.
policy: process.env.MOBILE_VERSION_POLICY ?? "fingerprint",
// Development manifests resolve on every launch, so avoid fingerprint's
// expensive native-project calculation there. Preview and production stay
// fingerprinted so OTAs only reach binaries with matching native projects.
policy: runtimeVersionPolicy,
},
orientation: "portrait",
icon: variant.assets.appIcon,
+6 -5
View File
@@ -4,14 +4,15 @@
"private": true,
"main": "index.ts",
"scripts": {
"dev": "expo start --clear",
"dev:client": "APP_VARIANT=development expo start --dev-client --scheme t3code-dev --clear --lan",
"dev:client:preview": "eas env:exec preview 'EXPO_NO_DOTENV=1 APP_VARIANT=preview expo start --dev-client --scheme t3code-preview --clear --lan'",
"dev": "expo start",
"dev:client": "APP_VARIANT=development expo start --dev-client --scheme t3code-dev --lan",
"dev:client:reset": "APP_VARIANT=development expo start --dev-client --scheme t3code-dev --clear --lan",
"dev:client:preview": "eas env:exec preview 'EXPO_NO_DOTENV=1 APP_VARIANT=preview expo start --dev-client --scheme t3code-preview --lan'",
"start": "expo start",
"start:dev": "APP_VARIANT=development expo start",
"start:preview": "APP_VARIANT=preview expo start",
"start:prod": "APP_VARIANT=production expo start",
"showcase": "APP_VARIANT=production EXPO_PUBLIC_SHOWCASE=1 expo start --dev-client --scheme t3code --clear",
"showcase": "APP_VARIANT=production EXPO_PUBLIC_SHOWCASE=1 expo start --dev-client --scheme t3code",
"screenshots": "node ../../scripts/mobile-showcase.ts",
"android": "EXPO_NO_GIT_STATUS=1 expo prebuild --clean --platform android && expo run:android",
"android:dev": "APP_VARIANT=development EXPO_NO_GIT_STATUS=1 expo prebuild --clean --platform android && REACT_NATIVE_PACKAGER_HOSTNAME=localhost expo run:android",
@@ -120,7 +121,7 @@
"react-native-worklets": "0.10.1",
"shiki": "4.2.0",
"tailwind-merge": "^3.5.0",
"uniwind": "^1.6.2"
"uniwind": "1.11.0"
},
"devDependencies": {
"@effect/vitest": "catalog:",
@@ -0,0 +1,15 @@
import { SymbolView as ExpoSymbolView, type SymbolViewProps } from "expo-symbols";
import { withUniwind } from "uniwind";
export type { SFSymbol } from "expo-symbols";
export type AppSymbolName = SymbolViewProps["name"];
/**
* Keep the iOS implementation isolated from the Android Tabler fallback so
* Metro does not initialize the icon package when iOS renders SF Symbols.
*/
function AppSymbolView(props: SymbolViewProps) {
return <ExpoSymbolView {...props} />;
}
export const SymbolView = withUniwind(AppSymbolView);
+7
View File
@@ -0,0 +1,7 @@
// Tabler 3.44 exports per-icon runtime modules but points their declarations at missing files.
declare module "@tabler/icons-react-native/Icon*" {
import type { Icon } from "@tabler/icons-react-native";
const icon: Icon;
export default icon;
}
+84 -87
View File
@@ -1,86 +1,87 @@
import {
IconAdjustmentsHorizontal,
IconAlertCircle,
IconAlertTriangle,
IconApps,
IconArchive,
IconArrowBackUp,
IconArrowDownCircle,
IconArrowRightCircle,
IconArrowUp,
IconArrowUpCircle,
IconArrowUpRight,
IconArrowUpRightCircle,
IconArrowsMaximize,
IconBellRinging,
IconBolt,
IconBox,
IconCamera,
IconChartBar,
IconCheck,
IconChevronDown,
IconCode,
IconChevronLeft,
IconChevronRight,
IconChevronUp,
IconCircleCheck,
IconCircleXFilled,
IconClock,
IconCopy,
IconDeviceDesktop,
IconDots,
IconDotsCircleHorizontal,
IconEdit,
IconExternalLink,
IconEye,
IconFileText,
IconFilter,
IconFolder,
IconFolderOpen,
IconFolderPlus,
IconGitBranch,
IconHammer,
IconGitMerge,
IconGitPullRequest,
IconInfoCircle,
IconKeyboard,
IconKeyboardHide,
IconLayoutColumns,
IconLayoutSidebar,
IconLetterSpacing,
IconLink,
IconMessage,
IconMinus,
IconMoon,
IconNetwork,
IconPalette,
IconPin,
IconPinnedOff,
IconPlayerPlay,
IconPlayerStopFilled,
IconPlus,
IconQrcode,
IconRefresh,
IconSearch,
IconServer,
IconSettings,
IconSparkles,
IconSun,
IconLayoutSidebarRight,
IconTerminal2,
IconTextDecrease,
IconTextIncrease,
IconTool,
IconTrash,
IconTypography,
IconUserCircle,
IconWifiOff,
IconWorld,
IconX,
type Icon,
} from "@tabler/icons-react-native";
import { Platform } from "react-native";
import { SymbolView as ExpoSymbolView, type SFSymbol, type SymbolViewProps } from "expo-symbols";
import type { Icon } from "@tabler/icons-react-native/types";
/*
* Keep these as per-icon exports. Importing the package root eagerly registers
* the entire Tabler icon set in Metro.
*/
import IconAdjustmentsHorizontal from "@tabler/icons-react-native/IconAdjustmentsHorizontal";
import IconAlertCircle from "@tabler/icons-react-native/IconAlertCircle";
import IconAlertTriangle from "@tabler/icons-react-native/IconAlertTriangle";
import IconApps from "@tabler/icons-react-native/IconApps";
import IconArchive from "@tabler/icons-react-native/IconArchive";
import IconArrowBackUp from "@tabler/icons-react-native/IconArrowBackUp";
import IconArrowDownCircle from "@tabler/icons-react-native/IconArrowDownCircle";
import IconArrowRightCircle from "@tabler/icons-react-native/IconArrowRightCircle";
import IconArrowUp from "@tabler/icons-react-native/IconArrowUp";
import IconArrowUpCircle from "@tabler/icons-react-native/IconArrowUpCircle";
import IconArrowUpRight from "@tabler/icons-react-native/IconArrowUpRight";
import IconArrowUpRightCircle from "@tabler/icons-react-native/IconArrowUpRightCircle";
import IconArrowsMaximize from "@tabler/icons-react-native/IconArrowsMaximize";
import IconBellRinging from "@tabler/icons-react-native/IconBellRinging";
import IconBolt from "@tabler/icons-react-native/IconBolt";
import IconBox from "@tabler/icons-react-native/IconBox";
import IconCamera from "@tabler/icons-react-native/IconCamera";
import IconChartBar from "@tabler/icons-react-native/IconChartBar";
import IconCheck from "@tabler/icons-react-native/IconCheck";
import IconChevronDown from "@tabler/icons-react-native/IconChevronDown";
import IconChevronLeft from "@tabler/icons-react-native/IconChevronLeft";
import IconChevronRight from "@tabler/icons-react-native/IconChevronRight";
import IconChevronUp from "@tabler/icons-react-native/IconChevronUp";
import IconCircleCheck from "@tabler/icons-react-native/IconCircleCheck";
import IconCircleXFilled from "@tabler/icons-react-native/IconCircleXFilled";
import IconClock from "@tabler/icons-react-native/IconClock";
import IconCode from "@tabler/icons-react-native/IconCode";
import IconCopy from "@tabler/icons-react-native/IconCopy";
import IconDeviceDesktop from "@tabler/icons-react-native/IconDeviceDesktop";
import IconDots from "@tabler/icons-react-native/IconDots";
import IconDotsCircleHorizontal from "@tabler/icons-react-native/IconDotsCircleHorizontal";
import IconEdit from "@tabler/icons-react-native/IconEdit";
import IconExternalLink from "@tabler/icons-react-native/IconExternalLink";
import IconEye from "@tabler/icons-react-native/IconEye";
import IconFileText from "@tabler/icons-react-native/IconFileText";
import IconFilter from "@tabler/icons-react-native/IconFilter";
import IconFolder from "@tabler/icons-react-native/IconFolder";
import IconFolderOpen from "@tabler/icons-react-native/IconFolderOpen";
import IconFolderPlus from "@tabler/icons-react-native/IconFolderPlus";
import IconGitBranch from "@tabler/icons-react-native/IconGitBranch";
import IconGitMerge from "@tabler/icons-react-native/IconGitMerge";
import IconGitPullRequest from "@tabler/icons-react-native/IconGitPullRequest";
import IconHammer from "@tabler/icons-react-native/IconHammer";
import IconInfoCircle from "@tabler/icons-react-native/IconInfoCircle";
import IconKeyboard from "@tabler/icons-react-native/IconKeyboard";
import IconKeyboardHide from "@tabler/icons-react-native/IconKeyboardHide";
import IconLayoutColumns from "@tabler/icons-react-native/IconLayoutColumns";
import IconLayoutSidebar from "@tabler/icons-react-native/IconLayoutSidebar";
import IconLayoutSidebarRight from "@tabler/icons-react-native/IconLayoutSidebarRight";
import IconLetterSpacing from "@tabler/icons-react-native/IconLetterSpacing";
import IconLink from "@tabler/icons-react-native/IconLink";
import IconMessage from "@tabler/icons-react-native/IconMessage";
import IconMinus from "@tabler/icons-react-native/IconMinus";
import IconMoon from "@tabler/icons-react-native/IconMoon";
import IconNetwork from "@tabler/icons-react-native/IconNetwork";
import IconPalette from "@tabler/icons-react-native/IconPalette";
import IconPin from "@tabler/icons-react-native/IconPin";
import IconPinnedOff from "@tabler/icons-react-native/IconPinnedOff";
import IconPlayerPlay from "@tabler/icons-react-native/IconPlayerPlay";
import IconPlayerStopFilled from "@tabler/icons-react-native/IconPlayerStopFilled";
import IconPlus from "@tabler/icons-react-native/IconPlus";
import IconQrcode from "@tabler/icons-react-native/IconQrcode";
import IconRefresh from "@tabler/icons-react-native/IconRefresh";
import IconSearch from "@tabler/icons-react-native/IconSearch";
import IconServer from "@tabler/icons-react-native/IconServer";
import IconSettings from "@tabler/icons-react-native/IconSettings";
import IconSparkles from "@tabler/icons-react-native/IconSparkles";
import IconSun from "@tabler/icons-react-native/IconSun";
import IconTerminal2 from "@tabler/icons-react-native/IconTerminal2";
import IconTextDecrease from "@tabler/icons-react-native/IconTextDecrease";
import IconTextIncrease from "@tabler/icons-react-native/IconTextIncrease";
import IconTool from "@tabler/icons-react-native/IconTool";
import IconTrash from "@tabler/icons-react-native/IconTrash";
import IconTypography from "@tabler/icons-react-native/IconTypography";
import IconUserCircle from "@tabler/icons-react-native/IconUserCircle";
import IconWifiOff from "@tabler/icons-react-native/IconWifiOff";
import IconWorld from "@tabler/icons-react-native/IconWorld";
import IconX from "@tabler/icons-react-native/IconX";
import type { SFSymbol, SymbolViewProps } from "expo-symbols";
import { withUniwind } from "uniwind";
const ANDROID_ICON_BY_SF_SYMBOL: Partial<Record<SFSymbol, Icon>> = {
@@ -192,10 +193,6 @@ export type { SFSymbol } from "expo-symbols";
export type AppSymbolName = SymbolViewProps["name"];
function AppSymbolView(props: SymbolViewProps) {
if (Platform.OS !== "android") {
return <ExpoSymbolView {...props} />;
}
const materialName = typeof props.name === "string" ? undefined : props.name.android;
const sfSymbol = typeof props.name === "string" ? props.name : props.name.ios;
const AndroidIcon =
+52 -12
View File
@@ -8,7 +8,7 @@ import {
type ReactNode,
useRef,
} from "react";
import { Platform, Pressable, View } from "react-native";
import { Platform, Pressable, View, type PressableProps } from "react-native";
import { useAppearancePreferences } from "../features/settings/appearance/AppearancePreferencesProvider";
import { cn } from "../lib/cn";
@@ -120,6 +120,8 @@ export function ControlPillMenu(
) {
const { themeAppearance } = useAppearancePreferences();
const isDarkMode = themeAppearance === "dark";
const menuPress = useRef({ isPreparing: false, isOpen: false, suppressPress: false });
const pendingPress = useRef<(() => void) | null>(null);
if (Platform.OS === "android") {
// Long-press menus keep their child interactive: the child element gets
@@ -161,20 +163,58 @@ export function ControlPillMenu(
const { className: _className, ...menuProps } = props;
let children = menuProps.children;
// In long-press mode the wrapped pressable still receives the touch (the
// patched MenuView button is touch-transparent) and RN's Fabric touch
// handler is never cancelled by the in-tree UIContextMenuInteraction, so a
// bare onPress would fire on finger-up even after the menu opened — and
// also on a long press released just under the menu threshold. A dispatched
// onLongPress makes Pressability swallow the release, so holds past 350ms
// (below the ~500ms context-menu threshold) can only open the menu, never
// tap through.
if (props.shouldOpenOnLongPress && isValidElement(children)) {
const child = children as ReactElement<{ onLongPress?: () => void; delayLongPress?: number }>;
const child = children as ReactElement<Pick<PressableProps, "onTouchStart" | "onPress">>;
children = cloneElement(child, {
onLongPress: child.props.onLongPress ?? (() => undefined),
delayLongPress: child.props.delayLongPress ?? 350,
onTouchStart: (event) => {
// Reset for a new touch, not onPressIn, which also fires when a
// finger moves out of the row and back during the same gesture.
menuPress.current.isPreparing = false;
menuPress.current.suppressPress = menuPress.current.isOpen;
pendingPress.current = null;
child.props.onTouchStart?.(event);
},
onPress: (event) => {
// Accessibility clicks have no touch identifier and must not inherit
// cancellation from a previous physical gesture.
const isTouch = typeof event.nativeEvent.identifier === "number";
if (isTouch ? menuPress.current.suppressPress : menuPress.current.isOpen) {
return;
}
if (isTouch && menuPress.current.isPreparing) {
// A release can arrive between native menu preparation and display.
// Let UIKit's display/cancel callback decide this press's outcome.
event.persist();
pendingPress.current = () => child.props.onPress?.(event);
return;
}
child.props.onPress?.(event);
},
});
menuProps.onMenuInteractionStart = () => {
menuPress.current.isPreparing = true;
props.onMenuInteractionStart?.();
};
menuProps.onOpenMenu = () => {
menuPress.current.isPreparing = false;
menuPress.current.isOpen = true;
menuPress.current.suppressPress = true;
pendingPress.current = null;
props.onOpenMenu?.();
};
menuProps.onCloseMenu = () => {
menuPress.current.isPreparing = false;
menuPress.current.isOpen = false;
// Keep this gesture cancelled even if dismissal precedes finger-up.
// A separate JS long-press timer would also swallow holds that never
// open the native menu.
const press = pendingPress.current;
pendingPress.current = null;
props.onCloseMenu?.();
if (!menuPress.current.suppressPress) {
press?.();
}
};
}
return (
<MenuView {...menuProps} themeVariant={isDarkMode ? "dark" : "light"}>
+11 -1
View File
@@ -4,13 +4,18 @@ import { threadSnapshotLoaderLayer } from "@t3tools/client-runtime/state/threads
import * as Layer from "effect/Layer";
import { Atom } from "effect/unstable/reactivity";
import type { FoundationHotModule } from "../lib/foundation-fast-refresh";
import { hotSwappableAtomRuntime } from "../lib/hot-swappable-atom-runtime";
import { runtimeContextLayer } from "../lib/runtime";
import { appAtomRegistry } from "../state/atom-registry";
import {
mobileBackgroundActivityObserverLayer,
mobileBackgroundActivityReporterLayer,
} from "./background-activity";
import { connectionPlatformLayer } from "./platform";
declare const module: { readonly hot?: FoundationHotModule } | undefined;
const providedConnectionPlatformLayer = connectionPlatformLayer.pipe(
Layer.provide(runtimeContextLayer),
);
@@ -42,4 +47,9 @@ const connectionLayer = mobileBackgroundActivityReporterLayer.pipe(
export const connectionAtomRuntime: Atom.AtomRuntime<
Layer.Success<ConnectionLayerSource>,
Layer.Error<ConnectionLayerSource>
> = Atom.runtime(connectionLayer);
> = hotSwappableAtomRuntime({
id: "t3.mobile.connection-runtime",
hotModule: typeof module === "undefined" ? undefined : module.hot,
registry: appAtomRegistry,
layer: connectionLayer,
});
@@ -17,6 +17,7 @@ import { AndroidHomeFabLayout } from "./AndroidHomeFab";
import { HomeScreen } from "./HomeScreen";
import { HomeHeader } from "./HomeHeader";
import { useHomeListOptions } from "./home-list-options";
import { useHomeThreadSelection } from "./home-thread-navigation";
import { buildHomeProjectScopes } from "./homeThreadList";
import { usePendingTaskListActions } from "./usePendingTaskListActions";
import { useThreadListActions } from "./useThreadListActions";
@@ -33,6 +34,7 @@ export function HomeRouteScreen() {
const { savedConnectionsById } = useSavedRemoteConnections();
const navigation = useNavigation();
const [searchQuery, setSearchQuery] = useState("");
const handleSelectThread = useHomeThreadSelection();
useEffect(() => {
void checkForAppUpdateOnLaunch();
@@ -209,14 +211,7 @@ export function HomeRouteScreen() {
}
onProjectSortOrderChange={setProjectSortOrder}
onSearchQueryChange={setSearchQuery}
onSelectThread={(thread) => {
// Settled threads are live shells: opening one is plain
// navigation, and sending a message un-settles server-side.
navigation.navigate("Thread", {
environmentId: thread.environmentId,
threadId: thread.id,
});
}}
onSelectThread={handleSelectThread}
onSelectPendingTask={openPendingTask}
onDeletePendingTask={confirmDeletePendingTask}
onNewThreadInProject={(project) => {
+11 -9
View File
@@ -19,6 +19,7 @@ import type {
} from "@t3tools/contracts";
import { useAtomSet, useAtomValue } from "@effect/atom-react";
import { AsyncResult } from "effect/unstable/reactivity";
import { useFocusEffect } from "@react-navigation/native";
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import { ActivityIndicator, FlatList, Platform, Pressable, View } from "react-native";
import type { SwipeableMethods } from "react-native-gesture-handler/ReanimatedSwipeable";
@@ -587,15 +588,16 @@ export function HomeScreen(props: HomeScreenProps) {
// next wake boundary re-runs the partition with a fresh clock so a woken
// thread reappears immediately instead of on the next minute tick.
const [snoozeWakeTick, bumpSnoozeWakeTick] = useState(0);
useEffect(() => {
if (!threadListV2Enabled) return;
// Refresh immediately on enable: the mount-time value can be hours old
// by the time the beta is switched on, which would misclassify the
// inactivity auto-settle boundary until the first tick.
setNowMinute(new Date().toISOString().slice(0, 16));
const id = setInterval(() => setNowMinute(new Date().toISOString().slice(0, 16)), 60_000);
return () => clearInterval(id);
}, [threadListV2Enabled]);
useFocusEffect(
useCallback(() => {
if (!threadListV2Enabled) return;
// Refresh immediately on enable or focus: the previous value can be hours
// old and misclassify the inactivity auto-settle boundary until the first tick.
setNowMinute(new Date().toISOString().slice(0, 16));
const id = setInterval(() => setNowMinute(new Date().toISOString().slice(0, 16)), 60_000);
return () => clearInterval(id);
}, [threadListV2Enabled]),
);
// Threads on servers without the settlement capability never classify as
// settled (the user could neither un-settle nor pin them).
const serverConfigs = useAtomValue(environmentServerConfigsAtom);
@@ -0,0 +1,196 @@
import * as NodeModule from "node:module";
import type {
StackNavigationState,
StackRouter as StackRouterType,
StackActions as StackActionsType,
} from "@react-navigation/native";
import { describe, expect, it, vi } from "vite-plus/test";
function loadRouters() {
const require = NodeModule.createRequire(import.meta.url);
const nativePackage = require.resolve("@react-navigation/native/package.json");
const requireFromNative = NodeModule.createRequire(nativePackage);
const corePackage = requireFromNative.resolve("@react-navigation/core/package.json");
const requireFromCore = NodeModule.createRequire(corePackage);
return requireFromCore("@react-navigation/routers") as {
readonly CommonActions: typeof import("@react-navigation/native").CommonActions;
readonly StackActions: typeof StackActionsType;
readonly StackRouter: typeof StackRouterType;
};
}
vi.mock("@react-navigation/native", () => {
const { CommonActions, StackActions } = loadRouters();
return { CommonActions, StackActions };
});
import { createHomeThreadNavigationAction } from "./home-thread-navigation";
const { StackActions, StackRouter } = loadRouters();
const routeNames = ["Home", "Thread"];
const routeParamList = {
Home: undefined,
Thread: undefined,
};
const router = StackRouter({});
const routerOptions = {
routeNames,
routeParamList,
routeGetIdList: {},
};
type ThreadSelection = Parameters<typeof createHomeThreadNavigationAction>[0]["thread"];
function thread(id: string): ThreadSelection {
return {
environmentId: "environment-1",
id,
} as ThreadSelection;
}
function initialState() {
return router.getInitialState(routerOptions);
}
function apply(
state: StackNavigationState<Record<string, object | undefined>>,
action: Parameters<typeof router.getStateForAction>[1],
) {
const nextState = router.getStateForAction(state, action, routerOptions);
expect(nextState).not.toBeNull();
return nextState as StackNavigationState<Record<string, object | undefined>>;
}
function selectThread(
state: ReturnType<typeof initialState>,
selectedThread: ThreadSelection,
dismissingRouteKey: string | null = null,
) {
return apply(
state,
createHomeThreadNavigationAction({
state,
dismissingRouteKey,
thread: selectedThread,
}),
);
}
function dismissRoute(state: ReturnType<typeof initialState>, routeKey: string) {
return apply(state, {
...StackActions.pop(),
source: routeKey,
target: state.key,
});
}
describe("createHomeThreadNavigationAction", () => {
it("coalesces ordinary repeat selections onto the current thread route", () => {
const firstState = selectThread(initialState(), thread("thread-a"));
const threadRouteKey = firstState.routes[firstState.index]?.key;
const secondAction = createHomeThreadNavigationAction({
state: firstState,
dismissingRouteKey: null,
thread: thread("thread-b"),
});
const secondState = apply(firstState, secondAction);
expect(secondState.routes).toHaveLength(2);
expect(secondState.routes[secondState.index]).toMatchObject({
key: threadRouteKey,
name: "Thread",
params: { environmentId: "environment-1", threadId: "thread-b" },
});
});
it("keeps an overlap selection after native dismisses the outgoing route", () => {
const outgoingState = selectThread(initialState(), thread("thread-a"));
const outgoingRouteKey = outgoingState.routes[outgoingState.index]?.key;
expect(outgoingRouteKey).toBeDefined();
const overlapAction = createHomeThreadNavigationAction({
state: outgoingState,
dismissingRouteKey: outgoingRouteKey ?? null,
thread: thread("thread-b"),
});
const overlapState = apply(outgoingState, overlapAction);
const incomingRoute = overlapState.routes[overlapState.index];
expect(incomingRoute?.key).not.toBe(outgoingRouteKey);
const dismissedState = dismissRoute(overlapState, outgoingRouteKey!);
expect(dismissedState.routes).toHaveLength(2);
expect(dismissedState.routes[dismissedState.index]).toMatchObject({
key: incomingRoute?.key,
name: "Thread",
params: { environmentId: "environment-1", threadId: "thread-b" },
});
});
it("uses a fresh key for the same thread selected during dismissal", () => {
const outgoingState = selectThread(initialState(), thread("thread-a"));
const outgoingRouteKey = outgoingState.routes[outgoingState.index]?.key;
expect(outgoingRouteKey).toBeDefined();
const overlapState = selectThread(outgoingState, thread("thread-a"), outgoingRouteKey ?? null);
const incomingRouteKey = overlapState.routes[overlapState.index]?.key;
expect(incomingRouteKey).not.toBe(outgoingRouteKey);
const dismissedState = dismissRoute(overlapState, outgoingRouteKey!);
expect(dismissedState.routes[dismissedState.index]).toMatchObject({
key: incomingRouteKey,
params: { environmentId: "environment-1", threadId: "thread-a" },
});
});
it("coalesces a second overlap selection onto the fresh incoming route", () => {
const outgoingState = selectThread(initialState(), thread("thread-a"));
const outgoingRouteKey = outgoingState.routes[outgoingState.index]?.key;
expect(outgoingRouteKey).toBeDefined();
const firstOverlapState = selectThread(
outgoingState,
thread("thread-b"),
outgoingRouteKey ?? null,
);
const incomingRouteKey = firstOverlapState.routes[firstOverlapState.index]?.key;
const secondOverlapAction = createHomeThreadNavigationAction({
state: firstOverlapState,
dismissingRouteKey: outgoingRouteKey ?? null,
thread: thread("thread-c"),
});
const secondOverlapState = apply(firstOverlapState, secondOverlapAction);
expect(secondOverlapState.routes).toHaveLength(3);
expect(secondOverlapState.routes[secondOverlapState.index]).toMatchObject({
key: incomingRouteKey,
params: { environmentId: "environment-1", threadId: "thread-c" },
});
const dismissedState = dismissRoute(secondOverlapState, outgoingRouteKey!);
expect(dismissedState.routes).toHaveLength(2);
expect(dismissedState.routes[dismissedState.index]).toMatchObject({
key: incomingRouteKey,
params: { environmentId: "environment-1", threadId: "thread-c" },
});
});
it("uses ordinary navigation when native pops before the selection", () => {
const outgoingState = selectThread(initialState(), thread("thread-a"));
const outgoingRouteKey = outgoingState.routes[outgoingState.index]?.key;
expect(outgoingRouteKey).toBeDefined();
const poppedState = dismissRoute(outgoingState, outgoingRouteKey!);
const action = createHomeThreadNavigationAction({
state: poppedState,
dismissingRouteKey: outgoingRouteKey ?? null,
thread: thread("thread-b"),
});
const selectedState = apply(poppedState, action);
expect(selectedState.routes).toHaveLength(2);
expect(selectedState.routes[selectedState.index]).toMatchObject({
name: "Thread",
params: { environmentId: "environment-1", threadId: "thread-b" },
});
});
});
@@ -0,0 +1,71 @@
import type { EnvironmentThreadShell } from "@t3tools/client-runtime/state/shell";
import {
CommonActions,
StackActions,
useNavigation,
type NavigationState,
} from "@react-navigation/native";
import type { NativeStackNavigationProp } from "@react-navigation/native-stack";
import { useCallback, useEffect, useRef } from "react";
type ThreadSelection = Pick<EnvironmentThreadShell, "environmentId" | "id">;
export function createHomeThreadNavigationAction(input: {
readonly state: Pick<NavigationState, "index" | "routes">;
readonly dismissingRouteKey: string | null;
readonly thread: ThreadSelection;
}) {
const currentRoute = input.state.routes[input.state.index];
const params = {
environmentId: input.thread.environmentId,
threadId: input.thread.id,
};
// Native swipe-back pops the outgoing route after its animation. Reusing
// that key would also discard this selection when the dismissal arrives.
if (input.dismissingRouteKey !== null && currentRoute?.key === input.dismissingRouteKey) {
return StackActions.push("Thread", params);
}
return CommonActions.navigate("Thread", params);
}
export function useHomeThreadSelection() {
const navigation =
useNavigation<NativeStackNavigationProp<ReactNavigation.RootParamList, "Home">>();
const dismissingRouteKey = useRef<string | null>(null);
useEffect(() => {
const clear = () => {
dismissingRouteKey.current = null;
};
// This listener belongs to Home, so swipe-back is its opening transition.
// Thread's closing event is targeted at the outgoing Thread route.
const removeTransitionStart = navigation.addListener("transitionStart", ({ data }) => {
const state = navigation.getState();
const currentRoute = state.routes[state.index];
dismissingRouteKey.current =
!data.closing && currentRoute?.name === "Thread" ? currentRoute.key : null;
});
const removeFocus = navigation.addListener("focus", clear);
return () => {
clear();
removeTransitionStart();
removeFocus();
};
}, [navigation]);
return useCallback(
(thread: ThreadSelection) => {
navigation.dispatch((state) =>
createHomeThreadNavigationAction({
state,
dismissingRouteKey: dismissingRouteKey.current,
thread,
}),
);
},
[navigation],
);
}
@@ -370,34 +370,45 @@ function SwipeActionButton(props: {
readonly stretchesOnFullSwipe: boolean;
readonly translation: SharedValue<number>;
}) {
const {
actionsWidth,
entryRange: [entryRangeStart, entryRangeEnd],
fullSwipeThreshold,
stretchesOnFullSwipe,
translation,
} = props;
const circleSize = props.compact ? COMPACT_ACTION_CIRCLE_SIZE : ACTION_CIRCLE_SIZE;
const iconSize = props.compact ? COMPACT_ACTION_ICON_SIZE : ACTION_ICON_SIZE;
const actionStyle = useAnimatedStyle(() => {
const reveal = Math.max(-props.translation.value, 0);
const entryProgress = interpolate(reveal, props.entryRange, [0, 1], Extrapolation.CLAMP);
const stretch = Math.max(reveal - props.actionsWidth, 0);
const reveal = Math.max(-translation.value, 0);
const entryProgress = interpolate(
reveal,
[entryRangeStart, entryRangeEnd],
[0, 1],
Extrapolation.CLAMP,
);
const stretch = Math.max(reveal - actionsWidth, 0);
const fullSwipeProgress = interpolate(
reveal,
[props.actionsWidth, props.fullSwipeThreshold + 20],
[actionsWidth, fullSwipeThreshold + 20],
[0, 1],
Extrapolation.CLAMP,
);
return {
opacity: props.stretchesOnFullSwipe ? entryProgress : entryProgress * (1 - fullSwipeProgress),
opacity: stretchesOnFullSwipe ? entryProgress : entryProgress * (1 - fullSwipeProgress),
transform: [
{
translateX:
interpolate(entryProgress, [0, 1], [22, 0]) -
(props.stretchesOnFullSwipe ? 0 : stretch),
interpolate(entryProgress, [0, 1], [22, 0]) - (stretchesOnFullSwipe ? 0 : stretch),
},
{ scale: interpolate(entryProgress, [0, 1], [0.78, 1]) },
],
};
});
const circleStyle = useAnimatedStyle(() => {
const reveal = Math.max(-props.translation.value, 0);
const stretch = props.stretchesOnFullSwipe ? Math.max(reveal - props.actionsWidth, 0) : 0;
const reveal = Math.max(-translation.value, 0);
const stretch = stretchesOnFullSwipe ? Math.max(reveal - actionsWidth, 0) : 0;
return {
transform: [{ translateX: -stretch }],
@@ -405,11 +416,11 @@ function SwipeActionButton(props: {
};
});
const iconStyle = useAnimatedStyle(() => {
const reveal = Math.max(-props.translation.value, 0);
const stretch = props.stretchesOnFullSwipe ? Math.max(reveal - props.actionsWidth, 0) : 0;
const reveal = Math.max(-translation.value, 0);
const stretch = stretchesOnFullSwipe ? Math.max(reveal - actionsWidth, 0) : 0;
const armedProgress = interpolate(
reveal,
[props.fullSwipeThreshold, props.fullSwipeThreshold + 20],
[fullSwipeThreshold, fullSwipeThreshold + 20],
[0, 1],
Extrapolation.CLAMP,
);
@@ -419,16 +430,16 @@ function SwipeActionButton(props: {
};
});
const labelStyle = useAnimatedStyle(() => {
if (!props.stretchesOnFullSwipe) {
if (!stretchesOnFullSwipe) {
return { opacity: 1 };
}
const reveal = Math.max(-props.translation.value, 0);
const stretch = Math.max(reveal - props.actionsWidth, 0);
const reveal = Math.max(-translation.value, 0);
const stretch = Math.max(reveal - actionsWidth, 0);
return {
opacity: interpolate(
reveal,
[props.fullSwipeThreshold - 24, props.fullSwipeThreshold],
[fullSwipeThreshold - 24, fullSwipeThreshold],
[1, 0],
Extrapolation.CLAMP,
),
@@ -532,17 +543,17 @@ export function ThreadSwipeActions(props: {
readonly secondaryAction: ThreadSwipeSecondaryAction | null;
readonly translation: SharedValue<number>;
}) {
const secondaryAction = props.secondaryAction;
const { fullSwipeThreshold, onFullSwipeArmedChange, secondaryAction, translation } = props;
const fullSwipeIsPrimary = props.fullSwipeAction === "primary" || secondaryAction === null;
const actionsWidth = swipeActionsWidth(secondaryAction !== null);
useAnimatedReaction(
() => -props.translation.value >= props.fullSwipeThreshold,
() => -translation.value >= fullSwipeThreshold,
(armed, previous) => {
if (armed !== previous) {
runOnJS(props.onFullSwipeArmedChange)(armed);
runOnJS(onFullSwipeArmedChange)(armed);
}
},
[props.fullSwipeThreshold, props.onFullSwipeArmedChange],
[fullSwipeThreshold, onFullSwipeArmedChange, translation],
);
return (
@@ -0,0 +1,21 @@
export interface FoundationHotModule {
readonly accept: (callback?: () => void) => void;
readonly dispose: (callback: () => void) => void;
}
export function disposeOnFoundationReplace(
hotModule: FoundationHotModule | undefined,
dispose: () => void | Promise<void>,
): void {
if (hotModule === undefined || typeof __DEV__ === "undefined" || !__DEV__) return;
hotModule.dispose(() => {
try {
void Promise.resolve(dispose()).catch((error: unknown) => {
console.error("[fast-refresh] could not dispose replaced mobile foundation", error);
});
} catch (error) {
console.error("[fast-refresh] could not dispose replaced mobile foundation", error);
}
});
}
@@ -0,0 +1,197 @@
import { describe, expect, it, vi } from "vite-plus/test";
import * as Context from "effect/Context";
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
import { AsyncResult, Atom, AtomRegistry } from "effect/unstable/reactivity";
import { hotSwappableAtomRuntime } from "./hot-swappable-atom-runtime";
class RuntimeValue extends Context.Service<RuntimeValue, { readonly value: string }>()(
"t3/mobile/test/RuntimeValue",
) {}
function runtimeLayer(value: string, events: string[]) {
return Layer.effect(
RuntimeValue,
Effect.acquireRelease(
Effect.sync(() => {
events.push(`acquire:${value}`);
return RuntimeValue.of({ value });
}),
() =>
Effect.sync(() => {
events.push(`release:${value}`);
}),
),
);
}
function runtimeLayerWithRelease(
value: string,
events: string[],
release: Effect.Effect<void> = Effect.sync(() => {
events.push(`release:${value}`);
}),
) {
return Layer.effect(
RuntimeValue,
Effect.acquireRelease(
Effect.sync(() => {
events.push(`acquire:${value}`);
return RuntimeValue.of({ value });
}),
() => release,
),
);
}
describe("hotSwappableAtomRuntime", () => {
it("rebuilds a mounted runtime in place without disturbing unrelated subscribers", () => {
vi.stubGlobal("__DEV__", true);
const registry = AtomRegistry.make();
const accept = () => {};
const events: string[] = [];
const id = `test-${crypto.randomUUID()}`;
const runtime = hotSwappableAtomRuntime({
id,
hotModule: { accept },
registry,
layer: runtimeLayer("first", events),
});
const valueAtom = runtime.atom(RuntimeValue.pipe(Effect.map((service) => service.value)));
const values: string[] = [];
const unsubscribeRuntime = registry.subscribe(
valueAtom,
(result) => {
if (AsyncResult.isSuccess(result)) values.push(result.value);
},
{ immediate: true },
);
const unrelatedAtom = Atom.make(0);
const unrelatedValues: number[] = [];
const unsubscribeUnrelated = registry.subscribe(unrelatedAtom, (value) => {
unrelatedValues.push(value);
});
registry.set(unrelatedAtom, 7);
const unwatchedDraftAtom = Atom.make("saved");
registry.set(unwatchedDraftAtom, "edited");
const nodesBefore = registry.getNodes().size;
const replacement = hotSwappableAtomRuntime({
id,
hotModule: { accept },
registry,
layer: runtimeLayer("second", events),
});
hotSwappableAtomRuntime({
id,
hotModule: { accept },
registry,
layer: runtimeLayer("third", events),
});
registry.set(unrelatedAtom, 8);
expect(replacement).toBe(runtime);
expect(events).toEqual([
"acquire:first",
"release:first",
"acquire:second",
"release:second",
"acquire:third",
]);
expect(values).toEqual(["first", "second", "third"]);
expect(registry.get(unwatchedDraftAtom)).toBe("edited");
expect(unrelatedValues).toEqual([7, 8]);
expect(registry.getNodes().size).toBe(nodesBefore);
unsubscribeRuntime();
unsubscribeUnrelated();
registry.dispose();
expect(events).toEqual([
"acquire:first",
"release:first",
"acquire:second",
"release:second",
"acquire:third",
"release:third",
]);
});
it("does not retain or accept a runtime outside development", () => {
vi.stubGlobal("__DEV__", false);
const registry = AtomRegistry.make();
const accept = vi.fn();
const layer = runtimeLayer("production", []);
const first = hotSwappableAtomRuntime({
id: "production",
hotModule: { accept },
registry,
layer,
});
const second = hotSwappableAtomRuntime({
id: "production",
hotModule: { accept },
registry,
layer,
});
expect(second).not.toBe(first);
expect(accept).not.toHaveBeenCalled();
registry.dispose();
});
it("starts an asynchronous old-layer release while exposing the fresh context", async () => {
vi.stubGlobal("__DEV__", true);
const registry = AtomRegistry.make();
const events: string[] = [];
const id = `test-${crypto.randomUUID()}`;
let finishRelease!: () => void;
const releaseGate = new Promise<void>((resolve) => {
finishRelease = resolve;
});
let markReleaseComplete!: () => void;
const releaseComplete = new Promise<void>((resolve) => {
markReleaseComplete = resolve;
});
const firstRelease = Effect.promise(async () => {
events.push("release:start:first");
await releaseGate;
events.push("release:end:first");
markReleaseComplete();
});
const runtime = hotSwappableAtomRuntime({
id,
hotModule: { accept() {} },
registry,
layer: runtimeLayerWithRelease("first", events, firstRelease),
});
const valueAtom = runtime.atom(RuntimeValue.pipe(Effect.map((service) => service.value)));
const values: string[] = [];
const unsubscribe = registry.subscribe(valueAtom, (result) => {
if (AsyncResult.isSuccess(result)) values.push(result.value);
});
registry.get(valueAtom);
hotSwappableAtomRuntime({
id,
hotModule: { accept() {} },
registry,
layer: runtimeLayer("second", events),
});
expect(events).toEqual(["acquire:first", "release:start:first", "acquire:second"]);
expect(values).toEqual(["first", "second"]);
finishRelease();
await releaseComplete;
expect(events).toEqual([
"acquire:first",
"release:start:first",
"acquire:second",
"release:end:first",
]);
unsubscribe();
registry.dispose();
});
});
@@ -0,0 +1,63 @@
import * as Layer from "effect/Layer";
import { Atom, AtomRegistry, Reactivity } from "effect/unstable/reactivity";
export interface AcceptingHotModule {
readonly accept: (callback?: () => void) => void;
}
interface HotAtomRuntimeEntry {
readonly layerAtom: Atom.Writable<
Layer.Layer<unknown, unknown, AtomRegistry.AtomRegistry | Reactivity.Reactivity>
>;
readonly runtime: Atom.AtomRuntime<unknown, unknown>;
}
const hotAtomRuntimesKey = Symbol.for("t3.mobile.hot-atom-runtimes");
type HotAtomRuntimeGlobal = typeof globalThis & {
[hotAtomRuntimesKey]?: Map<string, HotAtomRuntimeEntry>;
};
function hotAtomRuntimes(): Map<string, HotAtomRuntimeEntry> {
const runtimeGlobal = globalThis as HotAtomRuntimeGlobal;
return (runtimeGlobal[hotAtomRuntimesKey] ??= new Map());
}
export function hotSwappableAtomRuntime<R, E>(options: {
readonly id: string;
readonly hotModule: AcceptingHotModule | undefined;
readonly registry: AtomRegistry.AtomRegistry;
readonly layer: Layer.Layer<R, E, AtomRegistry.AtomRegistry | Reactivity.Reactivity>;
}): Atom.AtomRuntime<R, E> {
if (options.hotModule === undefined || typeof __DEV__ === "undefined" || !__DEV__) {
return Atom.runtime(options.layer);
}
const runtimes = hotAtomRuntimes();
const existing = runtimes.get(options.id);
let entry: HotAtomRuntimeEntry;
if (existing === undefined) {
const layerAtom = Atom.make(options.layer);
entry = {
layerAtom: layerAtom as HotAtomRuntimeEntry["layerAtom"],
runtime: Atom.runtime((get) => get(layerAtom)) as HotAtomRuntimeEntry["runtime"],
};
runtimes.set(options.id, entry);
} else {
entry = existing;
options.registry.set(
entry.layerAtom,
options.layer as Layer.Layer<
unknown,
unknown,
AtomRegistry.AtomRegistry | Reactivity.Reactivity
>,
);
}
// This is a real HMR boundary: importers retain the stable AtomRuntime while
// this module evaluation installs the freshly constructed Layer above.
options.hotModule.accept();
return entry.runtime as Atom.AtomRuntime<R, E>;
}
+7
View File
@@ -9,6 +9,9 @@ import { managedRelayClientLayer } from "../features/cloud/managedRelayLayer";
import { resolveCloudPublicConfig } from "../features/cloud/publicConfig";
import { tracingLayer } from "../features/observability/tracing";
import * as Persistence from "../persistence/layer";
import { disposeOnFoundationReplace, type FoundationHotModule } from "./foundation-fast-refresh";
declare const module: { readonly hot?: FoundationHotModule } | undefined;
function configuredRelayUrl(): string {
return resolveCloudPublicConfig().relay.url ?? "http://relay.invalid";
@@ -43,3 +46,7 @@ export const runtimeContextLayer: Layer.Layer<
Layer.Success<RuntimeLayerSource>,
Layer.Error<RuntimeLayerSource>
> = Layer.effectContext(runtime.contextEffect);
disposeOnFoundationReplace(typeof module === "undefined" ? undefined : module.hot, () =>
runtime.dispose(),
);
@@ -0,0 +1,97 @@
import { beforeEach, describe, expect, it, vi } from "vite-plus/test";
import * as NodeURL from "node:url";
vi.mock("react-native", () => ({
Appearance: {
addChangeListener: vi.fn(),
getColorScheme: () => "light",
setColorScheme: vi.fn(),
},
Platform: { constants: {}, OS: "ios" },
}));
vi.mock("../../node_modules/uniwind/src/core/listener", () => ({
UniwindListener: { notify() {}, notifyAll() {} },
}));
vi.mock("../../node_modules/uniwind/src/core/native", () => ({
UniwindStore: {
reinit: (generateStyleSheetCallback: () => unknown) => {
generateStyleSheetCallback();
},
runtime: { currentThemeName: "light", insets: {} },
vars: {},
},
}));
const loadUniwind = async () => {
const modulePath = NodeURL.fileURLToPath(
new URL("../../node_modules/uniwind/src/core/config/config.native.ts", import.meta.url),
);
const { Uniwind } = (await import(/* @vite-ignore */ modulePath)) as {
Uniwind: { readonly themes: Array<string> };
};
return Uniwind as typeof Uniwind & {
__reinit: (initialize: () => unknown, themes: Array<string>, fingerprint?: string) => void;
};
};
describe("Uniwind native stylesheet refresh", () => {
beforeEach(() => {
vi.resetModules();
vi.clearAllMocks();
vi.stubGlobal("__DEV__", true);
});
it("initializes once for identical generated styles", async () => {
const Uniwind = await loadUniwind();
const initialize = vi.fn(() => ({}));
Uniwind.__reinit(initialize, ["light", "dark"], "same-output");
Uniwind.__reinit(initialize, ["light", "dark"], "same-output");
expect(initialize).toHaveBeenCalledTimes(1);
});
it("reinitializes for changed generated styles and themes", async () => {
const Uniwind = await loadUniwind();
const initialize = vi.fn(() => ({}));
Uniwind.__reinit(initialize, ["light", "dark"], "before");
Uniwind.__reinit(initialize, ["light", "dark"], "after");
Uniwind.__reinit(initialize, ["light", "dark", "dim"], "themes-with-dim");
expect(initialize).toHaveBeenCalledTimes(3);
expect(Uniwind.themes).toEqual(["light", "dark", "dim"]);
});
it("retries the same output after initialization fails", async () => {
const Uniwind = await loadUniwind();
const initialize = vi
.fn()
.mockImplementationOnce(() => {
throw new Error("initialization failed");
})
.mockImplementationOnce(() => ({}));
expect(() => Uniwind.__reinit(initialize, ["light", "dark"], "retry-output")).toThrow(
"initialization failed",
);
Uniwind.__reinit(initialize, ["light", "dark"], "retry-output");
expect(initialize).toHaveBeenCalledTimes(2);
});
it("keeps no-fingerprint and production reinitialization semantics", async () => {
const Uniwind = await loadUniwind();
const initialize = vi.fn(() => ({}));
Uniwind.__reinit(initialize, ["light", "dark"]);
Uniwind.__reinit(initialize, ["light", "dark"]);
vi.stubGlobal("__DEV__", false);
Uniwind.__reinit(initialize, ["light", "dark"], "same-output");
Uniwind.__reinit(initialize, ["light", "dark"], "same-output");
expect(initialize).toHaveBeenCalledTimes(4);
});
});
+11
View File
@@ -1,3 +1,14 @@
import { AtomRegistry } from "effect/unstable/reactivity";
import {
disposeOnFoundationReplace,
type FoundationHotModule,
} from "../lib/foundation-fast-refresh";
declare const module: { readonly hot?: FoundationHotModule } | undefined;
export const appAtomRegistry = AtomRegistry.make();
disposeOnFoundationReplace(typeof module === "undefined" ? undefined : module.hot, () =>
appAtomRegistry.dispose(),
);
@@ -0,0 +1,161 @@
import type {
EnvironmentPresentation,
PreparedConnection,
} from "@t3tools/client-runtime/connection";
import { PrimaryConnectionTarget } from "@t3tools/client-runtime/connection";
import type { ServerConfig } from "@t3tools/contracts";
import { EnvironmentId } from "@t3tools/contracts";
import { describe, expect, it } from "@effect/vitest";
import * as Option from "effect/Option";
import { Atom, AtomRegistry } from "effect/unstable/reactivity";
import { createRemoteEnvironmentProjectionAtoms } from "./remote-environment-projections";
const ENVIRONMENT_ID = EnvironmentId.make("environment-1");
const OTHER_ENVIRONMENT_ID = EnvironmentId.make("environment-2");
function target(environmentId: EnvironmentId, endpoint: string = environmentId) {
return new PrimaryConnectionTarget({
environmentId,
label: `Environment ${environmentId}`,
httpBaseUrl: `https://${endpoint}.example.test`,
wsBaseUrl: `wss://${endpoint}.example.test`,
});
}
function presentation(
environmentId: EnvironmentId,
endpoint: string = environmentId,
serverConfig: ServerConfig | null = null,
): EnvironmentPresentation {
return {
entry: { target: target(environmentId, endpoint), profile: Option.none() },
connection: { phase: "connected", error: null, traceId: null },
serverConfig,
};
}
function prepared(
environmentId: EnvironmentId,
endpoint: string,
token: string,
): PreparedConnection {
return {
environmentId,
label: `Environment ${environmentId}`,
httpBaseUrl: `https://${endpoint}.example.test`,
socketUrl: `wss://${endpoint}.example.test/ws?token=redacted`,
httpAuthorization: { _tag: "Bearer", token },
target: target(environmentId, endpoint),
};
}
function makeHarness() {
const presentationAtoms = Atom.family((environmentId: EnvironmentId) =>
Atom.make<EnvironmentPresentation | null>(presentation(environmentId)),
);
const preparedConnectionAtoms = Atom.family((_environmentId: EnvironmentId) =>
Atom.make<Option.Option<PreparedConnection>>(Option.none()),
);
const serverConfigAtoms = Atom.family((_environmentId: EnvironmentId) =>
Atom.make<ServerConfig | null>(null),
);
const projections = createRemoteEnvironmentProjectionAtoms({
presentationAtom: presentationAtoms,
preparedConnectionAtom: preparedConnectionAtoms,
serverConfigAtom: serverConfigAtoms,
});
return {
registry: AtomRegistry.make(),
presentationAtom: presentationAtoms,
preparedConnectionAtom: preparedConnectionAtoms,
serverConfigAtom: serverConfigAtoms,
projections,
};
}
describe("remote environment projections", () => {
it("shares each environment projection and invalidates only changed inputs", () => {
const harness = makeHarness();
const firstConsumer = Atom.make((get) =>
get(harness.projections.savedConnectionAtom(ENVIRONMENT_ID)),
);
const secondConsumer = Atom.make((get) =>
get(harness.projections.savedConnectionAtom(ENVIRONMENT_ID)),
);
const otherConsumer = Atom.make((get) =>
get(harness.projections.savedConnectionAtom(OTHER_ENVIRONMENT_ID)),
);
const initial = harness.registry.get(firstConsumer);
const otherInitial = harness.registry.get(otherConsumer);
expect(harness.registry.get(secondConsumer)).toBe(initial);
expect(initial).toMatchObject({
environmentLabel: "Environment environment-1",
pairingUrl: "https://environment-1.example.test",
displayUrl: "https://environment-1.example.test",
httpBaseUrl: "https://environment-1.example.test",
wsBaseUrl: "wss://environment-1.example.test",
bearerToken: null,
});
harness.registry.set(
harness.preparedConnectionAtom(ENVIRONMENT_ID),
Option.some(prepared(ENVIRONMENT_ID, "rotated", "rotated-token")),
);
const rotated = harness.registry.get(firstConsumer);
expect(rotated).not.toBe(initial);
expect(rotated).toMatchObject({
httpBaseUrl: "https://rotated.example.test",
wsBaseUrl: "wss://rotated.example.test",
bearerToken: "rotated-token",
});
expect(harness.registry.get(secondConsumer)).toBe(rotated);
expect(harness.registry.get(otherConsumer)).toBe(otherInitial);
harness.registry.set(harness.preparedConnectionAtom(ENVIRONMENT_ID), Option.none());
harness.registry.set(
harness.presentationAtom(ENVIRONMENT_ID),
presentation(ENVIRONMENT_ID, "catalog-updated"),
);
expect(harness.registry.get(firstConsumer)).toMatchObject({
displayUrl: "https://catalog-updated.example.test",
httpBaseUrl: "https://catalog-updated.example.test",
wsBaseUrl: "wss://catalog-updated.example.test",
bearerToken: null,
});
});
it("preserves saved identity across config-only updates and refreshes runtime state", () => {
const harness = makeHarness();
const savedAtom = harness.projections.savedConnectionAtom(ENVIRONMENT_ID);
const runtimeAtom = harness.projections.runtimeStateAtom(ENVIRONMENT_ID);
const savedInitial = harness.registry.get(savedAtom);
const runtimeInitial = harness.registry.get(runtimeAtom);
const config = { cwd: "/repo" } as ServerConfig;
const initialPresentation = harness.registry.get(harness.presentationAtom(ENVIRONMENT_ID));
harness.registry.set(
harness.presentationAtom(ENVIRONMENT_ID),
initialPresentation === null ? null : { ...initialPresentation, serverConfig: config },
);
harness.registry.set(harness.serverConfigAtom(ENVIRONMENT_ID), config);
expect(harness.registry.get(savedAtom)).toBe(savedInitial);
expect(harness.registry.get(runtimeAtom)).not.toBe(runtimeInitial);
expect(harness.registry.get(runtimeAtom)?.serverConfig).toBe(config);
});
it("keeps missing environments null", () => {
const harness = makeHarness();
harness.registry.set(harness.presentationAtom(ENVIRONMENT_ID), null);
expect(
harness.registry.get(harness.projections.savedConnectionAtom(ENVIRONMENT_ID)),
).toBeNull();
expect(harness.registry.get(harness.projections.runtimeStateAtom(ENVIRONMENT_ID))).toBeNull();
});
});
@@ -0,0 +1,120 @@
import type {
EnvironmentPresentation,
PreparedConnection,
} from "@t3tools/client-runtime/connection";
import { connectionCatalogDisplayUrl } from "@t3tools/client-runtime/connection";
import type { EnvironmentId, ServerConfig } from "@t3tools/contracts";
import * as Option from "effect/Option";
import { Atom } from "effect/unstable/reactivity";
import type { SavedRemoteConnection } from "../lib/connection";
import type { EnvironmentRuntimeState } from "./remote-runtime-types";
export function createRemoteEnvironmentProjectionAtoms(input: {
readonly presentationAtom: (
environmentId: EnvironmentId,
) => Atom.Atom<EnvironmentPresentation | null>;
readonly preparedConnectionAtom: (
environmentId: EnvironmentId,
) => Atom.Atom<Option.Option<PreparedConnection>>;
readonly serverConfigAtom: (environmentId: EnvironmentId) => Atom.Atom<ServerConfig | null>;
}) {
const savedConnectionAtom = Atom.family((environmentId: EnvironmentId) => {
let previousEntry: EnvironmentPresentation["entry"] | null = null;
let previousPrepared: PreparedConnection | null = null;
let previous: SavedRemoteConnection | null = null;
return Atom.make((get) => {
const presentation = get(input.presentationAtom(environmentId));
if (presentation === null) {
previousEntry = null;
previousPrepared = null;
previous = null;
return null;
}
const prepared = Option.getOrNull(get(input.preparedConnectionAtom(environmentId)));
if (
previous !== null &&
presentation.entry === previousEntry &&
prepared === previousPrepared
) {
return previous;
}
const displayUrl = connectionCatalogDisplayUrl(presentation.entry) ?? "";
const httpBaseUrl = prepared?.httpBaseUrl ?? displayUrl;
const socketUrl = prepared?.socketUrl ?? "";
const wsBaseUrl =
socketUrl === ""
? displayUrl.startsWith("https://")
? displayUrl.replace(/^https:/, "wss:")
: displayUrl.replace(/^http:/, "ws:")
: new URL(socketUrl).origin;
const authorization = prepared?.httpAuthorization ?? null;
const relayManaged = presentation.entry.target._tag === "RelayConnectionTarget";
previousEntry = presentation.entry;
previousPrepared = prepared;
previous = {
environmentId,
environmentLabel: presentation.entry.target.label,
pairingUrl: displayUrl,
displayUrl,
httpBaseUrl,
wsBaseUrl,
bearerToken: authorization?._tag === "Bearer" ? authorization.token : null,
...(relayManaged
? {
authenticationMethod: "dpop" as const,
relayManaged: true as const,
...(authorization?._tag === "Dpop"
? { dpopAccessToken: authorization.accessToken }
: {}),
}
: { authenticationMethod: "bearer" as const }),
};
return previous;
}).pipe(Atom.withLabel(`mobile:saved-connection:${environmentId}`));
});
const runtimeStateAtom = Atom.family((environmentId: EnvironmentId) => {
let previousConnection: EnvironmentPresentation["connection"] | null = null;
let previousServerConfig: ServerConfig | null = null;
let previous: EnvironmentRuntimeState | null = null;
return Atom.make((get) => {
const presentation = get(input.presentationAtom(environmentId));
if (presentation === null) {
previousConnection = null;
previousServerConfig = null;
previous = null;
return null;
}
const connection = presentation.connection;
const serverConfig = get(input.serverConfigAtom(environmentId));
if (
previous !== null &&
connection.phase === previousConnection?.phase &&
connection.error === previousConnection?.error &&
connection.traceId === previousConnection?.traceId &&
serverConfig === previousServerConfig
) {
return previous;
}
previousConnection = connection;
previousServerConfig = serverConfig;
previous = {
connectionState: connection.phase,
connectionError: connection.error,
connectionErrorTraceId: connection.traceId,
serverConfig,
};
return previous;
}).pipe(Atom.withLabel(`mobile:environment-runtime-state:${environmentId}`));
});
return { savedConnectionAtom, runtimeStateAtom };
}
@@ -1,26 +1,20 @@
import { useAtomValue } from "@effect/atom-react";
import type { PreparedConnection } from "@t3tools/client-runtime/connection";
import type { EnvironmentId } from "@t3tools/contracts";
import type { ServerConfig } from "@t3tools/contracts";
import * as Cause from "effect/Cause";
import * as Option from "effect/Option";
import { AsyncResult, Atom } from "effect/unstable/reactivity";
import { useCallback, useMemo } from "react";
import { Alert } from "react-native";
import { useEnvironmentServerConfig } from "../state/entities";
import { useConnectionController } from "../features/connection/useConnectionController";
import { environmentPresentations, useEnvironmentPresentation } from "./presentation";
import {
projectEnvironmentPresentation,
type EnvironmentPresentation,
} from "../state/environments";
import { environmentPresentations } from "./presentation";
import { useWorkspaceState } from "../state/workspace";
import type { SavedRemoteConnection } from "../lib/connection";
import { appAtomRegistry } from "./atom-registry";
import type { ConnectedEnvironmentSummary, EnvironmentRuntimeState } from "./remote-runtime-types";
import { environmentSession, usePreparedConnection } from "./session";
import { environmentSession } from "./session";
import { environmentCatalog } from "../connection/catalog";
import { createRemoteEnvironmentProjectionAtoms } from "./remote-environment-projections";
import { serverEnvironment } from "./server";
const connectionPairingUrlAtom = Atom.make("").pipe(
Atom.keepAlive,
@@ -36,65 +30,30 @@ export function setPendingConnectionError(message: string | null): void {
appAtomRegistry.set(pendingConnectionErrorAtom, message);
}
function toSavedConnection(
environment: EnvironmentPresentation,
prepared: Option.Option<PreparedConnection>,
): SavedRemoteConnection {
const displayUrl = environment.displayUrl ?? "";
const active = Option.getOrNull(prepared);
const httpBaseUrl = active?.httpBaseUrl ?? displayUrl;
const socketUrl = active?.socketUrl ?? "";
const wsBaseUrl =
socketUrl === ""
? displayUrl.startsWith("https://")
? displayUrl.replace(/^https:/, "wss:")
: displayUrl.replace(/^http:/, "ws:")
: new URL(socketUrl).origin;
const authorization = active?.httpAuthorization ?? null;
const remoteEnvironmentProjections = createRemoteEnvironmentProjectionAtoms({
presentationAtom: environmentPresentations.presentationAtom,
preparedConnectionAtom: environmentSession.preparedConnectionValueAtom,
serverConfigAtom: serverEnvironment.configValueAtom,
});
return {
environmentId: environment.environmentId,
environmentLabel: environment.label,
pairingUrl: displayUrl,
displayUrl,
httpBaseUrl,
wsBaseUrl,
bearerToken: authorization?._tag === "Bearer" ? authorization.token : null,
...(environment.relayManaged
? {
authenticationMethod: "dpop" as const,
relayManaged: true as const,
...(authorization?._tag === "Dpop" ? { dpopAccessToken: authorization.accessToken } : {}),
}
: { authenticationMethod: "bearer" as const }),
};
}
const EMPTY_SAVED_CONNECTION_ATOM = Atom.make<SavedRemoteConnection | null>(null).pipe(
Atom.withLabel("mobile:saved-connection:empty"),
);
const EMPTY_RUNTIME_STATE_ATOM = Atom.make<EnvironmentRuntimeState | null>(null).pipe(
Atom.withLabel("mobile:environment-runtime-state:empty"),
);
const savedConnectionsByIdAtom = Atom.make((get) => {
const presentationById = get(environmentPresentations.presentationsAtom);
return Object.fromEntries(
[...presentationById.entries()].map(([environmentId, presentation]) => [
environmentId,
toSavedConnection(
projectEnvironmentPresentation(environmentId, presentation),
get(environmentSession.preparedConnectionValueAtom(environmentId)),
),
]),
[...presentationById.keys()].flatMap((environmentId) => {
const connection = get(remoteEnvironmentProjections.savedConnectionAtom(environmentId));
return connection === null ? [] : [[environmentId, connection]];
}),
) as Record<EnvironmentId, SavedRemoteConnection>;
}).pipe(Atom.withLabel("mobile:saved-connections-by-id"));
function toRuntimeState(
environment: EnvironmentPresentation,
serverConfig: ServerConfig | null,
): EnvironmentRuntimeState {
return {
connectionState: environment.connection.phase,
connectionError: environment.connection.error,
connectionErrorTraceId: environment.connection.traceId,
serverConfig,
};
}
export function useSavedRemoteConnections() {
const catalog = useAtomValue(environmentCatalog.catalogValueAtom);
const savedConnectionsById = useAtomValue(savedConnectionsByIdAtom);
@@ -108,23 +67,21 @@ export function useSavedRemoteConnections() {
export function useSavedRemoteConnection(
environmentId: EnvironmentId | null,
): SavedRemoteConnection | null {
const { presentation } = useEnvironmentPresentation(environmentId);
const prepared = usePreparedConnection(environmentId);
if (environmentId === null || presentation === null) {
return null;
}
return toSavedConnection(projectEnvironmentPresentation(environmentId, presentation), prepared);
return useAtomValue(
environmentId === null
? EMPTY_SAVED_CONNECTION_ATOM
: remoteEnvironmentProjections.savedConnectionAtom(environmentId),
);
}
export function useRemoteEnvironmentRuntime(
environmentId: EnvironmentId | null,
): EnvironmentRuntimeState | null {
const { presentation } = useEnvironmentPresentation(environmentId);
const serverConfig = useEnvironmentServerConfig(environmentId);
if (environmentId === null || presentation === null) {
return null;
}
return toRuntimeState(projectEnvironmentPresentation(environmentId, presentation), serverConfig);
return useAtomValue(
environmentId === null
? EMPTY_RUNTIME_STATE_ATOM
: remoteEnvironmentProjections.runtimeStateAtom(environmentId),
);
}
export function useRemoteConnectionStatus() {
+50
View File
@@ -0,0 +1,50 @@
# Mobile development lifecycle
Ordinary component changes use Metro Fast Refresh. The connection runtime uses
a stable development-only atom runtime whose writable layer atom receives the
newly evaluated Effect layer. Its module accepts the update only after installing
that layer. Existing subscribers observe the new context, and Effect releases the
previous runtime scope without restarting React Navigation. Production uses an
ordinary `Atom.runtime` without this hot-update boundary.
Replacing the atom registry itself disposes its old nodes; replacing the managed
runtime starts its asynchronous disposal. These modules use normal Metro update
propagation. The app does not call `DevSettings.reload` during their replacement.
React can still reset state when its normal Fast Refresh rules require it.
Do not reset the shared registry to clean up a connection-runtime edit: registry
reset removes listeners from unedited mounted consumers. Do not self-accept a
runtime module while leaving importers attached to its old implementation. A
hot-update boundary must install fresh behavior through the existing reactive
dependencies. These boundaries do not make every module-level atom family in the
app hot-swappable; new runtime singletons still need explicit ownership. Editing
the registry or managed runtime can still rebuild a much larger dependency graph
than an ordinary component or connection-runtime edit.
Environment supervisor scopes are children of the connection registry scope.
The registry's per-environment map supports targeted shutdown, but it cannot be
the sole owner: a supervisor created after that map's finalizer has run must
still inherit the closed parent scope. Otherwise interrupted startup or runtime
replacement can leave a session and WebSocket alive outside the current registry.
The compact Home list owns its minute-based presentation clock in a focus effect.
Blur clears the interval without a render-driving focus subscription; focus
refreshes the clock immediately. Other prop or state changes can still render
the hidden list. Exact snooze-expiry timers remain active, and the visible iPad
sidebar keeps its own minute updates.
Connection and runtime projections are shared per environment. Thread selection
consumers should read those atoms instead of repeatedly parsing the same socket
URL or constructing new connection objects during each render.
The Uniwind dependency patch still recompiles CSS on Metro updates so newly used
classes are discovered. It fingerprints the generated native stylesheet and
theme list, then skips development-only global invalidation when that output is
unchanged. A changed stylesheet or theme list still resets the style caches and
notifies subscribers. The digest is committed only after initialization succeeds.
Web and production retain their existing initialization behavior.
After installing or changing the Uniwind patch, restart Metro once with
`vp run dev:client:reset` from `apps/mobile`. pnpm gives patched packages new
filesystem paths, and cached transforms can otherwise retain references to the
previous package. Ordinary development starts should retain the transform cache.
@@ -4,13 +4,17 @@ import {
type OrchestrationShellSnapshot,
} from "@t3tools/contracts";
import { describe, expect, it } from "@effect/vitest";
import * as Context from "effect/Context";
import * as Deferred from "effect/Deferred";
import * as Effect from "effect/Effect";
import * as Exit from "effect/Exit";
import * as Fiber from "effect/Fiber";
import * as Layer from "effect/Layer";
import * as Option from "effect/Option";
import * as Ref from "effect/Ref";
import * as Result from "effect/Result";
import * as Scheduler from "effect/Scheduler";
import * as Scope from "effect/Scope";
import * as Stream from "effect/Stream";
import * as SubscriptionRef from "effect/SubscriptionRef";
@@ -420,6 +424,28 @@ function awaitConnectionState(
}
describe("EnvironmentRegistry", () => {
it.effect("does not acquire a session after the registry scope has already closed", () =>
Effect.gen(function* () {
const harness = yield* makeHarness([TARGET]);
const registryScope = yield* Scope.make();
const context = yield* Layer.build(harness.layer).pipe(Scope.provide(registryScope));
const registry = Context.get(context, EnvironmentRegistry.EnvironmentRegistry);
const dispatcher = new Scheduler.MixedScheduler("sync", () => () => {}).makeDispatcher();
const scheduler: Scheduler.Scheduler = {
executionMode: "sync",
shouldYield: () => false,
makeDispatcher: () => dispatcher,
};
yield* Scope.close(registryScope, Exit.void);
yield* registry.start.pipe(Effect.provideService(Scheduler.Scheduler, scheduler));
dispatcher.flush();
expect(yield* Ref.get(harness.sessions)).toHaveLength(0);
expect(yield* Ref.get(harness.releasedSessions)).toBe(0);
}),
);
it.effect("hydrates connection profiles into catalog entries", () =>
Effect.gen(function* () {
const harness = yield* makeHarness([SSH_CONNECTION], [SSH_PROFILE]);
@@ -126,6 +126,7 @@ interface EnvironmentServiceScope {
}
export const make = Effect.gen(function* () {
const registryScope = yield* Scope.Scope;
const storage = yield* Persistence.ConnectionTargetStore;
const registrations = yield* Persistence.ConnectionRegistrationStore;
const cache = yield* Persistence.EnvironmentCacheStore;
@@ -249,7 +250,7 @@ export const make = Effect.gen(function* () {
Effect.uninterruptible(
Effect.gen(function* () {
const environmentId = entry.target.environmentId;
const scope = yield* Scope.make();
const scope = yield* Scope.fork(registryScope);
const supervisor = yield* EnvironmentSupervisor.make(entry, {
initiallyDesired: false,
}).pipe(
+257 -15
View File
@@ -1,8 +1,94 @@
diff --git a/ios/MenuViewManager.mm b/ios/MenuViewManager.mm
index 3d149b3e7426b8f7c999603ddf1e15e12331c33a..e80fe2caae86e339fcb03408419a7d64b3e5b04f 100644
--- a/ios/MenuViewManager.mm
+++ b/ios/MenuViewManager.mm
@@ -65,6 +65,10 @@ - (UIView *)view
* onOpenMenu: callback to be called when the menu is opened
*/
RCT_EXPORT_VIEW_PROPERTY(onOpenMenu, RCTDirectEventBlock);
+/**
+ * onMenuInteractionStart: callback to be called when UIKit starts preparing a menu interaction
+ */
+RCT_EXPORT_VIEW_PROPERTY(onMenuInteractionStart, RCTDirectEventBlock);
/**
* shouldOpenOnLongPress: determines whether menu should be opened after long press or normal press
*/
diff --git a/ios/NewArch/FabricActionSheetView.swift b/ios/NewArch/FabricActionSheetView.swift
index 484ff8a1d73a6d445273883c5b28b1c8e80901ec..bc92310d00369b853a80f4d2080578f3903191d2 100644
--- a/ios/NewArch/FabricActionSheetView.swift
+++ b/ios/NewArch/FabricActionSheetView.swift
@@ -3,6 +3,7 @@ public class FabricActionSheetView: ActionSheetView, FabricViewImplementationPro
public var onPressAction: ((String) -> Void)?
public var onCloseMenu: (() -> Void)?
public var onOpenMenu: (() -> Void)?
+ public var onMenuInteractionStart: (() -> Void)?
@objc override func sendButtonAction(_ action: String) {
if let onPress = onPressAction {
diff --git a/ios/NewArch/FabricMenuViewImplementation.swift b/ios/NewArch/FabricMenuViewImplementation.swift
index 33d27c5a66593ae1a9b143804413578eb79f1a7d..359cd19fa53d10c0374b2b537517ea8629e79d0c 100644
--- a/ios/NewArch/FabricMenuViewImplementation.swift
+++ b/ios/NewArch/FabricMenuViewImplementation.swift
@@ -12,6 +12,7 @@ public class FabricMenuViewImplementation: MenuViewImplementation, FabricViewImp
public var onPressAction: ((String) -> Void)?
public var onCloseMenu: (() -> Void)?
public var onOpenMenu: (() -> Void)?
+ public var onMenuInteractionStart: (() -> Void)?
@objc override func sendButtonAction(_ action: UIAction) {
if let onPress = onPressAction {
@@ -31,4 +32,10 @@ public class FabricMenuViewImplementation: MenuViewImplementation, FabricViewImp
}
}
+ @objc override func sendMenuInteractionStart() {
+ if let onMenuInteractionStart = onMenuInteractionStart {
+ onMenuInteractionStart()
+ }
+ }
+
}
diff --git a/ios/NewArch/FabricViewImplementationProtocol.swift b/ios/NewArch/FabricViewImplementationProtocol.swift
index 2cef2fb8c74497da46775a490edc58cf8cbf29cc..54429c756eeecf6e96b55d62cc1e70213096f62a 100644
--- a/ios/NewArch/FabricViewImplementationProtocol.swift
+++ b/ios/NewArch/FabricViewImplementationProtocol.swift
@@ -8,4 +8,5 @@ import Foundation
var onPressAction: ((String) -> Void)? { get set }
var onCloseMenu: (() -> Void)? { get set }
var onOpenMenu: (() -> Void)? { get set }
+ var onMenuInteractionStart: (() -> Void)? { get set }
}
diff --git a/ios/NewArch/MenuView.mm b/ios/NewArch/MenuView.mm
index a54e619eb39e3402fa63f2ee4f734063d4f8fc58..066b01259a3c8ad9532688606be3d29a94a8f7d4 100644
index a54e619eb39e3402fa63f2ee4f734063d4f8fc58..773f6f1f5d4e0663fd3211fe51085a7f3935e445 100644
--- a/ios/NewArch/MenuView.mm
+++ b/ios/NewArch/MenuView.mm
@@ -105,6 +105,27 @@ - (void)onOpenMenu {
@@ -46,6 +46,10 @@ - (instancetype)initWithFrame:(CGRect)frame
[self onOpenMenu];
};
+ _view.onMenuInteractionStart = ^{
+ [self onMenuInteractionStart];
+ };
+
_view.onCloseMenu = ^{
[self onCloseMenu];
};
@@ -92,6 +96,14 @@ - (void)onOpenMenu {
}
}
+- (void)onMenuInteractionStart {
+ // If screen is already unmounted then there will be no event emitter
+ const auto eventEmitter = [self getEventEmitter];
+ if (eventEmitter != nullptr) {
+ eventEmitter->onMenuInteractionStart({});
+ }
+}
+
/**
Responsible for iterating through the C++ vector<struct> and convert each struct element to NSDictionary, then return it all in an NSArray
*/
@@ -105,6 +117,27 @@ - (void)onOpenMenu {
NSMutableArray<NSDictionary *> *subactionsArray = [NSMutableArray arrayWithCapacity:actions.size()];
if (action.subactions.size() > 0) {
for (const MenuViewActionsSubactionsStruct &subaction : action.subactions) {
@@ -30,7 +116,7 @@ index a54e619eb39e3402fa63f2ee4f734063d4f8fc58..066b01259a3c8ad9532688606be3d29a
NSDictionary *subactionDict = @{
@"id": [NSString stringWithUTF8String:subaction.id.c_str()],
@"title": [NSString stringWithUTF8String:subaction.title.c_str()],
@@ -118,7 +139,9 @@ - (void)onOpenMenu {
@@ -118,7 +151,9 @@ - (void)onOpenMenu {
@"destructive": @(subaction.attributes.destructive),
@"disabled": @(subaction.attributes.disabled),
@"hidden": @(subaction.attributes.hidden),
@@ -40,7 +126,7 @@ index a54e619eb39e3402fa63f2ee4f734063d4f8fc58..066b01259a3c8ad9532688606be3d29a
};
[subactionsArray addObject:subactionDict];
}
@@ -138,6 +161,7 @@ - (void)onOpenMenu {
@@ -138,6 +173,7 @@ - (void)onOpenMenu {
@"destructive": @(action.attributes.destructive),
@"disabled": @(action.attributes.disabled),
@"hidden": @(action.attributes.hidden),
@@ -48,20 +134,50 @@ index a54e619eb39e3402fa63f2ee4f734063d4f8fc58..066b01259a3c8ad9532688606be3d29a
},
@"subactions": subactionsArray,
};
diff --git a/ios/OldArch/LegacyActionSheetView.swift b/ios/OldArch/LegacyActionSheetView.swift
index 3cd1a2517624d99b51331c564fba9145d7c8d799..e458504bea6ef167d9b0db0c889f0f76ea965287 100644
--- a/ios/OldArch/LegacyActionSheetView.swift
+++ b/ios/OldArch/LegacyActionSheetView.swift
@@ -3,6 +3,7 @@ public class LegacyActionSheetView: ActionSheetView {
@objc var onPressAction: RCTDirectEventBlock?
@objc var onCloseMenu: RCTDirectEventBlock?
@objc var onOpenMenu: RCTDirectEventBlock?
+ @objc var onMenuInteractionStart: RCTDirectEventBlock?
diff --git a/ios/OldArch/LegacyMenuViewImplementation.swift b/ios/OldArch/LegacyMenuViewImplementation.swift
index 6a2a205f95c1001f3fdf6fb835815fa7c4c02c16..4f42b64349966fb1438f72439cec8256a76aab9c 100644
--- a/ios/OldArch/LegacyMenuViewImplementation.swift
+++ b/ios/OldArch/LegacyMenuViewImplementation.swift
@@ -5,6 +5,7 @@ public class LegacyMenuViewImplementation: MenuViewImplementation {
@objc var onPressAction: RCTDirectEventBlock?
@objc var onCloseMenu: RCTDirectEventBlock?
@objc var onOpenMenu: RCTDirectEventBlock?
+ @objc var onMenuInteractionStart: RCTDirectEventBlock?
@objc override func sendButtonAction(_ action: UIAction) {
if let onPress = onPressAction {
@@ -24,4 +25,10 @@ public class LegacyMenuViewImplementation: MenuViewImplementation {
}
}
+ @objc override func sendMenuInteractionStart() {
+ if let onMenuInteractionStart = onMenuInteractionStart {
+ onMenuInteractionStart([:])
+ }
+ }
+
}
diff --git a/ios/Shared/MenuViewImplementation.swift b/ios/Shared/MenuViewImplementation.swift
index 5c4e0da4292b15d3a27b5ea1555f11452a470815..db134864676ed83dbcd895d7a1bde38e8037a005 100644
index 5c4e0da4292b15d3a27b5ea1555f11452a470815..4d8abe3c4fc45bda48c2958bc9ca933c77f2cc47 100644
--- a/ios/Shared/MenuViewImplementation.swift
+++ b/ios/Shared/MenuViewImplementation.swift
@@ -59,18 +59,43 @@ public class MenuViewImplementation: UIButton {
self.setup()
@@ -60,17 +60,46 @@ public class MenuViewImplementation: UIButton {
}
+ // Presentation is tracked from the two delegate methods the class already
+ // overrode. Overriding willDisplayMenuFor as well (even for bookkeeping)
+ // shadows UIButton's own implementation and degrades the button-anchored
+ // presentation into generic context-menu chrome — an empty header row with
+ // a dismiss chevron appears above the actions.
public override func contextMenuInteraction(_ interaction: UIContextMenuInteraction, configurationForMenuAtLocation location: CGPoint) -> UIContextMenuConfiguration? {
- sendMenuOpen()
+ // Flush updates deferred by the presented-guard before the action
+ // provider snapshots self.menu (covers a stuck flag from an
+ // interaction that never ended cleanly).
@@ -71,15 +187,24 @@ index 5c4e0da4292b15d3a27b5ea1555f11452a470815..db134864676ed83dbcd895d7a1bde38e
+ self.setup()
+ }
+ isMenuPresented = true
sendMenuOpen()
+ sendMenuInteractionStart()
return UIContextMenuConfiguration(identifier: nil, previewProvider: nil) { [weak self] _ in
guard let self = self else { return nil }
return self.menu
}
}
-
+
+ public override func contextMenuInteraction(_ interaction: UIContextMenuInteraction, willDisplayMenuFor configuration: UIContextMenuConfiguration, animator: UIContextMenuInteractionAnimating?) {
+ // UIKit can request a configuration for a press that never opens a
+ // menu. Notify React only once presentation actually begins, and
+ // preserve UIButton's presentation behavior by calling super.
+ super.contextMenuInteraction(interaction, willDisplayMenuFor: configuration, animator: animator)
+ sendMenuOpen()
+ }
+
public override func contextMenuInteraction(_ interaction: UIContextMenuInteraction, willEndFor configuration: UIContextMenuConfiguration, animator: UIContextMenuInteractionAnimating?) {
+ super.contextMenuInteraction(interaction, willEndFor: configuration, animator: animator)
sendMenuClose()
+ isMenuPresented = false
+ if pendingMenu != nil {
@@ -97,7 +222,7 @@ index 5c4e0da4292b15d3a27b5ea1555f11452a470815..db134864676ed83dbcd895d7a1bde38e
func setup () {
let menu = UIMenu(title: _title,
identifier: nil,
@@ -86,8 +111,98 @@ public class MenuViewImplementation: UIButton {
@@ -86,8 +115,98 @@ public class MenuViewImplementation: UIButton {
}
}
@@ -196,6 +321,15 @@ index 5c4e0da4292b15d3a27b5ea1555f11452a470815..db134864676ed83dbcd895d7a1bde38e
}
public override func reactSetFrame(_ frame: CGRect) {
@@ -124,4 +243,8 @@ public class MenuViewImplementation: UIButton {
@objc func sendMenuOpen() {
// NO-OP (should be overriden by parent)
}
+
+ @objc func sendMenuInteractionStart() {
+ // NO-OP (should be overriden by parent)
+ }
}
diff --git a/ios/Shared/RCTMenuItem.swift b/ios/Shared/RCTMenuItem.swift
index bb6bb2b7ad56135089f267587c974b166760539d..949b3f7ec49af7ba26d966a8923a51f619443d5a 100644
--- a/ios/Shared/RCTMenuItem.swift
@@ -220,8 +354,83 @@ index bb6bb2b7ad56135089f267587c974b166760539d..949b3f7ec49af7ba26d966a8923a51f6
}
if #available(iOS 16.0, *) {
diff --git a/lib/commonjs/NativeModuleSpecs/UIMenuNativeComponent.ts b/lib/commonjs/NativeModuleSpecs/UIMenuNativeComponent.ts
index e6509355275596c451f9d082223cc16bfe504e1a..dd16e1a7403970cc3a404355f95ed99580776353 100644
--- a/lib/commonjs/NativeModuleSpecs/UIMenuNativeComponent.ts
+++ b/lib/commonjs/NativeModuleSpecs/UIMenuNativeComponent.ts
@@ -48,6 +48,7 @@ export interface NativeProps extends ViewProps {
onPressAction?: DirectEventHandler<{ event: string }>;
onCloseMenu?: DirectEventHandler<{ event: string }>;
onOpenMenu?: DirectEventHandler<{ event: string }>;
+ onMenuInteractionStart?: DirectEventHandler<{ event: string }>;
actions: Array<MenuAction>;
actionsHash: string; // just a workaround to make sure we don't have to manually compare MenuActions manually in C++ (since it's a struct and that's a pain)
title?: string;
diff --git a/lib/module/NativeModuleSpecs/UIMenuNativeComponent.ts b/lib/module/NativeModuleSpecs/UIMenuNativeComponent.ts
index e6509355275596c451f9d082223cc16bfe504e1a..dd16e1a7403970cc3a404355f95ed99580776353 100644
--- a/lib/module/NativeModuleSpecs/UIMenuNativeComponent.ts
+++ b/lib/module/NativeModuleSpecs/UIMenuNativeComponent.ts
@@ -48,6 +48,7 @@ export interface NativeProps extends ViewProps {
onPressAction?: DirectEventHandler<{ event: string }>;
onCloseMenu?: DirectEventHandler<{ event: string }>;
onOpenMenu?: DirectEventHandler<{ event: string }>;
+ onMenuInteractionStart?: DirectEventHandler<{ event: string }>;
actions: Array<MenuAction>;
actionsHash: string; // just a workaround to make sure we don't have to manually compare MenuActions manually in C++ (since it's a struct and that's a pain)
title?: string;
diff --git a/lib/typescript/src/NativeModuleSpecs/UIMenuNativeComponent.d.ts b/lib/typescript/src/NativeModuleSpecs/UIMenuNativeComponent.d.ts
index 24ee7fdcd9f81cfe2c813cfca9d4e276b846fb7b..5ee7b45bafea8547d68949aaba70584055f9fb53 100644
--- a/lib/typescript/src/NativeModuleSpecs/UIMenuNativeComponent.d.ts
+++ b/lib/typescript/src/NativeModuleSpecs/UIMenuNativeComponent.d.ts
@@ -41,6 +41,9 @@ export interface NativeProps extends ViewProps {
onOpenMenu?: DirectEventHandler<{
event: string;
}>;
+ onMenuInteractionStart?: DirectEventHandler<{
+ event: string;
+ }>;
actions: Array<MenuAction>;
actionsHash: string;
title?: string;
diff --git a/lib/typescript/src/index.d.ts b/lib/typescript/src/index.d.ts
index 61d210aa9364f0354f77bddaecdc0a127b1cdbb4..84ac2bc8b4edac045ed59896d5eb4e6eaef4725d 100644
--- a/lib/typescript/src/index.d.ts
+++ b/lib/typescript/src/index.d.ts
@@ -4,6 +4,7 @@ declare const MenuView: import("react").ForwardRefExoticComponent<{
onPressAction?: ({ nativeEvent }: NativeActionEvent) => void;
onCloseMenu?: () => void;
onOpenMenu?: () => void;
+ onMenuInteractionStart?: () => void;
actions: MenuAction[];
title?: string;
isAnchoredToRight?: boolean;
diff --git a/lib/typescript/src/types.d.ts b/lib/typescript/src/types.d.ts
index eac7940ab7eb6a69ac329848c9f3eeffdcbaf43d..271cd27f777be06bc02f05d4b4dac5bb940f5f0f 100644
--- a/lib/typescript/src/types.d.ts
+++ b/lib/typescript/src/types.d.ts
@@ -113,6 +113,12 @@ type MenuComponentPropsBase = {
* Callback function that will be called when the menu opens.
*/
onOpenMenu?: () => void;
+ /**
+ * Callback function that will be called when UIKit starts preparing a menu interaction.
+ * Preparation can end without the menu opening.
+ * @platform iOS
+ */
+ onMenuInteractionStart?: () => void;
/**
* Actions to be displayed in the menu.
*/
@@ -170,6 +176,7 @@ export type NativeMenuComponentProps = {
onPressAction?: ({ nativeEvent }: NativeActionEvent) => void;
onCloseMenu?: () => void;
onOpenMenu?: () => void;
+ onMenuInteractionStart?: () => void;
actions: ProcessedMenuAction[];
actionsHash: string;
title?: string;
diff --git a/src/NativeModuleSpecs/UIMenuNativeComponent.ts b/src/NativeModuleSpecs/UIMenuNativeComponent.ts
index e6509355275596c451f9d082223cc16bfe504e1a..c783cdaf73f5635cf9835824ca85fba3b46453b4 100644
index e6509355275596c451f9d082223cc16bfe504e1a..604dba0d90a2545910f8724a80205565de2391d4 100644
--- a/src/NativeModuleSpecs/UIMenuNativeComponent.ts
+++ b/src/NativeModuleSpecs/UIMenuNativeComponent.ts
@@ -13,6 +13,22 @@ import codegenNativeComponent from "react-native/Libraries/Utilities/codegenNati
@@ -267,3 +476,36 @@ index e6509355275596c451f9d082223cc16bfe504e1a..c783cdaf73f5635cf9835824ca85fba3
};
subactions?: Array<SubAction>;
};
@@ -48,6 +69,7 @@ export interface NativeProps extends ViewProps {
onPressAction?: DirectEventHandler<{ event: string }>;
onCloseMenu?: DirectEventHandler<{ event: string }>;
onOpenMenu?: DirectEventHandler<{ event: string }>;
+ onMenuInteractionStart?: DirectEventHandler<{ event: string }>;
actions: Array<MenuAction>;
actionsHash: string; // just a workaround to make sure we don't have to manually compare MenuActions manually in C++ (since it's a struct and that's a pain)
title?: string;
diff --git a/src/types.ts b/src/types.ts
index 9c323d9c510e7359c83d4d6633affde673570632..5d5fdfb8b8235fcaa8295b85630443eaf5991a17 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -123,6 +123,12 @@ type MenuComponentPropsBase = {
* Callback function that will be called when the menu opens.
*/
onOpenMenu?: () => void;
+ /**
+ * Callback function that will be called when UIKit starts preparing a menu interaction.
+ * Preparation can end without the menu opening.
+ * @platform iOS
+ */
+ onMenuInteractionStart?: () => void;
/**
* Actions to be displayed in the menu.
*/
@@ -189,6 +195,7 @@ export type NativeMenuComponentProps = {
onPressAction?: ({ nativeEvent }: NativeActionEvent) => void;
onCloseMenu?: () => void;
onOpenMenu?: () => void;
+ onMenuInteractionStart?: () => void;
actions: ProcessedMenuAction[];
actionsHash: string;
title?: string;
+117
View File
@@ -0,0 +1,117 @@
diff --git a/dist/metro/transformer.cjs b/dist/metro/transformer.cjs
index d57ca81..fd8693c 100644
--- a/dist/metro/transformer.cjs
+++ b/dist/metro/transformer.cjs
@@ -7,6 +7,7 @@ const culori = require('culori');
const node = require('@tailwindcss/node');
const oxide = require('@tailwindcss/oxide');
const fs = require('fs');
+const node_crypto = require('node:crypto');
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; }
@@ -1753,10 +1754,11 @@ const transform = async (config$1, projectRoot, filePath, data, options) => {
await bundlerConfig.generateArtifacts(cssArtifactPath);
const virtualCode = await compileCSS(bundlerConfig);
const isWeb = bundlerConfig.platform === config.Platform.Web;
+ const nativeStylesFingerprint = isWeb ? void 0 : node_crypto.createHash("sha256").update(virtualCode).update("\0").update(bundlerConfig.stringifiedThemes).digest("hex");
data = Buffer.from(
isWeb ? virtualCode : [
`const { Uniwind } = require('uniwind');`,
- `Uniwind.__reinit(rt => ${virtualCode}, ${bundlerConfig.stringifiedThemes});`
+ `Uniwind.__reinit(rt => ${virtualCode}, ${bundlerConfig.stringifiedThemes}, '${nativeStylesFingerprint}');`
].join(""),
"utf-8"
);
diff --git a/dist/metro/transformer.mjs b/dist/metro/transformer.mjs
index d3e7475..bf63587 100644
--- a/dist/metro/transformer.mjs
+++ b/dist/metro/transformer.mjs
@@ -5,6 +5,7 @@ import { converter, parse, formatHex, formatHex8 } from 'culori';
import { compile } from '@tailwindcss/node';
import { Scanner } from '@tailwindcss/oxide';
import fs from 'fs';
+import { createHash } from 'node:crypto';
const toCamelCase = (str) => str.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase());
const pipe = (data) => ((...fns) => fns.reduce((acc, fn) => fn(acc), data));
@@ -1746,10 +1747,11 @@ const transform = async (config, projectRoot, filePath, data, options) => {
await bundlerConfig.generateArtifacts(cssArtifactPath);
const virtualCode = await compileCSS(bundlerConfig);
const isWeb = bundlerConfig.platform === Platform.Web;
+ const nativeStylesFingerprint = isWeb ? void 0 : createHash("sha256").update(virtualCode).update("\0").update(bundlerConfig.stringifiedThemes).digest("hex");
data = Buffer.from(
isWeb ? virtualCode : [
`const { Uniwind } = require('uniwind');`,
- `Uniwind.__reinit(rt => ${virtualCode}, ${bundlerConfig.stringifiedThemes});`
+ `Uniwind.__reinit(rt => ${virtualCode}, ${bundlerConfig.stringifiedThemes}, '${nativeStylesFingerprint}');`
].join(""),
"utf-8"
);
diff --git a/src/bundler/adapters/metro/transformer.ts b/src/bundler/adapters/metro/transformer.ts
index 08059b0..05c0515 100644
--- a/src/bundler/adapters/metro/transformer.ts
+++ b/src/bundler/adapters/metro/transformer.ts
@@ -5,6 +5,7 @@ import { Platform } from '@/common/consts'
import type * as ExpoMetroConfig from '@expo/metro-config'
import type * as MetroTransformWorker from 'metro-transform-worker'
import type { JsTransformerConfig, JsTransformOptions } from 'metro-transform-worker'
+import { createHash } from 'node:crypto'
import path from 'path'
const cssArtifactPath = path.resolve(__dirname, '../../uniwind.css')
@@ -69,13 +70,20 @@ export const transform = async (
await bundlerConfig.generateArtifacts(cssArtifactPath)
const virtualCode = await compileCSS(bundlerConfig)
const isWeb = bundlerConfig.platform === Platform.Web
+ const nativeStylesFingerprint = isWeb
+ ? undefined
+ : createHash('sha256')
+ .update(virtualCode)
+ .update('\0')
+ .update(bundlerConfig.stringifiedThemes)
+ .digest('hex')
data = Buffer.from(
isWeb
? virtualCode
: [
`const { Uniwind } = require('uniwind');`,
- `Uniwind.__reinit(rt => ${virtualCode}, ${bundlerConfig.stringifiedThemes});`,
+ `Uniwind.__reinit(rt => ${virtualCode}, ${bundlerConfig.stringifiedThemes}, '${nativeStylesFingerprint}');`,
].join(''),
'utf-8',
)
diff --git a/src/core/config/config.native.ts b/src/core/config/config.native.ts
index 5e0832b..01aed1b 100644
--- a/src/core/config/config.native.ts
+++ b/src/core/config/config.native.ts
@@ -8,6 +8,8 @@ import type { CSSVariables, GenerateStyleSheetsCallback, ThemeName } from '../ty
import { UniwindConfigBuilder as UniwindConfigBuilderBase } from './config.common'
class UniwindConfigBuilder extends UniwindConfigBuilderBase {
+ private stylesFingerprint: string | undefined
+
constructor() {
super()
}
@@ -35,9 +37,18 @@ class UniwindConfigBuilder extends UniwindConfigBuilderBase {
UniwindListener.notify([StyleDependency.Insets])
}
- protected __reinit(generateStyleSheetCallback: GenerateStyleSheetsCallback, themes: Array<string>) {
+ protected __reinit(
+ generateStyleSheetCallback: GenerateStyleSheetsCallback,
+ themes: Array<string>,
+ stylesFingerprint?: string,
+ ) {
+ if (__DEV__ && stylesFingerprint !== undefined && stylesFingerprint === this.stylesFingerprint) {
+ return
+ }
+
super.__reinit(generateStyleSheetCallback, themes)
UniwindStore.reinit(generateStyleSheetCallback, themes)
+ this.stylesFingerprint = stylesFingerprint
}
protected onThemeChange() {
+133 -231
View File
@@ -88,13 +88,14 @@ patchedDependencies:
'@ff-labs/[email protected]': ab9ff544009e1891cfe3930105862d3699007f38922a79f3c98d90018deca368
'@legendapp/[email protected]': 064530db83875fa671559a81ae42dc159726dc2dd6ec4c982da44ff7c7a74706
'@pierre/[email protected]': 7ef7cb0cbabb17c15cdb137554068b36f15f6f5265e73fb51452aa3380db91aa
'@react-native-menu/[email protected]': c7f66d121c726ade4f5c4e1aed11a691e5711d244c544084e289ac26132a0045
'@react-native-menu/[email protected]': f63d256bf6a97a873b5e628eb595bd6ef0075ddd5bdd890fc920f7a6024290dd
'@react-navigation/[email protected]': e667c3cef8c78bb9ff4882ee5bd23a432247b843060a9499eb5f07e9e2295552
[email protected]: af36b7948b6f9c56623074662b51dade5699880c1a7c71245de73e13c3185fb6
[email protected]: 808eb26f9e57cf4945efd3985af4d9c764da6f91f4c9764433cc868602bbf4d3
[email protected]: 20be72c84d74253acdcfefbc6defe36dc396944f1a44cab2bdd0e3cd572ae008
[email protected]: 825622aae63a8fb5b904f3c77908a0e216261d727ea171709f2c0b6088422675
[email protected]: 149bef30a66351ea9b26b42f87b78c539cb52b880f2387bb323ec80dcac84006
[email protected]: 329a77525509623d763b738152dbd00ab392cdcdd9fb6ed2b4a20e086e437196
importers:
@@ -239,7 +240,7 @@ importers:
version: 1.3.0-beta.10(patch_hash=7ef7cb0cbabb17c15cdb137554068b36f15f6f5265e73fb51452aa3380db91aa)(@shikijs/[email protected])([email protected]([email protected]))([email protected])
'@react-native-menu/menu':
specifier: ^2.0.0
version: 2.0.0(patch_hash=c7f66d121c726ade4f5c4e1aed11a691e5711d244c544084e289ac26132a0045)([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])
version: 2.0.0(patch_hash=f63d256bf6a97a873b5e628eb595bd6ef0075ddd5bdd890fc920f7a6024290dd)([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])
'@react-navigation/elements':
specifier: 2.9.26
version: 2.9.26(c10301b6e0c42fc6434d2b643197a81e)
@@ -436,8 +437,8 @@ importers:
specifier: ^3.5.0
version: 3.6.0
uniwind:
specifier: ^1.6.2
version: 1.7.0([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])
specifier: 1.11.0
version: 1.11.0(patch_hash=329a77525509623d763b738152dbd00ab392cdcdd9fb6ed2b4a20e086e437196)(@expo/[email protected](patch_hash=96f1a75347e6ea02dc4b7034ace815d8ee39e18b8166ebfb573d9e58328f0dc2)([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected]([email protected])([email protected]))([email protected]([email protected])([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])([email protected])
devDependencies:
'@effect/vitest':
specifier: 4.0.0-beta.103
@@ -4412,17 +4413,11 @@ packages:
'@tabler/[email protected]':
resolution: {integrity: sha512-Wn0AOZG9sg0L+bjfMqq4eNhC6pQjIrk94LvvWYNYkY8KH8wC3YILRzQlrnVJc4FUeMxH/AK97QsYCX35H3LndA==}
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-jlx6sLk4EOwO6hHe1oCGm1Q4AN/s0rSrTTPBGPM0/RQ6Uylwq17FuU8IeJJKEjtc6K6O07zsvP+gDO6MMWo7pg==}
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-aFb4gUhFOgdh9AXo4IzBEOzBkkAxm9VigwDJnMIYv3lcfXCJVesNfbEaBl4BNgVRyid92AmdviqwBUBRKSeY3g==}
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-eZ7G1Zm5EC8OOKaesIKuw77jw++QJ2lL9N+dDpdQiAB/c/B2wDh0QPFHbkBVrXnwNugvrbJFk1gK2SsVjwWReg==}
engines: {node: '>= 20'}
cpu: [arm64]
os: [android]
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-yWP/sqEcBLaD8JuA6zNwxoYKr75qxTioYwlRwekj5Jr/I5GXnoJfjetH/psLUIv74cYTH2lBUEzBkinthoYcBg==}
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-TJPiq67tKlLuObP6RkwvVGDoxCMBVtDgKkLfa/uyj7/FyxvQwHS+UOnVrXXgbEsfUaMgiVvC4KbJnRr26ho4Ng==}
@@ -4430,11 +4425,11 @@ packages:
cpu: [arm64]
os: [android]
'@tailwindcss/oxide-darwin-arm64@4.2.1':
resolution: {integrity: sha512-q/LHkOstoJ7pI1J0q6djesLzRvQSIfEto148ppAd+BVQK0JYjQIFSK3JgYZJa+Yzi0DDa52ZsQx2rqytBnf8Hw==}
'@tailwindcss/oxide-android-arm64@4.3.2':
resolution: {integrity: sha512-WHxqIuHpvZ5VtdX6GTl1Ik/Vp2YuN42Et+0CdeaVd/frQ9jAvGmvR8vLT+jk3e8/Q3x8kECB9+R17pgpp2BulA==}
engines: {node: '>= 20'}
cpu: [arm64]
os: [darwin]
os: [android]
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-oMN/WZRb+SO37BmUElEgeEWuU8E/HXRkiODxJxLe1UTHVXLrdVSgfaJV7pSlhRGMSOiXLuxTIjfsF3wYvz8cgQ==}
@@ -4442,10 +4437,10 @@ packages:
cpu: [arm64]
os: [darwin]
'@tailwindcss/oxide-darwin-x64@4.2.1':
resolution: {integrity: sha512-/f/ozlaXGY6QLbpvd/kFTro2l18f7dHKpB+ieXz+Cijl4Mt9AI2rTrpq7V+t04nK+j9XBQHnSMdeQRhbGyt6fw==}
'@tailwindcss/oxide-darwin-arm64@4.3.2':
resolution: {integrity: sha512-GZypeUY/IDJW3877KeM+O67vbXr3MBnbtEL4aYhNErv/JWZhye2vGSWWG9tB6iiqR2MqRNkY8IOUy4NdSZV26w==}
engines: {node: '>= 20'}
cpu: [x64]
cpu: [arm64]
os: [darwin]
'@tailwindcss/[email protected]':
@@ -4454,11 +4449,11 @@ packages:
cpu: [x64]
os: [darwin]
'@tailwindcss/oxide-freebsd-x64@4.2.1':
resolution: {integrity: sha512-5e/AkgYJT/cpbkys/OU2Ei2jdETCLlifwm7ogMC7/hksI2fC3iiq6OcXwjibcIjPung0kRtR3TxEITkqgn0TcA==}
'@tailwindcss/oxide-darwin-x64@4.3.2':
resolution: {integrity: sha512-UIIzmefR6KO1sDU7MzRqAxC8iBpft/VhkGjTjnhoS6k7Z3rQ9wEgA1ODSiyH/tcSYssulNm4Ci3hOeK1jH7ccQ==}
engines: {node: '>= 20'}
cpu: [x64]
os: [freebsd]
os: [darwin]
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-zDL5hBkQdH5C6MpqbK3gQAgP80tsMwSI26vjOzjJtNCMUo0lFgOItzHKBIupOZNQxt3ouPH7RPhvNhiTfCe5CQ==}
@@ -4466,11 +4461,11 @@ packages:
cpu: [x64]
os: [freebsd]
'@tailwindcss/oxide-[email protected]':
resolution: {integrity: sha512-Uny1EcVTTmerCKt/1ZuKTkb0x8ZaiuYucg2/kImO5A5Y/kBz41/+j0gxUZl+hTF3xkWpDmHX+TaWhOtba2Fyuw==}
'@tailwindcss/oxide-[email protected]':
resolution: {integrity: sha512-GN+uAmcI6DNspnCDwtOAZrTz6oukJnp337qZvxqCGLd3BHBzJpO0ZbTLRvJNdztOeAmTzewewGIMPb0tk2R4WA==}
engines: {node: '>= 20'}
cpu: [arm]
os: [linux]
cpu: [x64]
os: [freebsd]
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-R06HdNi7A7OEoMsf6d4tjZ71RCWnZQPHj2mnotSFURjNLdBC+cIgXQ7l81CqeoiQftjf6OOblxXMInMgN2VzMA==}
@@ -4478,12 +4473,11 @@ packages:
cpu: [arm]
os: [linux]
'@tailwindcss/oxide-linux-arm64-gnu@4.2.1':
resolution: {integrity: sha512-CTrwomI+c7n6aSSQlsPL0roRiNMDQ/YzMD9EjcR+H4f0I1SQ8QqIuPnsVp7QgMkC1Qi8rtkekLkOFjo7OlEFRQ==}
'@tailwindcss/oxide-linux-arm-gnu[email protected]':
resolution: {integrity: sha512-4ABn7qSbdHRwTiDiuWNegCyb5+2FJ4vKIKc3DmKrvAFw7MU1Lm11dIkTPwUaFdTzc7IsOpDbqBrlh0x6y36U/w==}
engines: {node: '>= 20'}
cpu: [arm64]
cpu: [arm]
os: [linux]
libc: [glibc]
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-qTJHELX8jetjhRQHCLilkVLmybpzNQAtaI/gaoVoidn/ufbNDbAo8KlK2J+yPoc8wQxvDxCmh/5lr8nC1+lTbg==}
@@ -4492,12 +4486,12 @@ packages:
os: [linux]
libc: [glibc]
'@tailwindcss/oxide-linux-arm64-[email protected]':
resolution: {integrity: sha512-WZA0CHRL/SP1TRbA5mp9htsppSEkWuQ4KsSUumYQnyl8ZdT39ntwqmz4IUHGN6p4XdSlYfJwM4rRzZLShHsGAQ==}
'@tailwindcss/oxide-linux-arm64-[email protected]':
resolution: {integrity: sha512-wDgEIGwoM8w8pufh9LVt1PahDgNdKXrLC2qfAnV3vAmococ9RWbxeAw4pxPttd/TsJfwjyLf90Dg1y9y8I6Emw==}
engines: {node: '>= 20'}
cpu: [arm64]
os: [linux]
libc: [musl]
libc: [glibc]
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-Z6sukiQsngnWO+l39X4pPbiWT81IC+PLKF+PHxIlyZbGNb9MODfYlXEVlFvej5BOZInWX01kVyzeLvHsXhfczQ==}
@@ -4506,12 +4500,12 @@ packages:
os: [linux]
libc: [musl]
'@tailwindcss/oxide-linux-[email protected]':
resolution: {integrity: sha512-qMFzxI2YlBOLW5PhblzuSWlWfwLHaneBE0xHzLrBgNtqN6mWfs+qYbhryGSXQjFYB1Dzf5w+LN5qbUTPhW7Y5g==}
'@tailwindcss/oxide-linux-[email protected]':
resolution: {integrity: sha512-J5Nuk0uZQIiMTJj3LEx4sAA9tMFUoXQZFv1J6An+QGYe53HKRJuFDi0rpq/tuouCZeAbOBY3kQ6g8qeD4TUjtA==}
engines: {node: '>= 20'}
cpu: [x64]
cpu: [arm64]
os: [linux]
libc: [glibc]
libc: [musl]
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-DRNdQRpSGzRGfARVuVkxvM8Q12nh19l4BF/G7zGA1oe+9wcC6saFBHTISrpIcKzhiXtSrlSrluCfvMuledoCTQ==}
@@ -4520,12 +4514,12 @@ packages:
os: [linux]
libc: [glibc]
'@tailwindcss/oxide-linux-x64-[email protected]':
resolution: {integrity: sha512-5r1X2FKnCMUPlXTWRYpHdPYUY6a1Ar/t7P24OuiEdEOmms5lyqjDRvVY1yy9Rmioh+AunQ0rWiOTPE8F9A3v5g==}
'@tailwindcss/oxide-linux-x64-[email protected]':
resolution: {integrity: sha512-kqCZpSKOBEJO4mz7OqWoofBZeXTAwaVGPj0ErAj7CojmhKpWVWVOnrt9dE8odoIraZq4oj3ausM37kXi+Tow8w==}
engines: {node: '>= 20'}
cpu: [x64]
os: [linux]
libc: [musl]
libc: [glibc]
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-Z0IADbDo8bh6I7h2IQMx601AdXBLfFpEdUotft86evd/8ZPflZe9COPO8Q1vw+pfLWIUo9zN/JGZvwuAJqduqg==}
@@ -4534,17 +4528,12 @@ packages:
os: [linux]
libc: [musl]
'@tailwindcss/oxide-[email protected]':
resolution: {integrity: sha512-MGFB5cVPvshR85MTJkEvqDUnuNoysrsRxd6vnk1Lf2tbiqNlXpHYZqkqOQalydienEWOHHFyyuTSYRsLfxFJ2Q==}
engines: {node: '>=14.0.0'}
cpu: [wasm32]
bundledDependencies:
- '@napi-rs/wasm-runtime'
- '@emnapi/core'
- '@emnapi/runtime'
- '@tybys/wasm-util'
- '@emnapi/wasi-threads'
- tslib
'@tailwindcss/oxide-[email protected]':
resolution: {integrity: sha512-cixpqbh2toJDmkuCRI68nXA8ZxNmdK9Y+9v5h3MC3ZQKy/0BO8AWzlkWyRM7JAFSGBlfig4YVTPsK6MVgqz1uw==}
engines: {node: '>= 20'}
cpu: [x64]
os: [linux]
libc: [musl]
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-HNZGOUxEmElksYR7S6sC5jTeNGpobAsy9u7Gu0AskJ8/20FR9GqebUyB+HBcU/ax6BHuiuJi+Oda4B+YX6H1yA==}
@@ -4558,11 +4547,17 @@ packages:
- '@emnapi/wasi-threads'
- tslib
'@tailwindcss/oxide-w[email protected]':
resolution: {integrity: sha512-YlUEHRHBGnCMh4Nj4GnqQyBtsshUPdiNroZj8VPkvTZSoHsilRCwXcVKnG9kyi0ZFAS/3u+qKHBdDc81SADTRA==}
engines: {node: '>= 20'}
cpu: [arm64]
os: [win32]
'@tailwindcss/oxide-w[email protected]':
resolution: {integrity: sha512-4ec2Z/LOmRsAgU23CS4xeJfcJlmRg94A/XrbGRCF1gyU/zdDfRLYDVsS+ynSZCmGNxQ1jQriQOKMQeQxBA3Isw==}
engines: {node: '>=14.0.0'}
cpu: [wasm32]
bundledDependencies:
- '@napi-rs/wasm-runtime'
- '@emnapi/core'
- '@emnapi/runtime'
- '@tybys/wasm-util'
- '@emnapi/wasi-threads'
- tslib
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-Pe+RPVTi1T+qymuuRpcdvwSVZjnll/f7n8gBxMMh3xLTctMDKqpdfGimbMyioqtLhUYZxdJ9wGNhV7MKHvgZsQ==}
@@ -4570,10 +4565,10 @@ packages:
cpu: [arm64]
os: [win32]
'@tailwindcss/oxide-win32-x64-msvc@4.2.1':
resolution: {integrity: sha512-rbO34G5sMWWyrN/idLeVxAZgAKWrn5LiR3/I90Q9MkA67s6T1oB0xtTe+0heoBvHSpbU9Mk7i6uwJnpo4u21XQ==}
'@tailwindcss/oxide-win32-arm64-msvc@4.3.2':
resolution: {integrity: sha512-Zyr/M0+XcYZu3bZrUytc7TXvrk0ftWfl8gN2MwekNDzhqhKRUucMPSeOzM0o0wH5AWOU49BsKRrfKxI2atCPMQ==}
engines: {node: '>= 20'}
cpu: [x64]
cpu: [arm64]
os: [win32]
'@tailwindcss/[email protected]':
@@ -4582,14 +4577,20 @@ packages:
cpu: [x64]
os: [win32]
'@tailwindcss/oxide@4.2.1':
resolution: {integrity: sha512-yv9jeEFWnjKCI6/T3Oq50yQEOqmpmpfzG1hcZsAOaXFQPfzWprWrlHSdGPEF3WQTi8zu8ohC9Mh9J470nT5pUw==}
'@tailwindcss/oxide[email protected]':
resolution: {integrity: sha512-QI9BO7KlNZsp2GuO0jwAAj5jCDABOKXRkCk2XuKTSaNEFSdfzqswYVTtCHBNKHLsqyjFyFkqlDiwkNbTYSssMQ==}
engines: {node: '>= 20'}
cpu: [x64]
os: [win32]
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-F7HZGBeN9I0/AuuJS5PwcD8xayx5ri5GhjYUDBEVYUkexyA/giwbDNjRVrxSezE3T250OU2K/wp/ltWx3UOefg==}
engines: {node: '>= 20'}
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-z8ZgnzX8gdNoWLBLqBPoh/sjnxkwvf9ZuWjnO0l0yIzbLa5/9S+eC5QxGZKRobVHIC3/1BoMWjHblqWjcgFgag==}
engines: {node: '>= 20'}
'@tailwindcss/[email protected]':
resolution: {integrity: sha512-t6J3OrB5Fc0ExuhohouH0fWUGMYL6PTLhW+E7zIk/pdbnJARZDCwjBznFnkh5ynRnIRSI4YjtTH0t6USjJISrw==}
peerDependencies:
@@ -6309,6 +6310,10 @@ packages:
[email protected]:
resolution: {integrity: sha512-ooEGc6HP26xXq/N+GCGOT0JKCLDGrq2bQUZrQ7gyrJiZANJ/8YDTxTpQBXGMn+WbIQXNVpyWymm7KYVICQnyOg==}
[email protected]:
resolution: {integrity: sha512-aNnGCvbJ/RIyWo1IuhNdVjnNF+EjH9wpzpNHt+ci/m9He9LJvUN8wrCcXjp9cWsGNAuvSpVFTx/vraAFQ8qGjQ==}
engines: {node: '>=10.13.0'}
[email protected]:
resolution: {integrity: sha512-6QEuw3zoX1SJQc7b87aBXke/no+mG2bTBgw29gWMQonLmpEkWoCAVkl+M49e48AZlWzxiDzDZzYdp6kobcyLww==}
engines: {node: '>=10.13.0'}
@@ -7480,12 +7485,6 @@ packages:
[email protected]:
resolution: {integrity: sha512-gPWxznF6TKmUHrOQjlVo2UbaL2EJ71mb2CCeRs/2qBpi4L/g4LUVc9+3lKQ6DTUZwJswfM7ainGrLO1+fOqa2g==}
[email protected]:
resolution: {integrity: sha512-HXJF3x8w9nQ4jbXRiNppBCqeZPIAfUo8zE/kOEGbW5NZvGc/K7nMxbhIr+YlFlHW5mpbg/YFPdbnCh1wAXCKFg==}
engines: {node: '>= 12.0.0'}
cpu: [arm64]
os: [android]
[email protected]:
resolution: {integrity: sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==}
engines: {node: '>= 12.0.0'}
@@ -7498,12 +7497,6 @@ packages:
cpu: [arm64]
os: [darwin]
[email protected]:
resolution: {integrity: sha512-02uTEqf3vIfNMq3h/z2cJfcOXnQ0GRwQrkmPafhueLb2h7mqEidiCzkE4gBMEH65abHRiQvhdcQ+aP0D0g67sg==}
engines: {node: '>= 12.0.0'}
cpu: [arm64]
os: [darwin]
[email protected]:
resolution: {integrity: sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==}
engines: {node: '>= 12.0.0'}
@@ -7516,12 +7509,6 @@ packages:
cpu: [x64]
os: [darwin]
[email protected]:
resolution: {integrity: sha512-1ObhyoCY+tGxtsz1lSx5NXCj3nirk0Y0kB/g8B8DT+sSx4G9djitg9ejFnjb3gJNWo7qXH4DIy2SUHvpoFwfTA==}
engines: {node: '>= 12.0.0'}
cpu: [x64]
os: [darwin]
[email protected]:
resolution: {integrity: sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==}
engines: {node: '>= 12.0.0'}
@@ -7534,12 +7521,6 @@ packages:
cpu: [x64]
os: [freebsd]
[email protected]:
resolution: {integrity: sha512-1RINmQKAItO6ISxYgPwszQE1BrsVU5aB45ho6O42mu96UiZBxEXsuQ7cJW4zs4CEodPUioj/QrXW1r9pLUM74A==}
engines: {node: '>= 12.0.0'}
cpu: [x64]
os: [freebsd]
[email protected]:
resolution: {integrity: sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==}
engines: {node: '>= 12.0.0'}
@@ -7552,12 +7533,6 @@ packages:
cpu: [arm]
os: [linux]
[email protected]:
resolution: {integrity: sha512-OOCm2//MZJ87CdDK62rZIu+aw9gBv4azMJuA8/KB74wmfS3lnC4yoPHm0uXZ/dvNNHmnZnB8XLAZzObeG0nS1g==}
engines: {node: '>= 12.0.0'}
cpu: [arm]
os: [linux]
[email protected]:
resolution: {integrity: sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==}
engines: {node: '>= 12.0.0'}
@@ -7571,13 +7546,6 @@ packages:
os: [linux]
libc: [glibc]
[email protected]:
resolution: {integrity: sha512-WKyLWztD71rTnou4xAD5kQT+982wvca7E6QoLpoawZ1gP9JM0GJj4Tp5jMUh9B3AitHbRZ2/H3W5xQmdEOUlLg==}
engines: {node: '>= 12.0.0'}
cpu: [arm64]
os: [linux]
libc: [glibc]
[email protected]:
resolution: {integrity: sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==}
engines: {node: '>= 12.0.0'}
@@ -7592,13 +7560,6 @@ packages:
os: [linux]
libc: [musl]
[email protected]:
resolution: {integrity: sha512-mVZ7Pg2zIbe3XlNbZJdjs86YViQFoJSpc41CbVmKBPiGmC4YrfeOyz65ms2qpAobVd7WQsbW4PdsSJEMymyIMg==}
engines: {node: '>= 12.0.0'}
cpu: [arm64]
os: [linux]
libc: [musl]
[email protected]:
resolution: {integrity: sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==}
engines: {node: '>= 12.0.0'}
@@ -7613,13 +7574,6 @@ packages:
os: [linux]
libc: [glibc]
[email protected]:
resolution: {integrity: sha512-xGlFWRMl+0KvUhgySdIaReQdB4FNudfUTARn7q0hh/V67PVGCs3ADFjw+6++kG1RNd0zdGRlEKa+T13/tQjPMA==}
engines: {node: '>= 12.0.0'}
cpu: [x64]
os: [linux]
libc: [glibc]
[email protected]:
resolution: {integrity: sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==}
engines: {node: '>= 12.0.0'}
@@ -7634,13 +7588,6 @@ packages:
os: [linux]
libc: [musl]
[email protected]:
resolution: {integrity: sha512-eowF8PrKHw9LpoZii5tdZwnBcYDxRw2rRCyvAXLi34iyeYfqCQNA9rmUM0ce62NlPhCvof1+9ivRaTY6pSKDaA==}
engines: {node: '>= 12.0.0'}
cpu: [x64]
os: [linux]
libc: [musl]
[email protected]:
resolution: {integrity: sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==}
engines: {node: '>= 12.0.0'}
@@ -7654,12 +7601,6 @@ packages:
cpu: [arm64]
os: [win32]
[email protected]:
resolution: {integrity: sha512-aJReEbSEQzx1uBlQizAOBSjcmr9dCdL3XuC/6HLXAxmtErsj2ICo5yYggg1qOODQMtnjNQv2UHb9NpOuFtYe4w==}
engines: {node: '>= 12.0.0'}
cpu: [arm64]
os: [win32]
[email protected]:
resolution: {integrity: sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==}
engines: {node: '>= 12.0.0'}
@@ -7672,12 +7613,6 @@ packages:
cpu: [x64]
os: [win32]
[email protected]:
resolution: {integrity: sha512-I9aiFrbd7oYHwlnQDqr1Roz+fTz61oDDJX7n9tYF9FJymH1cIN1DtKw3iYt6b8WZgEjoNwVSncwF4wx/ZedMhw==}
engines: {node: '>= 12.0.0'}
cpu: [x64]
os: [win32]
[email protected]:
resolution: {integrity: sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==}
engines: {node: '>= 12.0.0'}
@@ -7688,10 +7623,6 @@ packages:
resolution: {integrity: sha512-xi6IyHML+c9+Q3W0S4fCQJOym42pyurFiJUHEcEyHS0CeKzia4yZDEsLlqOFykxOdHpNy0NmvVO31vcSqAxJCg==}
engines: {node: '>= 12.0.0'}
[email protected]:
resolution: {integrity: sha512-l51N2r93WmGUye3WuFoN5k10zyvrVs0qfKBhyC5ogUQ6Ew6JUSswh78mbSO+IU3nTWsyOArqPCcShdQSadghBQ==}
engines: {node: '>= 12.0.0'}
[email protected]:
resolution: {integrity: sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==}
engines: {node: '>= 12.0.0'}
@@ -9620,12 +9551,12 @@ packages:
[email protected]:
resolution: {integrity: sha512-uxL7qAVQriqRQPAyK3pj66VqskWqoZ37PW94jwOTwNfq/z9oyu1V+eqrZqtR2+fCiXdYOZe/Modt8GtvqNzu+w==}
[email protected]:
resolution: {integrity: sha512-/tBrSQ36vCleJkAOsy9kbNTgaxvGbyOamC30PRePTQe/o1MFwEKHQk4Cn7BNGaPtjp+PuUrByJehM1hgxfq4sw==}
[email protected]:
resolution: {integrity: sha512-y6nxMGB1nMW9R6k96e5gdIFzcfL/gTJRNaqGes1YvkLnPVXzWgbqFF2yLC0T8G774n24cx3Pe8XrKoniCOAH+Q==}
[email protected]:
resolution: {integrity: sha512-WtctNNSH8A9jlMIqxzuYumOHU5uGZyRv0Q5svQl+oEPy5w84YpBxdb7MdqyiSPQge5jTJ6zFQLq0PFygdccSBA==}
[email protected]:
resolution: {integrity: sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==}
engines: {node: '>=6'}
@@ -9881,12 +9812,22 @@ packages:
resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==}
engines: {node: '>= 10.0.0'}
uniwind@1.7.0:
resolution: {integrity: sha512-kIixWI3OprrWf/ypjglV2xubYvzCjtTKk110rQmXn8A3ZA/7z/nK6P/8EMxbfPCxjkdvhLcMniafa4qJcYIhZA==}
uniwind@1.11.0:
resolution: {integrity: sha512-e2mYlHrZzAQtZUf3STrfVDTetspv7p5vm/cu6p8kjLRQaL9r6QFG+MlwZ3hrI2LHnzgzjbSo+MwvoE380zz2JQ==}
hasBin: true
peerDependencies:
'@expo/metro-config': 57.0.12
metro: '*'
metro-cache: '*'
metro-transform-worker: '*'
react: '>=19.0.0'
react-native: '>=0.81.0'
tailwindcss: '>=4'
peerDependenciesMeta:
'@expo/metro-config':
optional: true
metro-transform-worker:
optional: true
[email protected]:
resolution: {integrity: sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==}
@@ -13702,7 +13643,7 @@ snapshots:
react-native: 0.86.3(@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])
optional: true
'@react-native-menu/[email protected](patch_hash=c7f66d121c726ade4f5c4e1aed11a691e5711d244c544084e289ac26132a0045)([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])':
'@react-native-menu/[email protected](patch_hash=f63d256bf6a97a873b5e628eb595bd6ef0075ddd5bdd890fc920f7a6024290dd)([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])':
dependencies:
react: 19.2.3
react-native: 0.86.3(@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])
@@ -14263,16 +14204,6 @@ snapshots:
'@tabler/[email protected]': {}
'@tailwindcss/[email protected]':
dependencies:
'@jridgewell/remapping': 2.3.5
enhanced-resolve: 5.22.1
jiti: 2.7.0
lightningcss: 1.31.1
magic-string: 0.30.21
source-map-js: 1.2.1
tailwindcss: 4.2.1
'@tailwindcss/[email protected]':
dependencies:
'@jridgewell/remapping': 2.3.5
@@ -14283,92 +14214,87 @@ snapshots:
source-map-js: 1.2.1
tailwindcss: 4.3.0
'@tailwindcss/[email protected]':
optional: true
'@tailwindcss/[email protected]':
dependencies:
'@jridgewell/remapping': 2.3.5
enhanced-resolve: 5.21.6
jiti: 2.7.0
lightningcss: 1.32.0
magic-string: 0.30.21
source-map-js: 1.2.1
tailwindcss: 4.3.2
'@tailwindcss/[email protected]':
optional: true
'@tailwindcss/oxide-darwin-arm64@4.2.1':
'@tailwindcss/oxide-android-arm64@4.3.2':
optional: true
'@tailwindcss/[email protected]':
optional: true
'@tailwindcss/oxide-darwin-x64@4.2.1':
'@tailwindcss/oxide-darwin-arm64@4.3.2':
optional: true
'@tailwindcss/[email protected]':
optional: true
'@tailwindcss/oxide-freebsd-x64@4.2.1':
'@tailwindcss/oxide-darwin-x64@4.3.2':
optional: true
'@tailwindcss/[email protected]':
optional: true
'@tailwindcss/oxide-[email protected]':
'@tailwindcss/oxide-[email protected]':
optional: true
'@tailwindcss/[email protected]':
optional: true
'@tailwindcss/oxide-linux-arm64-gnu@4.2.1':
'@tailwindcss/oxide-linux-arm-gnu[email protected]':
optional: true
'@tailwindcss/[email protected]':
optional: true
'@tailwindcss/oxide-linux-arm64-[email protected]':
'@tailwindcss/oxide-linux-arm64-[email protected]':
optional: true
'@tailwindcss/[email protected]':
optional: true
'@tailwindcss/oxide-linux-[email protected]':
'@tailwindcss/oxide-linux-[email protected]':
optional: true
'@tailwindcss/[email protected]':
optional: true
'@tailwindcss/oxide-linux-x64-[email protected]':
'@tailwindcss/oxide-linux-x64-[email protected]':
optional: true
'@tailwindcss/[email protected]':
optional: true
'@tailwindcss/oxide-[email protected]':
'@tailwindcss/oxide-[email protected]':
optional: true
'@tailwindcss/[email protected]':
optional: true
'@tailwindcss/oxide-w[email protected]':
'@tailwindcss/oxide-w[email protected]':
optional: true
'@tailwindcss/[email protected]':
optional: true
'@tailwindcss/oxide-win32-x64-msvc@4.2.1':
'@tailwindcss/oxide-win32-arm64-msvc@4.3.2':
optional: true
'@tailwindcss/[email protected]':
optional: true
'@tailwindcss/oxide@4.2.1':
optionalDependencies:
'@tailwindcss/oxide-android-arm64': 4.2.1
'@tailwindcss/oxide-darwin-arm64': 4.2.1
'@tailwindcss/oxide-darwin-x64': 4.2.1
'@tailwindcss/oxide-freebsd-x64': 4.2.1
'@tailwindcss/oxide-linux-arm-gnueabihf': 4.2.1
'@tailwindcss/oxide-linux-arm64-gnu': 4.2.1
'@tailwindcss/oxide-linux-arm64-musl': 4.2.1
'@tailwindcss/oxide-linux-x64-gnu': 4.2.1
'@tailwindcss/oxide-linux-x64-musl': 4.2.1
'@tailwindcss/oxide-wasm32-wasi': 4.2.1
'@tailwindcss/oxide-win32-arm64-msvc': 4.2.1
'@tailwindcss/oxide-win32-x64-msvc': 4.2.1
'@tailwindcss/oxide[email protected]':
optional: true
'@tailwindcss/[email protected]':
optionalDependencies:
@@ -14385,6 +14311,21 @@ snapshots:
'@tailwindcss/oxide-win32-arm64-msvc': 4.3.0
'@tailwindcss/oxide-win32-x64-msvc': 4.3.0
'@tailwindcss/[email protected]':
optionalDependencies:
'@tailwindcss/oxide-android-arm64': 4.3.2
'@tailwindcss/oxide-darwin-arm64': 4.3.2
'@tailwindcss/oxide-darwin-x64': 4.3.2
'@tailwindcss/oxide-freebsd-x64': 4.3.2
'@tailwindcss/oxide-linux-arm-gnueabihf': 4.3.2
'@tailwindcss/oxide-linux-arm64-gnu': 4.3.2
'@tailwindcss/oxide-linux-arm64-musl': 4.3.2
'@tailwindcss/oxide-linux-x64-gnu': 4.3.2
'@tailwindcss/oxide-linux-x64-musl': 4.3.2
'@tailwindcss/oxide-wasm32-wasi': 4.3.2
'@tailwindcss/oxide-win32-arm64-msvc': 4.3.2
'@tailwindcss/oxide-win32-x64-msvc': 4.3.2
'@tailwindcss/[email protected](@voidzero-dev/[email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])([email protected]))':
dependencies:
'@tailwindcss/node': 4.3.0
@@ -16174,6 +16115,11 @@ snapshots:
dependencies:
once: 1.4.0
[email protected]:
dependencies:
graceful-fs: 4.2.11
tapable: 2.3.3
[email protected]:
dependencies:
graceful-fs: 4.2.11
@@ -17676,99 +17622,66 @@ snapshots:
transitivePeerDependencies:
- supports-color
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
[email protected]:
optional: true
@@ -17787,22 +17700,6 @@ snapshots:
lightningcss-win32-arm64-msvc: 1.30.1
lightningcss-win32-x64-msvc: 1.30.1
[email protected]:
dependencies:
detect-libc: 2.1.2
optionalDependencies:
lightningcss-android-arm64: 1.31.1
lightningcss-darwin-arm64: 1.31.1
lightningcss-darwin-x64: 1.31.1
lightningcss-freebsd-x64: 1.31.1
lightningcss-linux-arm-gnueabihf: 1.31.1
lightningcss-linux-arm64-gnu: 1.31.1
lightningcss-linux-arm64-musl: 1.31.1
lightningcss-linux-x64-gnu: 1.31.1
lightningcss-linux-x64-musl: 1.31.1
lightningcss-win32-arm64-msvc: 1.31.1
lightningcss-win32-x64-msvc: 1.31.1
[email protected]:
dependencies:
detect-libc: 2.1.2
@@ -20463,10 +20360,10 @@ snapshots:
[email protected]: {}
[email protected]: {}
[email protected]: {}
[email protected]: {}
[email protected]: {}
[email protected]:
@@ -20702,15 +20599,20 @@ snapshots:
[email protected]: {}
uniwind@1.7.0([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])([email protected]):
uniwind@1.11.0(patch_hash=329a77525509623d763b738152dbd00ab392cdcdd9fb6ed2b4a20e086e437196)(@expo/[email protected](patch_hash=96f1a75347e6ea02dc4b7034ace815d8ee39e18b8166ebfb573d9e58328f0dc2)([email protected])([email protected])([email protected])([email protected]))([email protected])([email protected]([email protected])([email protected]))([email protected]([email protected])([email protected]))([email protected](@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected]))([email protected])([email protected]):
dependencies:
'@tailwindcss/node': 4.2.1
'@tailwindcss/oxide': 4.2.1
'@tailwindcss/node': 4.3.2
'@tailwindcss/oxide': 4.3.2
culori: 4.0.2
lightningcss: 1.30.1
metro: 0.84.5([email protected])([email protected])
metro-cache: 0.84.5
react: 19.2.3
react-native: 0.86.3(@babel/[email protected])(@react-native/[email protected](@babel/[email protected])([email protected])([email protected]))(@types/[email protected])([email protected])([email protected])([email protected])
tailwindcss: 4.3.0
optionalDependencies:
'@expo/metro-config': 57.0.12(patch_hash=96f1a75347e6ea02dc4b7034ace815d8ee39e18b8166ebfb573d9e58328f0dc2)([email protected])([email protected])([email protected])([email protected])
metro-transform-worker: 0.84.5([email protected])([email protected])
[email protected]: {}
+1
View File
@@ -157,6 +157,7 @@ patchedDependencies:
[email protected]: patches/[email protected]
[email protected]: patches/[email protected]
[email protected]: patches/[email protected]
[email protected]: patches/[email protected]
peerDependencyRules:
allowAny: