@koine/next 2.0.0-alpha.1 → 2.0.0-alpha.2

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 (306) hide show
  1. package/{AnalyticsGoogle.d.ts → 12/AnalyticsGoogle.d.ts} +1 -1
  2. package/{AnalyticsGoogle.js → 12/AnalyticsGoogle.js} +1 -1
  3. package/{legacy → 12}/AnalyticsGoogle.mjs +1 -2
  4. package/{legacy → 12}/DisableErrorOverlay.d.ts +1 -1
  5. package/{Favicon.d.ts → 12/Favicon.d.ts} +1 -1
  6. package/{legacy → 12}/Link.js +1 -1
  7. package/{legacy → 12}/Link.mjs +1 -1
  8. package/{NextProgress.d.ts → 12/NextProgress.d.ts} +1 -1
  9. package/{legacy → 12}/Seo.d.ts +1 -1
  10. package/{SeoDefaults.d.ts → 12/SeoDefaults.d.ts} +1 -1
  11. package/{T.d.ts → 12/T.d.ts} +1 -0
  12. package/{legacy → 12}/ThemeProvider.d.ts +1 -1
  13. package/{ThemeProvider.js → 12/ThemeProvider.js} +2 -14
  14. package/{ThemeProvider.mjs → 12/ThemeProvider.mjs} +3 -15
  15. package/12/app/AppHead.d.ts +3 -0
  16. package/{legacy → 12}/app/css/AppMain.d.ts +1 -1
  17. package/{legacy → 12}/app/css/AppTheme.d.ts +1 -1
  18. package/{app → 12/app}/css/AppTheme.js +1 -2
  19. package/{app → 12/app}/css/AppTheme.mjs +1 -2
  20. package/{legacy/app/sc → 12/app/css}/auth/index.d.ts +1 -1
  21. package/{app → 12/app}/css/auth/index.js +1 -1
  22. package/{app → 12/app}/css/auth/index.mjs +1 -1
  23. package/{app → 12/app}/css/index.d.ts +1 -1
  24. package/{legacy → 12}/app/sc/AppMain.d.ts +1 -1
  25. package/{legacy → 12}/app/sc/AppMain.js +1 -1
  26. package/{app → 12/app}/sc/AppMain.mjs +1 -1
  27. package/{legacy → 12}/app/sc/AppTheme.d.ts +1 -1
  28. package/{app → 12/app}/sc/AppTheme.js +1 -2
  29. package/{app → 12/app}/sc/AppTheme.mjs +1 -2
  30. package/{legacy/app/css → 12/app/sc}/auth/index.d.ts +1 -1
  31. package/{app/em → 12/app/sc}/auth/index.js +1 -1
  32. package/{legacy/app/css → 12/app/sc}/auth/index.mjs +1 -1
  33. package/{legacy → 12}/app/sc/index.d.ts +1 -1
  34. package/{document → 12/document}/Document.d.ts +1 -2
  35. package/{legacy → 12}/document/Document.js +1 -1
  36. package/{legacy → 12}/document/Document.mjs +2 -2
  37. package/{legacy → 12}/document/css/index.d.ts +1 -2
  38. package/{document → 12/document}/css/index.js +1 -1
  39. package/{legacy → 12}/document/css/index.mjs +2 -2
  40. package/{legacy → 12}/document/sc/index.d.ts +1 -2
  41. package/{legacy → 12}/document/sc/index.js +1 -1
  42. package/{legacy → 12}/document/sc/index.mjs +1 -1
  43. package/{legacy → 12}/types-i18n.d.ts +1 -1
  44. package/{legacy → 12}/useForm.d.ts +1 -1
  45. package/12/useT.d.ts +4 -0
  46. package/{useT.js → 12/useT.js} +20 -16
  47. package/{legacy → 12}/useT.mjs +7 -5
  48. package/package.json +13 -24
  49. package/AnalyticsGoogle.mjs +0 -35
  50. package/DisableErrorOverlay.d.ts +0 -7
  51. package/Head.d.ts +0 -3
  52. package/Head.js +0 -7
  53. package/Head.mjs +0 -3
  54. package/Link.js +0 -15
  55. package/Link.mjs +0 -12
  56. package/Seo.d.ts +0 -41
  57. package/ThemeProvider.d.ts +0 -35
  58. package/app/AppHead.d.ts +0 -3
  59. package/app/css/AppMain.d.ts +0 -9
  60. package/app/css/AppTheme.d.ts +0 -11
  61. package/app/css/auth/index.d.ts +0 -11
  62. package/app/em/AppMain.d.ts +0 -11
  63. package/app/em/AppMain.js +0 -29
  64. package/app/em/AppMain.mjs +0 -25
  65. package/app/em/AppTheme.d.ts +0 -16
  66. package/app/em/AppTheme.js +0 -23
  67. package/app/em/AppTheme.mjs +0 -19
  68. package/app/em/auth/index.d.ts +0 -11
  69. package/app/em/auth/index.mjs +0 -13
  70. package/app/em/index.d.ts +0 -9
  71. package/app/em/index.js +0 -16
  72. package/app/em/index.mjs +0 -12
  73. package/app/sc/AppMain.d.ts +0 -11
  74. package/app/sc/AppMain.js +0 -29
  75. package/app/sc/AppTheme.d.ts +0 -14
  76. package/app/sc/auth/index.d.ts +0 -11
  77. package/app/sc/auth/index.js +0 -17
  78. package/app/sc/auth/index.mjs +0 -13
  79. package/app/sc/index.d.ts +0 -56
  80. package/auth/helpers.d.ts +0 -17
  81. package/auth/helpers.js +0 -28
  82. package/auth/helpers.mjs +0 -22
  83. package/auth/index.d.ts +0 -4
  84. package/auth/index.js +0 -7
  85. package/auth/index.mjs +0 -4
  86. package/auth/useLogin.d.ts +0 -8
  87. package/auth/useLogin.js +0 -54
  88. package/auth/useLogin.mjs +0 -50
  89. package/auth/useLoginUrl.d.ts +0 -2
  90. package/auth/useLoginUrl.js +0 -17
  91. package/auth/useLoginUrl.mjs +0 -13
  92. package/auth/useLogout.d.ts +0 -7
  93. package/auth/useLogout.js +0 -59
  94. package/auth/useLogout.mjs +0 -54
  95. package/createEmotionCache.d.ts +0 -6
  96. package/createEmotionCache.js +0 -14
  97. package/createEmotionCache.mjs +0 -9
  98. package/document/Document.js +0 -31
  99. package/document/Document.mjs +0 -28
  100. package/document/css/index.d.ts +0 -18
  101. package/document/css/index.mjs +0 -45
  102. package/document/em/index.d.ts +0 -16
  103. package/document/em/index.js +0 -63
  104. package/document/em/index.mjs +0 -60
  105. package/document/em/package.json +0 -6
  106. package/document/package.json +0 -6
  107. package/document/sc/index.d.ts +0 -20
  108. package/document/sc/index.js +0 -67
  109. package/document/sc/index.mjs +0 -64
  110. package/document/sc/package.json +0 -6
  111. package/legacy/AnalyticsGoogle.d.ts +0 -6
  112. package/legacy/AnalyticsGoogle.js +0 -39
  113. package/legacy/DisableErrorOverlay.js +0 -18
  114. package/legacy/DisableErrorOverlay.mjs +0 -13
  115. package/legacy/DynamicNamespaces.d.ts +0 -13
  116. package/legacy/DynamicNamespaces.js +0 -13
  117. package/legacy/DynamicNamespaces.mjs +0 -9
  118. package/legacy/Favicon.d.ts +0 -4
  119. package/legacy/Favicon.js +0 -10
  120. package/legacy/Favicon.mjs +0 -6
  121. package/legacy/Link.d.ts +0 -10
  122. package/legacy/NextProgress.d.ts +0 -25
  123. package/legacy/NextProgress.js +0 -46
  124. package/legacy/NextProgress.mjs +0 -42
  125. package/legacy/Seo.js +0 -34
  126. package/legacy/Seo.mjs +0 -29
  127. package/legacy/SeoDefaults.d.ts +0 -11
  128. package/legacy/SeoDefaults.js +0 -17
  129. package/legacy/SeoDefaults.mjs +0 -12
  130. package/legacy/T.d.ts +0 -15
  131. package/legacy/T.js +0 -17
  132. package/legacy/T.mjs +0 -13
  133. package/legacy/ThemeContext.d.ts +0 -17
  134. package/legacy/ThemeContext.js +0 -10
  135. package/legacy/ThemeContext.mjs +0 -7
  136. package/legacy/ThemeProvider.js +0 -251
  137. package/legacy/ThemeProvider.mjs +0 -247
  138. package/legacy/TransText.d.ts +0 -3
  139. package/legacy/TransText.js +0 -8
  140. package/legacy/TransText.mjs +0 -4
  141. package/legacy/app/AppHead.d.ts +0 -3
  142. package/legacy/app/AppHead.js +0 -11
  143. package/legacy/app/AppHead.mjs +0 -6
  144. package/legacy/app/AppMain.d.ts +0 -35
  145. package/legacy/app/AppMain.js +0 -2
  146. package/legacy/app/AppMain.mjs +0 -1
  147. package/legacy/app/css/AppMain.js +0 -18
  148. package/legacy/app/css/AppMain.mjs +0 -14
  149. package/legacy/app/css/AppTheme.js +0 -19
  150. package/legacy/app/css/AppTheme.mjs +0 -15
  151. package/legacy/app/css/auth/index.js +0 -17
  152. package/legacy/app/css/auth/package.json +0 -6
  153. package/legacy/app/css/index.d.ts +0 -54
  154. package/legacy/app/css/index.js +0 -61
  155. package/legacy/app/css/index.mjs +0 -57
  156. package/legacy/app/css/package.json +0 -6
  157. package/legacy/app/index.d.ts +0 -2
  158. package/legacy/app/index.js +0 -5
  159. package/legacy/app/index.mjs +0 -2
  160. package/legacy/app/package.json +0 -6
  161. package/legacy/app/sc/AppMain.mjs +0 -25
  162. package/legacy/app/sc/AppTheme.js +0 -16
  163. package/legacy/app/sc/AppTheme.mjs +0 -12
  164. package/legacy/app/sc/auth/index.js +0 -17
  165. package/legacy/app/sc/auth/index.mjs +0 -13
  166. package/legacy/app/sc/auth/package.json +0 -6
  167. package/legacy/app/sc/index.js +0 -63
  168. package/legacy/app/sc/index.mjs +0 -59
  169. package/legacy/app/sc/package.json +0 -6
  170. package/legacy/document/Document.d.ts +0 -16
  171. package/legacy/document/css/index.js +0 -45
  172. package/legacy/document/css/package.json +0 -6
  173. package/legacy/document/index.d.ts +0 -2
  174. package/legacy/document/index.js +0 -7
  175. package/legacy/document/index.mjs +0 -2
  176. package/legacy/document/package.json +0 -6
  177. package/legacy/document/sc/package.json +0 -6
  178. package/legacy/getT.d.ts +0 -9
  179. package/legacy/getT.js +0 -14
  180. package/legacy/getT.mjs +0 -10
  181. package/legacy/package.json +0 -6
  182. package/legacy/useT.d.ts +0 -17
  183. package/legacy/useT.js +0 -40
  184. package/revalidate.d.ts +0 -5
  185. package/revalidate.js +0 -8
  186. package/revalidate.mjs +0 -5
  187. package/seoBuildTags.d.ts +0 -23
  188. package/seoBuildTags.js +0 -121
  189. package/seoBuildTags.mjs +0 -117
  190. package/to.d.ts +0 -24
  191. package/to.js +0 -29
  192. package/to.mjs +0 -25
  193. package/translationAsOptions.d.ts +0 -3
  194. package/translationAsOptions.js +0 -13
  195. package/translationAsOptions.mjs +0 -9
  196. package/types-i18n.d.ts +0 -118
  197. package/types-i18n.js +0 -14
  198. package/types-i18n.mjs +0 -13
  199. package/types-seo.d.ts +0 -7
  200. package/types-seo.js +0 -2
  201. package/types-seo.mjs +0 -1
  202. package/useBackUrl.d.ts +0 -2
  203. package/useBackUrl.js +0 -33
  204. package/useBackUrl.mjs +0 -28
  205. package/useDateFormat.d.ts +0 -7
  206. package/useDateFormat.js +0 -43
  207. package/useDateFormat.mjs +0 -39
  208. package/useForm.d.ts +0 -27
  209. package/useForm.js +0 -39
  210. package/useForm.mjs +0 -35
  211. package/useLocale.d.ts +0 -2
  212. package/useLocale.js +0 -11
  213. package/useLocale.mjs +0 -6
  214. package/useT.d.ts +0 -17
  215. package/useT.mjs +0 -19
  216. package/useTheme.d.ts +0 -7
  217. package/useTheme.js +0 -12
  218. package/useTheme.mjs +0 -8
  219. package/useTo.d.ts +0 -3
  220. package/useTo.js +0 -19
  221. package/useTo.mjs +0 -15
  222. /package/{DisableErrorOverlay.js → 12/DisableErrorOverlay.js} +0 -0
  223. /package/{DisableErrorOverlay.mjs → 12/DisableErrorOverlay.mjs} +0 -0
  224. /package/{DynamicNamespaces.d.ts → 12/DynamicNamespaces.d.ts} +0 -0
  225. /package/{DynamicNamespaces.js → 12/DynamicNamespaces.js} +0 -0
  226. /package/{DynamicNamespaces.mjs → 12/DynamicNamespaces.mjs} +0 -0
  227. /package/{Favicon.js → 12/Favicon.js} +0 -0
  228. /package/{Favicon.mjs → 12/Favicon.mjs} +0 -0
  229. /package/{Link.d.ts → 12/Link.d.ts} +0 -0
  230. /package/{NextProgress.js → 12/NextProgress.js} +0 -0
  231. /package/{NextProgress.mjs → 12/NextProgress.mjs} +0 -0
  232. /package/{Seo.js → 12/Seo.js} +0 -0
  233. /package/{Seo.mjs → 12/Seo.mjs} +0 -0
  234. /package/{SeoDefaults.js → 12/SeoDefaults.js} +0 -0
  235. /package/{SeoDefaults.mjs → 12/SeoDefaults.mjs} +0 -0
  236. /package/{T.js → 12/T.js} +0 -0
  237. /package/{T.mjs → 12/T.mjs} +0 -0
  238. /package/{ThemeContext.d.ts → 12/ThemeContext.d.ts} +0 -0
  239. /package/{ThemeContext.js → 12/ThemeContext.js} +0 -0
  240. /package/{ThemeContext.mjs → 12/ThemeContext.mjs} +0 -0
  241. /package/{TransText.d.ts → 12/TransText.d.ts} +0 -0
  242. /package/{TransText.js → 12/TransText.js} +0 -0
  243. /package/{TransText.mjs → 12/TransText.mjs} +0 -0
  244. /package/{app → 12/app}/AppHead.js +0 -0
  245. /package/{app → 12/app}/AppHead.mjs +0 -0
  246. /package/{app → 12/app}/AppMain.d.ts +0 -0
  247. /package/{app → 12/app}/AppMain.js +0 -0
  248. /package/{app → 12/app}/AppMain.mjs +0 -0
  249. /package/{app → 12/app}/css/AppMain.js +0 -0
  250. /package/{app → 12/app}/css/AppMain.mjs +0 -0
  251. /package/{app → 12/app}/css/auth/package.json +0 -0
  252. /package/{app → 12/app}/css/index.js +0 -0
  253. /package/{app → 12/app}/css/index.mjs +0 -0
  254. /package/{app → 12/app}/css/package.json +0 -0
  255. /package/{app → 12/app}/index.d.ts +0 -0
  256. /package/{app → 12/app}/index.js +0 -0
  257. /package/{app → 12/app}/index.mjs +0 -0
  258. /package/{app/em/auth → 12/app}/package.json +0 -0
  259. /package/{app/em → 12/app/sc/auth}/package.json +0 -0
  260. /package/{app → 12/app}/sc/index.js +0 -0
  261. /package/{app → 12/app}/sc/index.mjs +0 -0
  262. /package/{app → 12/app/sc}/package.json +0 -0
  263. /package/{app/sc/auth → 12/document/css}/package.json +0 -0
  264. /package/{document → 12/document}/index.d.ts +0 -0
  265. /package/{document → 12/document}/index.js +0 -0
  266. /package/{document → 12/document}/index.mjs +0 -0
  267. /package/{app/sc → 12/document}/package.json +0 -0
  268. /package/{auth → 12/document/sc}/package.json +0 -0
  269. /package/{getT.d.ts → 12/getT.d.ts} +0 -0
  270. /package/{getT.js → 12/getT.js} +0 -0
  271. /package/{getT.mjs → 12/getT.mjs} +0 -0
  272. /package/{legacy → 12}/index.d.ts +0 -0
  273. /package/{legacy → 12}/index.js +0 -0
  274. /package/{legacy → 12}/index.mjs +0 -0
  275. /package/{document/css → 12}/package.json +0 -0
  276. /package/{legacy → 12}/seoBuildTags.d.ts +0 -0
  277. /package/{legacy → 12}/seoBuildTags.js +0 -0
  278. /package/{legacy → 12}/seoBuildTags.mjs +0 -0
  279. /package/{legacy → 12}/to.d.ts +0 -0
  280. /package/{legacy → 12}/to.js +0 -0
  281. /package/{legacy → 12}/to.mjs +0 -0
  282. /package/{legacy → 12}/translationAsOptions.d.ts +0 -0
  283. /package/{legacy → 12}/translationAsOptions.js +0 -0
  284. /package/{legacy → 12}/translationAsOptions.mjs +0 -0
  285. /package/{legacy → 12}/types-i18n.js +0 -0
  286. /package/{legacy → 12}/types-i18n.mjs +0 -0
  287. /package/{legacy → 12}/types-seo.d.ts +0 -0
  288. /package/{legacy → 12}/types-seo.js +0 -0
  289. /package/{legacy → 12}/types-seo.mjs +0 -0
  290. /package/{legacy → 12}/useBackUrl.d.ts +0 -0
  291. /package/{legacy → 12}/useBackUrl.js +0 -0
  292. /package/{legacy → 12}/useBackUrl.mjs +0 -0
  293. /package/{legacy → 12}/useDateFormat.d.ts +0 -0
  294. /package/{legacy → 12}/useDateFormat.js +0 -0
  295. /package/{legacy → 12}/useDateFormat.mjs +0 -0
  296. /package/{legacy → 12}/useForm.js +0 -0
  297. /package/{legacy → 12}/useForm.mjs +0 -0
  298. /package/{legacy → 12}/useLocale.d.ts +0 -0
  299. /package/{legacy → 12}/useLocale.js +0 -0
  300. /package/{legacy → 12}/useLocale.mjs +0 -0
  301. /package/{legacy → 12}/useTheme.d.ts +0 -0
  302. /package/{legacy → 12}/useTheme.js +0 -0
  303. /package/{legacy → 12}/useTheme.mjs +0 -0
  304. /package/{legacy → 12}/useTo.d.ts +0 -0
  305. /package/{legacy → 12}/useTo.js +0 -0
  306. /package/{legacy → 12}/useTo.mjs +0 -0
