@koine/next 2.0.0-beta.9 → 2.0.0-beta.90

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 (178) hide show
  1. package/12/AnalyticsGoogle.d.ts +1 -2
  2. package/12/DisableErrorOverlay.d.ts +1 -6
  3. package/12/Seo.d.ts +8 -26
  4. package/12/SeoDefaults.d.ts +3 -4
  5. package/12/seoBuildTags.d.ts +2 -17
  6. package/12/types.d.ts +2 -0
  7. package/12.cjs.d.ts +1 -0
  8. package/12.cjs.default.js +1 -0
  9. package/12.cjs.js +34 -0
  10. package/12.cjs.mjs +2 -0
  11. package/12.d.ts +3 -0
  12. package/12.esm.js +24 -0
  13. package/README.md +0 -12
  14. package/ThemeContext.cjs.d.ts +2 -0
  15. package/ThemeContext.cjs.default.js +1 -0
  16. package/ThemeContext.cjs.js +11 -0
  17. package/ThemeContext.cjs.mjs +2 -0
  18. package/ThemeContext.d.ts +11 -0
  19. package/ThemeContext.esm.js +6 -0
  20. package/ThemeProvider.cjs.d.ts +2 -0
  21. package/ThemeProvider.cjs.default.js +1 -0
  22. package/ThemeProvider.cjs.js +47 -0
  23. package/ThemeProvider.cjs.mjs +2 -0
  24. package/ThemeProvider.d.ts +17 -0
  25. package/ThemeProvider.esm.js +38 -0
  26. package/config.cjs.d.ts +1 -0
  27. package/config.cjs.default.js +1 -0
  28. package/config.cjs.js +29 -0
  29. package/config.cjs.mjs +2 -0
  30. package/config.d.ts +8 -0
  31. package/config.esm.js +25 -0
  32. package/index.cjs.d.ts +1 -0
  33. package/index.cjs.default.js +1 -0
  34. package/index.cjs.js +19 -0
  35. package/index.cjs.mjs +2 -0
  36. package/index.d.ts +3 -1
  37. package/index.esm.js +8 -0
  38. package/load.cjs.d.ts +2 -0
  39. package/load.cjs.default.js +1 -0
  40. package/load.cjs.js +15 -0
  41. package/load.cjs.mjs +2 -0
  42. package/load.d.ts +0 -8
  43. package/{load.mjs → load.esm.js} +3 -6
  44. package/package.json +49 -89
  45. package/typings.d.ts +39 -50
  46. package/useTheme.cjs.d.ts +2 -0
  47. package/useTheme.cjs.default.js +1 -0
  48. package/useTheme.cjs.js +13 -0
  49. package/useTheme.cjs.mjs +2 -0
  50. package/useTheme.d.ts +4 -0
  51. package/useTheme.esm.js +8 -0
  52. package/12/AnalyticsGoogle.js +0 -79
  53. package/12/AnalyticsGoogle.mjs +0 -60
  54. package/12/DisableErrorOverlay.js +0 -31
  55. package/12/DisableErrorOverlay.mjs +0 -16
  56. package/12/DynamicNamespaces.d.ts +0 -13
  57. package/12/DynamicNamespaces.js +0 -23
  58. package/12/DynamicNamespaces.mjs +0 -8
  59. package/12/Favicon.d.ts +0 -4
  60. package/12/Favicon.js +0 -29
  61. package/12/Favicon.mjs +0 -10
  62. package/12/Link.d.ts +0 -10
  63. package/12/Link.js +0 -38
  64. package/12/Link.mjs +0 -20
  65. package/12/NextProgress.d.ts +0 -25
  66. package/12/NextProgress.js +0 -69
  67. package/12/NextProgress.mjs +0 -51
  68. package/12/Seo.js +0 -29
  69. package/12/Seo.mjs +0 -30
  70. package/12/SeoDefaults.js +0 -31
  71. package/12/SeoDefaults.mjs +0 -14
  72. package/12/T.d.ts +0 -16
  73. package/12/T.js +0 -43
  74. package/12/T.mjs +0 -27
  75. package/12/ThemeContext.d.ts +0 -17
  76. package/12/ThemeContext.js +0 -25
  77. package/12/ThemeContext.mjs +0 -7
  78. package/12/ThemeProvider.d.ts +0 -35
  79. package/12/ThemeProvider.js +0 -256
  80. package/12/ThemeProvider.mjs +0 -245
  81. package/12/TransText.d.ts +0 -3
  82. package/12/TransText.js +0 -23
  83. package/12/TransText.mjs +0 -4
  84. package/12/app/AppHead.d.ts +0 -3
  85. package/12/app/AppHead.js +0 -31
  86. package/12/app/AppHead.mjs +0 -12
  87. package/12/app/AppMain.d.ts +0 -35
  88. package/12/app/AppMain.js +0 -6
  89. package/12/app/AppMain.mjs +0 -1
  90. package/12/app/css/AppMain.d.ts +0 -9
  91. package/12/app/css/AppMain.js +0 -39
  92. package/12/app/css/AppMain.mjs +0 -24
  93. package/12/app/css/AppTheme.d.ts +0 -11
  94. package/12/app/css/AppTheme.js +0 -33
  95. package/12/app/css/AppTheme.mjs +0 -17
  96. package/12/app/css/auth/index.d.ts +0 -11
  97. package/12/app/css/auth/index.js +0 -40
  98. package/12/app/css/auth/index.mjs +0 -24
  99. package/12/app/css/index.d.ts +0 -54
  100. package/12/app/css/index.js +0 -36
  101. package/12/app/css/index.mjs +0 -65
  102. package/12/app/index.d.ts +0 -2
  103. package/12/app/index.js +0 -7
  104. package/12/app/index.mjs +0 -2
  105. package/12/app/sc/AppMain.d.ts +0 -11
  106. package/12/app/sc/AppMain.js +0 -70
  107. package/12/app/sc/AppMain.mjs +0 -58
  108. package/12/app/sc/AppTheme.d.ts +0 -14
  109. package/12/app/sc/AppTheme.js +0 -33
  110. package/12/app/sc/AppTheme.mjs +0 -16
  111. package/12/app/sc/auth/index.d.ts +0 -11
  112. package/12/app/sc/auth/index.js +0 -40
  113. package/12/app/sc/auth/index.mjs +0 -24
  114. package/12/app/sc/index.d.ts +0 -56
  115. package/12/app/sc/index.js +0 -36
  116. package/12/app/sc/index.mjs +0 -67
  117. package/12/document/Document.d.ts +0 -15
  118. package/12/document/Document.js +0 -49
  119. package/12/document/Document.mjs +0 -38
  120. package/12/document/css/index.d.ts +0 -17
  121. package/12/document/css/index.js +0 -60
  122. package/12/document/css/index.mjs +0 -53
  123. package/12/document/index.d.ts +0 -2
  124. package/12/document/index.js +0 -19
  125. package/12/document/index.mjs +0 -2
  126. package/12/document/sc/index.d.ts +0 -19
  127. package/12/document/sc/index.js +0 -73
  128. package/12/document/sc/index.mjs +0 -65
  129. package/12/getT.d.ts +0 -9
  130. package/12/getT.js +0 -23
  131. package/12/getT.mjs +0 -8
  132. package/12/index.d.ts +0 -24
  133. package/12/index.js +0 -100
  134. package/12/index.mjs +0 -27
  135. package/12/seoBuildTags.js +0 -126
  136. package/12/seoBuildTags.mjs +0 -121
  137. package/12/to.d.ts +0 -24
  138. package/12/to.js +0 -31
  139. package/12/to.mjs +0 -19
  140. package/12/translationAsOptions.d.ts +0 -3
  141. package/12/translationAsOptions.js +0 -19
  142. package/12/translationAsOptions.mjs +0 -9
  143. package/12/types-i18n.d.ts +0 -118
  144. package/12/types-i18n.js +0 -15
  145. package/12/types-i18n.mjs +0 -12
  146. package/12/types-seo.d.ts +0 -7
  147. package/12/types-seo.js +0 -4
  148. package/12/types-seo.mjs +0 -1
  149. package/12/useBackUrl.d.ts +0 -2
  150. package/12/useBackUrl.js +0 -47
  151. package/12/useBackUrl.mjs +0 -28
  152. package/12/useDateFormat.d.ts +0 -7
  153. package/12/useDateFormat.js +0 -42
  154. package/12/useDateFormat.mjs +0 -26
  155. package/12/useForm.d.ts +0 -27
  156. package/12/useForm.js +0 -65
  157. package/12/useForm.mjs +0 -47
  158. package/12/useLocale.d.ts +0 -2
  159. package/12/useLocale.js +0 -25
  160. package/12/useLocale.mjs +0 -6
  161. package/12/useT.d.ts +0 -4
  162. package/12/useT.js +0 -58
  163. package/12/useT.mjs +0 -39
  164. package/12/useTheme.d.ts +0 -7
  165. package/12/useTheme.js +0 -23
  166. package/12/useTheme.mjs +0 -7
  167. package/12/useTo.d.ts +0 -3
  168. package/12/useTo.js +0 -26
  169. package/12/useTo.mjs +0 -8
  170. package/config/index.d.ts +0 -160
  171. package/config/index.js +0 -317
  172. package/config/index.mjs +0 -315
  173. package/getSiteUrl.d.ts +0 -8
  174. package/getSiteUrl.js +0 -24
  175. package/getSiteUrl.mjs +0 -10
  176. package/index.js +0 -20
  177. package/index.mjs +0 -2
  178. package/load.js +0 -31
