@compill/admin 1.0.110 → 1.0.112
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/index.cjs +6 -6
- package/dist/index.js +2 -2
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -5,7 +5,7 @@ var api = require('@compill/api');
|
|
|
5
5
|
var components = require('@compill/components');
|
|
6
6
|
var js = require('@mdi/js');
|
|
7
7
|
var ui = require('@valerya/ui');
|
|
8
|
-
var Link = require('next/link');
|
|
8
|
+
var Link = require('next/link.js');
|
|
9
9
|
var reactRouterDom = require('react-router-dom');
|
|
10
10
|
var React = require('react');
|
|
11
11
|
var adminApi = require('@compill/admin-api');
|
|
@@ -17,7 +17,7 @@ var react = require('@soperio/react');
|
|
|
17
17
|
var formEditor = require('@compill/form-editor');
|
|
18
18
|
var editor = require('@compill/editor');
|
|
19
19
|
var reactDom = require('react-dom');
|
|
20
|
-
var
|
|
20
|
+
var router_js = require('next/router.js');
|
|
21
21
|
var table = require('@compill/table');
|
|
22
22
|
var esToolkit = require('es-toolkit');
|
|
23
23
|
var hooks = require('@compill/hooks');
|
|
@@ -413,8 +413,8 @@ function Buttons$1({ api, item, isLoading, buttonBar }) {
|
|
|
413
413
|
|
|
414
414
|
function useQueryField(queryField, useNextRouter) {
|
|
415
415
|
if (useNextRouter) {
|
|
416
|
-
const router
|
|
417
|
-
return router
|
|
416
|
+
const router = router_js.useRouter();
|
|
417
|
+
return router.query[queryField];
|
|
418
418
|
}
|
|
419
419
|
const { [queryField]: id } = reactRouterDom.useParams();
|
|
420
420
|
return id;
|
|
@@ -1120,7 +1120,7 @@ const schemes$1 = {
|
|
|
1120
1120
|
|
|
1121
1121
|
function useTableProps(api, table, rowActions, queryParams) {
|
|
1122
1122
|
const navigate = reactRouterDom.useNavigate();
|
|
1123
|
-
const nextRouter =
|
|
1123
|
+
const nextRouter = router_js.useRouter();
|
|
1124
1124
|
const openLink = hooks.useOpenLink();
|
|
1125
1125
|
const { onAction } = useContext();
|
|
1126
1126
|
const { onRowClick, columns: c, ...props } = table;
|
|
@@ -1404,7 +1404,7 @@ function MenuItem$1({ icon, path, depth, darkMode, subMenu, ...props }) {
|
|
|
1404
1404
|
}
|
|
1405
1405
|
|
|
1406
1406
|
function NextMenuItem({ icon, path, depth, darkMode, subMenu, ...props }) {
|
|
1407
|
-
const { pathname } =
|
|
1407
|
+
const { pathname } = router_js.useRouter();
|
|
1408
1408
|
const selected = path == "/" ? pathname == "/" : pathname.startsWith(path.startsWith("/") ? path : `/${path}`);
|
|
1409
1409
|
const match = path == "/" ? pathname == "/" : pathname == (path.startsWith("/") ? path : `/${path}`);
|
|
1410
1410
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { useApiQuery, useApiMutation, useMutate, useInvalidateMutation, useInval
|
|
|
3
3
|
import { Shimmer, FlexCenter, QueryLoadingState, RetryOnError, TabContainer, ModalLoadingOverlay } from '@compill/components';
|
|
4
4
|
import { mdiCircleSmall, mdiDatabaseRefreshOutline, mdiPost, mdiEye, mdiEyeOff, mdiCloudUpload, mdiOpenInNew, mdiArrowUpBoldBox, mdiArrowDownBoldBox, mdiPlusThick, mdiFilter, mdiRefresh, mdiPublish, mdiPublishOff, mdiDelete, mdiPencil, mdiCog, mdiDotsVertical, mdiLogout, mdiArrowLeft } from '@mdi/js';
|
|
5
5
|
import { Icon, Button, Container, Tile, Popover, Collapse, Modal, Avatar, IconButton, Popup, Checkbox, Badge } from '@valerya/ui';
|
|
6
|
-
import Link from 'next/link';
|
|
6
|
+
import Link from 'next/link.js';
|
|
7
7
|
import { useParams, useNavigate, Outlet, useLocation, useMatch, Link as Link$1 } from 'react-router-dom';
|
|
8
8
|
import React from 'react';
|
|
9
9
|
import { INVALIDATE_API, API, useInvalidatePage } from '@compill/admin-api';
|
|
@@ -15,7 +15,7 @@ import { createContext, runIfFn, isFunction } from '@soperio/react';
|
|
|
15
15
|
import { FormEditor } from '@compill/form-editor';
|
|
16
16
|
import { ImageExtension } from '@compill/editor';
|
|
17
17
|
import { createPortal } from 'react-dom';
|
|
18
|
-
import { useRouter } from 'next/router';
|
|
18
|
+
import { useRouter } from 'next/router.js';
|
|
19
19
|
import { TableContextProvider, useTableContext, Table } from '@compill/table';
|
|
20
20
|
import { isEqual, capitalize, sortBy } from 'es-toolkit';
|
|
21
21
|
import { useOpenLink, useBoolean } from '@compill/hooks';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@compill/admin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.112",
|
|
4
4
|
"private": false,
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -29,19 +29,19 @@
|
|
|
29
29
|
"react-router-dom": "^6.11.2",
|
|
30
30
|
"react-hotkeys-hook": "^5.0.1",
|
|
31
31
|
"yup": "^1.1.0",
|
|
32
|
+
"@soperio/react": "1.0.24",
|
|
32
33
|
"@valerya/ui": "1.0.27",
|
|
33
34
|
"@compill/api": "1.0.64",
|
|
34
35
|
"@compill/admin-api": "1.0.62",
|
|
35
|
-
"@
|
|
36
|
-
"@compill/
|
|
36
|
+
"@compill/auth": "1.0.87",
|
|
37
|
+
"@compill/form-editor": "1.0.28",
|
|
38
|
+
"@soperio/jsx-runtime": "1.0.24",
|
|
37
39
|
"@compill/env": "1.0.26",
|
|
38
40
|
"@compill/components": "1.0.57",
|
|
41
|
+
"@compill/table": "1.0.87",
|
|
39
42
|
"@compill/form": "1.0.74",
|
|
40
|
-
"@compill/hooks": "1.0.50",
|
|
41
|
-
"@soperio/jsx-runtime": "1.0.24",
|
|
42
43
|
"@compill/editor": "1.0.89",
|
|
43
|
-
"@compill/
|
|
44
|
-
"@compill/form-editor": "1.0.28"
|
|
44
|
+
"@compill/hooks": "1.0.51"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|