next-intl 3.15.1-canary.0 → 3.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import React, { ComponentProps, ReactElement } from 'react';
|
|
1
|
+
import { ComponentProps, ReactElement } from 'react';
|
|
3
2
|
import { Locales, LocalePrefixConfigVerbose } from '../../routing/types';
|
|
4
3
|
import BaseLink from '../shared/BaseLink';
|
|
5
4
|
type Props<AppLocales extends Locales> = Omit<ComponentProps<typeof BaseLink>, 'locale' | 'prefix' | 'localePrefixMode'> & {
|
|
@@ -26,42 +25,7 @@ type Props<AppLocales extends Locales> = Omit<ComponentProps<typeof BaseLink>, '
|
|
|
26
25
|
* the `set-cookie` response header would cause the locale cookie on the current
|
|
27
26
|
* page to be overwritten before the user even decides to change the locale.
|
|
28
27
|
*/
|
|
29
|
-
declare const ClientLinkWithRef: <AppLocales extends Locales>(props:
|
|
30
|
-
|
|
31
|
-
as?: (string | import("url").UrlObject) | undefined;
|
|
32
|
-
replace?: boolean | undefined;
|
|
33
|
-
scroll?: boolean | undefined;
|
|
34
|
-
shallow?: boolean | undefined;
|
|
35
|
-
passHref?: boolean | undefined;
|
|
36
|
-
prefetch?: boolean | undefined;
|
|
37
|
-
locale?: string | false | undefined;
|
|
38
|
-
legacyBehavior?: boolean | undefined;
|
|
39
|
-
onMouseEnter?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
40
|
-
onTouchStart?: React.TouchEventHandler<HTMLAnchorElement> | undefined;
|
|
41
|
-
onClick?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
42
|
-
}> & {
|
|
43
|
-
href: string | import("url").UrlObject;
|
|
44
|
-
as?: (string | import("url").UrlObject) | undefined;
|
|
45
|
-
replace?: boolean | undefined;
|
|
46
|
-
scroll?: boolean | undefined;
|
|
47
|
-
shallow?: boolean | undefined;
|
|
48
|
-
passHref?: boolean | undefined;
|
|
49
|
-
prefetch?: boolean | undefined;
|
|
50
|
-
locale?: string | false | undefined;
|
|
51
|
-
legacyBehavior?: boolean | undefined;
|
|
52
|
-
onMouseEnter?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
53
|
-
onTouchStart?: React.TouchEventHandler<HTMLAnchorElement> | undefined;
|
|
54
|
-
onClick?: React.MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
55
|
-
} & {
|
|
56
|
-
children?: React.ReactNode;
|
|
57
|
-
} & React.RefAttributes<HTMLAnchorElement>, "locale"> & {
|
|
58
|
-
locale: string;
|
|
59
|
-
prefix: string;
|
|
60
|
-
localePrefixMode: import("../../routing/types").LocalePrefixMode;
|
|
61
|
-
}, "ref"> & React.RefAttributes<HTMLAnchorElement>, "locale" | "prefix" | "localePrefixMode"> & {
|
|
62
|
-
locale?: AppLocales[number] | undefined;
|
|
63
|
-
localePrefix: LocalePrefixConfigVerbose<AppLocales>;
|
|
64
|
-
} & {
|
|
65
|
-
ref?: React.LegacyRef<HTMLAnchorElement> | undefined;
|
|
28
|
+
declare const ClientLinkWithRef: <AppLocales extends Locales>(props: Props<AppLocales> & {
|
|
29
|
+
ref?: Props<AppLocales>['ref'];
|
|
66
30
|
}) => ReactElement;
|
|
67
31
|
export default ClientLinkWithRef;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "next-intl",
|
|
3
|
-
"version": "3.15.1
|
|
3
|
+
"version": "3.15.1",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"author": "Jan Amann <jan@amann.work>",
|
|
6
6
|
"funding": [
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"dependencies": {
|
|
88
88
|
"@formatjs/intl-localematcher": "^0.2.32",
|
|
89
89
|
"negotiator": "^0.6.3",
|
|
90
|
-
"use-intl": "^3.15.1
|
|
90
|
+
"use-intl": "^3.15.1"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
93
93
|
"next": "^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0",
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"size-limit": [
|
|
97
97
|
{
|
|
98
98
|
"path": "dist/production/index.react-client.js",
|
|
99
|
-
"limit": "15.
|
|
99
|
+
"limit": "15.785 KB"
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
"path": "dist/production/index.react-server.js",
|
|
@@ -108,7 +108,7 @@
|
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
110
|
"path": "dist/production/navigation.react-server.js",
|
|
111
|
-
"limit": "17.
|
|
111
|
+
"limit": "17.84 KB"
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
"path": "dist/production/server.react-client.js",
|
|
@@ -127,5 +127,5 @@
|
|
|
127
127
|
"limit": "0 KB"
|
|
128
128
|
}
|
|
129
129
|
],
|
|
130
|
-
"gitHead": "
|
|
130
|
+
"gitHead": "acadfbe704a74ad3226c114a8d86d57f1d59c7fd"
|
|
131
131
|
}
|