nextpress-core 2.1.0 → 2.1.1

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/lib/ambient.d.ts CHANGED
@@ -5,9 +5,9 @@ declare module '@/nextpress.config' {
5
5
  }
6
6
 
7
7
  declare module '@/fonts' {
8
- type NextFont = import('next/dist/compiled/@next/font').NextFont;
8
+ type NextpressFont = import('@nextpress/router/types').NextpressFont;
9
9
 
10
- const fonts: NextFont[];
10
+ const fonts: NextpressFont[];
11
11
  export default fonts;
12
12
  }
13
13
 
@@ -5,7 +5,7 @@ import fonts from "@/fonts";
5
5
  import { getLanguageAttributes } from "@nextpress/services/metadata/get-language-attribute";
6
6
  import { RenderTheAdminBar } from "@nextpress/ui/render-the-admin-bar";
7
7
 
8
- const fontClasses = fonts.map(font => font.className).join(' ');
8
+ const fontClasses = fonts.map(font => font.variable).join(' ');
9
9
 
10
10
  /**
11
11
  * The layout for the application.
@@ -1,4 +1,5 @@
1
1
  import { Metadata } from "next";
2
+ import { NextFont } from "next/dist/compiled/@next/font";
2
3
  import { JSX } from "react";
3
4
 
4
5
  export type TemplateResult = JSX.Element;
@@ -8,3 +9,5 @@ export type RouteProps = {
8
9
  path: string[];
9
10
  metadata?: boolean;
10
11
  }
12
+
13
+ export type NextpressFont = NextFont & {variable: string};
@@ -18,7 +18,7 @@ export async function RenderTheLogo({ className }: Props) {
18
18
  <div className={className}>
19
19
  {logoId ?
20
20
  <RenderAttachmentImage className="h-full w-full object-contain object-center" attachmentId={logoId} sizes="512px"/>
21
- : <span className="text-4xl font-bold">{await getBlogname()}</span>}
21
+ : <span className="">{await getBlogname()}</span>}
22
22
  </div>
23
23
  )
24
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nextpress-core",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Nextpress Core",
5
5
  "keywords": [],
6
6
  "bin": {