package/package.json CHANGED
@@ -67,38 +67,27 @@
67
67
  }
68
68
  },
69
69
  "dependencies": {
70
- "@hookform/resolvers": "^2.9.11",
70
+ "@hookform/resolvers": "^3.1.0",
71
71
  "@kuus/yup": "1.0.0-beta.7",
72
- "@mui/base": "5.0.0-alpha.118",
73
- "@mui/utils": "5.11.9",
74
- "@tiptap/react": "2.0.0-beta.218",
75
- "@tiptap/starter-kit": "2.0.0-beta.218",
76
72
  "clsx": "1.2.1",
77
- "date-fns": "^2.29.3",
78
- "date-fns-tz": "^2.0.0",
79
- "framer-motion": "^10.0.0",
80
- "next": "^13.2.1",
81
- "next-auth": "^4.19.2",
82
- "next-seo": "^5.15.0",
83
- "next-translate": "^2.0.2",
73
+ "date-fns": "^2.30.0",
74
+ "framer-motion": "^10.12.16",
75
+ "next": "^13.4.4",
76
+ "next-auth": "^4.22.1",
77
+ "next-seo": "^6.0.0",
78
+ "next-translate": "^2.0.6",
84
79
  "react": "^18.2.0",
85
- "react-dom": "^18.2.0",
86
- "react-hook-form": "^7.43.2",
87
- "react-icons": "^4.7.1",
88
- "react-is": "^18.2.0",
89
- "react-swipeable": "^7.0.0",
90
- "styled-components": "^5.3.6",
80
+ "react-hook-form": "^7.44.3",
81
+ "styled-components": "^5.3.11",
91
82
  "ts-debounce": "^4.0.0",
92
- "tslib": "^2.5.0",
93
- "type-fest": "^3.6.0"
83
+ "type-fest": "^3.11.1"
94
84
  },
