muffin-admin 1.45.1 → 1.45.2

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/types.d.ts CHANGED
@@ -57,7 +57,7 @@ export type AdminOpts = {
57
57
  };
58
58
  apiUrl: string;
59
59
  appBarLinks: [{
60
- ulr: string;
60
+ url: string;
61
61
  title: string;
62
62
  icon?: string;
63
63
  }];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "muffin-admin",
3
- "version": "1.45.1",
3
+ "version": "1.45.2",
4
4
  "description": "NPM package for https://github.com/klen/muffin-admin",
5
5
  "files": [
6
6
  "src",
@@ -30,19 +30,19 @@
30
30
  "validator": "^13.9.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@types/node": "20.3.2",
34
- "@types/react": "18.2.14",
35
- "@types/react-dom": "18.2.6",
33
+ "@types/node": "20.5.0",
34
+ "@types/react": "18.2.20",
35
+ "@types/react-dom": "18.2.7",
36
36
  "@types/react-window": "^1.8.5",
37
- "@typescript-eslint/eslint-plugin": "^6.3.0",
38
- "@typescript-eslint/parser": "^6.3.0",
37
+ "@typescript-eslint/eslint-plugin": "^6.4.0",
38
+ "@typescript-eslint/parser": "^6.4.0",
39
39
  "dotenv": "^16.3.1",
40
- "eslint": "8.46.0",
40
+ "eslint": "8.47.0",
41
41
  "eslint-config-prettier": "^9.0.0",
42
42
  "eslint-plugin-prettier": "^5.0.0",
43
43
  "html-webpack-plugin": "^5.5.3",
44
44
  "husky": "^8.0.1",
45
- "prettier": "^3.0.1",
45
+ "prettier": "^3.0.2",
46
46
  "prettier-plugin-organize-imports": "^3.2.3",
47
47
  "ts-loader": "^9.4.4",
48
48
  "typescript": "^5.1.6",
@@ -20,7 +20,7 @@ const darkTheme = createTheme({
20
20
  })
21
21
 
22
22
  export function MuffinAdmin(props: AdminOpts) {
23
- const { resources, auth } = props
23
+ const { resources, auth, appBarLinks } = props
24
24
  const children = resources.map((resource) =>
25
25
  buildAdmin(["resource", resource.name], {
26
26
  ...resource,
@@ -41,7 +41,7 @@ export function MuffinAdmin(props: AdminOpts) {
41
41
  }}
42
42
  />
43
43
  <ToggleThemeButton lightTheme={defaultTheme} darkTheme={darkTheme} />
44
- {props.appBarLinks.map((info) => (
44
+ {appBarLinks.map((info) => (
45
45
  <Tooltip key={info.url} title={info.title}>
46
46
  <IconButton color="inherit" href={info.url}>
47
47
  <SvgIcon component={findIcon(info.icon)} />
package/src/types.ts CHANGED
@@ -57,7 +57,7 @@ export type AdminOpts = {
57
57
  mutationMode?: "optimistic" | "pessimistic" | "undoable"
58
58
  }
59
59
  apiUrl: string
60
- appBarLinks: [{ ulr: string; title: string; icon?: string }]
60
+ appBarLinks: [{ url: string; title: string; icon?: string }]
61
61
  auth: {
62
62
  identityURL: string
63
63
  authorizeURL: string