Skip to content

Commit

Permalink
v1.1.391
Browse files Browse the repository at this point in the history
  • Loading branch information
natew committed Jan 9, 2025
1 parent 7d744fe commit b95c9ac
Show file tree
Hide file tree
Showing 59 changed files with 272 additions and 110 deletions.
2 changes: 1 addition & 1 deletion apps/chat/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "onechat",
"version": "1.1.390",
"version": "1.1.391",
"private": true,
"sideEffects": false,
"files": [],
Expand Down
2 changes: 1 addition & 1 deletion apps/devtools/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "devtools",
"version": "1.1.390",
"version": "1.1.391",
"private": true,
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion apps/onestack.dev/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "site",
"version": "1.1.390",
"version": "1.1.391",
"private": true,
"sideEffects": false,
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion examples/bare/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "example-bare",
"version": "1.1.390",
"version": "1.1.391",
"private": true,
"type": "module",
"main": "index.js",
Expand Down
2 changes: 1 addition & 1 deletion examples/expo-blank/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "expo-blank-app",
"version": "1.1.390",
"version": "1.1.391",
"private": true,
"main": "expo/AppEntry.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion examples/one-basic/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "example-basic",
"version": "1.1.390",
"version": "1.1.391",
"private": true,
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion examples/one-recommended/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "example-recommended",
"version": "1.1.390",
"version": "1.1.391",
"private": true,
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion examples/one-tailwind/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "example-tailwind",
"version": "1.1.390",
"version": "1.1.391",
"private": true,
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion examples/one-tamagui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "example-tamagui",
"version": "1.1.390",
"version": "1.1.391",
"private": true,
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion examples/one-zero/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "one-zero",
"version": "1.1.390",
"version": "1.1.391",
"private": true,
"sideEffects": false,
"files": [],
Expand Down
2 changes: 1 addition & 1 deletion examples/testflight/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "example-testflight",
"version": "1.1.390",
"version": "1.1.391",
"private": true,
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/better-auth/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vxrn/better-auth",
"version": "1.1.390",
"version": "1.1.391",
"sideEffects": false,
"types": "./src/index.ts",
"main": "dist/cjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/color-scheme/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vxrn/color-scheme",
"version": "1.1.390",
"version": "1.1.391",
"sideEffects": false,
"exports": {
"./package.json": "./package.json",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-vxrn/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-vxrn",
"version": "1.1.390",
"version": "1.1.391",
"bin": "run.js",
"main": "dist/cjs",
"module": "dist/esm",
Expand Down
2 changes: 1 addition & 1 deletion packages/debug/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vxrn/debug",
"version": "1.1.390",
"version": "1.1.391",
"sideEffects": false,
"source": "src/index.ts",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/drizzle-to-zero/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "drizzle-to-zero",
"version": "1.1.390",
"version": "1.1.391",
"sideEffects": false,
"source": "src/index.ts",
"types": "./types/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/emitter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vxrn/emitter",
"version": "1.1.390",
"version": "1.1.391",
"sideEffects": false,
"source": "src/index.ts",
"types": "./src/index.ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/mdx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vxrn/mdx",
"version": "1.1.390",
"version": "1.1.391",
"types": "./types/index.d.ts",
"main": "dist/index.js",
"type": "commonjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/one/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "one",
"version": "1.1.390",
"version": "1.1.391",
"license": "BSD-3-Clause",
"sideEffects": [
"setup.mjs",
Expand Down
27 changes: 19 additions & 8 deletions packages/one/types/fork/NavigationContainer.d.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
import { type DocumentTitleOptions, type LinkingOptions, type LocaleDirection, type NavigationContainerProps, type NavigationContainerRef, type Theme } from '@react-navigation/native';
/**
* This file is copied from the react-navigation repo:
* https://github.com/react-navigation/react-navigation/blob/%40react-navigation/core%407.1.2/packages/core/src/getPathFromState.tsx
*
* Please refrain from making changes to this file, as it will make merging updates from the upstream harder.
* All modifications except formatting should be marked with `// @modified` comment.
*/
import { type NavigationContainerProps, type NavigationContainerRef } from '@react-navigation/core';
import * as React from 'react';
type Props<ParamList extends object> = NavigationContainerProps & {
import { type DocumentTitleOptions, type LinkingOptions, type LocaleDirection } from '@react-navigation/native';
declare global {
var REACT_NAVIGATION_DEVTOOLS: WeakMap<NavigationContainerRef<any>, {
readonly linking: LinkingOptions<any>;
}>;
}
type Props<ParamList extends {}> = NavigationContainerProps & {
direction?: LocaleDirection;
documentTitle?: DocumentTitleOptions;
fallback?: React.ReactNode;
linking?: LinkingOptions<ParamList>;
onReady?: () => void;
theme?: Theme;
fallback?: React.ReactNode;
documentTitle?: DocumentTitleOptions;
};
declare const NavigationContainer: <RootParamList extends object = ReactNavigation.RootParamList>(props: Props<RootParamList> & {
export declare const NavigationContainer: <RootParamList extends {} = ReactNavigation.RootParamList>(props: Props<RootParamList> & {
ref?: React.Ref<NavigationContainerRef<RootParamList>>;
}) => React.ReactElement;
export default NavigationContainer;
export {};
//# sourceMappingURL=NavigationContainer.d.ts.map
11 changes: 10 additions & 1 deletion packages/one/types/fork/createMemoryHistory.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
/**
* This file is copied from the react-navigation repo:
* https://github.com/react-navigation/react-navigation/blob/%40react-navigation/core%407.1.2/packages/native/src/createMemoryHistory.tsx
*
* Please refrain from making changes to this file, as it will make merging updates from the upstream harder.
* All modifications except formatting should be marked with `// @modified` comment.
*
* No modifications currently, copied only in order to use a custom `useLinking` function.
*/
import type { NavigationState } from '@react-navigation/core';
type HistoryRecord = {
id: string;
state: NavigationState;
path: string;
};
export default function createMemoryHistory(): {
export declare function createMemoryHistory(): {
readonly index: number;
get(index: number): HistoryRecord;
backIndex({ path }: {
Expand Down
8 changes: 7 additions & 1 deletion packages/one/types/fork/extractPathFromURL.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
export declare function extractExpoPathFromURL(url?: string): string;
export declare function parsePathAndParamsFromExpoGoLink(url: string): {
pathname: string;
queryString: string;
};
export declare function parsePathFromExpoGoLink(url: string): string;
export declare function extractExpoPathFromURL(_prefixes: string[], url?: string): string;
export declare function adjustPathname(url: {
hostname?: string | null;
pathname: string;
}): string;
export declare const extractPathFromURL: typeof extractExpoPathFromURL;
//# sourceMappingURL=extractPathFromURL.d.ts.map
9 changes: 9 additions & 0 deletions packages/one/types/fork/findFocusedRoute.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/**
* This file is copied from the react-navigation repo:
* https://github.com/react-navigation/react-navigation/blob/%40react-navigation/core%407.1.2/packages/core/src/findFocusedRoute.tsx
*
* Please refrain from making changes to this file, as it will make merging updates from the upstream harder.
* All modifications except formatting should be marked with `// @modified` comment.
*
* No modifications currently, copied so we can access without importing any React Native code in Node.js environments.
*/
import type { InitialState } from '@react-navigation/routers';
export declare function findFocusedRoute(state: InitialState): (Omit<import("@react-navigation/routers").Route<string, object | undefined>, "key"> & {
state?: InitialState;
Expand Down
23 changes: 23 additions & 0 deletions packages/one/types/fork/getPathFromState-mods.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* This file exports things that will be used to modify the forked code in `getPathFromState.ts`.
*
* The purpose of keeping things in this separated file is to keep changes to the copied code as little as possible, making merging upstream updates easier.
*/
import type { Route } from '@react-navigation/core';
export type AdditionalOptions = {
preserveDynamicRoutes?: boolean;
preserveGroups?: boolean;
shouldEncodeURISegment?: boolean;
};
export type ConfigItemMods = {
initialRouteName?: string;
};
export declare function getPathWithConventionsCollapsed({ pattern, route, params, preserveGroups, preserveDynamicRoutes, shouldEncodeURISegment, initialRouteName, }: AdditionalOptions & {
pattern: string;
route: Route<any>;
params: Record<string, any>;
initialRouteName?: string;
}): string;
export declare const getParamName: (pattern: string) => string;
export declare function appendBaseUrl(path: string, baseUrl?: string | undefined): string;
//# sourceMappingURL=getPathFromState-mods.d.ts.map
29 changes: 15 additions & 14 deletions packages/one/types/fork/getPathFromState.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
import { type PathConfigMap } from '@react-navigation/core';
/**
* This file is copied from the react-navigation repo:
* https://github.com/react-navigation/react-navigation/blob/%40react-navigation/core%407.1.2/packages/core/src/getPathFromState.tsx
*
* Please refrain from making changes to this file, as it will make merging updates from the upstream harder.
* All modifications except formatting should be marked with `// @modified` comment.
*/
import { type AdditionalOptions } from './getPathFromState-mods';
import type { NavigationState, PartialState } from '@react-navigation/routers';
type Options<ParamList extends object> = {
import type { PathConfigMap } from '@react-navigation/core';
type Options<ParamList extends {}> = {
path?: string;
initialRouteName?: string;
screens: PathConfigMap<ParamList>;
};
} & AdditionalOptions;
export type State = NavigationState | Omit<PartialState<NavigationState>, 'stale'>;
/**
* Utility to serialize a navigation state object to a path string.
Expand Down Expand Up @@ -34,18 +43,10 @@ export type State = NavigationState | Omit<PartialState<NavigationState>, 'stale
* @param options Extra options to fine-tune how to serialize the path.
* @returns Path representing the state, e.g. /foo/bar?count=42.
*/
export default function getPathFromState<ParamList extends object>(state: State, _options?: Options<ParamList> & {
preserveGroups?: boolean;
preserveDynamicRoutes?: boolean;
}): string;
export declare function getPathDataFromState<ParamList extends object>(state: State, _options?: Options<ParamList> & {
preserveGroups?: boolean;
preserveDynamicRoutes?: boolean;
}): {
export declare function getPathFromState<ParamList extends {}>(state: State, options?: Options<ParamList>): string;
export declare function getPathDataFromState<ParamList extends {}>(state: State, options?: Options<ParamList>): {
path: string;
params: Record<string, any>;
};
export declare function deepEqual(a: any, b: any): boolean;
export declare function appendBaseUrl(path: string, baseUrl?: string | undefined): string;
export {};
export default getPathFromState;
//# sourceMappingURL=getPathFromState.d.ts.map
58 changes: 58 additions & 0 deletions packages/one/types/fork/getStateFromPath-mods.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/**
* This file exports things that will be used to modify the forked code in `getStateFromPath.ts`.
*
* The purpose of keeping things in this separated file is to keep changes to the copied code as little as possible, making merging upstream updates easier.
*/
import type { RouteConfig, ParsedRoute, InitialRouteConfig } from './getStateFromPath';
export type AdditionalRouteConfig = {
type: 'static' | 'dynamic' | 'layout';
userReadableName: string;
isIndex: boolean;
isInitial?: boolean;
hasChildren: boolean;
expandedRouteNames: string[];
parts: string[];
};
export declare function getUrlWithReactNavigationConcessions(path: string, baseUrl?: string | undefined): {
path: string;
cleanUrl: string;
nonstandardPathname: string;
url: URL;
pathWithoutGroups?: undefined;
} | {
path: string;
nonstandardPathname: string;
url: URL;
pathWithoutGroups: string;
cleanUrl?: undefined;
};
export declare function matchForEmptyPath(configs: RouteConfig[]): {
path: string;
screen: string;
regex?: RegExp;
pattern: string;
routeNames: string[];
parse?: {
[x: string]: (value: string) => any;
};
type: "static" | "dynamic" | "layout";
userReadableName: string;
isIndex: boolean;
isInitial?: boolean;
hasChildren: boolean;
expandedRouteNames: string[];
parts: string[];
} | undefined;
export declare function appendIsInitial(initialRoutes: InitialRouteConfig[]): (config: RouteConfig) => RouteConfig;
export declare function getRouteConfigSorter(previousSegments?: string[]): (a: RouteConfig, b: RouteConfig) => number;
export declare function formatRegexPattern(it: string): string;
export declare function decodeURIComponentSafe(str: string): string;
export declare function getParamValue(p: string, value: string): string | string[] | undefined;
/**
* In One, the params are available at all levels of the routing config
*/
export declare function populateParams(routes?: ParsedRoute[], params?: Record<string, any>): ParsedRoute[] | undefined;
export declare function createConfigItemAdditionalProperties(screen: string, pattern: string, routeNames: string[], config?: Record<string, any>): Omit<AdditionalRouteConfig, 'isInitial'>;
export declare function parseQueryParamsExtended(path: string, route: ParsedRoute, parseConfig?: Record<string, (value: string) => any>, hash?: string): Record<string, string | string[]> | undefined;
export declare function stripBaseUrl(path: string, baseUrl?: string | undefined): string;
//# sourceMappingURL=getStateFromPath-mods.d.ts.map
Loading

0 comments on commit b95c9ac

Please sign in to comment.