@etsoo/toolpad 1.0.48 → 1.0.50

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.
Files changed (76) hide show
  1. package/build/cjs/Account/Account.d.ts +1 -1
  2. package/build/cjs/Account/AccountPopoverFooter.d.ts +1 -1
  3. package/build/cjs/Account/AccountPopoverHeader.d.ts +1 -1
  4. package/build/cjs/Account/AccountPreview.d.ts +1 -1
  5. package/build/cjs/Account/SignInButton.d.ts +2 -1
  6. package/build/cjs/Account/SignOutButton.d.ts +2 -1
  7. package/build/cjs/AppProvider/AppProviderComponent.d.ts +1 -1
  8. package/build/cjs/AppProvider/AppThemeProvider.d.ts +1 -1
  9. package/build/cjs/DashboardLayout/DashboardLayout.d.ts +1 -1
  10. package/build/cjs/DashboardLayout/DashboardSidebarSubNavigation.d.ts +2 -1
  11. package/build/cjs/DashboardLayout/ThemeSwitcher.d.ts +2 -1
  12. package/build/cjs/DashboardLayout/TitleBar.d.ts +1 -1
  13. package/build/cjs/PageContainer/PageContainer.d.ts +2 -2
  14. package/build/cjs/PageContainer/PageContainerToolbar.d.ts +1 -1
  15. package/build/cjs/react-router-dom/AppProvider.d.ts +2 -1
  16. package/build/cjs/shared/components.d.ts +2 -2
  17. package/build/cjs/shared/locales/LocaleContext.d.ts +1 -1
  18. package/build/mjs/Account/Account.d.ts +1 -1
  19. package/build/mjs/Account/AccountPopoverFooter.d.ts +1 -1
  20. package/build/mjs/Account/AccountPopoverHeader.d.ts +1 -1
  21. package/build/mjs/Account/AccountPreview.d.ts +1 -1
  22. package/build/mjs/Account/SignInButton.d.ts +2 -1
  23. package/build/mjs/Account/SignOutButton.d.ts +2 -1
  24. package/build/mjs/AppProvider/AppProviderComponent.d.ts +1 -1
  25. package/build/mjs/AppProvider/AppThemeProvider.d.ts +1 -1
  26. package/build/mjs/DashboardLayout/DashboardLayout.d.ts +1 -1
  27. package/build/mjs/DashboardLayout/DashboardSidebarSubNavigation.d.ts +2 -1
  28. package/build/mjs/DashboardLayout/ThemeSwitcher.d.ts +2 -1
  29. package/build/mjs/DashboardLayout/TitleBar.d.ts +1 -1
  30. package/build/mjs/PageContainer/PageContainer.d.ts +2 -2
  31. package/build/mjs/PageContainer/PageContainerToolbar.d.ts +1 -1
  32. package/build/mjs/react-router-dom/AppProvider.d.ts +2 -1
  33. package/build/mjs/shared/components.d.ts +2 -2
  34. package/build/mjs/shared/locales/LocaleContext.d.ts +1 -1
  35. package/package.json +19 -29
  36. package/vite.config.mts +15 -0
  37. package/build/cjs/nextjs/AppProvider.d.ts +0 -6
  38. package/build/cjs/nextjs/AppProvider.js +0 -18
  39. package/build/cjs/nextjs/AppProvider.test.d.ts +0 -1
  40. package/build/cjs/nextjs/AppProvider.test.js +0 -71
  41. package/build/cjs/nextjs/AppProviderNextApp.d.ts +0 -5
  42. package/build/cjs/nextjs/AppProviderNextApp.js +0 -63
  43. package/build/cjs/nextjs/AppProviderNextPages.d.ts +0 -5
  44. package/build/cjs/nextjs/AppProviderNextPages.js +0 -73
  45. package/build/cjs/nextjs/index.d.ts +0 -1
  46. package/build/cjs/nextjs/index.js +0 -17
  47. package/build/cjs/utils/hooks/useDebounced.d.ts +0 -8
  48. package/build/cjs/utils/hooks/useDebounced.js +0 -64
  49. package/build/cjs/utils/hooks/useDebouncedHandler.d.ts +0 -12
  50. package/build/cjs/utils/hooks/useDebouncedHandler.js +0 -77
  51. package/build/cjs/utils/hooks/useLatest.d.ts +0 -6
  52. package/build/cjs/utils/hooks/useLatest.js +0 -44
  53. package/build/mjs/nextjs/AppProvider.d.ts +0 -6
  54. package/build/mjs/nextjs/AppProvider.js +0 -16
  55. package/build/mjs/nextjs/AppProvider.test.d.ts +0 -1
  56. package/build/mjs/nextjs/AppProvider.test.js +0 -36
  57. package/build/mjs/nextjs/AppProviderNextApp.d.ts +0 -5
  58. package/build/mjs/nextjs/AppProviderNextApp.js +0 -27
  59. package/build/mjs/nextjs/AppProviderNextPages.d.ts +0 -5
  60. package/build/mjs/nextjs/AppProviderNextPages.js +0 -37
  61. package/build/mjs/nextjs/index.d.ts +0 -1
  62. package/build/mjs/nextjs/index.js +0 -1
  63. package/build/mjs/utils/hooks/useDebounced.d.ts +0 -8
  64. package/build/mjs/utils/hooks/useDebounced.js +0 -28
  65. package/build/mjs/utils/hooks/useDebouncedHandler.d.ts +0 -12
  66. package/build/mjs/utils/hooks/useDebouncedHandler.js +0 -41
  67. package/build/mjs/utils/hooks/useLatest.d.ts +0 -6
  68. package/build/mjs/utils/hooks/useLatest.js +0 -9
  69. package/src/nextjs/AppProvider.test.tsx +0 -48
  70. package/src/nextjs/AppProvider.tsx +0 -18
  71. package/src/nextjs/AppProviderNextApp.tsx +0 -37
  72. package/src/nextjs/AppProviderNextPages.tsx +0 -52
  73. package/src/nextjs/index.tsx +0 -1
  74. package/src/utils/hooks/useDebounced.ts +0 -39
  75. package/src/utils/hooks/useDebouncedHandler.ts +0 -71
  76. package/src/utils/hooks/useLatest.ts +0 -16
