From 0c3419ff81fc5f31527688f5c5a8f4cdabad6d84 Mon Sep 17 00:00:00 2001 From: mayank1513 Date: Sun, 15 Dec 2024 00:49:05 +0000 Subject: [PATCH] upgrade deps && docs --- docs/assets/search.js | 2 +- docs/functions/client_core_core.Core.html | 2 +- .../client_core_no-fouc.noFOUCScript.html | 2 +- .../client_switch_switch.Switch.html | 2 +- docs/functions/hooks_use-mode.useMode.html | 2 +- docs/functions/utils.useStore.html | 2 +- docs/index.html | 26 ++++----- .../client_core_core.CoreProps.html | 8 +-- .../client_switch_switch.SwitchProps.html | 8 +-- .../hooks_use-mode.UseModeYeild.html | 4 +- docs/interfaces/utils.Store.html | 4 +- docs/types/utils.ColorSchemePreference.html | 2 +- docs/types/utils.ResolvedScheme.html | 2 +- docs/variables/constants.DARK.html | 2 +- docs/variables/constants.LIGHT.html | 2 +- docs/variables/constants.SYSTEM.html | 2 +- docs/variables/constants.modes.html | 2 +- package.json | 6 +- pnpm-lock.yaml | 58 +++++++++---------- 19 files changed, 69 insertions(+), 69 deletions(-) diff --git a/docs/assets/search.js b/docs/assets/search.js index f8ff0ec1..624e2878 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = "eJytXNtu3DgS/RflxQ8aRbzoZmAeFrNX7A52MJlZYOAJAqWbtrXulnoltR2PkX9f8KZmSSx1085LxEjkYZGsOlUssv0S9d3TEF3fvEQPTbuNrmkctfVeRNfRZteIdny/6Xqh/oni6Njvouto322POzG81xU+yW/qn+R+3O+iONrs6mEQQ3QdRV/jCTfLJ+Qful781HeHYYJs2lH0t/XGhzrV9uDH0aHuRTv6xD31TVLKp87HV3T6bry421NLTIC2azfiNULYht9KkIfXCPHwNgFyDrRgkuD22G7GpmsRAV699H51brvvbrvjZlWjTZ1Vpc7dVf3rv3/94cOmbw7jmVFZZLfJ5QO0sq+McXhqxs29eWCD1F/N42LT/aCqnzNeiO20uWiYUHzMjOu7VwvwTje+XAgXARNoaP5Ys+ozEpnW31ik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j+SzcSXoQjy8k9KwpOT/Od5TX9bF4oITDwhNrByzAEMbvf48+15uHu747woto6CVIHKv+PAuRgzel6k/TuJrgsqsnei+Mpp69XzTWd0s9Q4Ou8zgJckdoPdBZRezaza7ZwGME9LLKBXgejguPKmRurtl+/7uPR/JXTN/97NrZ+gk+PGI7z0vjYvsXfNimIE57PpAkCcdqZjlJNM2DGznI06ymieBZ5DxcWMu9jN3d3UxX0MsrK7MvURYn/6jO4dPWwZtp6JZtRRTvAq5eiV6HgRd7ghP+s5Ov1dTLmy+zjwMImNHL6BdHlfJCOEz05eEzIP90BqSP8O3AEeSvgp37sd2K26aFp395OMxhW49i24EwAc27nIe5Wmy/UV5cB5vZHnq+iqPMD59RRUV15TgIcXs7u9qB4qxJskxKONtR6jmUXBVKol11y5srBL2JfRbuWf/NKldC93zMsx9ZhYRJDvTS+nlzPQ5iuVNy5o5hR8OXcIH58z7uBLq/DrnsoG1xJwq9v45Sgf0DapBSwrPR0x9iA8YcvMV9bOC+G42NcITZLwTkH00IhHiazUZ4MPp0D6/goxfEcBnum3kkgYqB+t2nBoaaLHg9npp22z2BFQkfisJI4C2CYE597o7wPhm2rP5F+RhHh+Ygdk0rouubj1+//h9Zsdi+"; \ No newline at end of file +window.searchData = "eJytXG1v4zYS/i/aL/mgquKLRClAPxx6r7grrui2BxTpotDaTKKLLfkkOdl0sf/9QFKUORJHNp39EjOS+HA4nHlmOKL9Oeralz66vfscPdXNNrqlcdRUexndRptdLZvh203bSf0niqNjt4tuo327Pe5k/6154Hd1T/9JHof9Loqjza7qe9lHt1H0JZ5ws3xC/r7t5I9de+gnyLoZZHdfbXyo09Me/Dg6VJ1sBp+4p7FJSvk0+HDFoO+Gi4c99cQEaNpmI68Rwnb8WoI8XSPE09sEyDmwgkmC+2OzGeq2QQS4eun95ty039y3x82qRY/PrBp17q7qX//9y/fvN119GM7MyiK7XS6foJV9ZY79Sz1sHscPbJLm7vhxseu+14+fc16I7fS5aJpQfMyNq4erBXhnOl8uhI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SO0nuisIrbNZldv4GsE9LDKBXgejgvPKlRtrt5+95uPR/Ir1Pc4O3a2/gYfvmI7z0vDYvsX/LJNQ5z2fKBIEo5Vz2qS6J4bd3JQp1ktE8F3kfN0Ya32MrQPDzNbQQ+vrGhfoSze/KM2h6uthSfT0C3biijeBVw9zLwOAw/2BBf852++LjL7a4+hDz1ImNFj5Bdnler3KGChLw/XgPpNC0gf4duBI6hfBQf3Y7OV93UD3/7l4TCHbTXIbQvSBLRmfh7mZrH9RnlxHWzme2Vw+F28fEY9BrWVYy/l/f3saAfKe2uSLIsSzisA6jn3sCqUQrtplydX1DeKrpijgns1v9fkSui+H/NsmFchYZEDPbR+3l2PvVzulJytPMOTzQvAze/uuAp089jLXs0szkSh59dRKrA/HgYpJbwaPf0IGXDm4C3ucw333WhuhCPMviGgfp8gEOJlpo3wZPTlER7BRw+I4TI81vNMAhUDjbsvNUw1WfB6vNTNtn0BKxI+FY2RwFMEwZz62h7heTJsWf2L8iGODvVB7upGRrd3H758+T9DqYDU"; \ No newline at end of file diff --git a/docs/functions/client_core_core.Core.html b/docs/functions/client_core_core.Core.html index 4d4f508e..cd878747 100644 --- a/docs/functions/client_core_core.Core.html +++ b/docs/functions/client_core_core.Core.html @@ -9,4 +9,4 @@
export const Core = ({ t, nonce, k = "o" }: CoreProps) => {
// handle client side exceptions when script is not run. <- for client side apps like vite or CRA
if (typeof window !== "undefined" && !window.m) noFOUCScript(k);

const [{ m: mode, s: systemMode }, setThemeState] = useStore();

useEffect(() => {
// store global functions to local variables to avoid any interference
[media, updateDOM] = [m, u];
/** Updating media: prefers-color-scheme*/
media.addEventListener("change", () =>
setThemeState(state => ({ ...state, s: media.matches ? DARK : LIGHT })),
);
/** Sync the tabs */
addEventListener("storage", (e: StorageEvent): void => {
e.key === k && setThemeState(state => ({ ...state, m: e.newValue as ColorSchemePreference }));
});
}, []);

useEffect(() => {
const restoreTransitions = modifyTransition(t, nonce);
updateDOM(mode, systemMode);
restoreTransitions();
}, [systemMode, mode, t, nonce]);

return <Script {...{ n: nonce, k }} />;
};
-
+
diff --git a/docs/functions/client_core_no-fouc.noFOUCScript.html b/docs/functions/client_core_no-fouc.noFOUCScript.html index 20be3194..5cde3592 100644 --- a/docs/functions/client_core_no-fouc.noFOUCScript.html +++ b/docs/functions/client_core_no-fouc.noFOUCScript.html @@ -1,2 +1,2 @@ noFOUCScript | React18 Loaders

