@yimingliao/cms 0.0.108 → 0.0.110
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/dist/client/index.d.ts +5 -5
- package/dist/client/index.js +7 -7
- package/package.json +1 -1
package/dist/client/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import * as _tanstack_query_core from '@tanstack/query-core';
|
|
|
6
6
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
7
7
|
import { ThemeProvider as ThemeProvider$1 } from 'next-themes';
|
|
8
8
|
import * as React$1 from 'react';
|
|
9
|
-
import { HTMLAttributes, ReactNode, ComponentProps, InputHTMLAttributes, Dispatch, SetStateAction } from 'react';
|
|
9
|
+
import { HTMLAttributes, ReactNode, JSX, ComponentProps, InputHTMLAttributes, Dispatch, SetStateAction } from 'react';
|
|
10
10
|
import { c as createVerifyAction, a as createSignOutAction, b as createSignInAction, d as createVerifyEmailAction, e as createEmailUnverifiedAction, f as createForgotPasswordAction, g as createResetPasswordAction, h as createChangePasswordAction } from '../create-reset-password-action-C-B3uh5m.js';
|
|
11
11
|
import { LucideIcon } from 'lucide-react';
|
|
12
12
|
import { S as Sidebar, B as ButtonProps$1, L as LabelProps } from '../sidebar-Dei7UxR1.js';
|
|
@@ -363,8 +363,8 @@ declare function SidebarSkeleton({ ...props }: React$1.ComponentProps<typeof Sid
|
|
|
363
363
|
declare function createNavbar({ webUrl, storageUrl, I18nSelector, SignOutButton, }: {
|
|
364
364
|
webUrl: string;
|
|
365
365
|
storageUrl: string;
|
|
366
|
-
I18nSelector:
|
|
367
|
-
SignOutButton:
|
|
366
|
+
I18nSelector: () => JSX.Element | null;
|
|
367
|
+
SignOutButton: () => JSX.Element | null;
|
|
368
368
|
}): () => react_jsx_runtime.JSX.Element;
|
|
369
369
|
|
|
370
370
|
declare function createI18nSelector({ enabled, locales, localeDisplay, }: {
|
|
@@ -373,10 +373,10 @@ declare function createI18nSelector({ enabled, locales, localeDisplay, }: {
|
|
|
373
373
|
localeDisplay: Record<string, string>;
|
|
374
374
|
}): () => react_jsx_runtime.JSX.Element | null;
|
|
375
375
|
|
|
376
|
-
declare function createSignOutButton(
|
|
376
|
+
declare function createSignOutButton({ useCommand, signOutAction, }: {
|
|
377
377
|
useCommand: ReturnType<typeof createUseCommand>;
|
|
378
378
|
signOutAction: ReturnType<typeof createSignOutAction>;
|
|
379
|
-
}) => react_jsx_runtime.JSX.Element;
|
|
379
|
+
}): () => react_jsx_runtime.JSX.Element;
|
|
380
380
|
|
|
381
381
|
interface PageHeaderTitleProps {
|
|
382
382
|
icon?: LucideIcon;
|
package/dist/client/index.js
CHANGED
|
@@ -664,13 +664,13 @@ function createNavbar({
|
|
|
664
664
|
t("ui.layout.navbar.website-homepage.text")
|
|
665
665
|
] }) }),
|
|
666
666
|
/* @__PURE__ */ jsx("div", { className: "ml-auto" }),
|
|
667
|
-
I18nSelector,
|
|
667
|
+
/* @__PURE__ */ jsx(I18nSelector, {}),
|
|
668
668
|
/* @__PURE__ */ jsx(ThemeSelector, {}),
|
|
669
669
|
/* @__PURE__ */ jsx(
|
|
670
670
|
NavUser,
|
|
671
671
|
{
|
|
672
672
|
storageUrl,
|
|
673
|
-
SignOutButton,
|
|
673
|
+
SignOutButton: /* @__PURE__ */ jsx(SignOutButton, {}),
|
|
674
674
|
admin,
|
|
675
675
|
isLoading
|
|
676
676
|
}
|
|
@@ -694,11 +694,11 @@ function createI18nSelector({
|
|
|
694
694
|
] });
|
|
695
695
|
};
|
|
696
696
|
}
|
|
697
|
-
function createSignOutButton(
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
697
|
+
function createSignOutButton({
|
|
698
|
+
useCommand,
|
|
699
|
+
signOutAction
|
|
700
|
+
}) {
|
|
701
|
+
return function SignOutButton() {
|
|
702
702
|
const { t } = useTranslator();
|
|
703
703
|
const router = useRouter();
|
|
704
704
|
const { setAdmin } = useAdmin();
|