@koine/next 1.0.79 → 1.0.80

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.
Files changed (4) hide show
  1. package/Seo.d.ts +14 -0
  2. package/Seo.js +14 -0
  3. package/node/Seo.js +14 -0
  4. 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/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/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.79",
20
+ "@koine/utils": "1.0.80",
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.79",
24
+ "@koine/react": "1.0.80",
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.79",
46
+ "version": "1.0.80",
46
47
  "module": "./index.js",
47
48
  "types": "./index.d.ts"
48
49
  }