expo-router 4.1.0-canary-20250221-ef26fed → 5.0.0-sdk-52-router-patches
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ExpoRoot.d.ts.map +1 -1
- package/build/ExpoRoot.js +10 -2
- package/build/ExpoRoot.js.map +1 -1
- package/build/fork/NavigationContainer.js.map +1 -1
- package/build/fork/getPathFromState-forks.d.ts.map +1 -1
- package/build/fork/getPathFromState-forks.js +0 -1
- package/build/fork/getPathFromState-forks.js.map +1 -1
- package/build/fork/getStateFromPath-forks.d.ts.map +1 -1
- package/build/fork/getStateFromPath-forks.js +2 -1
- package/build/fork/getStateFromPath-forks.js.map +1 -1
- package/build/fork/getStateFromPath.d.ts.map +1 -1
- package/build/fork/getStateFromPath.js +4 -2
- package/build/fork/getStateFromPath.js.map +1 -1
- package/build/fork/native-stack/createNativeStackNavigator.d.ts +1 -1
- package/build/fork/native-stack/createNativeStackNavigator.d.ts.map +1 -1
- package/build/fork/native-stack/createNativeStackNavigator.js +1 -2
- package/build/fork/native-stack/createNativeStackNavigator.js.map +1 -1
- package/build/fork/useBackButton.d.ts +1 -1
- package/build/fork/useBackButton.d.ts.map +1 -1
- package/build/fork/useBackButton.js.map +1 -1
- package/build/fork/useDocumentTitle.d.ts +1 -1
- package/build/fork/useDocumentTitle.d.ts.map +1 -1
- package/build/fork/useDocumentTitle.js.map +1 -1
- package/build/fork/useLinking.d.ts +1 -1
- package/build/fork/useLinking.d.ts.map +1 -1
- package/build/fork/useLinking.js.map +1 -1
- package/build/getDevServer/index.native.d.ts.map +1 -1
- package/build/getDevServer/index.native.js +1 -1
- package/build/getDevServer/index.native.js.map +1 -1
- package/build/getLinkingConfig.d.ts +8 -2
- package/build/getLinkingConfig.d.ts.map +1 -1
- package/build/getLinkingConfig.js +10 -2
- package/build/getLinkingConfig.js.map +1 -1
- package/build/global-state/router-store.d.ts.map +1 -1
- package/build/global-state/router-store.js.map +1 -1
- package/build/global-state/routing.d.ts +7 -0
- package/build/global-state/routing.d.ts.map +1 -1
- package/build/global-state/routing.js +7 -25
- package/build/global-state/routing.js.map +1 -1
- package/build/head/ExpoHead.d.ts +1 -1
- package/build/head/ExpoHead.d.ts.map +1 -1
- package/build/head/ExpoHead.ios.d.ts.map +1 -1
- package/build/head/ExpoHead.ios.js +18 -3
- package/build/head/ExpoHead.ios.js.map +1 -1
- package/build/head/ExpoHead.js +3 -3
- package/build/head/ExpoHead.js.map +1 -1
- package/build/layouts/DrawerClient.d.ts +18 -40
- package/build/layouts/DrawerClient.d.ts.map +1 -1
- package/build/layouts/StackClient.d.ts +37 -43
- package/build/layouts/StackClient.d.ts.map +1 -1
- package/build/layouts/StackClient.js +176 -5
- package/build/layouts/StackClient.js.map +1 -1
- package/build/layouts/TabsClient.d.ts +18 -40
- package/build/layouts/TabsClient.d.ts.map +1 -1
- package/build/layouts/withLayoutContext.d.ts +2 -2
- package/build/layouts/withLayoutContext.d.ts.map +1 -1
- package/build/layouts/withLayoutContext.js +8 -4
- package/build/layouts/withLayoutContext.js.map +1 -1
- package/build/link/Link.d.ts +1 -1
- package/build/link/Link.d.ts.map +1 -1
- package/build/link/Link.js +2 -1
- package/build/link/Link.js.map +1 -1
- package/build/link/useLinkHooks.d.ts +8 -0
- package/build/link/useLinkHooks.d.ts.map +1 -1
- package/build/link/useLinkHooks.js.map +1 -1
- package/build/rsc/router/client.js +1 -1
- package/build/rsc/router/client.js.map +1 -1
- package/build/rsc/router/host.d.ts +5 -5
- package/build/rsc/router/host.d.ts.map +1 -1
- package/build/rsc/router/host.js.map +1 -1
- package/build/testing-library/index.d.ts +1 -1
- package/build/testing-library/index.d.ts.map +1 -1
- package/build/testing-library/index.js.map +1 -1
- package/build/testing-library/mock-config.d.ts +7 -2
- package/build/testing-library/mock-config.d.ts.map +1 -1
- package/build/ui/TabContext.d.ts +29 -19
- package/build/ui/TabContext.d.ts.map +1 -1
- package/build/ui/TabRouter.d.ts +1 -0
- package/build/ui/TabRouter.d.ts.map +1 -1
- package/build/ui/Tabs.d.ts +39 -30
- package/build/ui/Tabs.d.ts.map +1 -1
- package/build/ui/Tabs.js +12 -2
- package/build/ui/Tabs.js.map +1 -1
- package/build/ui/common.d.ts.map +1 -1
- package/build/ui/common.js +6 -8
- package/build/ui/common.js.map +1 -1
- package/build/ui/useComponent.d.ts +1 -1
- package/build/ui/useComponent.d.ts.map +1 -1
- package/build/ui/useComponent.js.map +1 -1
- package/build/useNavigation.d.ts.map +1 -1
- package/build/useNavigation.js +3 -1
- package/build/useNavigation.js.map +1 -1
- package/build/useScreens.d.ts +6 -4
- package/build/useScreens.d.ts.map +1 -1
- package/build/useScreens.js +38 -47
- package/build/useScreens.js.map +1 -1
- package/build/views/Navigator.d.ts +3 -2
- package/build/views/Navigator.d.ts.map +1 -1
- package/build/views/Navigator.js +3 -2
- package/build/views/Navigator.js.map +1 -1
- package/build/views/Try.d.ts +1 -1
- package/package.json +19 -16
- package/vendor/react-helmet-async/LICENSE +201 -0
- package/vendor/react-helmet-async/README.md +205 -0
- package/vendor/react-helmet-async/lib/Dispatcher.d.ts +23 -0
- package/vendor/react-helmet-async/lib/HelmetData.d.ts +26 -0
- package/vendor/react-helmet-async/lib/Provider.d.ts +17 -0
- package/vendor/react-helmet-async/lib/client.d.ts +3 -0
- package/vendor/react-helmet-async/lib/constants.d.ts +58 -0
- package/vendor/react-helmet-async/lib/index.d.ts +38 -0
- package/vendor/react-helmet-async/lib/index.esm.js +798 -0
- package/vendor/react-helmet-async/lib/index.js +829 -0
- package/vendor/react-helmet-async/lib/server.d.ts +44 -0
- package/vendor/react-helmet-async/lib/types.d.ts +85 -0
- package/vendor/react-helmet-async/lib/utils.d.ts +33 -0
- package/vendor/react-helmet-async/package_original.json +49 -0
- package/vendor/react-helmet-async/vendor.md +3 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { MappedServerState } from './types';
|
|
2
|
+
declare const mapStateOnServer: (props: MappedServerState) => {
|
|
3
|
+
priority: {
|
|
4
|
+
toComponent: () => void;
|
|
5
|
+
toString: () => string;
|
|
6
|
+
};
|
|
7
|
+
base: {
|
|
8
|
+
toComponent: () => {};
|
|
9
|
+
toString: () => string;
|
|
10
|
+
};
|
|
11
|
+
bodyAttributes: {
|
|
12
|
+
toComponent: () => {};
|
|
13
|
+
toString: () => string;
|
|
14
|
+
};
|
|
15
|
+
htmlAttributes: {
|
|
16
|
+
toComponent: () => {};
|
|
17
|
+
toString: () => string;
|
|
18
|
+
};
|
|
19
|
+
link: {
|
|
20
|
+
toComponent: () => {};
|
|
21
|
+
toString: () => string;
|
|
22
|
+
};
|
|
23
|
+
meta: {
|
|
24
|
+
toComponent: () => {};
|
|
25
|
+
toString: () => string;
|
|
26
|
+
};
|
|
27
|
+
noscript: {
|
|
28
|
+
toComponent: () => {};
|
|
29
|
+
toString: () => string;
|
|
30
|
+
};
|
|
31
|
+
script: {
|
|
32
|
+
toComponent: () => {};
|
|
33
|
+
toString: () => string;
|
|
34
|
+
};
|
|
35
|
+
style: {
|
|
36
|
+
toComponent: () => {};
|
|
37
|
+
toString: () => string;
|
|
38
|
+
};
|
|
39
|
+
title: {
|
|
40
|
+
toComponent: () => {};
|
|
41
|
+
toString: () => string;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
export default mapStateOnServer;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { HTMLAttributes, JSX } from 'react';
|
|
2
|
+
import type HelmetData from './HelmetData';
|
|
3
|
+
export type Attributes = {
|
|
4
|
+
[key: string]: string;
|
|
5
|
+
};
|
|
6
|
+
interface OtherElementAttributes {
|
|
7
|
+
[key: string]: string | number | boolean | null | undefined;
|
|
8
|
+
}
|
|
9
|
+
export type HtmlProps = JSX.IntrinsicElements['html'] & OtherElementAttributes;
|
|
10
|
+
export type BodyProps = JSX.IntrinsicElements['body'] & OtherElementAttributes;
|
|
11
|
+
export type LinkProps = JSX.IntrinsicElements['link'];
|
|
12
|
+
export type MetaProps = JSX.IntrinsicElements['meta'] & {
|
|
13
|
+
charset?: string | undefined;
|
|
14
|
+
'http-equiv'?: string | undefined;
|
|
15
|
+
itemprop?: string | undefined;
|
|
16
|
+
};
|
|
17
|
+
export type TitleProps = HTMLAttributes<HTMLTitleElement>;
|
|
18
|
+
export interface HelmetTags {
|
|
19
|
+
baseTag: HTMLBaseElement[];
|
|
20
|
+
linkTags: HTMLLinkElement[];
|
|
21
|
+
metaTags: HTMLMetaElement[];
|
|
22
|
+
noscriptTags: HTMLElement[];
|
|
23
|
+
scriptTags: HTMLScriptElement[];
|
|
24
|
+
styleTags: HTMLStyleElement[];
|
|
25
|
+
}
|
|
26
|
+
export interface HelmetDatum {
|
|
27
|
+
toString(): string;
|
|
28
|
+
toComponent(): React.Component<any>;
|
|
29
|
+
}
|
|
30
|
+
export interface HelmetHTMLBodyDatum {
|
|
31
|
+
toString(): string;
|
|
32
|
+
toComponent(): React.HTMLAttributes<HTMLBodyElement>;
|
|
33
|
+
}
|
|
34
|
+
export interface HelmetHTMLElementDatum {
|
|
35
|
+
toString(): string;
|
|
36
|
+
toComponent(): React.HTMLAttributes<HTMLHtmlElement>;
|
|
37
|
+
}
|
|
38
|
+
export interface HelmetServerState {
|
|
39
|
+
base: HelmetDatum;
|
|
40
|
+
bodyAttributes: HelmetHTMLBodyDatum;
|
|
41
|
+
htmlAttributes: HelmetHTMLElementDatum;
|
|
42
|
+
link: HelmetDatum;
|
|
43
|
+
meta: HelmetDatum;
|
|
44
|
+
noscript: HelmetDatum;
|
|
45
|
+
script: HelmetDatum;
|
|
46
|
+
style: HelmetDatum;
|
|
47
|
+
title: HelmetDatum;
|
|
48
|
+
titleAttributes: HelmetDatum;
|
|
49
|
+
priority: HelmetDatum;
|
|
50
|
+
}
|
|
51
|
+
export type MappedServerState = HelmetProps & HelmetTags & {
|
|
52
|
+
encode?: boolean;
|
|
53
|
+
};
|
|
54
|
+
export interface TagList {
|
|
55
|
+
[key: string]: HTMLElement[];
|
|
56
|
+
}
|
|
57
|
+
export interface StateUpdate extends HelmetTags {
|
|
58
|
+
bodyAttributes: BodyProps;
|
|
59
|
+
defer: boolean;
|
|
60
|
+
htmlAttributes: HtmlProps;
|
|
61
|
+
onChangeClientState: (newState: StateUpdate, addedTags: TagList, removedTags: TagList) => void;
|
|
62
|
+
title: string;
|
|
63
|
+
titleAttributes: TitleProps;
|
|
64
|
+
}
|
|
65
|
+
export interface HelmetProps {
|
|
66
|
+
async?: boolean;
|
|
67
|
+
base?: Attributes;
|
|
68
|
+
bodyAttributes?: BodyProps;
|
|
69
|
+
defaultTitle?: string;
|
|
70
|
+
defer?: boolean;
|
|
71
|
+
encodeSpecialCharacters?: boolean;
|
|
72
|
+
helmetData?: HelmetData;
|
|
73
|
+
htmlAttributes?: HtmlProps;
|
|
74
|
+
onChangeClientState?: (newState: StateUpdate, addedTags: HelmetTags, removedTags: HelmetTags) => void;
|
|
75
|
+
link?: LinkProps[];
|
|
76
|
+
meta?: MetaProps[];
|
|
77
|
+
noscript?: Attributes[];
|
|
78
|
+
script?: Attributes[];
|
|
79
|
+
style?: Attributes[];
|
|
80
|
+
title?: string;
|
|
81
|
+
titleAttributes?: Attributes;
|
|
82
|
+
titleTemplate?: string;
|
|
83
|
+
prioritizeSeoTags?: boolean;
|
|
84
|
+
}
|
|
85
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
interface PropList {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}
|
|
4
|
+
type PropsList = PropList[];
|
|
5
|
+
type AttributeList = string[];
|
|
6
|
+
interface MatchProps {
|
|
7
|
+
[key: string]: string | AttributeList;
|
|
8
|
+
}
|
|
9
|
+
declare const reducePropsToState: (propsList: PropsList) => {
|
|
10
|
+
baseTag: any;
|
|
11
|
+
bodyAttributes: any;
|
|
12
|
+
defer: any;
|
|
13
|
+
encode: any;
|
|
14
|
+
htmlAttributes: any;
|
|
15
|
+
linkTags: any;
|
|
16
|
+
metaTags: any;
|
|
17
|
+
noscriptTags: any;
|
|
18
|
+
onChangeClientState: any;
|
|
19
|
+
scriptTags: any;
|
|
20
|
+
styleTags: any;
|
|
21
|
+
title: any;
|
|
22
|
+
titleAttributes: any;
|
|
23
|
+
prioritizeSeoTags: boolean;
|
|
24
|
+
};
|
|
25
|
+
export declare const flattenArray: (possibleArray: string[] | string) => string;
|
|
26
|
+
export { reducePropsToState };
|
|
27
|
+
export declare const prioritizer: (elementsList: HTMLElement[], propsToMatch: MatchProps) => {
|
|
28
|
+
priority: HTMLElement[];
|
|
29
|
+
default: HTMLElement[];
|
|
30
|
+
};
|
|
31
|
+
export declare const without: (obj: PropList, key: string) => {
|
|
32
|
+
[x: string]: any;
|
|
33
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "react-helmet-async",
|
|
3
|
+
"version": "2.0.4",
|
|
4
|
+
"description": "React Native fork of thread-safe Helmet for React 16+ and friends",
|
|
5
|
+
"sideEffects": false,
|
|
6
|
+
"main": "./lib/index.js",
|
|
7
|
+
"module": "./lib/index.esm.js",
|
|
8
|
+
"typings": "./lib/index.d.ts",
|
|
9
|
+
"repository": "http://github.com/staylor/react-helmet-async",
|
|
10
|
+
"author": "Scott Taylor <scott.c.taylor@mac.com>",
|
|
11
|
+
"license": "Apache-2.0",
|
|
12
|
+
"files": [
|
|
13
|
+
"lib/"
|
|
14
|
+
],
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"invariant": "^2.2.4",
|
|
17
|
+
"react-fast-compare": "^3.2.2",
|
|
18
|
+
"shallowequal": "^1.1.0"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@commitlint/cli": "18.4.3",
|
|
22
|
+
"@commitlint/config-conventional": "18.4.3",
|
|
23
|
+
"@remix-run/eslint-config": "2.3.1",
|
|
24
|
+
"@testing-library/jest-dom": "6.1.5",
|
|
25
|
+
"@testing-library/react": "14.1.2",
|
|
26
|
+
"@types/eslint": "8.44.8",
|
|
27
|
+
"@types/invariant": "2.2.37",
|
|
28
|
+
"@types/jsdom": "21.1.6",
|
|
29
|
+
"@types/react": "18.2.39",
|
|
30
|
+
"@types/shallowequal": "1.1.5",
|
|
31
|
+
"@vitejs/plugin-react": "4.2.0",
|
|
32
|
+
"esbuild": "0.19.8",
|
|
33
|
+
"eslint": "8.54.0",
|
|
34
|
+
"eslint-config-prettier": "9.0.0",
|
|
35
|
+
"eslint-plugin-prettier": "5.0.1",
|
|
36
|
+
"husky": "8.0.3",
|
|
37
|
+
"jsdom": "22.1.0",
|
|
38
|
+
"prettier": "3.1.0",
|
|
39
|
+
"raf": "3.4.1",
|
|
40
|
+
"react": "18.2.0",
|
|
41
|
+
"react-dom": "18.2.0",
|
|
42
|
+
"rimraf": "5.0.5",
|
|
43
|
+
"tsx": "4.6.1",
|
|
44
|
+
"typescript": "5.2.2",
|
|
45
|
+
"vite": "4.5.0",
|
|
46
|
+
"vitest": "0.34.6"
|
|
47
|
+
},
|
|
48
|
+
"peerDependencies": {}
|
|
49
|
+
}
|