@compill/admin 1.0.109 → 1.0.111

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 CHANGED
@@ -17,14 +17,14 @@ 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 router = require('next/router');
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');
24
24
  var env = require('@compill/env');
25
25
  var reactTable = require('@tanstack/react-table');
26
26
  var reactQuery = require('@tanstack/react-query');
27
- var Image = require('next/image');
27
+ var Image = require('next/image.js');
28
28
  var auth = require('@compill/auth');
29
29
 
30
30
  function SectionTitle({ children, ...props }) {
@@ -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$1 = router.useRouter();
417
- return router$1.query[queryField];
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 = router.useRouter();
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 } = router.useRouter();
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
@@ -15,14 +15,14 @@ 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';
22
22
  import { AppEnv } from '@compill/env';
23
23
  import { createColumnHelper } from '@tanstack/react-table';
24
24
  import { useQueryClient } from '@tanstack/react-query';
25
- import Image from 'next/image';
25
+ import Image from 'next/image.js';
26
26
  import { useSessionUser, useSessionLogout } from '@compill/auth';
27
27
 
28
28
  function SectionTitle({ children, ...props }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compill/admin",
3
- "version": "1.0.109",
3
+ "version": "1.0.111",
4
4
  "private": false,
5
5
  "sideEffects": false,
6
6
  "main": "./dist/index.js",
@@ -32,16 +32,16 @@
32
32
  "@soperio/react": "1.0.24",
33
33
  "@valerya/ui": "1.0.27",
34
34
  "@compill/admin-api": "1.0.62",
35
- "@soperio/jsx-runtime": "1.0.24",
36
35
  "@compill/api": "1.0.64",
37
- "@compill/auth": "1.0.84",
38
- "@compill/components": "1.0.57",
36
+ "@compill/editor": "1.0.89",
39
37
  "@compill/env": "1.0.26",
38
+ "@compill/auth": "1.0.86",
40
39
  "@compill/form": "1.0.74",
41
- "@compill/form-editor": "1.0.26",
40
+ "@compill/form-editor": "1.0.28",
41
+ "@soperio/jsx-runtime": "1.0.24",
42
42
  "@compill/table": "1.0.87",
43
- "@compill/hooks": "1.0.50",
44
- "@compill/editor": "1.0.86"
43
+ "@compill/hooks": "1.0.51",
44
+ "@compill/components": "1.0.57"
45
45
  },
46
46
  "publishConfig": {
47
47
  "access": "public"