@canmingir/link 1.2.12 → 1.2.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@canmingir/link",
3
- "version": "1.2.12",
3
+ "version": "1.2.14",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.js",
@@ -1,3 +1,6 @@
1
+ import { Grid, Stack, Switch, Typography } from "@mui/material";
2
+ import { publish, useEvent } from "@nucleoidai/react-event";
3
+
1
4
  import Dialog from "@mui/material/Dialog";
2
5
  import DialogContent from "@mui/material/DialogContent";
3
6
  import DialogTitle from "@mui/material/DialogTitle";
@@ -7,9 +10,6 @@ import SelectAvatar from "../IconSelector/IconSelector";
7
10
  import SparkleInput from "../SparkleInput/SparkleInput";
8
11
  import StepComponent from "../StepComponent/StepComponent";
9
12
 
10
- import { Grid, Stack, Switch, Typography } from "@mui/material";
11
- import { publish, useEvent } from "@nucleoidai/react-event";
12
-
13
13
  function AddItemWizard({ onSubmit, items, steps, stepExp }) {
14
14
  const [activeStep, setActiveStep] = React.useState(0);
15
15
  const [newItems, setNewItems] = React.useState(items);
@@ -3,9 +3,9 @@ import Breadcrumbs from "@mui/material/Breadcrumbs";
3
3
  import Link from "@mui/material/Link";
4
4
  import LinkItem from "./link-item";
5
5
  import PropTypes from "prop-types";
6
+ import React from "react";
6
7
  import Stack from "@mui/material/Stack";
7
8
  import Typography from "@mui/material/Typography";
8
-
9
9
  export default function CustomBreadcrumbs({
10
10
  links,
11
11
  action,
@@ -1,4 +1,4 @@
1
- import { useCallback, useState } from "react";
1
+ import React, { useCallback, useState } from "react";
2
2
 
3
3
  export default function usePopover() {
4
4
  const [open, setOpen] = useState(null);
@@ -1,6 +1,6 @@
1
1
  import { FormProvider as Form } from "react-hook-form";
2
2
  import PropTypes from "prop-types";
3
-
3
+ import React from "react";
4
4
  export default function FormProvider({ children, onSubmit, methods }) {
5
5
  return (
6
6
  <Form {...methods}>
@@ -1,5 +1,6 @@
1
1
  import DialogContentText from "@mui/material/DialogContentText";
2
2
  import Grid from "@mui/material/Grid";
3
+ import React from "react";
3
4
  import SvgColor from "../SvgColor";
4
5
 
5
6
  import {
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import SvgColor from "../SvgColor";
2
3
 
3
4
  import {
@@ -1,8 +1,9 @@
1
- import { Controller, useFormContext } from "react-hook-form";
2
-
3
1
  import PropTypes from "prop-types";
2
+ import React from "react";
4
3
  import TextField from "@mui/material/TextField";
5
4
 
5
+ import { Controller, useFormContext } from "react-hook-form";
6
+
6
7
  export default function RHFTextField({ name, helperText, type, ...other }) {
7
8
  const { control } = useFormContext();
8
9
 
@@ -1,6 +1,6 @@
1
1
  import Paper from "@mui/material/Paper";
2
+ import React from "react";
2
3
  import Typography from "@mui/material/Typography";
3
-
4
4
  export default function SearchNotFound({ query, sx, ...other }) {
5
5
  return query ? (
6
6
  <Paper
@@ -1,6 +1,7 @@
1
1
  import Box from "@mui/material/Box";
2
2
  import PropTypes from "prop-types";
3
- import { forwardRef } from "react";
3
+
4
+ import React, { forwardRef } from "react";
4
5
 
5
6
  const SvgColor = forwardRef(({ src, sx, ...other }, ref) => (
6
7
  <Box
@@ -1,11 +1,11 @@
1
1
  import Box from "@mui/material/Box";
2
2
  import Checkbox from "@mui/material/Checkbox";
3
3
  import PropTypes from "prop-types";
4
+ import React from "react";
4
5
  import TableCell from "@mui/material/TableCell";
5
6
  import TableHead from "@mui/material/TableHead";
6
7
  import TableRow from "@mui/material/TableRow";
7
8
  import TableSortLabel from "@mui/material/TableSortLabel";
8
-
9
9
  const visuallyHidden = {
10
10
  border: 0,
11
11
  margin: -1,
@@ -1,8 +1,8 @@
1
1
  import Checkbox from "@mui/material/Checkbox";
2
2
  import PropTypes from "prop-types";
3
+ import React from "react";
3
4
  import Stack from "@mui/material/Stack";
4
5
  import Typography from "@mui/material/Typography";
5
-
6
6
  export default function TableSelectedAction({
7
7
  dense,
8
8
  action,
@@ -1,3 +1,4 @@
1
+ import React from "react";
1
2
  import merge from "lodash/merge";
2
3
  import { useResponsive } from "../../hooks/use-responsive";
3
4
 
@@ -1,4 +1,4 @@
1
- import { useCallback, useState } from "react";
1
+ import React, { useCallback, useState } from "react";
2
2
 
3
3
  export default function useTable(props) {
4
4
  const [dense, setDense] = useState(!!props?.defaultDense);
package/vite/vite.js CHANGED
@@ -57,9 +57,18 @@ async function vite() {
57
57
  rollupOptions: {
58
58
  output: {
59
59
  entryFileNames: `assets/[name].[hash].js`,
60
- chunkFileNames: `assets/[name].[hash].js`,
60
+ chunkFileNames: (chunkInfo) => {
61
+ if (chunkInfo.name === "config") {
62
+ return "config.js";
63
+ }
64
+ return `assets/[name].[hash].js`;
65
+ },
61
66
  assetFileNames: `assets/[name].[hash].[ext]`,
62
67
  manualChunks(id) {
68
+ if (id.includes("config.js") && !id.includes("node_modules")) {
69
+ return "config";
70
+ }
71
+
63
72
  if (id.includes("node_modules")) {
64
73
  return id
65
74
  .toString()