@koine/next 1.0.61 → 1.0.64
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/package.json +7 -7
- package/types-i18n.d.ts +8 -6
package/package.json
CHANGED
|
@@ -18,14 +18,10 @@
|
|
|
18
18
|
"peerDependencies": {
|
|
19
19
|
"react": "^16.8 || ^17 || ^18",
|
|
20
20
|
"next": "^12.2.3",
|
|
21
|
-
"@koine/utils": "1.0.
|
|
21
|
+
"@koine/utils": "1.0.64",
|
|
22
22
|
"framer-motion": "^6.5.1",
|
|
23
|
-
"
|
|
24
|
-
"@mui/material": "^5.9.1",
|
|
25
|
-
"@emotion/react": "^11.9.3",
|
|
23
|
+
"@koine/react": "1.0.64",
|
|
26
24
|
"styled-components": "^5.3.5",
|
|
27
|
-
"react-hook-form": "^7.33.1",
|
|
28
|
-
"@koine/react": "1.0.61",
|
|
29
25
|
"@mui/base": "^5.0.0-alpha.90",
|
|
30
26
|
"react-icons": "^4.4.0",
|
|
31
27
|
"date-fns": "^2.29.1",
|
|
@@ -33,15 +29,19 @@
|
|
|
33
29
|
"@tiptap/react": "^2.0.0-beta.114",
|
|
34
30
|
"@tiptap/starter-kit": "^2.0.0-beta.191",
|
|
35
31
|
"@kuus/yup": "^1.0.0-beta.4",
|
|
32
|
+
"react-hook-form": "^7.33.1",
|
|
36
33
|
"type-fest": "^2.17.0",
|
|
37
34
|
"react-popper": "^2.3.0",
|
|
38
35
|
"tslib": "^2.4.0",
|
|
36
|
+
"next-auth": "^4.10.2",
|
|
37
|
+
"@mui/material": "^5.9.1",
|
|
38
|
+
"@emotion/react": "^11.9.3",
|
|
39
39
|
"@emotion/server": "^11.4.0",
|
|
40
40
|
"next-translate": "^1.5.0",
|
|
41
41
|
"next-seo": "^5.5.0",
|
|
42
42
|
"@hookform/resolvers": "^2.9.6"
|
|
43
43
|
},
|
|
44
|
-
"version": "1.0.
|
|
44
|
+
"version": "1.0.64",
|
|
45
45
|
"module": "./index.js",
|
|
46
46
|
"types": "./index.d.ts"
|
|
47
47
|
}
|
package/types-i18n.d.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* "~": typeof import("./locales/en/~.json");
|
|
16
16
|
* "_": typeof import("./locales/en/_.json");
|
|
17
17
|
* "$team": typeof import("./locales/en/$team.json");
|
|
18
|
-
* "home": typeof import("./locales/en
|
|
18
|
+
* "~home": typeof import("./locales/en/~home.json");
|
|
19
19
|
* "Header": typeof import("./locales/en/Header.json");
|
|
20
20
|
* }
|
|
21
21
|
* }
|
|
@@ -35,11 +35,13 @@
|
|
|
35
35
|
|
|
36
36
|
* Best to follow a convention to name the files which become the namespaces:
|
|
37
37
|
*
|
|
38
|
-
* -
|
|
39
|
-
* - `_`: for app wide **common** translations
|
|
40
|
-
* - `$
|
|
41
|
-
* -
|
|
42
|
-
*
|
|
38
|
+
* - `~.json`: for app wide **urls** translated definitions
|
|
39
|
+
* - `_.json`: for app wide **common** translations
|
|
40
|
+
* - `$data.json`: dollar prefix for static **data** like arrays, objects, .etc
|
|
41
|
+
* - `~route-name.json`: lower cased for **route** specific data, we use `~`
|
|
42
|
+
* instead of `/` for nested folders pathnames, e.g. `/my/account-settings`
|
|
43
|
+
* would use a `~my~account-settings.json` file.
|
|
44
|
+
* - `ComponentName.json`: pascal cased for **components** specific data
|
|
43
45
|
*/
|
|
44
46
|
export declare type TranslationsDictionary = Koine.NextTranslations;
|
|
45
47
|
export declare type TranslateNamespace = Extract<keyof TranslationsDictionary, string>;
|