function to be injected in script tag for avoiding FOUC

-
+
diff --git a/docs/functions/client_switch_switch.Switch.html b/docs/functions/client_switch_switch.Switch.html index 457353ea..856b14f0 100644 --- a/docs/functions/client_switch_switch.Switch.html +++ b/docs/functions/client_switch_switch.Switch.html @@ -8,4 +8,4 @@
export const Switch = ({
tag: Tag = "button",
size = 24,
skipSystem,
children,
...tagProps
}: SwitchProps) => {
const [{ m, s }, setState] = useStore();
const n = modes.length - (skipSystem ? 1 : 0);
/** toggle mode */
tagProps.onClick = () =>
setState({
s,
m: modes[(modes.indexOf(m) + 1) % n],
});

const className = styles.switch;
const style = { "--size": `${size}px` };

if (!children) {
tagProps.className += " " + className;
tagProps.style = { ...tagProps.style, ...style };
}

return (
// @ts-expect-error -- too complex types
<Tag suppressHydrationWarning {...tagProps} data-testid="switch">
{/* @ts-expect-error -> we are setting the CSS variable */}
{children && <div {...{ className, style }} />}
{children}
</Tag>
);
};
-
+
diff --git a/docs/functions/hooks_use-mode.useMode.html b/docs/functions/hooks_use-mode.useMode.html index d38379ad..6add1dfe 100644 --- a/docs/functions/hooks_use-mode.useMode.html +++ b/docs/functions/hooks_use-mode.useMode.html @@ -8,4 +8,4 @@
export const useMode = (): UseModeYeild => {
const [{ m, s }, setState] = useStore();
/** Set user preference */
return {
mode: m,
systemMode: s,
resolvedMode: (m === SYSTEM ? s : m) as ResolvedScheme,
setMode: (m: ColorSchemePreference) => setState({ s, m }),
};
};
-
+
diff --git a/docs/functions/utils.useStore.html b/docs/functions/utils.useStore.html index 0e988945..a8c4024b 100644 --- a/docs/functions/utils.useStore.html +++ b/docs/functions/utils.useStore.html @@ -1,2 +1,2 @@ useStore | React18 Loaders

