yaml-admin-front 0.0.21 → 0.0.22

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,13 +1,11 @@
1
1
  {
2
2
  "name": "yaml-admin-front",
3
- "version": "0.0.21",
3
+ "version": "0.0.22",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "React components for yaml-admin front (library)",
7
7
  "main": "src/index.js",
8
- "scripts": {
9
- "pub": "npm publish -w yaml-admin-front --access public"
10
- },
8
+ "scripts": {},
11
9
  "dependencies": {
12
10
  "@iconify/react": "^6.0.0",
13
11
  "@mui/x-tree-view": "^8.11.2",
@@ -27,8 +27,7 @@ import {
27
27
 
28
28
  import { useNavigate } from 'react-router-dom';
29
29
  import { useAdminContext } from '../AdminContext';
30
- import { getFieldShow } from '../common/field';
31
- import ComponentLayout from "./ComponentLayout";
30
+ import YAMLComponentLayout from "./YAMLComponentLayout";
32
31
  //Custom Import Start
33
32
 
34
33
  //Custom Import End
@@ -42,7 +41,7 @@ export const DashboardLayout = ({ custom, ...props }) => {
42
41
 
43
42
  //Custom List Code End
44
43
  return (
45
- <ComponentLayout components={yml?.front?.dashboard} />
44
+ <YAMLComponentLayout components={yml?.front?.dashboard} />
46
45
  )
47
46
  };
48
47
 
@@ -8,7 +8,7 @@ import { useAdminContext } from '../AdminContext';
8
8
  import Chart from "react-apexcharts";
9
9
  import { fetcher } from '../common/axios';
10
10
 
11
- export const ComponentLayout = ({ component, custom, ...props }) => {
11
+ export const YAMLComponent = ({ component, custom, ...props }) => {
12
12
  const navigate = useNavigate()
13
13
  const refresh = useRefresh();
14
14
  const yml = useAdminContext();
@@ -33,4 +33,4 @@ export const ComponentLayout = ({ component, custom, ...props }) => {
33
33
  };
34
34
 
35
35
 
36
- export default ComponentLayout;
36
+ export default YAMLComponent;
@@ -6,7 +6,7 @@ import {
6
6
  import { useNavigate } from 'react-router-dom';
7
7
  import { useAdminContext } from '../AdminContext';
8
8
  import { Box, Grid, Card, CardContent, CardHeader } from '@mui/material';
9
- import Component from './Component';
9
+ import YAMLComponent from './YAMLComponent';
10
10
  import { useTheme } from '@mui/material/styles';
11
11
  import useMediaQuery from '@mui/material/useMediaQuery';
12
12
 
@@ -16,7 +16,7 @@ import useMediaQuery from '@mui/material/useMediaQuery';
16
16
 
17
17
  //Custom Import End
18
18
 
19
- export const ComponentLayout = ({ components, custom, ...props }) => {
19
+ export const YAMLComponentLayout = ({ components, custom, ...props }) => {
20
20
  const navigate = useNavigate()
21
21
  const refresh = useRefresh();
22
22
  const yml = useAdminContext();
@@ -30,7 +30,7 @@ export const ComponentLayout = ({ components, custom, ...props }) => {
30
30
  <Card>
31
31
  <CardHeader title={component.label} />
32
32
  <CardContent>
33
- <Component component={component} />
33
+ <YAMLComponent component={component} />
34
34
  </CardContent>
35
35
  </Card>
36
36
  </Grid>
@@ -41,4 +41,4 @@ export const ComponentLayout = ({ components, custom, ...props }) => {
41
41
  };
42
42
 
43
43
 
44
- export default ComponentLayout;
44
+ export default YAMLComponentLayout;