package/package.json CHANGED
@@ -2,99 +2,59 @@
2
2
  "name": "@koine/next",
3
3
  "sideEffects": false,
4
4
  "dependencies": {
5
- "@koine/browser": "2.0.0-beta.9",
6
- "@koine/react": "2.0.0-beta.9",
7
- "@koine/utils": "2.0.0-beta.9"
5
+ "@koine/browser": "2.0.0-beta.90",
6
+ "@koine/utils": "2.0.0-beta.90",
7
+ "@koine/i18n": "2.0.0-beta.90"
8
+ },
9
+ "peerDependencies": {
10
+ "next": "^14.0.4",
11
+ "next-seo": "^6.4.0",
12
+ "react": "^18.2.0"
8
13
  },
9
14
  "peerDependenciesMeta": {
10
- "@emotion/react": {
11
- "optional": true
12
- },
13
- "@emotion/server": {
14
- "optional": true
15
- },
16
- "@emotion/styled": {
17
- "optional": true
18
- },
19
- "@hookform/resolvers": {
20
- "optional": true
21
- },
22
- "@kuus/yup": {
23
- "optional": true
24
- },
25
- "@mui/base": {
26
- "optional": true
27
- },
28
- "@mui/material": {
29
- "optional": true
30
- },
31
- "@tiptap/react": {
32
- "optional": true
33
- },
34
- "@tiptap/starter-kit": {
35
- "optional": true
36
- },
37
- "date-fns": {
38
- "optional": true
39
- },
40
- "framer-motion": {
41
- "optional": true
42
- },
43
- "next-auth": {
44
- "optional": true
45
- },
46
15
  "next-seo": {
47
16
  "optional": true
48
- },
49
- "next-translate": {
50
- "optional": true
51
- },
52
- "react-hook-form": {
53
- "optional": true
54
- },
55
- "react-icons": {
56
- "optional": true
57
- },
58
- "react-is": {
59
- "optional": true
60
- },
61
- "react-popper": {
62
- "optional": true
63
- },
64
- "react-swipeable": {
65
- "optional": true
66
- },
67
- "styled-components": {
68
- "optional": true
69
- },
70
- "tailwindcss": {
71
- "optional": true
72
17
  }
73
18
  },
