@koine/next 2.0.0-beta.2 → 2.0.0-beta.21

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 (156) hide show
  1. package/12/AnalyticsGoogle.d.ts +0 -1
  2. package/12/AnalyticsGoogle.js +15 -21
  3. package/12/DisableErrorOverlay.d.ts +0 -5
  4. package/12/DisableErrorOverlay.js +5 -15
  5. package/12/DynamicNamespaces.d.ts +2 -7
  6. package/12/DynamicNamespaces.js +3 -12
  7. package/12/Favicon.d.ts +0 -0
  8. package/12/Favicon.js +6 -10
  9. package/12/Link.d.ts +1 -4
  10. package/12/Link.js +8 -14
  11. package/12/NextProgress.d.ts +1 -4
  12. package/12/NextProgress.js +13 -19
  13. package/12/Seo.d.ts +2 -26
  14. package/12/Seo.js +6 -33
  15. package/12/SeoDefaults.d.ts +1 -4
  16. package/12/SeoDefaults.js +6 -16
  17. package/12/T.d.ts +1 -7
  18. package/12/T.js +6 -15
  19. package/12/TransText.d.ts +0 -0
  20. package/12/TransText.js +3 -7
  21. package/12/app/AppHead.d.ts +0 -0
  22. package/12/app/AppHead.js +5 -10
  23. package/12/app/AppMain.d.ts +4 -22
  24. package/12/app/AppMain.js +1 -2
  25. package/12/app/css/AppMain.d.ts +1 -6
  26. package/12/app/css/AppMain.js +7 -16
  27. package/12/app/css/AppTheme.d.ts +2 -5
  28. package/12/app/css/AppTheme.js +5 -16
  29. package/12/app/css/auth/index.d.ts +2 -5
  30. package/12/app/css/auth/index.js +9 -16
  31. package/12/app/css/index.d.ts +2 -50
  32. package/12/app/css/index.js +8 -60
  33. package/12/app/index.d.ts +2 -2
  34. package/12/app/index.js +2 -5
  35. package/12/app/sc/AppMain.d.ts +1 -8
  36. package/12/app/sc/AppMain.js +12 -23
  37. package/12/app/sc/AppTheme.d.ts +1 -7
  38. package/12/app/sc/AppTheme.js +6 -13
  39. package/12/app/sc/auth/index.d.ts +2 -5
  40. package/12/app/sc/auth/index.js +9 -16
  41. package/12/app/sc/index.d.ts +2 -52
  42. package/12/app/sc/index.js +8 -62
  43. package/12/document/Document.d.ts +0 -10
  44. package/12/document/Document.js +11 -24
  45. package/12/document/css/index.d.ts +0 -12
  46. package/12/document/css/index.js +11 -38
  47. package/12/document/index.d.ts +2 -2
  48. package/12/document/index.js +2 -7
  49. package/12/document/sc/index.d.ts +0 -13
  50. package/12/document/sc/index.js +21 -38
  51. package/12/getT.d.ts +1 -6
  52. package/12/getT.js +3 -13
  53. package/12/index.d.ts +3 -24
  54. package/12/index.js +3 -52
  55. package/12/seoBuildTags.d.ts +2 -17
  56. package/12/seoBuildTags.js +15 -43
  57. package/12/to.d.ts +1 -11
  58. package/12/to.js +4 -14
  59. package/12/translationAsOptions.d.ts +2 -1
  60. package/12/translationAsOptions.js +2 -5
  61. package/12/types-i18n.d.ts +0 -87
  62. package/12/types-i18n.js +1 -14
  63. package/12/types-seo.d.ts +0 -0
  64. package/12/types-seo.js +1 -2
  65. package/12/types.d.ts +7 -0
  66. package/12/types.js +2 -0
  67. package/12/useBackUrl.d.ts +0 -0
  68. package/12/useBackUrl.js +11 -20
  69. package/12/useDateFormat.d.ts +0 -4
  70. package/12/useDateFormat.js +15 -23
  71. package/12/useForm.d.ts +2 -2
  72. package/12/useForm.js +9 -33
  73. package/12/useLocale.d.ts +0 -0
  74. package/12/useLocale.js +4 -9
  75. package/12/useT.d.ts +1 -1
  76. package/12/useT.js +6 -33
  77. package/12/useTo.d.ts +1 -1
  78. package/12/useTo.js +7 -11
  79. package/ThemeContext.d.ts +11 -0
  80. package/{12/ThemeContext.mjs → ThemeContext.js} +0 -1
  81. package/ThemeProvider.d.ts +17 -0
  82. package/{12/ThemeProvider.mjs → ThemeProvider.js} +11 -42
  83. package/config-i18n.d.ts +52 -0
  84. package/config-i18n.js +251 -0
  85. package/config.d.ts +109 -0
  86. package/config.js +118 -0
  87. package/getSiteUrl.d.ts +0 -6
  88. package/getSiteUrl.js +4 -15
  89. package/index.d.ts +5 -2
  90. package/index.js +5 -7
  91. package/load.d.ts +0 -8
  92. package/load.js +2 -14
  93. package/package.json +159 -39
  94. package/useTheme.d.ts +4 -0
  95. package/{12/useTheme.mjs → useTheme.js} +1 -4
  96. package/12/AnalyticsGoogle.mjs +0 -34
  97. package/12/DisableErrorOverlay.mjs +0 -13
  98. package/12/DynamicNamespaces.mjs +0 -9
  99. package/12/Favicon.mjs +0 -6
  100. package/12/Link.mjs +0 -12
  101. package/12/NextProgress.mjs +0 -42
  102. package/12/Seo.mjs +0 -29
  103. package/12/SeoDefaults.mjs +0 -12
  104. package/12/T.mjs +0 -13
  105. package/12/ThemeContext.d.ts +0 -17
  106. package/12/ThemeContext.js +0 -10
  107. package/12/ThemeProvider.d.ts +0 -35
  108. package/12/ThemeProvider.js +0 -239
  109. package/12/TransText.mjs +0 -4
  110. package/12/app/AppHead.mjs +0 -6
  111. package/12/app/AppMain.mjs +0 -1
  112. package/12/app/css/AppMain.mjs +0 -14
  113. package/12/app/css/AppTheme.mjs +0 -14
  114. package/12/app/css/auth/index.mjs +0 -13
  115. package/12/app/css/auth/package.json +0 -6
  116. package/12/app/css/index.mjs +0 -57
  117. package/12/app/css/package.json +0 -6
  118. package/12/app/index.mjs +0 -2
  119. package/12/app/package.json +0 -6
  120. package/12/app/sc/AppMain.mjs +0 -25
  121. package/12/app/sc/AppTheme.mjs +0 -11
  122. package/12/app/sc/auth/index.mjs +0 -13
  123. package/12/app/sc/auth/package.json +0 -6
  124. package/12/app/sc/index.mjs +0 -59
  125. package/12/app/sc/package.json +0 -6
  126. package/12/document/Document.mjs +0 -28
  127. package/12/document/css/index.mjs +0 -45
  128. package/12/document/css/package.json +0 -6
  129. package/12/document/index.mjs +0 -2
  130. package/12/document/package.json +0 -6
  131. package/12/document/sc/index.mjs +0 -64
  132. package/12/document/sc/package.json +0 -6
  133. package/12/getT.mjs +0 -10
  134. package/12/index.mjs +0 -27
  135. package/12/package.json +0 -6
  136. package/12/seoBuildTags.mjs +0 -117
  137. package/12/to.mjs +0 -25
  138. package/12/translationAsOptions.mjs +0 -9
  139. package/12/types-i18n.mjs +0 -13
  140. package/12/types-seo.mjs +0 -1
  141. package/12/useBackUrl.mjs +0 -28
  142. package/12/useDateFormat.mjs +0 -39
  143. package/12/useForm.mjs +0 -35
  144. package/12/useLocale.mjs +0 -6
  145. package/12/useT.mjs +0 -21
  146. package/12/useTheme.d.ts +0 -7
  147. package/12/useTheme.js +0 -12
  148. package/12/useTo.mjs +0 -15
  149. package/README.md +0 -13
  150. package/config/index.d.ts +0 -160
  151. package/config/index.js +0 -343
  152. package/config/index.mjs +0 -332
  153. package/config/package.json +0 -6
  154. package/getSiteUrl.mjs +0 -12
  155. package/index.mjs +0 -2
  156. package/load.mjs +0 -14