local abstaction of RGS to avoid multiple imports

-
+
diff --git a/docs/index.html b/docs/index.html index 8e4a3d40..3ec87c4d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,8 +1,8 @@ -React18 Loaders

React18 Loaders

Nextjs Darkmode

test Maintainability codecov Version Downloads npm bundle size Gitpod ready-to-code

+React18 Loaders

React18 Loaders

Nextjs Darkmode

test Maintainability codecov Version Downloads npm bundle size Gitpod ready-to-code

Nextjs Darkmode is a versatile library crafted to fully utilize React 18 server components, ensuring a seamless dark mode experience in Next.js applications. Lightweight and efficient, it respects both user preferences and system settings through the prefers-color-scheme media query, and integrates effortlessly with React/Vite, Remix, and Next.js.

The nextjs-themes library was initially created to achieve a similar functionality to next-themes with React Server Components. While effective, it felt bulky for those supporting only dark/light mode. Thus, nextjs-darkmode was developed to offer a minimal footprint while utilizing Next.js Server Components, avoiding any flash of unthemed content, and ensuring theme synchronization with the server.

-

For migration guide please refer Project Wiki

+

For migration guide please refer Project Wiki

@@ -52,11 +52,11 @@

Features

✅ Manipulate theme via the useMode hook

  • -

    ✅ Comprehensive documentation with Typedoc

    +

    ✅ Comprehensive documentation with Typedoc

  • -

    Feel free to request new features, discuss, or report bugs.

    -

    Please consider starring this repository and sharing it with your friends.

    +

    Feel free to request new features, discuss, or report bugs.

    +

    Please consider starring this repository and sharing it with your friends.

    @@ -74,7 +74,7 @@

    Getting Started

    -

    PLease make sure you set "moduleResolution" to "Bundler", "Node16" or "NodeNext" in your tsconfig file for export field in package.json to work properly. (Ref)[https://stackoverflow.com/a/74462490/23175171]

    +

    PLease make sure you set "moduleResolution" to "Bundler", "Node16" or "NodeNext" in your tsconfig file for export field in package.json to work properly. (Ref)[https://stackoverflow.com/a/74462490/23175171]

    You may need to import styles from nextjs-darkmode/dist/index.css depending on your bundler configuration.

    @@ -87,7 +87,7 @@

    Getting Started

    For a lighter version, use nextjs-darkmode-lite:

    -

    npm bundle size Version Downloads

    +

    npm bundle size Version Downloads

    $ pnpm add nextjs-darkmode-lite
     
    @@ -163,15 +163,15 @@

    Getting Started

    nextjs-darkmode is designed to be fully tree-shakable, including only the code you use. For instance, if you only use the useMode hook, the rest of the library's code will be removed during the build process.

    -

    We welcome contributions! Check out the Contributing Guide for more details.

    -

    Explore hands-on courses to get started with Turborepo:

    +

    We welcome contributions! Check out the Contributing Guide for more details.

    +

    Explore hands-on courses to get started with Turborepo:

    Repo Stats

    -

    MPL-2.0

    +

    MPL-2.0

    Feel free to use, modify, and distribute this library under the MPL-2.0 license.

    -

    Please consider enrolling in our courses or sponsoring our work.

    +

    Please consider enrolling in our courses or sponsoring our work.


    with 💖 by Mayank Kumar Chaudhari

    diff --git a/docs/interfaces/client_core_core.CoreProps.html b/docs/interfaces/client_core_core.CoreProps.html index 836ea344..c4f9188b 100644 --- a/docs/interfaces/client_core_core.CoreProps.html +++ b/docs/interfaces/client_core_core.CoreProps.html @@ -1,16 +1,16 @@ -CoreProps | React18 Loaders
    interface CoreProps {
        k?: string;
        nonce?: string;
        t?: string;
    }

    Properties

    k? +CoreProps | React18 Loaders
    interface CoreProps {
        k?: string;
        nonce?: string;
        t?: string;
    }

    Properties

    Properties

    k?: string

    storageKey

    'o'
     
    -
    nonce?: string

    The nonce value for your Content Security Policy.

    +
    nonce?: string

    The nonce value for your Content Security Policy.

    ''
     
    -
    t?: string

    themeTransition: force apply CSS transition property to all the elements during theme switching. E.g., all .3s

    +
    t?: string

    themeTransition: force apply CSS transition property to all the elements during theme switching. E.g., all .3s

    'none'
     
    -
    +
    diff --git a/docs/interfaces/client_switch_switch.SwitchProps.html b/docs/interfaces/client_switch_switch.SwitchProps.html index 85d6e7d0..f8e31b10 100644 --- a/docs/interfaces/client_switch_switch.SwitchProps.html +++ b/docs/interfaces/client_switch_switch.SwitchProps.html @@ -1,10 +1,10 @@ -SwitchProps | React18 Loaders
    interface SwitchProps {
        size?: number;
        skipSystem?: boolean;
        tag?: "button" | "div";
    }

    Hierarchy

    Properties

    size? +SwitchProps | React18 Loaders
    interface SwitchProps {
        size?: number;
        skipSystem?: boolean;
        tag?: "button" | "div";
    }

    Hierarchy

    Properties

    size?: number

    Diameter of the color switch

    -
    skipSystem?: boolean

    Skip system colorScheme while toggling

    -
    tag?: "button" | "div"

    html tag

    +
    skipSystem?: boolean

    Skip system colorScheme while toggling

    +
    tag?: "button" | "div"

    html tag

    'button'
     
    -
    +
    diff --git a/docs/interfaces/hooks_use-mode.UseModeYeild.html b/docs/interfaces/hooks_use-mode.UseModeYeild.html index b083e1a5..9769adec 100644 --- a/docs/interfaces/hooks_use-mode.UseModeYeild.html +++ b/docs/interfaces/hooks_use-mode.UseModeYeild.html @@ -1,5 +1,5 @@ -UseModeYeild | React18 Loaders
    interface UseModeYeild {
        mode: ColorSchemePreference;
        resolvedMode: ResolvedScheme;
        setMode: (mode: ColorSchemePreference) => void;
        systemMode: ResolvedScheme;
    }

    Properties

    mode +UseModeYeild | React18 Loaders
    interface UseModeYeild {
        mode: ColorSchemePreference;
        resolvedMode: ResolvedScheme;
        setMode: (mode: ColorSchemePreference) => void;
        systemMode: ResolvedScheme;
    }

    Properties

    resolvedMode: ResolvedScheme
    setMode: (mode: ColorSchemePreference) => void
    systemMode: ResolvedScheme
    +

    Properties

    resolvedMode: ResolvedScheme
    setMode: (mode: ColorSchemePreference) => void
    systemMode: ResolvedScheme
    diff --git a/docs/interfaces/utils.Store.html b/docs/interfaces/utils.Store.html index 24a01691..33da70be 100644 --- a/docs/interfaces/utils.Store.html +++ b/docs/interfaces/utils.Store.html @@ -1,3 +1,3 @@ -Store | React18 Loaders
    interface Store {
        m: ColorSchemePreference;
        s: ResolvedScheme;
    }

    Properties

    m +Store | React18 Loaders
    interface Store {
        m: ColorSchemePreference;
        s: ResolvedScheme;
    }

    Properties

    m s -

    Properties

    +

    Properties

    diff --git a/docs/types/utils.ColorSchemePreference.html b/docs/types/utils.ColorSchemePreference.html index 88caabbf..03cc4f6f 100644 --- a/docs/types/utils.ColorSchemePreference.html +++ b/docs/types/utils.ColorSchemePreference.html @@ -1 +1 @@ -ColorSchemePreference | React18 Loaders

    Type Alias ColorSchemePreference

    ColorSchemePreference: "system" | "dark" | ""
    +ColorSchemePreference | React18 Loaders

    Type Alias ColorSchemePreference

    ColorSchemePreference: "system" | "dark" | ""
    diff --git a/docs/types/utils.ResolvedScheme.html b/docs/types/utils.ResolvedScheme.html index e41e9372..a370fa15 100644 --- a/docs/types/utils.ResolvedScheme.html +++ b/docs/types/utils.ResolvedScheme.html @@ -1 +1 @@ -ResolvedScheme | React18 Loaders

    Type Alias ResolvedScheme

    ResolvedScheme: "dark" | ""
    +ResolvedScheme | React18 Loaders

    Type Alias ResolvedScheme

    ResolvedScheme: "dark" | ""
    diff --git a/docs/variables/constants.DARK.html b/docs/variables/constants.DARK.html index c92f48ca..1d141d15 100644 --- a/docs/variables/constants.DARK.html +++ b/docs/variables/constants.DARK.html @@ -1 +1 @@ -DARK | React18 Loaders
    DARK: ResolvedScheme = "dark"
    +DARK | React18 Loaders
    DARK: ResolvedScheme = "dark"
    diff --git a/docs/variables/constants.LIGHT.html b/docs/variables/constants.LIGHT.html index 39bbaedf..7e0309cc 100644 --- a/docs/variables/constants.LIGHT.html +++ b/docs/variables/constants.LIGHT.html @@ -1 +1 @@ -LIGHT | React18 Loaders
    LIGHT: ResolvedScheme = ""
    +LIGHT | React18 Loaders
    LIGHT: ResolvedScheme = ""
    diff --git a/docs/variables/constants.SYSTEM.html b/docs/variables/constants.SYSTEM.html index 26bf7109..5f0e4f9a 100644 --- a/docs/variables/constants.SYSTEM.html +++ b/docs/variables/constants.SYSTEM.html @@ -1 +1 @@ -SYSTEM | React18 Loaders

    Variable SYSTEMConst

    SYSTEM: ColorSchemePreference = "system"
    +SYSTEM | React18 Loaders

    Variable SYSTEMConst

    SYSTEM: ColorSchemePreference = "system"
    diff --git a/docs/variables/constants.modes.html b/docs/variables/constants.modes.html index 2a344a49..952450c9 100644 --- a/docs/variables/constants.modes.html +++ b/docs/variables/constants.modes.html @@ -1 +1 @@ -modes | React18 Loaders
    modes: ColorSchemePreference[] = ...
    +modes | React18 Loaders
    modes: ColorSchemePreference[] = ...
    diff --git a/package.json b/package.json index bef51a52..3694798f 100644 --- a/package.json +++ b/package.json @@ -17,13 +17,13 @@ "plop": "^4.0.1", "prettier": "^3.4.2", "turbo": "^2.3.3", - "typedoc": "^0.27.4", + "typedoc": "^0.27.5", "typedoc-plugin-extras": "^3.1.0", "typedoc-plugin-inline-sources": "^1.2.0", - "typedoc-plugin-mdn-links": "^4.0.4", + "typedoc-plugin-mdn-links": "^4.0.5", "typedoc-plugin-missing-exports": "^3.1.0", "typedoc-plugin-rename-defaults": "^0.7.2", - "typedoc-plugin-zod": "^1.3.0" + "typedoc-plugin-zod": "^1.3.1" }, "packageManager": "pnpm@9.15.0", "engines": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index fe983556..4a337111 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -28,26 +28,26 @@ importers: specifier: ^2.3.3 version: 2.3.3 typedoc: - specifier: ^0.27.4 - version: 0.27.4(typescript@5.7.2) + specifier: ^0.27.5 + version: 0.27.5(typescript@5.7.2) typedoc-plugin-extras: specifier: ^3.1.0 - version: 3.1.0(typedoc@0.27.4(typescript@5.7.2)) + version: 3.1.0(typedoc@0.27.5(typescript@5.7.2)) typedoc-plugin-inline-sources: specifier: ^1.2.0 - version: 1.2.0(typedoc@0.27.4(typescript@5.7.2)) + version: 1.2.0(typedoc@0.27.5(typescript@5.7.2)) typedoc-plugin-mdn-links: - specifier: ^4.0.4 - version: 4.0.4(typedoc@0.27.4(typescript@5.7.2)) + specifier: ^4.0.5 + version: 4.0.5(typedoc@0.27.5(typescript@5.7.2)) typedoc-plugin-missing-exports: specifier: ^3.1.0 - version: 3.1.0(typedoc@0.27.4(typescript@5.7.2)) + version: 3.1.0(typedoc@0.27.5(typescript@5.7.2)) typedoc-plugin-rename-defaults: specifier: ^0.7.2 - version: 0.7.2(typedoc@0.27.4(typescript@5.7.2)) + version: 0.7.2(typedoc@0.27.5(typescript@5.7.2)) typedoc-plugin-zod: - specifier: ^1.3.0 - version: 1.3.0(typedoc@0.27.4(typescript@5.7.2)) + specifier: ^1.3.1 + version: 1.3.1(typedoc@0.27.5(typescript@5.7.2)) examples/nextjs: dependencies: @@ -5592,8 +5592,8 @@ packages: peerDependencies: typedoc: 0.25.x || 0.26.x - typedoc-plugin-mdn-links@4.0.4: - resolution: {integrity: sha512-rp0qiELXDso1VTFZVbLmO06SsdePD0j+h9JurxI6F8puM/euj6WZYKL5uWSWvu0r3wdUkus3KPQQEMmZ+rn5/g==} + typedoc-plugin-mdn-links@4.0.5: + resolution: {integrity: sha512-ja4zdtmO6UIq3HDsssWSMxhNn7RgVQ9vbE8OEmIuVmeeNsbRBpskcw1JMiZmud7Ozxfvgd+qKx4wa6RTWQxQVw==} peerDependencies: typedoc: 0.26.x || 0.27.x @@ -5607,13 +5607,13 @@ packages: peerDependencies: typedoc: '>=0.22.x <0.28.x' - typedoc-plugin-zod@1.3.0: - resolution: {integrity: sha512-WOz8qqOn1Yfa80rXonrfRJL7WolWkDBwUy42wsrLOPTW74fOo+/D4cy9FR4wZbnbQ1ssZWYRVawbpOCiQjLoKA==} + typedoc-plugin-zod@1.3.1: + resolution: {integrity: sha512-u4NH1Ez168gRNnhUd0x4pZhp85maJ9y050IxSok9XwdzTpUA9NN0ee3ho8ssrzmxsvO2UDbDEiks7xtI0p6UXA==} peerDependencies: typedoc: 0.23.x || 0.24.x || 0.25.x || 0.26.x || 0.27.x - typedoc@0.27.4: - resolution: {integrity: sha512-wXPQs1AYC2Crk+1XFpNuutLIkNWleokZf1UNf/X8w9KsMnirkvT+LzxTXDvfF6ug3TSLf3Xu5ZXRKGfoXPX7IA==} + typedoc@0.27.5: + resolution: {integrity: sha512-x+fhKJtTg4ozXwKayh/ek4wxZQI/+2hmZUdO2i2NGDBRUflDble70z+ewHod3d4gRpXSO6fnlnjbDTnJk7HlkQ==} engines: {node: '>= 18'} hasBin: true peerDependencies: @@ -12061,32 +12061,32 @@ snapshots: typedarray@0.0.6: {} - typedoc-plugin-extras@3.1.0(typedoc@0.27.4(typescript@5.7.2)): + typedoc-plugin-extras@3.1.0(typedoc@0.27.5(typescript@5.7.2)): dependencies: - typedoc: 0.27.4(typescript@5.7.2) + typedoc: 0.27.5(typescript@5.7.2) - typedoc-plugin-inline-sources@1.2.0(typedoc@0.27.4(typescript@5.7.2)): + typedoc-plugin-inline-sources@1.2.0(typedoc@0.27.5(typescript@5.7.2)): dependencies: - typedoc: 0.27.4(typescript@5.7.2) + typedoc: 0.27.5(typescript@5.7.2) - typedoc-plugin-mdn-links@4.0.4(typedoc@0.27.4(typescript@5.7.2)): + typedoc-plugin-mdn-links@4.0.5(typedoc@0.27.5(typescript@5.7.2)): dependencies: - typedoc: 0.27.4(typescript@5.7.2) + typedoc: 0.27.5(typescript@5.7.2) - typedoc-plugin-missing-exports@3.1.0(typedoc@0.27.4(typescript@5.7.2)): + typedoc-plugin-missing-exports@3.1.0(typedoc@0.27.5(typescript@5.7.2)): dependencies: - typedoc: 0.27.4(typescript@5.7.2) + typedoc: 0.27.5(typescript@5.7.2) - typedoc-plugin-rename-defaults@0.7.2(typedoc@0.27.4(typescript@5.7.2)): + typedoc-plugin-rename-defaults@0.7.2(typedoc@0.27.5(typescript@5.7.2)): dependencies: camelcase: 8.0.0 - typedoc: 0.27.4(typescript@5.7.2) + typedoc: 0.27.5(typescript@5.7.2) - typedoc-plugin-zod@1.3.0(typedoc@0.27.4(typescript@5.7.2)): + typedoc-plugin-zod@1.3.1(typedoc@0.27.5(typescript@5.7.2)): dependencies: - typedoc: 0.27.4(typescript@5.7.2) + typedoc: 0.27.5(typescript@5.7.2) - typedoc@0.27.4(typescript@5.7.2): + typedoc@0.27.5(typescript@5.7.2): dependencies: '@gerrit0/mini-shiki': 1.24.4 lunr: 2.3.9