74
- "peerDependencies": {
75
- "@hookform/resolvers": "^3.1.0",
76
- "@kuus/yup": "1.0.0-beta.7",
77
- "@mui/base": "5.0.0-beta.4",
78
- "@mui/utils": "^5.13.6",
79
- "@tiptap/react": "2.0.3",
80
- "@tiptap/starter-kit": "2.0.3",
81
- "date-fns": "^2.30.0",
82
- "date-fns-tz": "^2.0.0",
83
- "framer-motion": "^10.12.17",
84
- "next": "^13.4.7",
85
- "next-auth": "^4.22.1",
86
- "next-seo": "^6.1.0",
87
- "next-translate": "^2.4.2",
88
- "react": "^18.2.0",
89
- "react-hook-form": "^7.45.0",
90
- "react-icons": "^4.10.1",
91
- "react-swipeable": "^7.0.1",
92
- "styled-components": "^5.3.11",
93
- "tslib": "^2.5.3",
94
- "type-fest": "^3.12.0"
19
+ "exports": {
20
+ "./package.json": "./package.json",
21
+ ".": {
22
+ "module": "./index.esm.js",
23
+ "import": "./index.cjs.mjs",
24
+ "default": "./index.cjs.js"
25
+ },
26
+ "./12": {
27
+ "module": "./12.esm.js",
28
+ "import": "./12.cjs.mjs",
29
+ "default": "./12.cjs.js"
30
+ },
31
+ "./config": {
32
+ "module": "./config.esm.js",
33
+ "import": "./config.cjs.mjs",
34
+ "default": "./config.cjs.js"
35
+ },
36
+ "./load": {
37
+ "module": "./load.esm.js",
38
+ "import": "./load.cjs.mjs",
39
+ "default": "./load.cjs.js"
40
+ },
41
+ "./ThemeContext": {
42
+ "module": "./ThemeContext.esm.js",
43
+ "import": "./ThemeContext.cjs.mjs",
44
+ "default": "./ThemeContext.cjs.js"
45
+ },
46
+ "./ThemeProvider": {
47
+ "module": "./ThemeProvider.esm.js",
48
+ "import": "./ThemeProvider.cjs.mjs",
49
+ "default": "./ThemeProvider.cjs.js"
50
+ },
51
+ "./useTheme": {
52
+ "module": "./useTheme.esm.js",
53
+ "import": "./useTheme.cjs.mjs",
54
+ "default": "./useTheme.cjs.js"
55
+ }
95
56
  },
96
- "module": "./index.mjs",
97
- "main": "./index.js",
98
- "types": "./index.d.ts",
99
- "version": "2.0.0-beta.9"
100
- }
57
+ "module": "./index.esm.js",
58
+ "main": "./index.cjs.js",
59
+ "version": "2.0.0-beta.90"
60
+ }
package/typings.d.ts CHANGED
@@ -12,61 +12,50 @@ declare module "*.svg" {
12
12
  }