95
85
  "peerDependencies": {
96
- "@koine/browser": "2.0.0-alpha.1",
97
- "@koine/dom": "2.0.0-alpha.1",
98
- "@koine/utils": "2.0.0-alpha.1"
86
+ "@koine/utils": "2.0.0-alpha.1",
87
+ "tslib": "2.5.3"
99
88
  },
100
89
  "main": "./index.js",
101
90
  "types": "./index.d.ts",
102
- "version": "2.0.0-alpha.1",
91
+ "version": "2.0.0-alpha.2",
103
92
  "module": "./index.mjs"
104
93
  }
@@ -1,35 +0,0 @@
1
- "use client";
2
- import { __assign } from "tslib";
3
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
4
- import { useState, useEffect } from "react";
5
- import { useRouter } from "next/router";
6
- import Script from "next/script";
7
- import gtagPageview from "@koine/browser/gtagPageview";
8
- export var AnalyticsGoogle = function (_a) {
9
- var id = _a.id;
10
- var uid = id || process.env["NEXT_PUBLIC_GTM_ID"];
11
- var _b = useRouter(), events = _b.events, asPath = _b.asPath, query = _b.query;
12
- var _c = useState(false), ready = _c[0], setReady = _c[1];
13
- var _d = useState(false), routed = _d[0], setRouted = _d[1];
14
- // const [url, setUrl] = useState("");
15
- useEffect(function () {
16
- var handleRouteChange = function () {
17
- setRouted(true);
18
- };
19
- events.on("routeChangeComplete", handleRouteChange);
20
- return function () {
21
- events.off("routeChangeComplete", handleRouteChange);
22
- };
23
- }, [events]);
24
- useEffect(function () {
25
- if (routed && ready && asPath) {
26
- // const search = query;
27
- gtagPageview(asPath);
28
- }
29
- }, [asPath, query, routed, ready]);
30
- if (!uid) {
31
- return null;
32
- }
33
- 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, __assign({ 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 ") }))] }));
34
- };
35
- export default AnalyticsGoogle;
@@ -1,7 +0,0 @@
1
- /**
2
- * Disable error overlay during `dev`
3
- *
4
- * @see https://github.com/vercel/next.js/discussions/13387#discussioncomment-101564
5
- */
6
- export declare const DisableErrorOverlay: () => JSX.Element;
7
- export default DisableErrorOverlay;
package/Head.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import NextHead from "next/head";
2
- export declare const Head: typeof NextHead;
3
- export default Head;
package/Head.js DELETED
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Head = void 0;
4
- var tslib_1 = require("tslib");
5
- var head_1 = tslib_1.__importDefault(require("next/head"));
6
- exports.Head = head_1.default;
7
- exports.default = exports.Head;
package/Head.mjs DELETED
@@ -1,3 +0,0 @@
1
- import NextHead from "next/head";
2
- export var Head = NextHead;
3
- export default Head;
package/Link.js DELETED
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Link = void 0;
4
- var tslib_1 = require("tslib");
5
- var jsx_runtime_1 = require("react/jsx-runtime");
6
- var react_1 = require("react");
7
- var link_1 = tslib_1.__importDefault(require("next/link"));
8
- /**
9
- * @see https://next.js.org/docs/api-reference/next/link
10
- */
11
- exports.Link = (0, react_1.forwardRef)(function Link(_a, ref) {
12
- 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 = tslib_1.__rest(_a, ["href", "prefetch", "replace", "scroll", "shallow", "locale", "Link"]);
13
- return ((0, jsx_runtime_1.jsx)(link_1.default, tslib_1.__assign({ href: href, replace: replace, scroll: scroll, shallow: shallow, locale: locale, passHref: true }, { children: (0, jsx_runtime_1.jsx)(Link, tslib_1.__assign({ ref: ref }, props)) })));
14
- });
15
- exports.default = exports.Link;
package/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, __assign({ href: href, replace: replace, scroll: scroll, shallow: shallow, locale: locale, passHref: true }, { children: _jsx(Link, __assign({ ref: ref }, props)) })));
11
- });
12
- export default Link;
package/Seo.d.ts DELETED
@@ -1,41 +0,0 @@
1
- import type { NextSeoProps } from "next-seo/lib/types";
2
- import type { SeoData } from "./types-seo";
3
- import { type MetaTag, type LinkTag } from "./seoBuildTags";
4
- type SeoPropsOpenGraph = NextSeoProps["openGraph"] & {
5
- image?: string;
6
- };
7
- /**
8
- * @see https://github.com/garmeeh/next-seo/blob/master/src/types.ts#L395
9
- */
10
- export type SeoProps = Omit<NextSeoProps, "additionalMetaTags" | "additionalLinkTags" | "mobileAlternate" | "robotsProps"> & {
11
- metaTags?: ReadonlyArray<MetaTag>;
12
- linkTags?: ReadonlyArray<LinkTag>;
13
- seo?: SeoData;
14
- hidden?: SeoData["hidden"];
15
- keywords?: SeoData["keywords"];
16
- openGraph?: SeoPropsOpenGraph;
17
- og?: SeoPropsOpenGraph;
18
- };
19
- /**
20
- * Adapted from [garmeeh/next-seo](https://github.com/garmeeh/next-seo)
21
- *
22
- * See also:
23
- * - https://github.com/catnose99/next-head-seo
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
- * ```
39
- */
40
- export declare const Seo: (props: SeoProps) => JSX.Element;
41
- export default Seo;
@@ -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) => JSX.Element;
35
- export default ThemeProvider;
package/app/AppHead.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export type AppHeadProps = unknown;
2
- export declare const AppHead: () => JSX.Element;
3
- export default AppHead;
@@ -1,9 +0,0 @@
1
- import type { AppMainBaseProps } from "../AppMain";
2
- export type AppMainProps = Omit<AppMainBaseProps, "ProgressOverlay">;
3
- /**
4
- * App main
5
- *
6
- * It does not imply any specific styling or animation solution
7
- */
8
- export declare const AppMain: ({ Component, pageProps, Layout, seo, pre, post, }: AppMainProps) => JSX.Element;
9
- export default AppMain;
@@ -1,11 +0,0 @@
1
- import React from "react";
2
- import { AppProps as NextAppProps } from "next/app";
3
- import { type ThemeProviderProps } from "../../ThemeProvider";
4
- export type AppThemeProps = React.PropsWithChildren<NextAppProps & {
5
- theme: ThemeProviderProps["defaultTheme"];
6
- }>;
7
- /**
8
- * App theme with vanilla class based theme (good for `tailwindcss`)
9
- */
10
- export declare const AppTheme: ({ theme, children }: AppThemeProps) => JSX.Element;
11
- export default AppTheme;
@@ -1,11 +0,0 @@
1
- import { AppProps } from "next/app";
2
- import { AppThemeProps } from "../AppTheme";
3
- import { AppMainProps } from "../AppMain";
4
- export type NextAppProps = AppProps<{
5
- session: any;
6
- }> & AppThemeProps & AppMainProps;
7
- /**
8
- * App with authentication provided by `next-auth`
9
- */
10
- export declare const NextApp: (props: NextAppProps) => JSX.Element;
11
- export default NextApp;
@@ -1,11 +0,0 @@
1
- import type { AppMainBaseProps, AppMainFramerProps } from "../AppMain";
2
- export type AppMainProps = AppMainBaseProps & AppMainFramerProps;
3
- /**
4
- * App main
5
- *
6
- * It implies a setup for `styled-components` and `framer-motion` libraries.
7
- *
8
- * About the page transition [wallis' blog post](https://wallis.dev/blog/nextjs-page-transitions-with-framer-motion)
9
- */
10
- export declare const AppMain: ({ Component, pageProps, Layout, ProgressOverlay, seo, motion, transition, pre, post, }: AppMainProps) => JSX.Element;
11
- export default AppMain;
package/app/em/AppMain.js DELETED
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AppMain = void 0;
4
- var tslib_1 = require("tslib");
5
- var react_1 = require("react");
6
- var jsx_runtime_1 = require("react/jsx-runtime");
7
- var router_1 = require("next/router");
8
- var framer_motion_1 = require("framer-motion");
9
- var MotionProvider_1 = tslib_1.__importDefault(require("@koine/react/m/MotionProvider"));
10
- var SeoDefaults_1 = require("../../SeoDefaults");
11
- var NextProgress_1 = require("../../NextProgress");
12
- /**
13
- * App main
14
- *
15
- * It implies a setup for `styled-components` and `framer-motion` libraries.
16
- *
17
- * About the page transition [wallis' blog post](https://wallis.dev/blog/nextjs-page-transitions-with-framer-motion)
18
- */
19
- var AppMain = function (_a) {
20
- var Component = _a.Component, pageProps = _a.pageProps, Layout = _a.Layout, ProgressOverlay = _a.ProgressOverlay, seo = _a.seo, motion = _a.motion, _b = _a.transition, transition = _b === void 0 ? {
21
- initial: { opacity: 0 },
22
- animate: { opacity: 1 },
23
- exit: { opacity: 0 },
24
- } : _b, pre = _a.pre, post = _a.post;
25
- var pathname = (0, router_1.useRouter)().pathname;
26
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(SeoDefaults_1.SeoDefaults, tslib_1.__assign({}, seo)), pre, (0, jsx_runtime_1.jsxs)(MotionProvider_1.default, tslib_1.__assign({ features: motion }, { children: [ProgressOverlay && (0, jsx_runtime_1.jsx)(NextProgress_1.NextProgress, { Overlay: ProgressOverlay }), (0, jsx_runtime_1.jsx)(Layout, { children: (0, jsx_runtime_1.jsx)(framer_motion_1.AnimatePresence, tslib_1.__assign({ exitBeforeEnter: true, initial: false }, { children: (0, jsx_runtime_1.jsx)(framer_motion_1.m.div, tslib_1.__assign({}, transition, { children: (0, react_1.createElement)(Component, tslib_1.__assign({}, pageProps, { key: pathname })) }), pathname) })) })] })), post] }));
27
- };
28
- exports.AppMain = AppMain;
29
- exports.default = exports.AppMain;
@@ -1,25 +0,0 @@
1
- import { __assign } from "tslib";
2
- import { createElement as _createElement } from "react";
3
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
4
- import { useRouter } from "next/router";
5
- import { AnimatePresence, m } from "framer-motion";
6
- import MotionProvider from "@koine/react/m/MotionProvider";
7
- import { SeoDefaults } from "../../SeoDefaults";
8
- import { NextProgress } from "../../NextProgress";
9
- /**
10
- * App main
11
- *
12
- * It implies a setup for `styled-components` and `framer-motion` libraries.
13
- *
14
- * About the page transition [wallis' blog post](https://wallis.dev/blog/nextjs-page-transitions-with-framer-motion)
15
- */
16
- export var AppMain = function (_a) {
17
- var Component = _a.Component, pageProps = _a.pageProps, Layout = _a.Layout, ProgressOverlay = _a.ProgressOverlay, seo = _a.seo, motion = _a.motion, _b = _a.transition, transition = _b === void 0 ? {
18
- initial: { opacity: 0 },
19
- animate: { opacity: 1 },
20
- exit: { opacity: 0 },
21
- } : _b, pre = _a.pre, post = _a.post;
22
- var pathname = useRouter().pathname;
23
- return (_jsxs(_Fragment, { children: [_jsx(SeoDefaults, __assign({}, seo)), pre, _jsxs(MotionProvider, __assign({ features: motion }, { children: [ProgressOverlay && _jsx(NextProgress, { Overlay: ProgressOverlay }), _jsx(Layout, { children: _jsx(AnimatePresence, __assign({ exitBeforeEnter: true, initial: false }, { children: _jsx(m.div, __assign({}, transition, { children: _createElement(Component, __assign({}, pageProps, { key: pathname })) }), pathname) })) })] })), post] }));
24
- };
25
- export default AppMain;
@@ -1,16 +0,0 @@
1
- import React from "react";
2
- import { AppProps as NextAppProps } from "next/app";
3
- import { Theme } from "@mui/material/styles";
4
- import { EmotionCache } from "@emotion/react";
5
- export type AppThemeProps = React.PropsWithChildren<NextAppProps & {
6
- emotionCache?: EmotionCache;
7
- /**
8
- * A theme object
9
- */
10
- theme: Theme;
11
- }>;
12
- /**
13
- * App theme with `emotion` (good for `@mui`)s
14
- */
15
- export declare const AppTheme: ({ emotionCache, theme, children, }: AppThemeProps) => JSX.Element;
16
- export default AppTheme;
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AppTheme = void 0;
4
- var tslib_1 = require("tslib");
5
- var jsx_runtime_1 = require("react/jsx-runtime");
6
- var styles_1 = require("@mui/material/styles");
7
- var react_1 = require("@emotion/react");
8
- var CssBaseline_1 = tslib_1.__importDefault(require("@mui/material/CssBaseline"));
9
- var react_2 = require("@emotion/react");
10
- var sc_1 = require("@koine/react/sc");
11
- var createEmotionCache_1 = require("../../createEmotionCache");
12
- // client-side cache, shared for the whole session of the user in the browser.
13
- var clientSideEmotionCache = (0, createEmotionCache_1.createEmotionCache)();
14
- /**
15
- * App theme with `emotion` (good for `@mui`)s
16
- */
17
- var AppTheme = function (_a) {
18
- var _b = _a.emotionCache, emotionCache = _b === void 0 ? clientSideEmotionCache : _b, theme = _a.theme, children = _a.children;
19
- return ((0, jsx_runtime_1.jsx)(react_1.CacheProvider, tslib_1.__assign({ value: emotionCache }, { children: (0, jsx_runtime_1.jsxs)(styles_1.ThemeProvider, tslib_1.__assign({ theme: theme }, { children: [(0, jsx_runtime_1.jsx)(CssBaseline_1.default, {}), (0, jsx_runtime_1.jsx)(react_2.Global, { styles: (0, react_2.css)(templateObject_1 || (templateObject_1 = tslib_1.__makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), sc_1.stylesGlobal) }), children] })) })));
20
- };
21
- exports.AppTheme = AppTheme;
22
- exports.default = exports.AppTheme;
23
- var templateObject_1;
@@ -1,19 +0,0 @@
1
- import { __assign, __makeTemplateObject } from "tslib";
2
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { ThemeProvider } from "@mui/material/styles";
4
- import { CacheProvider } from "@emotion/react";
5
- import CssBaseline from "@mui/material/CssBaseline";
6
- import { Global, css } from "@emotion/react";
7
- import { stylesGlobal } from "@koine/react/sc";
8
- import { createEmotionCache } from "../../createEmotionCache";
9
- // client-side cache, shared for the whole session of the user in the browser.
10
- var clientSideEmotionCache = createEmotionCache();
11
- /**
12
- * App theme with `emotion` (good for `@mui`)s
13
- */
14
- export var AppTheme = function (_a) {
15
- var _b = _a.emotionCache, emotionCache = _b === void 0 ? clientSideEmotionCache : _b, theme = _a.theme, children = _a.children;
16
- return (_jsx(CacheProvider, __assign({ value: emotionCache }, { children: _jsxs(ThemeProvider, __assign({ theme: theme }, { children: [_jsx(CssBaseline, {}), _jsx(Global, { styles: css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), stylesGlobal) }), children] })) })));
17
- };
18
- export default AppTheme;
19
- var templateObject_1;
@@ -1,11 +0,0 @@
1
- import { AppProps } from "next/app";
2
- import { AppThemeProps } from "../AppTheme";
3
- import { AppMainProps } from "../AppMain";
4
- export type NextAppProps = AppProps<{
5
- session: any;
6
- }> & AppThemeProps & AppMainProps;
7
- /**
8
- * App with authentication provided by `next-auth`
9
- */
10
- export declare const NextApp: (props: NextAppProps) => JSX.Element;
11
- export default NextApp;
@@ -1,13 +0,0 @@
1
- import { __assign } from "tslib";
2
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { SessionProvider } from "next-auth/react";
4
- import { AppHead } from "../../AppHead";
5
- import { AppTheme } from "../AppTheme";
6
- import { AppMain } from "../AppMain";
7
- /**
8
- * App with authentication provided by `next-auth`
9
- */
10
- export var NextApp = function (props) {
11
- return (_jsxs(_Fragment, { children: [_jsx(AppHead, {}), _jsx(SessionProvider, __assign({ session: props.pageProps.session }, { children: _jsx(AppTheme, __assign({}, props, { children: _jsx(AppMain, __assign({}, props)) })) }))] }));
12
- };
13
- export default NextApp;
package/app/em/index.d.ts DELETED
@@ -1,9 +0,0 @@
1
- import { AppProps } from "next/app";
2
- import { AppThemeProps } from "./AppTheme";
3
- import { AppMainProps } from "./AppMain";
4
- export type NextAppProps = AppProps & AppThemeProps & AppMainProps;
5
- /**
6
- * App
7
- */
8
- export declare const NextApp: (props: NextAppProps) => JSX.Element;
9
- export default NextApp;
package/app/em/index.js DELETED
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NextApp = void 0;
4
- var tslib_1 = require("tslib");
5
- var jsx_runtime_1 = require("react/jsx-runtime");
6
- var AppHead_1 = require("../AppHead");
7
- var AppTheme_1 = require("./AppTheme");
8
- var AppMain_1 = require("./AppMain");
9
- /**
10
- * App
11
- */
12
- var NextApp = function (props) {
13
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(AppHead_1.AppHead, {}), (0, jsx_runtime_1.jsx)(AppTheme_1.AppTheme, tslib_1.__assign({}, props, { children: (0, jsx_runtime_1.jsx)(AppMain_1.AppMain, tslib_1.__assign({}, props)) }))] }));
14
- };
15
- exports.NextApp = NextApp;
16
- exports.default = exports.NextApp;
package/app/em/index.mjs DELETED
@@ -1,12 +0,0 @@
1
- import { __assign } from "tslib";
2
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { AppHead } from "../AppHead";
4
- import { AppTheme } from "./AppTheme";
5
- import { AppMain } from "./AppMain";
6
- /**
7
- * App
8
- */
9
- export var NextApp = function (props) {
10
- return (_jsxs(_Fragment, { children: [_jsx(AppHead, {}), _jsx(AppTheme, __assign({}, props, { children: _jsx(AppMain, __assign({}, props)) }))] }));
11
- };
12
- export default NextApp;
@@ -1,11 +0,0 @@
1
- import type { AppMainBaseProps, AppMainFramerProps } from "../AppMain";
2
- export type AppMainProps = AppMainBaseProps & AppMainFramerProps;
3
- /**
4
- * App main
5
- *
6
- * It implies a setup for `styled-components` and `framer-motion` libraries.
7
- *
8
- * About the page transition [wallis' blog post](https://wallis.dev/blog/nextjs-page-transitions-with-framer-motion)
9
- */
10
- export declare const AppMain: ({ Component, pageProps, Layout, ProgressOverlay, seo, motion, transition, pre, post, }: AppMainProps) => JSX.Element;
11
- export default AppMain;
package/app/sc/AppMain.js DELETED
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AppMain = void 0;
4
- var tslib_1 = require("tslib");
5
- var react_1 = require("react");
6
- var jsx_runtime_1 = require("react/jsx-runtime");
7
- var router_1 = require("next/router");
8
- var framer_motion_1 = require("framer-motion");
9
- var m_1 = require("@koine/react/m");
10
- var SeoDefaults_1 = require("../../SeoDefaults");
11
- var NextProgress_1 = require("../../NextProgress");
12
- /**
13
- * App main
14
- *
15
- * It implies a setup for `styled-components` and `framer-motion` libraries.
16
- *
17
- * About the page transition [wallis' blog post](https://wallis.dev/blog/nextjs-page-transitions-with-framer-motion)
18
- */
19
- var AppMain = function (_a) {
20
- var Component = _a.Component, pageProps = _a.pageProps, Layout = _a.Layout, ProgressOverlay = _a.ProgressOverlay, seo = _a.seo, motion = _a.motion, _b = _a.transition, transition = _b === void 0 ? {
21
- initial: { opacity: 0 },
22
- animate: { opacity: 1 },
23
- exit: { opacity: 0 },
24
- } : _b, pre = _a.pre, post = _a.post;
25
- var pathname = (0, router_1.useRouter)().pathname;
26
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(SeoDefaults_1.SeoDefaults, tslib_1.__assign({}, seo)), pre, (0, jsx_runtime_1.jsxs)(m_1.MotionProvider, tslib_1.__assign({ features: motion }, { children: [ProgressOverlay && (0, jsx_runtime_1.jsx)(NextProgress_1.NextProgress, { Overlay: ProgressOverlay }), (0, jsx_runtime_1.jsx)(Layout, { children: (0, jsx_runtime_1.jsx)(framer_motion_1.AnimatePresence, tslib_1.__assign({ exitBeforeEnter: true, initial: false }, { children: (0, jsx_runtime_1.jsx)(framer_motion_1.m.div, tslib_1.__assign({}, transition, { children: (0, react_1.createElement)(Component, tslib_1.__assign({}, pageProps, { key: pathname })) }), pathname) })) })] })), post] }));
27
- };
28
- exports.AppMain = AppMain;
29
- exports.default = exports.AppMain;
@@ -1,14 +0,0 @@
1
- import React from "react";
2
- import { AppProps as NextAppProps } from "next/app";
3
- import { Theme } from "@koine/react/sc";
4
- export type AppThemeProps = React.PropsWithChildren<NextAppProps & {
5
- /**
6
- * A theme object
7
- */
8
- theme: Theme;
9
- }>;
10
- /**
11
- * App theme with `styled-components`
12
- */
13
- export declare const AppTheme: ({ theme, children }: AppThemeProps) => JSX.Element;
14
- export default AppTheme;
@@ -1,11 +0,0 @@
1
- import { AppProps } from "next/app";
2
- import { AppThemeProps } from "../AppTheme";
3
- import { AppMainProps } from "../AppMain";
4
- export type NextAppProps = AppProps<{
5
- session: any;
6
- }> & AppThemeProps & AppMainProps;
7
- /**
8
- * App with authentication provided by `next-auth`
9
- */
10
- export declare const NextApp: (props: NextAppProps) => JSX.Element;
11
- export default NextApp;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NextApp = void 0;
4
- var tslib_1 = require("tslib");
5
- var jsx_runtime_1 = require("react/jsx-runtime");
6
- var react_1 = require("next-auth/react");
7
- var AppHead_1 = require("../../AppHead");
8
- var AppTheme_1 = require("../AppTheme");
9
- var AppMain_1 = require("../AppMain");
10
- /**
11
- * App with authentication provided by `next-auth`
12
- */
13
- var NextApp = function (props) {
14
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(AppHead_1.AppHead, {}), (0, jsx_runtime_1.jsx)(react_1.SessionProvider, tslib_1.__assign({ session: props.pageProps.session }, { children: (0, jsx_runtime_1.jsx)(AppTheme_1.AppTheme, tslib_1.__assign({}, props, { children: (0, jsx_runtime_1.jsx)(AppMain_1.AppMain, tslib_1.__assign({}, props)) })) }))] }));
15
- };
16
- exports.NextApp = NextApp;
17
- exports.default = exports.NextApp;
@@ -1,13 +0,0 @@
1
- import { __assign } from "tslib";
2
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
3
- import { SessionProvider } from "next-auth/react";
4
- import { AppHead } from "../../AppHead";
5
- import { AppTheme } from "../AppTheme";
6
- import { AppMain } from "../AppMain";
7
- /**
8
- * App with authentication provided by `next-auth`
9
- */
10
- export var NextApp = function (props) {
11
- return (_jsxs(_Fragment, { children: [_jsx(AppHead, {}), _jsx(SessionProvider, __assign({ session: props.pageProps.session }, { children: _jsx(AppTheme, __assign({}, props, { children: _jsx(AppMain, __assign({}, props)) })) }))] }));
12
- };
13
- export default NextApp;
package/app/sc/index.d.ts DELETED
@@ -1,56 +0,0 @@
1
- import { AppProps } from "next/app";
2
- import { AppThemeProps } from "./AppTheme";
3
- import { AppMainProps } from "./AppMain";
4
- export type NextAppProps = AppProps & AppThemeProps & AppMainProps;
5
- /**
6
- * App
7
- *
8
- * @example
9
- *
10
- * ```tsx
11
- * import { NextApp, NextAppProps } from "@koine/next/app/sc/auth";
12
- * import { Favicon, AnalyticsGoogle } from "@koine/next";
13
- * import { theme } from "src/helpers/theme";
14
- * import { Layout, ProgressOverlay } from "src/components/Layout";
15
- * // import "@fontsource/myfont/800.css";
16
- * // import "src/helpers/theme.css";
17
- *
18
- * const motion = () => import("@koine/react/m/max").then((m) => m.default);
19
- *
20
- * export default function App(props: NextAppProps) {
21
- * return (
22
- * <NextApp
23
- * {...props}
24
- * Layout={Layout}
25
- * ProgressOverlay={ProgressOverlay}
26
- * theme={theme}
27
- * motion={motion}
28
- * seo={{
29
- * titleTemplate: "%s | MyApp",
30
- * defaultTitle: "MyApp",
31
- * openGraph: {
32
- * type: "website",
33
- * locale: "en_US",
34
- * url: "https://myapp.com/",
35
- * site_name: "MyApp",
36
- * },
37
- * twitter: {
38
- * handle: "@MklrNl",
39
- * site: "@MyApp",
40
- * cardType: "summary_large_image",
41
- * },
42
- * }}
43
- * pre={
44
- * <>
45
- * <AnalyticsGoogle id="UA-xxxxxxxx-x" />
46
- * <Favicon name="MyApp" color="#000000" />
47
- * </>
48
- * }
49
- * />
50
- * );
51
- * }
52
- *
53
- * ```
54
- */
55
- export declare const NextApp: (props: NextAppProps) => JSX.Element;
56
- export default NextApp;