next-intlayer 5.8.0 → 5.8.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 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/types/NextPage.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"sources":["../../../src/types/NextPage.ts"],"sourcesContent":["import type { LocalesValues } from '@intlayer/config';\nimport type { NextPage } from 'next';\nimport type { PropsWithChildren, ReactNode } from 'react';\n\nexport type LocalParams<T = {}> = {\n params: { locale: LocalesValues } & T;\n};\n\nexport type LocalPromiseParams<T = {}> = {\n params: Promise<{ locale: LocalesValues } & T>;\n};\n\nexport type Next14PageIntlayer<T = {}> = NextPage<LocalParams<T>>;\nexport type Next15PageIntlayer<T = {}> = (\n props: LocalPromiseParams<T>\n) => ReactNode | Promise<ReactNode>;\nexport type NextPageIntlayer<T = {}> = Next15PageIntlayer<T>;\n\nexport type Next14LayoutIntlayer<T = {}> = NextPage<\n PropsWithChildren<LocalParams<T>>\n>;\nexport type Next15LayoutIntlayer<T = {}> = (\n props: PropsWithChildren<LocalPromiseParams<T>>\n) => ReactNode | Promise<ReactNode>;\nexport type NextLayoutIntlayer<T = {}> = Next15LayoutIntlayer<T>;\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LocalesValues } from '@intlayer/config';
|
|
2
2
|
import type { NextPage } from 'next';
|
|
3
3
|
import type { PropsWithChildren, ReactNode } from 'react';
|
|
4
4
|
export type LocalParams<T = {}> = {
|
|
5
5
|
params: {
|
|
6
|
-
locale:
|
|
6
|
+
locale: LocalesValues;
|
|
7
7
|
} & T;
|
|
8
8
|
};
|
|
9
9
|
export type LocalPromiseParams<T = {}> = {
|
|
10
10
|
params: Promise<{
|
|
11
|
-
locale:
|
|
11
|
+
locale: LocalesValues;
|
|
12
12
|
} & T>;
|
|
13
13
|
};
|
|
14
14
|
export type Next14PageIntlayer<T = {}> = NextPage<LocalParams<T>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NextPage.d.ts","sourceRoot":"","sources":["../../../src/types/NextPage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"NextPage.d.ts","sourceRoot":"","sources":["../../../src/types/NextPage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE1D,MAAM,MAAM,WAAW,CAAC,CAAC,GAAG,EAAE,IAAI;IAChC,MAAM,EAAE;QAAE,MAAM,EAAE,aAAa,CAAA;KAAE,GAAG,CAAC,CAAC;CACvC,CAAC;AAEF,MAAM,MAAM,kBAAkB,CAAC,CAAC,GAAG,EAAE,IAAI;IACvC,MAAM,EAAE,OAAO,CAAC;QAAE,MAAM,EAAE,aAAa,CAAA;KAAE,GAAG,CAAC,CAAC,CAAC;CAChD,CAAC;AAEF,MAAM,MAAM,kBAAkB,CAAC,CAAC,GAAG,EAAE,IAAI,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;AAClE,MAAM,MAAM,kBAAkB,CAAC,CAAC,GAAG,EAAE,IAAI,CACvC,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,KACzB,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AACpC,MAAM,MAAM,gBAAgB,CAAC,CAAC,GAAG,EAAE,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAAC;AAE7D,MAAM,MAAM,oBAAoB,CAAC,CAAC,GAAG,EAAE,IAAI,QAAQ,CACjD,iBAAiB,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAClC,CAAC;AACF,MAAM,MAAM,oBAAoB,CAAC,CAAC,GAAG,EAAE,IAAI,CACzC,KAAK,EAAE,iBAAiB,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,KAC5C,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AACpC,MAAM,MAAM,kBAAkB,CAAC,CAAC,GAAG,EAAE,IAAI,oBAAoB,CAAC,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "next-intlayer",
|
|
3
|
-
"version": "5.8.
|
|
3
|
+
"version": "5.8.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Simplify internationalization i18n in Next.js with context providers, hooks, locale detection, and multilingual content integration.",
|
|
6
6
|
"keywords": [
|
|
@@ -79,12 +79,12 @@
|
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"deepmerge": "^4.3.1",
|
|
81
81
|
"node-loader": "^2.1.0",
|
|
82
|
-
"@intlayer/
|
|
83
|
-
"@intlayer/
|
|
84
|
-
"
|
|
85
|
-
"@intlayer/
|
|
86
|
-
"
|
|
87
|
-
"@intlayer/webpack": "5.8.
|
|
82
|
+
"@intlayer/chokidar": "5.8.1",
|
|
83
|
+
"@intlayer/config": "5.8.1",
|
|
84
|
+
"@intlayer/dictionaries-entry": "5.8.1",
|
|
85
|
+
"@intlayer/core": "5.8.1",
|
|
86
|
+
"react-intlayer": "5.8.1",
|
|
87
|
+
"@intlayer/webpack": "5.8.1"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
90
|
"@types/node": "^24.2.1",
|
|
@@ -103,18 +103,18 @@
|
|
|
103
103
|
"@utils/ts-config": "1.0.4",
|
|
104
104
|
"@utils/ts-config-types": "1.0.4",
|
|
105
105
|
"@utils/tsup-config": "1.0.4",
|
|
106
|
-
"intlayer": "5.8.
|
|
106
|
+
"intlayer": "5.8.1"
|
|
107
107
|
},
|
|
108
108
|
"peerDependencies": {
|
|
109
109
|
"next": ">=14.0.0",
|
|
110
110
|
"react": ">=16.0.0",
|
|
111
111
|
"react-dom": ">=16.0.0",
|
|
112
|
-
"@intlayer/
|
|
113
|
-
"intlayer": "5.8.
|
|
114
|
-
"@intlayer/
|
|
115
|
-
"@intlayer/
|
|
116
|
-
"
|
|
117
|
-
"
|
|
112
|
+
"@intlayer/webpack": "5.8.1",
|
|
113
|
+
"@intlayer/dictionaries-entry": "5.8.1",
|
|
114
|
+
"@intlayer/config": "5.8.1",
|
|
115
|
+
"@intlayer/core": "5.8.1",
|
|
116
|
+
"intlayer": "5.8.1",
|
|
117
|
+
"react-intlayer": "5.8.1"
|
|
118
118
|
},
|
|
119
119
|
"engines": {
|
|
120
120
|
"node": ">=14.18"
|