13
13
 
14
14
  /**
15
- * Extend NodeJS `process.env` with variables used by @koine
15
+ * [`next.js` pages router](https://nextjs.org/docs/pages) utility type
16
16
  */
17
- declare namespace NodeJS {
18
- interface ProcessEnv {
19
- NEXT_PUBLIC_APP_URL: string;
20
- }
21
- }
17
+ type NextGetStaticPathsResult<Params extends { [key: string]: any }> = Omit<
18
+ import("next").GetStaticPathsResult,
19
+ "paths"
20
+ > & {
21
+ paths: Array<string | { params: Params; locale?: string }>;
22
+ };
22
23
 
23
24
  /**
24
- * Types specifically related to `@koine/next` exposed on the global unique
25
- * namespace `Koine`. Most of the types here should be prefixed by `Next`, e.g.
26
- * `NextSomeFeature` accessible anywhere from `Koine.NextSomeFeature`
25
+ * [`next.js` pages router](https://nextjs.org/docs/pages) utility type
27
26
  */
28
- declare namespace Koine {
29
- /**
30
- * Default SEO data structure expected by the `<Seo>` component's prop `seo`
31
- */
32
- type NextSeo = import("./12/types-seo").SeoData;
27
+ declare type NextPageDataStaticPaths<Params extends { [key: string]: any }> = (
28
+ context: import("next").GetStaticPathsContext,
29
+ ) =>
30
+ | Promise<NextGetStaticPathsResult<Params>>
31
+ | NextGetStaticPathsResult<Params>;
33
32
 
34
- /**
35
- * Translations dictionary extracted from JSON files.
36
- * You need to augment this type with something like:
37
- *
38
- * ```ts
39
- * declare namespace Koine {
40
- * interface Translations {
41
- * "~": typeof import("./locales/en/~.json");
42
- * "_": typeof import("./locales/en/_.json");
43
- * "$team": typeof import("./locales/en/$team.json");
44
- * "home": typeof import("./locales/en/home.json");
45
- * "Header": typeof import("./locales/en/Header.json");
46
- * }
47
- * }
48
- * ```
49
- *
50
- * Best to follow a convention to name the files which become the namespaces:
51
- *
52
- * - `~`: for app wide **urls** translated definitions
53
- * - `_`: for app wide **common** translations
54
- * - `${data}`: dollar prefix for static **data** like arrays, objects, .etc
55
- * - `{route-name}`: lower cased for **route** specific data
56
- * - `{ComponentName}`: pascal cased for **components** specific data
57
- *
58
- * This works through using [type augmentation](https://www.typescriptlang.org/docs/handbook/declaration-merging.html#module-augmentation)
59
- * and [merging interfaces](https://www.typescriptlang.org/docs/handbook/declaration-merging.html#merging-interfaces).
60
- */
61
- // eslint-disable-next-line @typescript-eslint/no-empty-interface
62
- interface Translations {}
63
- }
33
+ /**
34
+ * [`next.js` pages router](https://nextjs.org/docs/pages) utility type
35
+ */
36
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
37
+ declare type NextPageDataStatic<P extends { [key: string]: any }> =
38
+ import("next").GetStaticProps<P, import("querystring").ParsedUrlQuery>;
64
39
 
