@uniai-fe/uds-templates 0.5.3 → 0.5.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniai-fe/uds-templates",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "UNIAI Design System; UI Templates Package",
5
5
  "type": "module",
6
6
  "private": false,
@@ -3,12 +3,12 @@
3
3
  import clsx from "clsx";
4
4
  import { Button, type TextButtonProps } from "@uniai-fe/uds-primitives";
5
5
 
6
- export default function PageHeaderUtilityButton({
6
+ export default function PageHeaderUtilityButton<CustomButtonProps>({
7
7
  as,
8
8
  className,
9
9
  children,
10
10
  ...props
11
- }: Omit<TextButtonProps, "size" | "priority">) {
11
+ }: Omit<TextButtonProps & CustomButtonProps, "size" | "priority">) {
12
12
  return (
13
13
  <Button.Text
14
14
  as={as ?? "button"}
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
 
3
3
  import Image from "next/image";
4
- import Link from "next/link";
4
+ import Link, { type LinkProps } from "next/link";
5
5
  import assetsUrl from "../../../../../asset-url";
6
6
  import PageHeaderUtilityItem from "./Item";
7
7
  import PageHeaderUtilityButton from "./Button";
@@ -18,10 +18,11 @@ export default function PageHeaderLogoutButton({
18
18
  <PageHeaderUtilityItem
19
19
  className={clsx("page-header-util-logout", className)}
20
20
  >
21
- <PageHeaderUtilityButton
21
+ <PageHeaderUtilityButton<LinkProps>
22
22
  href={path}
23
23
  as={Link}
24
24
  className="page-header-logout-button"
25
+ prefetch={false}
25
26
  >
26
27
  <figure>
27
28
  <Image
@@ -13,7 +13,7 @@ import type {
13
13
  * @returns {UseServiceInquiryNetworkErrorReturn} 최근 오류 목록과 기록/초기화 함수
14
14
  * @example
15
15
  * const { reportNetworkError } = useServiceInquiryNetworkError();
16
- * reportNetworkError({ route: "/api/v2/login", message: "timeout" });
16
+ * reportNetworkError({ route: "/api/login", message: "timeout" });
17
17
  */
18
18
  export function useServiceInquiryNetworkError(): UseServiceInquiryNetworkErrorReturn {
19
19
  const [networkErrors, setNetworkErrors] = useAtom(