@@ -59,5 +59,5 @@ export interface AccountProps {
59
59
  *
60
60
  * - [Account API](https://mui.com/toolpad/core/api/account)
61
61
  */
62
- declare function Account(props: AccountProps): import("react/jsx-runtime").JSX.Element | null;
62
+ declare function Account(props: AccountProps): React.JSX.Element | null;
63
63
  export { Account };
@@ -3,4 +3,4 @@ import { BoxProps } from "@mui/material/Box";
3
3
  export interface AccountPopoverFooterProps extends BoxProps {
4
4
  children?: React.ReactNode;
5
5
  }
6
- export declare function AccountPopoverFooter(props: AccountPopoverFooterProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function AccountPopoverFooter(props: AccountPopoverFooterProps): React.JSX.Element;
@@ -3,4 +3,4 @@ import { StackProps } from "@mui/material/Stack";
3
3
  export interface AccountPopoverHeaderProps extends StackProps {
4
4
  children?: React.ReactNode;
5
5
  }
6
- export declare function AccountPopoverHeader(props: AccountPopoverHeaderProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function AccountPopoverHeader(props: AccountPopoverHeaderProps): React.JSX.Element;
@@ -60,5 +60,5 @@ export interface AccountPreviewProps {
60
60
  *
61
61
  * - [AccountPreview API](https://mui.com/toolpad/core/api/account-preview)
62
62
  */
63
- declare function AccountPreview(props: AccountPreviewProps): import("react/jsx-runtime").JSX.Element | null;
63
+ declare function AccountPreview(props: AccountPreviewProps): React.JSX.Element | null;
64
64
  export { AccountPreview };
@@ -1,2 +1,3 @@
1
+ import * as React from "react";
1
2
  import { ButtonProps } from "@mui/material/Button";
2
- export declare function SignInButton(props: ButtonProps): import("react/jsx-runtime").JSX.Element;
3
+ export declare function SignInButton(props: ButtonProps): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import * as React from "react";
1
2
  import { ButtonProps } from "@mui/material/Button";
2
3
  export type SignOutButtonProps = ButtonProps;
3
- export declare function SignOutButton(props: SignOutButtonProps): import("react/jsx-runtime").JSX.Element;
4
+ export declare function SignOutButton(props: SignOutButtonProps): React.JSX.Element;
@@ -10,5 +10,5 @@ import { AppProviderProps } from "./AppProvider";
10
10
  *
11
11
  * - [AppProvider API](https://mui.com/toolpad/core/api/app-provider)
12
12
  */
13
- declare function AppProvider(props: AppProviderProps): import("react/jsx-runtime").JSX.Element;
13
+ declare function AppProvider(props: AppProviderProps): import("react").JSX.Element;
14
14
  export { AppProvider };
@@ -8,5 +8,5 @@ interface AppThemeProviderProps {
8
8
  /**
9
9
  * @ignore - internal component.
10
10
  */
11
- declare function AppThemeProvider(props: AppThemeProviderProps): import("react/jsx-runtime").JSX.Element;
11
+ declare function AppThemeProvider(props: AppThemeProviderProps): React.JSX.Element;
12
12
  export { AppThemeProvider };
@@ -87,5 +87,5 @@ export interface DashboardLayoutProps {
87
87
  *
88
88
  * - [DashboardLayout API](https://mui.com/toolpad/core/api/dashboard-layout)
89
89
  */
90
- declare function DashboardLayout(props: DashboardLayoutProps): import("react/jsx-runtime").JSX.Element;
90
+ declare function DashboardLayout(props: DashboardLayoutProps): React.JSX.Element;
91
91
  export { DashboardLayout };
@@ -1,3 +1,4 @@
1
+ import * as React from "react";
1
2
  import type { Navigation } from "../AppProvider";
2
3
  interface DashboardSidebarSubNavigationProps {
3
4
  subNavigation: Navigation;
@@ -12,5 +13,5 @@ interface DashboardSidebarSubNavigationProps {
12
13
  /**
13
14
  * @ignore - internal component.
14
15
  */
15
- declare function DashboardSidebarSubNavigation({ subNavigation, basePath, depth, onLinkClick, isMini, isFullyExpanded, hasDrawerTransitions, selectedItemId }: DashboardSidebarSubNavigationProps): import("react/jsx-runtime").JSX.Element;
16
+ declare function DashboardSidebarSubNavigation({ subNavigation, basePath, depth, onLinkClick, isMini, isFullyExpanded, hasDrawerTransitions, selectedItemId }: DashboardSidebarSubNavigationProps): React.JSX.Element;
16
17
  export { DashboardSidebarSubNavigation };
@@ -1,5 +1,6 @@
1
+ import * as React from "react";
1
2
  /**
2
3
  * @ignore - internal component.
3
4
  */
4
- declare function ThemeSwitcher(): import("react/jsx-runtime").JSX.Element | null;
5
+ declare function ThemeSwitcher(): React.JSX.Element | null;
5
6
  export { ThemeSwitcher };
@@ -1,2 +1,2 @@
1
1
  import React from "react";
2
- export declare function TitleBar(): number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | undefined;
2
+ export declare function TitleBar(): number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | undefined;
@@ -32,7 +32,7 @@ export declare const PageDataContext: React.Context<{
32
32
  state: PageData;
33
33
  dispatch: React.Dispatch<PageDataAction>;
34
34
  }>;
35
- export declare function PageDataContextProvider(props: React.PropsWithChildren<PageData>): import("react/jsx-runtime").JSX.Element;
35
+ export declare function PageDataContextProvider(props: React.PropsWithChildren<PageData>): React.JSX.Element;
36
36
  type PageContainerBarProps = {
37
37
  /**
38
38
  * The components used for each slot inside.
@@ -59,5 +59,5 @@ export type PageContainerProps = React.PropsWithChildren<StackProps & PageContai
59
59
  *
60
60
  * - [PageContainer API](https://mui.com/toolpad/core/api/page-container)
61
61
  */
62
- declare function PageContainer(props: PageContainerProps): import("react/jsx-runtime").JSX.Element;
62
+ declare function PageContainer(props: PageContainerProps): React.JSX.Element;
63
63
  export { PageContainer };
@@ -12,5 +12,5 @@ export interface PageContainerToolbarProps {
12
12
  *
13
13
  * - [PageContainerToolbar API](https://mui.com/toolpad/core/api/page-container-toolbar)
14
14
  */
15
- declare function PageContainerToolbar(props: PageContainerToolbarProps): import("react/jsx-runtime").JSX.Element;
15
+ declare function PageContainerToolbar(props: PageContainerToolbarProps): React.JSX.Element;
16
16
  export { PageContainerToolbar };
@@ -1,6 +1,7 @@
1
+ import * as React from "react";
1
2
  import { type AppProviderProps } from "../AppProvider";
2
3
  /**
3
4
  * @ignore - internal component.
4
5
  */
5
- declare function AppProvider(props: AppProviderProps): import("react/jsx-runtime").JSX.Element;
6
+ declare function AppProvider(props: AppProviderProps): React.JSX.Element;
6
7
  export { AppProvider };
@@ -1,5 +1,5 @@
1
1
  export interface ErrorOverlayProps {
2
2
  error?: unknown;
3
3
  }
4
- export declare function ErrorOverlay({ error }: ErrorOverlayProps): import("react/jsx-runtime").JSX.Element;
5
- export declare function LoadingOverlay(): import("react/jsx-runtime").JSX.Element;
4
+ export declare function ErrorOverlay({ error }: ErrorOverlayProps): import("react").JSX.Element;
5
+ export declare function LoadingOverlay(): import("react").JSX.Element;
@@ -37,7 +37,7 @@ export interface LocaleProviderProps {
37
37
  /**
38
38
  * @ignore - internal component.
39
39
  */
40
- export declare function LocaleProvider({ localeText, children }: LocaleProviderProps): import("react/jsx-runtime").JSX.Element;
40
+ export declare function LocaleProvider({ localeText, children }: LocaleProviderProps): React.JSX.Element;
41
41
  export declare function useLocaleText(): {
42
42
  signInLabel: string;
43
43
  signOutLabel: string;
@@ -59,5 +59,5 @@ export interface AccountProps {
59
59
  *
60
60
  * - [Account API](https://mui.com/toolpad/core/api/account)
61
61
  */
62
- declare function Account(props: AccountProps): import("react/jsx-runtime").JSX.Element | null;
62
+ declare function Account(props: AccountProps): React.JSX.Element | null;
63
63
  export { Account };
@@ -3,4 +3,4 @@ import { BoxProps } from "@mui/material/Box";
3
3
  export interface AccountPopoverFooterProps extends BoxProps {
4
4
  children?: React.ReactNode;
5
5
  }
6
- export declare function AccountPopoverFooter(props: AccountPopoverFooterProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function AccountPopoverFooter(props: AccountPopoverFooterProps): React.JSX.Element;
@@ -3,4 +3,4 @@ import { StackProps } from "@mui/material/Stack";
3
3
  export interface AccountPopoverHeaderProps extends StackProps {
4
4
  children?: React.ReactNode;
5
5
  }
6
- export declare function AccountPopoverHeader(props: AccountPopoverHeaderProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function AccountPopoverHeader(props: AccountPopoverHeaderProps): React.JSX.Element;
@@ -60,5 +60,5 @@ export interface AccountPreviewProps {
60
60
  *
61
61
  * - [AccountPreview API](https://mui.com/toolpad/core/api/account-preview)
62
62
  */
63
- declare function AccountPreview(props: AccountPreviewProps): import("react/jsx-runtime").JSX.Element | null;
63
+ declare function AccountPreview(props: AccountPreviewProps): React.JSX.Element | null;
64
64
  export { AccountPreview };
@@ -1,2 +1,3 @@
1
+ import * as React from "react";
1
2
  import { ButtonProps } from "@mui/material/Button";
2
- export declare function SignInButton(props: ButtonProps): import("react/jsx-runtime").JSX.Element;
3
+ export declare function SignInButton(props: ButtonProps): React.JSX.Element;
@@ -1,3 +1,4 @@
1
+ import * as React from "react";
1
2
  import { ButtonProps } from "@mui/material/Button";
2
3
  export type SignOutButtonProps = ButtonProps;
3
- export declare function SignOutButton(props: SignOutButtonProps): import("react/jsx-runtime").JSX.Element;
4
+ export declare function SignOutButton(props: SignOutButtonProps): React.JSX.Element;
@@ -10,5 +10,5 @@ import { AppProviderProps } from "./AppProvider";
10
10
  *
11
11
  * - [AppProvider API](https://mui.com/toolpad/core/api/app-provider)
12
12
  */
13
- declare function AppProvider(props: AppProviderProps): import("react/jsx-runtime").JSX.Element;
13
+ declare function AppProvider(props: AppProviderProps): import("react").JSX.Element;
14
14
  export { AppProvider };
@@ -8,5 +8,5 @@ interface AppThemeProviderProps {
8
8
  /**
9
9
  * @ignore - internal component.
10
10
  */
11
- declare function AppThemeProvider(props: AppThemeProviderProps): import("react/jsx-runtime").JSX.Element;
11
+ declare function AppThemeProvider(props: AppThemeProviderProps): React.JSX.Element;
12
12
  export { AppThemeProvider };
@@ -87,5 +87,5 @@ export interface DashboardLayoutProps {
87
87
  *
88
88
  * - [DashboardLayout API](https://mui.com/toolpad/core/api/dashboard-layout)
89
89
  */
90
- declare function DashboardLayout(props: DashboardLayoutProps): import("react/jsx-runtime").JSX.Element;
90
+ declare function DashboardLayout(props: DashboardLayoutProps): React.JSX.Element;
91
91
  export { DashboardLayout };
@@ -1,3 +1,4 @@
1
+ import * as React from "react";
1
2
  import type { Navigation } from "../AppProvider";
2
3
  interface DashboardSidebarSubNavigationProps {
3
4
  subNavigation: Navigation;
@@ -12,5 +13,5 @@ interface DashboardSidebarSubNavigationProps {
12
13
  /**
13
14
  * @ignore - internal component.
14
15
  */
15
- declare function DashboardSidebarSubNavigation({ subNavigation, basePath, depth, onLinkClick, isMini, isFullyExpanded, hasDrawerTransitions, selectedItemId }: DashboardSidebarSubNavigationProps): import("react/jsx-runtime").JSX.Element;
16
+ declare function DashboardSidebarSubNavigation({ subNavigation, basePath, depth, onLinkClick, isMini, isFullyExpanded, hasDrawerTransitions, selectedItemId }: DashboardSidebarSubNavigationProps): React.JSX.Element;
16
17
  export { DashboardSidebarSubNavigation };
@@ -1,5 +1,6 @@
1
+ import * as React from "react";
1
2
  /**
2
3
  * @ignore - internal component.
3
4
  */
4
- declare function ThemeSwitcher(): import("react/jsx-runtime").JSX.Element | null;
5
+ declare function ThemeSwitcher(): React.JSX.Element | null;
5
6
  export { ThemeSwitcher };
@@ -1,2 +1,2 @@
1
1
  import React from "react";
2
- export declare function TitleBar(): number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | import("react/jsx-runtime").JSX.Element | undefined;
2
+ export declare function TitleBar(): number | bigint | boolean | Iterable<React.ReactNode> | Promise<string | number | bigint | boolean | React.ReactPortal | React.ReactElement<unknown, string | React.JSXElementConstructor<any>> | Iterable<React.ReactNode> | null | undefined> | React.JSX.Element | undefined;
@@ -32,7 +32,7 @@ export declare const PageDataContext: React.Context<{
32
32
  state: PageData;
33
33
  dispatch: React.Dispatch<PageDataAction>;
34
34
  }>;
35
- export declare function PageDataContextProvider(props: React.PropsWithChildren<PageData>): import("react/jsx-runtime").JSX.Element;
35
+ export declare function PageDataContextProvider(props: React.PropsWithChildren<PageData>): React.JSX.Element;
36
36
  type PageContainerBarProps = {
37
37
  /**
38
38
  * The components used for each slot inside.
@@ -59,5 +59,5 @@ export type PageContainerProps = React.PropsWithChildren<StackProps & PageContai
59
59
  *
60
60
  * - [PageContainer API](https://mui.com/toolpad/core/api/page-container)
61
61
  */
62
- declare function PageContainer(props: PageContainerProps): import("react/jsx-runtime").JSX.Element;
62
+ declare function PageContainer(props: PageContainerProps): React.JSX.Element;
63
63
  export { PageContainer };
@@ -12,5 +12,5 @@ export interface PageContainerToolbarProps {
12
12
  *
13
13
  * - [PageContainerToolbar API](https://mui.com/toolpad/core/api/page-container-toolbar)
14
14
  */
15
- declare function PageContainerToolbar(props: PageContainerToolbarProps): import("react/jsx-runtime").JSX.Element;
15
+ declare function PageContainerToolbar(props: PageContainerToolbarProps): React.JSX.Element;
16
16
  export { PageContainerToolbar };
@@ -1,6 +1,7 @@
1
+ import * as React from "react";
1
2
  import { type AppProviderProps } from "../AppProvider";
2
3
  /**
3
4
  * @ignore - internal component.
4
5
  */
5
- declare function AppProvider(props: AppProviderProps): import("react/jsx-runtime").JSX.Element;
6
+ declare function AppProvider(props: AppProviderProps): React.JSX.Element;
6
7
  export { AppProvider };
@@ -1,5 +1,5 @@
1
1
  export interface ErrorOverlayProps {
2
2
  error?: unknown;
3
3
  }
4
- export declare function ErrorOverlay({ error }: ErrorOverlayProps): import("react/jsx-runtime").JSX.Element;
5
- export declare function LoadingOverlay(): import("react/jsx-runtime").JSX.Element;
4
+ export declare function ErrorOverlay({ error }: ErrorOverlayProps): import("react").JSX.Element;
5
+ export declare function LoadingOverlay(): import("react").JSX.Element;
@@ -37,7 +37,7 @@ export interface LocaleProviderProps {
37
37
  /**
38
38
  * @ignore - internal component.
39
39
  */
40
- export declare function LocaleProvider({ localeText, children }: LocaleProviderProps): import("react/jsx-runtime").JSX.Element;
40
+ export declare function LocaleProvider({ localeText, children }: LocaleProviderProps): React.JSX.Element;
41
41
  export declare function useLocaleText(): {
42
42
  signInLabel: string;
43
43
  signOutLabel: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/toolpad",
3
- "version": "1.0.48",
3
+ "version": "1.0.50",
4
4
  "author": "ETSOO",
5
5
  "description": "Dashboard framework extention based on Toolpad Core",
6
6
  "main": "build/cjs/index.js",
@@ -11,11 +11,6 @@
11
11
  "import": "./build/mjs/index.js",
12
12
  "require": "./build/cjs/index.js"
13
13
  },
14
- "./nextjs": {
15
- "types": "./build/mjs/nextjs/index.d.ts",
16
- "import": "./build/mjs/nextjs/index.js",
17
- "require": "./build/cjs/nextjs/index.js"
18
- },
19
14
  "./react-router-dom": {
20
15
  "types": "./build/mjs/react-router-dom/index.d.ts",
21
16
  "import": "./build/mjs/react-router-dom/index.js",
@@ -47,40 +42,35 @@
47
42
  "dependencies": {
48
43
  "@emotion/react": "^11.14.0",
49
44
  "@emotion/styled": "^11.14.1",
50
- "@mui/icons-material": "9.0.0",
51
- "@mui/material": "9.0.0",
52
- "@mui/utils": "9.0.0",
45
+ "@mui/icons-material": "9.1.1",
46
+ "@mui/material": "9.1.1",
47
+ "@mui/utils": "9.1.1",
53
48
  "invariant": "2.2.4",
54
49
  "path-to-regexp": "^6.3.0",
55
- "react": "^19.2.5",
56
- "react-dom": "^19.2.5"
50
+ "react": "^19.2.7",
51
+ "react-dom": "^19.2.7"
57
52
  },
58
53
  "devDependencies": {
59
- "@babel/core": "^7.29.0",
60
- "@babel/plugin-transform-runtime": "^7.29.0",
61
- "@babel/preset-env": "^7.29.2",
62
- "@babel/runtime-corejs3": "^7.29.2",
54
+ "@babel/core": "^7.29.7",
55
+ "@babel/plugin-transform-runtime": "^7.29.7",
56
+ "@babel/preset-env": "^7.29.7",
57
+ "@babel/runtime-corejs3": "^7.29.7",
63
58
  "@testing-library/jest-dom": "^6.9.1",
64
59
  "@testing-library/react": "^16.3.2",
65
60
  "@testing-library/user-event": "^14.6.1",
66
61
  "@types/invariant": "2.2.37",
67
- "@types/node": "^25.6.0",
68
- "@types/react": "19.2.14",
62
+ "@types/node": "^25.9.3",
63
+ "@types/react": "19.2.17",
69
64
  "@types/react-dom": "19.2.3",
70
- "@vitejs/plugin-react": "6.0.1",
71
- "@vitest/browser": "4.1.4",
72
- "@vitest/browser-playwright": "^4.1.4",
73
- "jsdom": "^29.0.2",
74
- "next": "^16.2.3",
75
- "next-router-mock": "^1.0.5",
76
- "playwright": "^1.59.1",
77
- "react-router-dom": "^7.14.0",
78
- "vitest": "4.1.4"
65
+ "@vitejs/plugin-react": "6.0.2",
66
+ "@vitest/browser": "4.1.8",
67
+ "@vitest/browser-playwright": "^4.1.8",
68
+ "jsdom": "^29.1.1",
69
+ "playwright": "^1.60.0",
70
+ "react-router-dom": "^7.17.0",
71
+ "vitest": "4.1.8"
79
72
  },
80
73
  "peerDependenciesMeta": {
81
- "next": {
82
- "optional": true
83
- },
84
74
  "react-router-dom": {
85
75
  "optional": true
86
76
  }
package/vite.config.mts CHANGED
@@ -4,11 +4,26 @@ import react from "@vitejs/plugin-react";
4
4
 
5
5
  export default defineConfig({
6
6
  plugins: [react()],
7
+ resolve: {
8
+ alias: {
9
+ "react-transition-group/TransitionGroupContext":
10
+ "react-transition-group/esm/TransitionGroupContext.js"
11
+ }
12
+ },
7
13
  test: {
8
14
  setupFiles: ["vitest.setup.ts", "@testing-library/jest-dom/vitest"],
9
15
  globals: true,
10
16
  environment: "jsdom",
11
17
  include: ["**/?(*.)test.ts?(x)"],
18
+ server: {
19
+ deps: {
20
+ inline: [
21
+ /@mui\/x-data-grid.*/,
22
+ /@mui\/material.*/,
23
+ /react-transition-group.*/
24
+ ]
25
+ }
26
+ },
12
27
  testTimeout: 10000,
13
28
  browser: {
14
29
  enabled: false, // enabled through CLI
@@ -1,6 +0,0 @@
1
- import type { AppProviderProps } from "../AppProvider";
2
- /**
3
- * @ignore - internal component.
4
- */
5
- declare function AppProvider(props: AppProviderProps): import("react/jsx-runtime").JSX.Element;
6
- export { AppProvider };
@@ -1,18 +0,0 @@
1
- "use client";
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.AppProvider = AppProvider;
5
- const jsx_runtime_1 = require("react/jsx-runtime");
6
- const router_1 = require("next/compat/router");
7
- const AppProviderNextApp_1 = require("./AppProviderNextApp");
8
- const AppProviderNextPages_1 = require("./AppProviderNextPages");
9
- /**
10
- * @ignore - internal component.
11
- */
12
- function AppProvider(props) {
13
- const router = (0, router_1.useRouter)();
14
- const AppProviderComponent = router
15
- ? AppProviderNextPages_1.AppProviderNextPages
16
- : AppProviderNextApp_1.AppProviderNextApp;
17
- return (0, jsx_runtime_1.jsx)(AppProviderComponent, { ...props });
18
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,71 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- const jsx_runtime_1 = require("react/jsx-runtime");
37
- const React = __importStar(require("react"));
38
- const vitest_1 = require("vitest");
39
- const react_1 = require("@testing-library/react");
40
- const AppProvider_1 = require("./AppProvider");
41
- vitest_1.vi.mock("next/navigation", () => {
42
- const searchParams = new URLSearchParams();
43
- const push = () => { };
44
- const replace = () => { };
45
- const router = { push, replace };
46
- return {
47
- usePathname: () => "/",
48
- useSearchParams: () => searchParams,
49
- useRouter: () => router
50
- };
51
- });
52
- vitest_1.vi.mock("next/router", () => ({ useRouter: () => null }));
53
- vitest_1.vi.mock("next/compat/router", () => ({ useRouter: () => null }));
54
- function RouterTest({ children }) {
55
- const [pathname, setPathname] = React.useState("/page");
56
- const router = React.useMemo(() => {
57
- return {
58
- pathname,
59
- searchParams: new URLSearchParams(),
60
- navigate: (path) => setPathname(String(path))
61
- };
62
- }, [pathname]);
63
- return (0, jsx_runtime_1.jsx)(AppProvider_1.AppProvider, { router: router, children: children });
64
- }
65
- (0, vitest_1.describe)("Nextjs AppProvider", () => {
66
- (0, vitest_1.test)("renders content correctly", async () => {
67
- // placeholder test
68
- (0, react_1.render)((0, jsx_runtime_1.jsx)(RouterTest, { children: "Hello" }));
69
- (0, vitest_1.expect)(react_1.screen.getByText("Hello")).toBeTruthy();
70
- });
71
- });
@@ -1,5 +0,0 @@
1
- import type { AppProviderProps } from "../AppProvider";
2
- /**
3
- * @ignore - internal component.
4
- */
5
- export declare function AppProviderNextApp(props: AppProviderProps): import("react/jsx-runtime").JSX.Element;
@@ -1,63 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || (function () {
19
- var ownKeys = function(o) {
20
- ownKeys = Object.getOwnPropertyNames || function (o) {
21
- var ar = [];
22
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
- return ar;
24
- };
25
- return ownKeys(o);
26
- };
27
- return function (mod) {
28
- if (mod && mod.__esModule) return mod;
29
- var result = {};
30
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
- __setModuleDefault(result, mod);
32
- return result;
33
- };
34
- })();
35
- Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.AppProviderNextApp = AppProviderNextApp;
37
- const jsx_runtime_1 = require("react/jsx-runtime");
38
- const React = __importStar(require("react"));
39
- const navigation_1 = require("next/navigation");
40
- const AppProviderComponent_1 = require("../AppProvider/AppProviderComponent");
41
- /**
42
- * @ignore - internal component.
43
- */
44
- function AppProviderNextApp(props) {
45
- const pathname = (0, navigation_1.usePathname)();
46
- const searchParams = (0, navigation_1.useSearchParams)();
47
- const { push, replace } = (0, navigation_1.useRouter)();
48
- const navigate = React.useCallback((url, { history = "auto" } = {}) => {
49
- if (history === "auto" || history === "push") {
50
- return push(String(url));
51
- }
52
- if (history === "replace") {
53
- return replace(String(url));
54
- }
55
- throw new Error(`Invalid history option: ${history}`);
56
- }, [push, replace]);
57
- const routerImpl = React.useMemo(() => ({
58
- pathname,
59
- searchParams,
60
- navigate
61
- }), [pathname, navigate, searchParams]);
62
- return (0, jsx_runtime_1.jsx)(AppProviderComponent_1.AppProvider, { router: routerImpl, ...props });
63
- }
@@ -1,5 +0,0 @@
1
- import type { AppProviderProps } from "../AppProvider";
2
- /**
3
- * @ignore - internal component.
4
- */
5
- export declare function AppProviderNextPages(props: AppProviderProps): import("react/jsx-runtime").JSX.Element;