nexus-shared 1.1.9 → 1.1.10

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexus-shared",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "description": "Nexus shared React components for Next.js",
5
5
  "type": "module",
6
6
  "sideEffects": [ "**/*.css" ],
@@ -1,11 +1,8 @@
1
- 'use server'
2
-
1
+ "use server";
2
+ import { Inter } from "next/font/google";
3
3
  import Script from "next/script";
4
4
  import React from "react";
5
- import {
6
- IGlobalLayout,
7
- ROOT_LOADER_IDENTITY,
8
- } from "../../interfaces/layout-interfaces";
5
+ import { IGlobalLayout, ROOT_LOADER_IDENTITY } from "../../interfaces/layout-interfaces";
9
6
  import { FILES } from "../../nexus.environments";
10
7
  import { LayoutHelpers } from "./layout-helpers";
11
8
 
@@ -18,48 +15,40 @@ import "./../../styles/nexus.loader.css";
18
15
  import "./../../styles/nexus.logic.css";
19
16
  import "./../../styles/nexus.utility.css";
20
17
 
21
- export const GlobalLayout = async ({
22
- children,
23
- globalLayout,
24
- }: Readonly<{ children: React.ReactNode; globalLayout: IGlobalLayout }>) => {
18
+ const inter = Inter({ weight: ["300", "400", "500", "600", "700", "800"], subsets: ["latin"] });
19
+
20
+ export const GlobalLayout = async ({ children, globalLayout }: Readonly<{ children: React.ReactNode; globalLayout: IGlobalLayout }>) => {
25
21
  return (
26
- <React.Fragment>
27
- <LayoutHelpers globalLayout={globalLayout} />
28
- <div
29
- style={{
30
- zIndex: "1000",
31
- width: "100vw",
32
- height: "100vh",
33
- position: "fixed",
34
- display: "flex",
35
- justifyContent: "center",
36
- alignItems: "center",
37
- backgroundColor: "rgb(40, 40, 40)",
38
- }}
39
- id={ROOT_LOADER_IDENTITY}
40
- >
41
- <img
42
- src={FILES.LOGO.ICON}
43
- alt={"logo"}
22
+ <html lang="en">
23
+ <head>
24
+ <title>{globalLayout.defaultDocumentTitle}</title>
25
+ <meta name="description" content={globalLayout.defaultDocumentDescription} />
26
+ <meta name="keywords" content={globalLayout.defaultDocumentKeywords.join(", ")} />
27
+ <link rel="icon" href="/favicon.ico" />
28
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
29
+ <style id="nexus-styles"></style>
30
+ </head>
31
+ <body className={inter.className}>
32
+ <LayoutHelpers globalLayout={globalLayout} />
33
+ <div
44
34
  style={{
45
- minHeight: "3rem",
46
- minWidth: "3rem",
47
- width: "3rem",
48
- height: "3rem",
35
+ zIndex: "1000",
36
+ width: "100vw",
37
+ height: "100vh",
38
+ position: "fixed",
39
+ display: "flex",
40
+ justifyContent: "center",
41
+ alignItems: "center",
42
+ backgroundColor: "rgb(40, 40, 40)",
49
43
  }}
50
- />
51
- </div>
52
- {children}
53
- <Script
54
- type="module"
55
- src="https://cdn.jsdelivr.net/npm/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"
56
- strategy="lazyOnload"
57
- ></Script>
58
- <Script
59
- noModule
60
- src="https://cdn.jsdelivr.net/npm/ionicons@5.5.2/dist/ionicons/ionicons.js"
61
- strategy="lazyOnload"
62
- ></Script>
63
- </React.Fragment>
44
+ id={ROOT_LOADER_IDENTITY}
45
+ >
46
+ <img src={FILES.LOGO.ICON} alt={"logo"} style={{ minHeight: "3rem", minWidth: "3rem", width: "3rem", height: "3rem" }} />
47
+ </div>
48
+ {children}
49
+ <Script type="module" src="https://cdn.jsdelivr.net/npm/ionicons@5.5.2/dist/ionicons/ionicons.esm.js" strategy="lazyOnload"></Script>
50
+ <Script noModule src="https://cdn.jsdelivr.net/npm/ionicons@5.5.2/dist/ionicons/ionicons.js" strategy="lazyOnload"></Script>
51
+ </body>
52
+ </html>
64
53
  );
65
54
  };