@koine/next 1.0.79 → 1.0.83
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/Seo.d.ts +14 -0
- package/Seo.js +14 -0
- package/config/index.js +1 -1
- package/node/Seo.js +14 -0
- package/node/config/index.js +1 -1
- package/package.json +4 -3
package/Seo.d.ts
CHANGED
|
@@ -22,6 +22,20 @@ export declare type SeoProps = Omit<NextSeoProps, "additionalMetaTags" | "additi
|
|
|
22
22
|
* See also:
|
|
23
23
|
* - https://github.com/catnose99/next-head-seo
|
|
24
24
|
* - https://nextjs.org/docs/api-reference/next/head
|
|
25
|
+
*
|
|
26
|
+
* NB: on the homepage you usually want to customize the `titleTemplate` to avoid
|
|
27
|
+
* doubled app name. Assuming your default seo configuration is something like:
|
|
28
|
+
*
|
|
29
|
+
* ```js
|
|
30
|
+
* {
|
|
31
|
+
* titleTemplate: "%s | MyApp"
|
|
32
|
+
* }
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* On the homepage you migh want to override it, e.g.:
|
|
36
|
+
* ```js
|
|
37
|
+
* <Seo title="MyApp | Some description" titleTemplate="%s" />
|
|
38
|
+
* ```
|
|
25
39
|
*/
|
|
26
40
|
export declare const Seo: import("react").MemoExoticComponent<(props: SeoProps) => JSX.Element>;
|
|
27
41
|
export default Seo;
|
package/Seo.js
CHANGED
|
@@ -11,6 +11,20 @@ var _Seo = function (props) {
|
|
|
11
11
|
* See also:
|
|
12
12
|
* - https://github.com/catnose99/next-head-seo
|
|
13
13
|
* - https://nextjs.org/docs/api-reference/next/head
|
|
14
|
+
*
|
|
15
|
+
* NB: on the homepage you usually want to customize the `titleTemplate` to avoid
|
|
16
|
+
* doubled app name. Assuming your default seo configuration is something like:
|
|
17
|
+
*
|
|
18
|
+
* ```js
|
|
19
|
+
* {
|
|
20
|
+
* titleTemplate: "%s | MyApp"
|
|
21
|
+
* }
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* On the homepage you migh want to override it, e.g.:
|
|
25
|
+
* ```js
|
|
26
|
+
* <Seo title="MyApp | Some description" titleTemplate="%s" />
|
|
27
|
+
* ```
|
|
14
28
|
*/
|
|
15
29
|
export var Seo = memo(_Seo);
|
|
16
30
|
export default Seo;
|
package/config/index.js
CHANGED
|
@@ -225,7 +225,7 @@ export function withKoine(_a) {
|
|
|
225
225
|
// "@koine/react/?(((\\w*)?/?)*)": {
|
|
226
226
|
// transform: "@koine/react/{{ matches.[1] }}/{{member}}",
|
|
227
227
|
// },
|
|
228
|
-
"@koine/api": { transform: "@koine/api/{{member}}" }, "@koine/next": { transform: "@koine/next/{{member}}" }, "@koine/utils": { transform: "@koine/utils/{{member}}" } }) }),
|
|
228
|
+
"@koine/api": { transform: "@koine/api/{{member}}" }, "@koine/dom": { transform: "@koine/dom/{{member}}" }, "@koine/next": { transform: "@koine/next/{{member}}" }, "@koine/utils": { transform: "@koine/utils/{{member}}" } }) }),
|
|
229
229
|
// @see https://github.com/vercel/next.js/issues/7322#issuecomment-887330111
|
|
230
230
|
reactStrictMode: true }, custom);
|
|
231
231
|
if (svg) {
|
package/node/Seo.js
CHANGED
|
@@ -15,6 +15,20 @@ var _Seo = function (props) {
|
|
|
15
15
|
* See also:
|
|
16
16
|
* - https://github.com/catnose99/next-head-seo
|
|
17
17
|
* - https://nextjs.org/docs/api-reference/next/head
|
|
18
|
+
*
|
|
19
|
+
* NB: on the homepage you usually want to customize the `titleTemplate` to avoid
|
|
20
|
+
* doubled app name. Assuming your default seo configuration is something like:
|
|
21
|
+
*
|
|
22
|
+
* ```js
|
|
23
|
+
* {
|
|
24
|
+
* titleTemplate: "%s | MyApp"
|
|
25
|
+
* }
|
|
26
|
+
* ```
|
|
27
|
+
*
|
|
28
|
+
* On the homepage you migh want to override it, e.g.:
|
|
29
|
+
* ```js
|
|
30
|
+
* <Seo title="MyApp | Some description" titleTemplate="%s" />
|
|
31
|
+
* ```
|
|
18
32
|
*/
|
|
19
33
|
exports.Seo = (0, react_1.memo)(_Seo);
|
|
20
34
|
exports.default = exports.Seo;
|
package/node/config/index.js
CHANGED
|
@@ -235,7 +235,7 @@ function withKoine(_a) {
|
|
|
235
235
|
// "@koine/react/?(((\\w*)?/?)*)": {
|
|
236
236
|
// transform: "@koine/react/{{ matches.[1] }}/{{member}}",
|
|
237
237
|
// },
|
|
238
|
-
"@koine/api": { transform: "@koine/api/{{member}}" }, "@koine/next": { transform: "@koine/next/{{member}}" }, "@koine/utils": { transform: "@koine/utils/{{member}}" } }) }),
|
|
238
|
+
"@koine/api": { transform: "@koine/api/{{member}}" }, "@koine/dom": { transform: "@koine/dom/{{member}}" }, "@koine/next": { transform: "@koine/next/{{member}}" }, "@koine/utils": { transform: "@koine/utils/{{member}}" } }) }),
|
|
239
239
|
// @see https://github.com/vercel/next.js/issues/7322#issuecomment-887330111
|
|
240
240
|
reactStrictMode: true }, custom);
|
|
241
241
|
if (svg) {
|
package/package.json
CHANGED
|
@@ -17,10 +17,11 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"react": "^18.2.0",
|
|
19
19
|
"next": "^12.2.5",
|
|
20
|
-
"@koine/utils": "1.0.
|
|
20
|
+
"@koine/utils": "1.0.83",
|
|
21
|
+
"ts-debounce": "^4.0.0",
|
|
21
22
|
"date-fns-tz": "^1.3.7",
|
|
22
23
|
"framer-motion": "^7.2.1",
|
|
23
|
-
"@koine/react": "1.0.
|
|
24
|
+
"@koine/react": "1.0.83",
|
|
24
25
|
"styled-components": "^5.3.5",
|
|
25
26
|
"@mui/base": "^5.0.0-alpha.95",
|
|
26
27
|
"react-icons": "^4.4.0",
|
|
@@ -42,7 +43,7 @@
|
|
|
42
43
|
"@hookform/resolvers": "^2.9.7"
|
|
43
44
|
},
|
|
44
45
|
"peerDependencies": {},
|
|
45
|
-
"version": "1.0.
|
|
46
|
+
"version": "1.0.83",
|
|
46
47
|
"module": "./index.js",
|
|
47
48
|
"types": "./index.d.ts"
|
|
48
49
|
}
|