@gasket/template-nextjs-express 7.0.2 → 7.0.4

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.
@@ -37,7 +37,7 @@
37
37
  "@gasket/utils": "^7.4.2",
38
38
  "@types/react": "^19.0.12",
39
39
  "express": "^4.21.2",
40
- "next": "^15.2.5",
40
+ "next": "^15.5.7",
41
41
  "react": "^19.0.0",
42
42
  "react-dom": "^19.0.0",
43
43
  "react-intl": "^7.1.6",
@@ -6,9 +6,15 @@ import intlManager from '../intl';
6
6
 
7
7
  const IntlMessagesProvider = withMessagesProvider(intlManager)(IntlProvider);
8
8
 
9
- // Simple functional App component which can be wrapped
10
- // https://nextjs.org/docs/pages/building-your-application/routing/custom-app
11
- function App({ Component, pageProps }) {
9
+ /**
10
+ * Simple functional App component which can be wrapped
11
+ * @see https://nextjs.org/docs/pages/building-your-application/routing/custom-app
12
+ * @param {object} props - Component props
13
+ * @param {React.ComponentType} props.Component - Page component
14
+ * @param {object} props.pageProps - Page props
15
+ * @returns {React.ReactElement} App component
16
+ */
17
+ function App({ Component, pageProps }: { Component: React.ComponentType; pageProps: object; }): React.ReactElement {
12
18
  const router = useRouter();
13
19
 
14
20
  return (
@@ -6,7 +6,11 @@ import GasketEmblem from '@gasket/assets/react/gasket-emblem.js';
6
6
  const pageStyle: CSSProperties = { textAlign: 'center' };
7
7
  const logoStyle: CSSProperties = { width: '250px', height: '250px' };
8
8
 
9
- function IndexPage() {
9
+ /**
10
+ * Index page component
11
+ * @returns {React.ReactElement} Index page
12
+ */
13
+ function IndexPage(): React.ReactElement {
10
14
  return (
11
15
  <div style={ pageStyle }>
12
16
  <Head title='{{{appName}}}' description='Gasket App'/>