@rnaga/wp-next-admin 1.0.3 → 1.0.5
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,12 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useMemo, useState, useTransition } from "react";
|
|
3
|
-
import { useWPAdmin } from "@/client/wp-admin";
|
|
4
3
|
import { Box } from "@mui/material";
|
|
5
4
|
import { useServerActions, useUser } from "@rnaga/wp-next-core/client/hooks";
|
|
6
5
|
import { Button } from "@rnaga/wp-next-ui/Button";
|
|
7
6
|
import { ActionTd, Table, Td, Th, THead, Tr } from "@rnaga/wp-next-ui/list";
|
|
8
7
|
import { Loading } from "@rnaga/wp-next-ui/Loading";
|
|
9
8
|
import { Typography } from "@rnaga/wp-next-ui/Typography";
|
|
9
|
+
import { useWPAdmin } from "../../../../../wp-admin";
|
|
10
10
|
import { ActionLink } from "./ActionLink";
|
|
11
11
|
import { Create } from "./Create";
|
|
12
12
|
export const ApplicationPasswords = () => {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import queryString from "querystring";
|
|
2
|
+
import type { AppRouterInstance } from "next/dist/shared/lib/app-router-context.shared-runtime";
|
|
2
3
|
import * as types from "../../types";
|
|
3
4
|
import type * as wpCoreTypes from "@rnaga/wp-next-core/types";
|
|
4
5
|
export declare const useAdminNavigation: <Params = Record<string, any>>() => {
|
|
@@ -7,7 +8,7 @@ export declare const useAdminNavigation: <Params = Record<string, any>>() => {
|
|
|
7
8
|
blogBasePath: string;
|
|
8
9
|
searchParams: import("next/navigation").ReadonlyURLSearchParams;
|
|
9
10
|
navigationStatus: string;
|
|
10
|
-
router:
|
|
11
|
+
router: AppRouterInstance;
|
|
11
12
|
currentPath: string;
|
|
12
13
|
resolvePath: (segment: types.client.AdminPageSegment, options?: Partial<{
|
|
13
14
|
absolute: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-admin-navigation.d.ts","sourceRoot":"","sources":["../../../src/client/hooks/use-admin-navigation.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"use-admin-navigation.d.ts","sourceRoot":"","sources":["../../../src/client/hooks/use-admin-navigation.ts"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,aAAa,CAAC;AACtC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wDAAwD,CAAC;AAIhG,OAAO,KAAK,KAAK,MAAM,aAAa,CAAC;AAGrC,OAAO,KAAK,KAAK,WAAW,MAAM,2BAA2B,CAAC;AAM9D,eAAO,MAAM,kBAAkB,GAAI,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;;;;;;;;2BAkDlD,KAAK,CAAC,MAAM,CAAC,gBAAgB,YAC5B,OAAO,CAAC;QAChB,QAAQ,EAAE,OAAO,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;QACf,WAAW,CAAC,EAAE,WAAW,CAAC,mBAAmB,CAAC;KAC/C,CAAC,KACD,MAAM;qBAWD,MAAM,YACF,OAAO,CAAC;QAChB,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,gBAAgB,CAAC;QACvC,WAAW,CAAC,EAAE,WAAW,CAAC,mBAAmB,CAAC;KAC/C,CAAC;;;;;;;;;;;qBA/CK,CAAC,MAAM,WAAW,CAAC,MAAM,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,EAAE;;;;;;;CAgFjE,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { useNavigation } from "@rnaga/wp-next-core/client/hooks/use-navigation";
|
|
|
3
3
|
import { useWPAdmin } from "../wp-admin";
|
|
4
4
|
export const useAdminNavigation = () => {
|
|
5
5
|
const { pathname, searchParams, navigationStatus, router, queryObject, pushRouter, updateRouter, goto, createQueryObject, createQueryString, } = useNavigation();
|
|
6
|
+
const typedRouter = router;
|
|
6
7
|
const { site: { basePath, blogBasePath }, wp: { globalState }, } = useWPAdmin();
|
|
7
8
|
const layoutKeys = globalState.get("layout-keys");
|
|
8
9
|
const refresh = (keys) => {
|
|
@@ -45,7 +46,7 @@ export const useAdminNavigation = () => {
|
|
|
45
46
|
blogBasePath,
|
|
46
47
|
searchParams,
|
|
47
48
|
navigationStatus,
|
|
48
|
-
router,
|
|
49
|
+
router: typedRouter,
|
|
49
50
|
currentPath,
|
|
50
51
|
resolvePath,
|
|
51
52
|
gotoPath,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rnaga/wp-next-admin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Admin interface for WP Next",
|
|
6
6
|
"author": "Ryohei Nagatsuka",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"diff2html": "^3.4.48",
|
|
36
36
|
"html-react-parser": "^5.1.10",
|
|
37
37
|
"mime-types": "^2.1.35",
|
|
38
|
-
"next": "^15",
|
|
38
|
+
"next": "^15.5.7",
|
|
39
39
|
"react": "^19",
|
|
40
40
|
"react-dom": "^19",
|
|
41
41
|
"react-error-boundary": "^4.0.13",
|
|
@@ -57,8 +57,5 @@
|
|
|
57
57
|
"repository": {
|
|
58
58
|
"type": "git",
|
|
59
59
|
"url": "https://github.com/rnaga/wp-next.git"
|
|
60
|
-
},
|
|
61
|
-
"publishConfig": {
|
|
62
|
-
"registry": "https://npm.pkg.github.com"
|
|
63
60
|
}
|
|
64
61
|
}
|