@sqrzro/admin 4.0.0-alpha.6 → 4.0.0-alpha.7
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.
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import type { PageProps } from '@sqrzro/ui/components';
|
|
2
2
|
import { NextLayoutProps } from '@sqrzro/ui/utility';
|
|
3
|
-
|
|
3
|
+
type Fn = (...args: any[]) => Promise<any>;
|
|
4
|
+
export type AdminLayoutProps<T extends Fn | undefined = undefined> = Omit<PageProps<T>, 'children' | 'pageProps' | 'template'> & {
|
|
4
5
|
readonly layoutProps: NextLayoutProps;
|
|
5
6
|
};
|
|
6
|
-
declare function AdminLayout<T>(props: Readonly<AdminLayoutProps<T>>): React.ReactElement;
|
|
7
|
+
declare function AdminLayout<T extends Fn | undefined = undefined>(props: Readonly<AdminLayoutProps<T>>): React.ReactElement;
|
|
7
8
|
export default AdminLayout;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { PageProps } from '@sqrzro/ui/components';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
type Fn = (...args: any[]) => Promise<any>;
|
|
3
|
+
export type AdminPageProps<T extends Fn | undefined = undefined> = Omit<PageProps<T>, 'template'>;
|
|
4
|
+
declare function AdminPage<T extends Fn | undefined = undefined>(props: Readonly<AdminPageProps<T>>): React.ReactElement;
|
|
4
5
|
export default AdminPage;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sqrzro/admin",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.0-alpha.
|
|
4
|
+
"version": "4.0.0-alpha.7",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "ISC",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"react": "^19.2.4",
|
|
14
14
|
"react-dom": "^19.2.1",
|
|
15
15
|
"@sqrzro/auth": "^4.0.0-alpha.11",
|
|
16
|
-
"@sqrzro/ui": "^4.0.0-alpha.
|
|
16
|
+
"@sqrzro/ui": "^4.0.0-alpha.24"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/react": "^19.2.7",
|