package/package.json CHANGED
@@ -1,26 +1,31 @@
1
1
  {
2
2
  "name": "@koine/next",
3
3
  "sideEffects": false,
4
+ "dependencies": {
5
+ "@koine/browser": "2.0.0-beta.21",
6
+ "@koine/react": "2.0.0-beta.21",
7
+ "@koine/utils": "2.0.0-beta.21"
8
+ },
4
9
  "peerDependenciesMeta": {
5
- "@emotion/react": {
10
+ "@hookform/resolvers": {
6
11
  "optional": true
7
12
  },
8
- "@emotion/server": {
13
+ "@kuus/yup": {
9
14
  "optional": true
10
15
  },
11
- "@emotion/styled": {
16
+ "@mui/base": {
12
17
  "optional": true
13
18
  },
14
- "@hookform/resolvers": {
19
+ "@mui/material": {
15
20
  "optional": true
16
21
  },
17
- "@kuus/yup": {
22
+ "@emotion/react": {
18
23
  "optional": true
19
24
  },
20
- "@mui/base": {
25
+ "@emotion/server": {
21
26
  "optional": true
22
27
  },
23
- "@mui/material": {
28
+ "@emotion/styled": {
24
29
  "optional": true
25
30
  },
26
31
  "@tiptap/react": {
@@ -66,37 +71,152 @@
66
71
  "optional": true
67
72
  }
68
73
  },
69
- "dependencies": {
70
- "@hookform/resolvers": "^3.1.0",
71
- "@kuus/yup": "1.0.0-beta.7",
72
- "@mui/base": "5.0.0-beta.4",
73
- "@mui/utils": "5.13.1",
74
- "@tiptap/react": "2.0.3",
75
- "@tiptap/starter-kit": "2.0.3",
76
- "clsx": "1.2.1",
77
- "date-fns": "^2.30.0",
78
- "date-fns-tz": "^2.0.0",
79
- "framer-motion": "^10.12.16",
80
- "next": "^13.4.4",
81
- "next-auth": "^4.22.1",
82
- "next-seo": "^6.0.0",
83
- "next-translate": "^2.0.6",
84
- "react": "^18.2.0",
85
- "react-hook-form": "^7.44.3",
86
- "react-icons": "^4.9.0",
87
- "react-swipeable": "^7.0.1",
88
- "styled-components": "^5.3.11",
89
- "ts-debounce": "^4.0.0",
90
- "tslib": "^2.5.3",
91
- "type-fest": "^3.11.1"
92
- },
93
- "peerDependencies": {
94
- "@koine/browser": "2.0.0-beta.2",
95
- "@koine/dom": "2.0.0-beta.2",
96
- "@koine/utils": "2.0.0-beta.2"
97
- },
98
- "main": "./index.js",
99
74
  "types": "./index.d.ts",
100
- "version": "2.0.0-beta.2",
101
- "module": "./index.mjs"
75
+ "type": "module",
76
+ "module": "./index.js",
77
+ "exports": {
78
+ ".": {
79
+ "import": "./index.js"
80
+ },
81
+ "./12/AnalyticsGoogle": {
82
+ "import": "./12/AnalyticsGoogle.js"
83
+ },
84
+ "./12/DisableErrorOverlay": {
85
+ "import": "./12/DisableErrorOverlay.js"
86
+ },
87
+ "./12/DynamicNamespaces": {
88
+ "import": "./12/DynamicNamespaces.js"
89
+ },
90
+ "./12/Favicon": {
91
+ "import": "./12/Favicon.js"
92
+ },
93
+ "./12/Link": {
94
+ "import": "./12/Link.js"
95
+ },
96
+ "./12/NextProgress": {
97
+ "import": "./12/NextProgress.js"
98
+ },
99
+ "./12/Seo": {
100
+ "import": "./12/Seo.js"
101
+ },
102
+ "./12/SeoDefaults": {
103
+ "import": "./12/SeoDefaults.js"
104
+ },
105
+ "./12/T": {
106
+ "import": "./12/T.js"
107
+ },
108
+ "./12/TransText": {
109
+ "import": "./12/TransText.js"
110
+ },
111
+ "./12/app/AppHead": {
112
+ "import": "./12/app/AppHead.js"
113
+ },
114
+ "./12/app/AppMain": {
115
+ "import": "./12/app/AppMain.js"
116
+ },
117
+ "./12/app/css/AppMain": {
118
+ "import": "./12/app/css/AppMain.js"
119
+ },
120
+ "./12/app/css/AppTheme": {
121
+ "import": "./12/app/css/AppTheme.js"
122
+ },
123
+ "./12/app/css/auth": {
124
+ "import": "./12/app/css/auth/index.js"
125
+ },
126
+ "./12/app/css": {
127
+ "import": "./12/app/css/index.js"
128
+ },
129
+ "./12/app": {
130
+ "import": "./12/app/index.js"
131
+ },
132
+ "./12/app/sc/AppMain": {
133
+ "import": "./12/app/sc/AppMain.js"
134
+ },
135
+ "./12/app/sc/AppTheme": {
136
+ "import": "./12/app/sc/AppTheme.js"
137
+ },
138
+ "./12/app/sc/auth": {
139
+ "import": "./12/app/sc/auth/index.js"
140
+ },
141
+ "./12/app/sc": {
142
+ "import": "./12/app/sc/index.js"
143
+ },
144
+ "./12/document/Document": {
145
+ "import": "./12/document/Document.js"
146
+ },
147
+ "./12/document/css": {
148
+ "import": "./12/document/css/index.js"
149
+ },
150
+ "./12/document": {
151
+ "import": "./12/document/index.js"
152
+ },
153
+ "./12/document/sc": {
154
+ "import": "./12/document/sc/index.js"
155
+ },
156
+ "./12/getT": {
157
+ "import": "./12/getT.js"
158
+ },
159
+ "./12": {
160
+ "import": "./12/index.js"
161
+ },
162
+ "./12/seoBuildTags": {
163
+ "import": "./12/seoBuildTags.js"
164
+ },
165
+ "./12/to": {
166
+ "import": "./12/to.js"
167
+ },
168
+ "./12/translationAsOptions": {
169
+ "import": "./12/translationAsOptions.js"
170
+ },
171
+ "./12/types-i18n": {
172
+ "import": "./12/types-i18n.js"
173
+ },
174
+ "./12/types-seo": {
175
+ "import": "./12/types-seo.js"
176
+ },
177
+ "./12/types": {
178
+ "import": "./12/types.js"
179
+ },
180
+ "./12/useBackUrl": {
181
+ "import": "./12/useBackUrl.js"
182
+ },
183
+ "./12/useDateFormat": {
184
+ "import": "./12/useDateFormat.js"
185
+ },
186
+ "./12/useForm": {
187
+ "import": "./12/useForm.js"
188
+ },
189
+ "./12/useLocale": {
190
+ "import": "./12/useLocale.js"
191
+ },
192
+ "./12/useT": {
193
+ "import": "./12/useT.js"
194
+ },
195
+ "./12/useTo": {
196
+ "import": "./12/useTo.js"
197
+ },
198
+ "./ThemeContext": {
199
+ "import": "./ThemeContext.js"
200
+ },
201
+ "./ThemeProvider": {
202
+ "import": "./ThemeProvider.js"
203
+ },
204
+ "./config-i18n": {
205
+ "import": "./config-i18n.js"
206
+ },
207
+ "./config": {
208
+ "import": "./config.js"
209
+ },
210
+ "./getSiteUrl": {
211
+ "import": "./getSiteUrl.js"
212
+ },
213
+ "./load": {
214
+ "import": "./load.js"
215
+ },
216
+ "./useTheme": {
217
+ "import": "./useTheme.js"
218
+ }
219
+ },
220
+ "peerDependencies": {},
221
+ "version": "2.0.0-beta.21"
102
222
  }
package/useTheme.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import { type ThemeContextProps } from "./ThemeContext.js";
2
+ export type UseThemeProps = ThemeContextProps;
3
+ export declare const useTheme: () => ThemeContextProps;
4
+ export default useTheme;
@@ -1,8 +1,5 @@
1
1
  "use client";
2
2
  import { useContext } from "react";
3
- import { ThemeContext } from "./ThemeContext";
4
- /**
5
- * @borrows [next-themes](https://github.com/pacocoursey/next-themes)
6
- */
3
+ import { ThemeContext } from "./ThemeContext.js";
7
4
  export var useTheme = function () { return useContext(ThemeContext); };
8
5
  export default useTheme;
@@ -1,34 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { useState, useEffect } from "react";
4
- import { useRouter } from "next/router";
5
- import Script from "next/script";
6
- import gtagPageview from "@koine/browser/gtagPageview";
7
- export var AnalyticsGoogle = function (_a) {
8
- var id = _a.id;
9
- var uid = id || process.env["NEXT_PUBLIC_GTM_ID"];
10
- var _b = useRouter(), events = _b.events, asPath = _b.asPath, query = _b.query;
11
- var _c = useState(false), ready = _c[0], setReady = _c[1];
12
- var _d = useState(false), routed = _d[0], setRouted = _d[1];
13
- // const [url, setUrl] = useState("");
14
- useEffect(function () {
15
- var handleRouteChange = function () {
16
- setRouted(true);
17
- };
18
- events.on("routeChangeComplete", handleRouteChange);
19
- return function () {
20
- events.off("routeChangeComplete", handleRouteChange);
21
- };
22
- }, [events]);
23
- useEffect(function () {
24
- if (routed && ready && asPath) {
25
- // const search = query;
26
- gtagPageview(asPath);
27
- }
28
- }, [asPath, query, routed, ready]);
29
- if (!uid) {
30
- return null;
31
- }
32
- return (_jsxs(_Fragment, { children: [_jsx(Script, { id: "google-tagmanager", src: "https://www.googletagmanager.com/gtag/js?id=".concat(id), strategy: "afterInteractive", onLoad: function () { return setReady(true); } }), _jsx(Script, { id: "google-analytics", strategy: "afterInteractive", children: "\n window.dataLayer = window.dataLayer || [];\n function gtag(){window.dataLayer.push(arguments);}\n gtag('js', new Date());\n\n gtag('config', '".concat(id, "', { 'send_page_view': false });\n ") })] }));
33
- };
34
- export default AnalyticsGoogle;
@@ -1,13 +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
- */
8
- export var DisableErrorOverlay = function () {
9
- return (_jsx(Head, { children: process.env["NODE_ENV"] !== "production" && (_jsx("script", { dangerouslySetInnerHTML: {
10
- __html: "window.addEventListener('error',event =>{event.stopImmediatePropagation()});window.addEventListener('unhandledrejection',event =>{event.stopImmediatePropagation()});",
11
- } })) }));
12
- };
13
- export default DisableErrorOverlay;
@@ -1,9 +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
- */
8
- export var DynamicNamespaces = BaseDynamicNamespaces;
9
- export default DynamicNamespaces;
package/12/Favicon.mjs DELETED
@@ -1,6 +0,0 @@
1
- import { __assign } from "tslib";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import Head from "next/head";
4
- import FaviconTags from "@koine/react/FaviconTags";
5
- export var Favicon = function (props) { return (_jsx(Head, { children: _jsx(FaviconTags, __assign({}, props)) })); };
6
- export default Favicon;
package/12/Link.mjs DELETED
@@ -1,12 +0,0 @@
1
- import { __assign, __rest } from "tslib";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { forwardRef } from "react";
4
- import NextLink from "next/link";
5
- /**
6
- * @see https://next.js.org/docs/api-reference/next/link
7
- */
8
- export var Link = forwardRef(function Link(_a, ref) {
9
- var href = _a.href, prefetch = _a.prefetch, replace = _a.replace, scroll = _a.scroll, shallow = _a.shallow, locale = _a.locale, _b = _a.Link, Link = _b === void 0 ? "span" : _b, props = __rest(_a, ["href", "prefetch", "replace", "scroll", "shallow", "locale", "Link"]);
10
- return (_jsx(NextLink, { href: href, replace: replace, scroll: scroll, shallow: shallow, locale: locale, passHref: true, children: _jsx(Link, __assign({ ref: ref }, props)) }));
11
- });
12
- export default Link;
@@ -1,42 +0,0 @@
1
- "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
3
- import { useCallback, useEffect, useRef, useState } from "react";
4
- import { useRouter } from "next/router";
5
- export var NextProgress = function (_a) {
6
- var _b = _a.startAt, startAt = _b === void 0 ? 0.3 : _b, _c = _a.showOnShallow, showOnShallow = _c === void 0 ? true : _c, _d = _a.stopDelayMs, stopDelayMs = _d === void 0 ? 200 : _d, _e = _a.Overlay, Overlay = _e === void 0 ? "div" : _e;
7
- var events = useRouter().events;
8
- // const [progress, setProgress] = useState(0);
9
- var _f = useState(false), running = _f[0], setRunning = _f[1];
10
- var timer = useRef(null);
11
- var routeChangeStart = useCallback(function (_, _a) {
12
- var shallow = _a.shallow;
13
- if (!shallow || showOnShallow) {
14
- // setProgress(startAt);
15
- setRunning(true);
16
- }
17
- }, [showOnShallow]);
18
- var routeChangeEnd = useCallback(function (_, _a) {
19
- var shallow = _a.shallow;
20
- if (!shallow || showOnShallow) {
21
- if (timer.current) {
22
- clearTimeout(timer.current);
23
- }
24
- timer.current = setTimeout(function () {
25
- // setProgress(100);
26
- setRunning(false);
27
- }, stopDelayMs);
28
- }
29
- }, [showOnShallow, stopDelayMs, timer]);
30
- useEffect(function () {
31
- events.on("routeChangeStart", routeChangeStart);
32
- events.on("routeChangeComplete", routeChangeEnd);
33
- events.on("routeChangeError", routeChangeEnd);
34
- return function () {
35
- events.off("routeChangeStart", routeChangeStart);
36
- events.off("routeChangeComplete", routeChangeEnd);
37
- events.off("routeChangeError", routeChangeEnd);
38
- };
39
- }, [events, routeChangeStart, routeChangeEnd]);
40
- return _jsx(Overlay, { running: running });
41
- };
42
- export default NextProgress;
package/12/Seo.mjs DELETED
@@ -1,29 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- // import { memo } from "react";
3
- import Head from "next/head";
4
- import { seoBuildTags } from "./seoBuildTags";
5
- /**
6
- * Adapted from [garmeeh/next-seo](https://github.com/garmeeh/next-seo)
7
- *
8
- * See also:
9
- * - https://github.com/catnose99/next-head-seo
10
- * - https://nextjs.org/docs/api-reference/next/head
11
- *
12
- * NB: on the homepage you usually want to customize the `titleTemplate` to avoid
13
- * doubled app name. Assuming your default seo configuration is something like:
14
- *
15
- * ```js
16
- * {
17
- * titleTemplate: "%s | MyApp"
18
- * }
19
- * ```
20
- *
21
- * On the homepage you migh want to override it, e.g.:
22
- * ```js
23
- * <Seo title="MyApp | Some description" titleTemplate="%s" />
24
- * ```
25
- */
26
- export var Seo = function (props) {
27
- return _jsx(Head, { children: seoBuildTags(props) });
28
- };
29
- export default Seo;
@@ -1,12 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- // import { memo } from "react";
3
- import Head from "next/head";
4
- // import { useRouter } from "next/router";
5
- // import { getSiteUrl } from "../utils";
6
- import { seoBuildTags } from "./seoBuildTags";
7
- export var SeoDefaults = function (props) {
8
- // const router = useRouter();
9
- // props.openGraph.url = getSiteUrl(router.asPath);
10
- return _jsx(Head, { children: seoBuildTags(props) });
11
- };
12
- export default SeoDefaults;
package/12/T.mjs DELETED
@@ -1,13 +0,0 @@
1
- "use client";
2
- import { __assign } from "tslib";
3
- import { jsx as _jsx } from "react/jsx-runtime";
4
- import Trans from "next-translate/Trans";
5
- /**
6
- * **NOTE**: To make typescript work nicely here make sure to enable
7
- * [`resolveJsonModule`](https://www.typescriptlang.org/tsconfig#resolveJsonModule)
8
- * in your `tsconfig.json` file.
9
- */
10
- export var T = function (props) {
11
- return (_jsx(Trans, __assign({}, props)));
12
- };
13
- export default T;
@@ -1,17 +0,0 @@
1
- /// <reference types="react" />
2
- export type ThemeContextProps = {
3
- /** List of all available theme names */
4
- themes: string[];
5
- /** Forced theme name for the current page */
6
- forcedTheme?: string;
7
- /** Update the theme */
8
- setTheme: (theme: string) => void;
9
- /** Active theme name */
10
- theme?: string;
11
- /** If `enableSystem` is true and the active theme is "system", this returns whether the system preference resolved to "dark" or "light". Otherwise, identical to `theme` */
12
- resolvedTheme?: string;
13
- /** If enableSystem is true, returns the System theme preference ("dark" or "light"), regardless what the active theme is */
14
- systemTheme?: "dark" | "light";
15
- };
16
- export declare const ThemeContext: import("react").Context<ThemeContextProps>;
17
- export default ThemeContext;
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ThemeContext = void 0;
4
- var react_1 = require("react");
5
- exports.ThemeContext = (0, react_1.createContext)({
6
- // eslint-disable-next-line @typescript-eslint/no-empty-function
7
- setTheme: function (_) { },
8
- themes: [],
9
- });
10
- exports.default = exports.ThemeContext;
@@ -1,35 +0,0 @@
1
- /// <reference types="react" />
2
- type ValueObject = {
3
- [themeName: string]: string;
4
- };
5
- export type ThemeProviderProps = React.PropsWithChildren<{
6
- /** List of all available theme names */
7
- themes?: string[];
8
- /** Forced theme name for the current page */
9
- forcedTheme?: string;
10
- /** Whether to switch between dark and light themes based on prefers-color-scheme */
11
- enableSystem?: boolean;
12
- /** Disable all CSS transitions when switching themes */
13
- disableTransitionOnChange?: boolean;
14
- /** Whether to indicate to browsers which color scheme is used (dark or light) for built-in UI like inputs and buttons */
15
- enableColorScheme?: boolean;
16
- /** Default theme name (for v0.0.12 and lower the default was light). If `enableSystem` is false, the default theme is light */
17
- defaultTheme?: string;
18
- /** HTML attribute modified based on the active theme. Accepts `class` and `data-*` (meaning any data attribute, `data-mode`, `data-color`, etc.) */
19
- attribute?: string | "class";
20
- /** Mapping of theme name to HTML attribute value. Object where key is the theme name and value is the attribute value */
21
- value?: ValueObject;
22
- /** Nonce string to pass to the inline script for CSP headers */
23
- nonce?: string;
24
- }>;
25
- /**
26
- * @borrows [next-themes](https://github.com/pacocoursey/next-themes)
27
- *
28
- * Differences:
29
- *
30
- * - enableColorScheme: `false` by default (instead of `true`), this plays more
31
- * nicely with tailwind `dark` class mode as dark theme is supposed to be only
32
- * controlled by tailwind modifiers
33
- */
34
- export declare const ThemeProvider: ({ forcedTheme, disableTransitionOnChange, enableSystem, enableColorScheme, themes, defaultTheme, attribute, value, children, nonce, }: ThemeProviderProps) => import("react/jsx-runtime").JSX.Element;
35
- export default ThemeProvider;