65
40
  /**
66
- * List here the global variables used by third party scripts supported within
67
- * the `koine` ecosystem. For instance Google Analytics globally available
68
- * variables.
41
+ * [`next.js` pages router](https://nextjs.org/docs/pages) utility type
69
42
  */
70
- declare interface Window {
71
- gtag: (...args: Record<string, unknown>[]) => Record<string, unknown>;
72
- }
43
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
44
+ declare type NextPageDataServer<P extends { [key: string]: any }> =
45
+ import("next").GetServerSideProps<P, import("querystring").ParsedUrlQuery>;
46
+
47
+ /**
48
+ * Workaround to re-create the type `RouteProperties` that is not exported by
49
+ * `next.js`
50
+ */
51
+ declare type NextRouteProperties = Parameters<
52
+ import("next/router").Router["getRouteInfo"]
53
+ >[0]["routeProps"];
54
+
55
+ /**
56
+ * Extend NodeJS `process.env` with variables used by @koine
57
+ */
58
+ // declare namespace NodeJS {
59
+ // interface ProcessEnv {
60
+ // }
61
+ // }
@@ -0,0 +1,2 @@
1
+ export * from "./useTheme";
2
+ export { default } from "./useTheme";
@@ -0,0 +1 @@
1
+ exports._default = require('./useTheme.cjs.js').default;
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var react = require('react');
6
+ var ThemeContext = require('./ThemeContext.cjs.js');
7
+
8
+ /**
9
+ * @borrows [next-themes](https://github.com/pacocoursey/next-themes)
10
+ */const useTheme=()=>react.useContext(ThemeContext.ThemeContext);
11
+
12
+ exports["default"] = useTheme;
13
+ exports.useTheme = useTheme;
@@ -0,0 +1,2 @@
1
+ export * from './useTheme.cjs.js';
2
+ export { _default as default } from './useTheme.cjs.default.js';
package/useTheme.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import { type ThemeContextProps } from "./ThemeContext";
2
+ export type UseThemeProps = ThemeContextProps;
3
+ export declare const useTheme: () => ThemeContextProps;
4
+ export default useTheme;
@@ -0,0 +1,8 @@
1
+ import { useContext } from 'react';
2
+ import { ThemeContext } from './ThemeContext.esm.js';
3
+
4
+ /**
5
+ * @borrows [next-themes](https://github.com/pacocoursey/next-themes)
6
+ */const useTheme=()=>useContext(ThemeContext);
7
+
8
+ export { useTheme as default, useTheme };
@@ -1,79 +0,0 @@
1
- "use client";
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- function _export(target, all) {
7
- for(var name in all)Object.defineProperty(target, name, {
8
- enumerable: true,
9
- get: all[name]
10
- });
11
- }
12
- _export(exports, {
13
- AnalyticsGoogle: function() {
14
- return AnalyticsGoogle;
15
- },
16
- default: function() {
17
- return _default;
18
- }
19
- });
20
- const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
21
- const _jsxruntime = require("react/jsx-runtime");
22
- const _router = require("next/router");
23
- const _script = /*#__PURE__*/ _interop_require_default._(require("next/script"));
24
- const _react = require("react");
25
- const _gtagPageview = /*#__PURE__*/ _interop_require_default._(require("@koine/browser/gtagPageview"));
26
- const AnalyticsGoogle = ({ id })=>{
27
- const uid = id || process.env["NEXT_PUBLIC_GTM_ID"];
28
- const { events, asPath, query } = (0, _router.useRouter)();
29
- const [ready, setReady] = (0, _react.useState)(false);
30
- const [routed, setRouted] = (0, _react.useState)(false);
31
- // const [url, setUrl] = useState("");
32
- (0, _react.useEffect)(()=>{
33
- const handleRouteChange = ()=>{
34
- setRouted(true);
35
- };
36
- events.on("routeChangeComplete", handleRouteChange);
37
- return ()=>{
38
- events.off("routeChangeComplete", handleRouteChange);
39
- };
40
- }, [
41
- events
42
- ]);
43
- (0, _react.useEffect)(()=>{
44
- if (routed && ready && asPath) {
45
- // const search = query;
46
- (0, _gtagPageview.default)(asPath);
47
- }
48
- }, [
49
- asPath,
50
- query,
51
- routed,
52
- ready
53
- ]);
54
- if (!uid) {
55
- return null;
56
- }
57
- return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
58
- children: [
59
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_script.default, {
60
- id: "google-tagmanager",
61
- src: `https://www.googletagmanager.com/gtag/js?id=${id}`,
62
- strategy: "afterInteractive",
63
- onLoad: ()=>setReady(true)
64
- }),
65
- /*#__PURE__*/ (0, _jsxruntime.jsx)(_script.default, {
66
- id: "google-analytics",
67
- strategy: "afterInteractive",
68
- children: `
69
- window.dataLayer = window.dataLayer || [];
70
- function gtag(){window.dataLayer.push(arguments);}
71
- gtag('js', new Date());
72
-
73
- gtag('config', '${id}', { 'send_page_view': false });
74
- `
75
- })
76
- ]
77
- });
78
- };
79
- const _default = AnalyticsGoogle;
@@ -1,60 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
3
- import { useRouter } from "next/router";
4
- import Script from "next/script";
5
- import { useEffect, useState } from "react";
6
- import gtagPageview from "@koine/browser/gtagPageview";
7
- export const AnalyticsGoogle = ({ id })=>{
8
- const uid = id || process.env["NEXT_PUBLIC_GTM_ID"];
9
- const { events, asPath, query } = useRouter();
10
- const [ready, setReady] = useState(false);
11
- const [routed, setRouted] = useState(false);
12
- // const [url, setUrl] = useState("");
13
- useEffect(()=>{
14
- const handleRouteChange = ()=>{
15
- setRouted(true);
16
- };
17
- events.on("routeChangeComplete", handleRouteChange);
18
- return ()=>{
19
- events.off("routeChangeComplete", handleRouteChange);
20
- };
21
- }, [
22
- events
23
- ]);
24
- useEffect(()=>{
25
- if (routed && ready && asPath) {
26
- // const search = query;
27
- gtagPageview(asPath);
28
- }
29
- }, [
30
- asPath,
31
- query,
32
- routed,
33
- ready
34
- ]);
35
- if (!uid) {
36
- return null;
37
- }
38
- return /*#__PURE__*/ _jsxs(_Fragment, {
39
- children: [
40
- /*#__PURE__*/ _jsx(Script, {
41
- id: "google-tagmanager",
42
- src: `https://www.googletagmanager.com/gtag/js?id=${id}`,
43
- strategy: "afterInteractive",
44
- onLoad: ()=>setReady(true)
45
- }),
46
- /*#__PURE__*/ _jsx(Script, {
47
- id: "google-analytics",
48
- strategy: "afterInteractive",
49
- children: `
50
- window.dataLayer = window.dataLayer || [];
51
- function gtag(){window.dataLayer.push(arguments);}
52
- gtag('js', new Date());
53
-
54
- gtag('config', '${id}', { 'send_page_view': false });
55
- `
56
- })
57
- ]
58
- });
59
- };
60
- export default AnalyticsGoogle;
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- function _export(target, all) {
6
- for(var name in all)Object.defineProperty(target, name, {
7
- enumerable: true,
8
- get: all[name]
9
- });
10
- }
11
- _export(exports, {
12
- DisableErrorOverlay: function() {
13
- return DisableErrorOverlay;
14
- },
15
- default: function() {
16
- return _default;
17
- }
18
- });
19
- const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
20
- const _jsxruntime = require("react/jsx-runtime");
21
- const _head = /*#__PURE__*/ _interop_require_default._(require("next/head"));
22
- const DisableErrorOverlay = ()=>{
23
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(_head.default, {
24
- children: process.env["NODE_ENV"] !== "production" && /*#__PURE__*/ (0, _jsxruntime.jsx)("script", {
25
- dangerouslySetInnerHTML: {
26
- __html: `window.addEventListener('error',event =>{event.stopImmediatePropagation()});window.addEventListener('unhandledrejection',event =>{event.stopImmediatePropagation()});`
27
- }
28
- })
29
- });
30
- };
31
- const _default = DisableErrorOverlay;
@@ -1,16 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import Head from "next/head";
3
- /**
4
- * Disable error overlay during `dev`
5
- *
6
- * @see https://github.com/vercel/next.js/discussions/13387#discussioncomment-101564
7
- */ export const DisableErrorOverlay = ()=>{
8
- return /*#__PURE__*/ _jsx(Head, {
9
- children: process.env["NODE_ENV"] !== "production" && /*#__PURE__*/ _jsx("script", {
10
- dangerouslySetInnerHTML: {
11
- __html: `window.addEventListener('error',event =>{event.stopImmediatePropagation()});window.addEventListener('unhandledrejection',event =>{event.stopImmediatePropagation()});`
12
- }
13
- })
14
- });
15
- };
16
- export default DisableErrorOverlay;
@@ -1,13 +0,0 @@
1
- import type { DynamicNamespacesProps as BaseDynamicNamespacesProps } from "next-translate";
2
- import BaseDynamicNamespaces from "next-translate/DynamicNamespaces";
3
- import type { TranslateNamespace } from "./types-i18n";
4
- export type DynamicNamespacesProps = Omit<BaseDynamicNamespacesProps, "namespaces"> & {
5
- namespaces: TranslateNamespace[];
6
- };
7
- /**
8
- * **NOTE**: To make typescript work nicely here make sure to enable
9
- * [`resolveJsonModule`](https://www.typescriptlang.org/tsconfig#resolveJsonModule)
10
- * in your `tsconfig.json` file.
11
- */
12
- export declare const DynamicNamespaces: (props: DynamicNamespacesProps) => ReturnType<typeof BaseDynamicNamespaces>;
13
- export default DynamicNamespaces;
@@ -1,23 +0,0 @@
1
- "use client";
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- function _export(target, all) {
7
- for(var name in all)Object.defineProperty(target, name, {
8
- enumerable: true,
9
- get: all[name]
10
- });
11
- }
12
- _export(exports, {
13
- DynamicNamespaces: function() {
14
- return DynamicNamespaces;
15
- },
16
- default: function() {
17
- return _default;
18
- }
19
- });
20
- const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
21
- const _DynamicNamespaces = /*#__PURE__*/ _interop_require_default._(require("next-translate/DynamicNamespaces"));
22
- const DynamicNamespaces = _DynamicNamespaces.default;
23
- const _default = DynamicNamespaces;
@@ -1,8 +0,0 @@
1
- "use client";
2
- import BaseDynamicNamespaces from "next-translate/DynamicNamespaces";
3
- /**
4
- * **NOTE**: To make typescript work nicely here make sure to enable
5
- * [`resolveJsonModule`](https://www.typescriptlang.org/tsconfig#resolveJsonModule)
6
- * in your `tsconfig.json` file.
7
- */ export const DynamicNamespaces = BaseDynamicNamespaces;
8
- export default DynamicNamespaces;
package/12/Favicon.d.ts DELETED
@@ -1,4 +0,0 @@
1
- import { type FaviconTagsProps } from "@koine/react/FaviconTags";
2
- export type FaviconProps = FaviconTagsProps;
3
- export declare const Favicon: (props: FaviconTagsProps) => import("react/jsx-runtime").JSX.Element;
4
- export default Favicon;
package/12/Favicon.js DELETED
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- function _export(target, all) {
6
- for(var name in all)Object.defineProperty(target, name, {
7
- enumerable: true,
8
- get: all[name]
9
- });
10
- }
11
- _export(exports, {
12
- Favicon: function() {
13
- return Favicon;
14
- },
15
- default: function() {
16
- return _default;
17
- }
18
- });
19
- const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
20
- const _jsxruntime = require("react/jsx-runtime");
21
- const _head = /*#__PURE__*/ _interop_require_default._(require("next/head"));
22
- const _react = /*#__PURE__*/ _interop_require_default._(require("react"));
23
- const _FaviconTags = /*#__PURE__*/ _interop_require_default._(require("@koine/react/FaviconTags"));
24
- const Favicon = (props)=>/*#__PURE__*/ (0, _jsxruntime.jsx)(_head.default, {
25
- children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_FaviconTags.default, {
26
- ...props
27
- })
28
- });
29
- const _default = Favicon;
package/12/Favicon.mjs DELETED
@@ -1,10 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import Head from "next/head";
3
- import React from "react";
4
- import FaviconTags from "@koine/react/FaviconTags";
5
- export const Favicon = (props)=>/*#__PURE__*/ _jsx(Head, {
6
- children: /*#__PURE__*/ _jsx(FaviconTags, {
7
- ...props
8
- })
9
- });
10
- export default Favicon;
package/12/Link.d.ts DELETED
@@ -1,10 +0,0 @@
1
- import { LinkProps as NextLinkProps } from "next/link";
2
- import React from "react";
3
- export type LinkProps = Omit<React.ComponentPropsWithRef<"a">, "href"> & Omit<NextLinkProps, "as" | "passHref" | "children"> & {
4
- Link?: React.ComponentType<any>;
5
- };
6
- /**
7
- * @see https://next.js.org/docs/api-reference/next/link
8
- */
9
- export declare const Link: React.ForwardRefExoticComponent<Omit<LinkProps, "ref"> & React.RefAttributes<HTMLAnchorElement>>;
10
- export default Link;
package/12/Link.js DELETED
@@ -1,38 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- function _export(target, all) {
6
- for(var name in all)Object.defineProperty(target, name, {
7
- enumerable: true,
8
- get: all[name]
9
- });
10
- }
11
- _export(exports, {
12
- Link: function() {
13
- return Link;
14
- },
15
- default: function() {
16
- return _default;
17
- }
18
- });
19
- const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
20
- const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
21
- const _jsxruntime = require("react/jsx-runtime");
22
- const _link = /*#__PURE__*/ _interop_require_default._(require("next/link"));
23
- const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
24
- const Link = /*#__PURE__*/ (0, _react.forwardRef)(function Link({ href, prefetch, replace, scroll, shallow, locale, Link = "span", ...props }, ref) {
25
- return /*#__PURE__*/ (0, _jsxruntime.jsx)(_link.default, {
26
- href: href,
27
- replace: replace,
28
- scroll: scroll,
29
- shallow: shallow,
30
- locale: locale,
31
- passHref: true,
32
- children: /*#__PURE__*/ (0, _jsxruntime.jsx)(Link, {
33
- ref: ref,
34
- ...props
35
- })
36
- });
37
- });
38
- const _default = Link;
package/12/Link.mjs DELETED
@@ -1,20 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import NextLink from "next/link";
3
- import React, { forwardRef } from "react";
4
- /**
5
- * @see https://next.js.org/docs/api-reference/next/link
6
- */ export const Link = /*#__PURE__*/ forwardRef(function Link({ href, prefetch, replace, scroll, shallow, locale, Link = "span", ...props }, ref) {
7
- return /*#__PURE__*/ _jsx(NextLink, {
8
- href: href,
9
- replace: replace,
10
- scroll: scroll,
11
- shallow: shallow,
12
- locale: locale,
13
- passHref: true,
14
- children: /*#__PURE__*/ _jsx(Link, {
15
- ref: ref,
16
- ...props
17
- })
18
- });
19
- });
20
- export default Link;