@mantajs/dashboard 0.1.10 → 0.1.11

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.
@@ -0,0 +1,10 @@
1
+ declare function App(props: {
2
+ plugins?: any[]
3
+ }): JSX.Element
4
+
5
+ export default App
6
+
7
+ import type enTranslation from "./en.json"
8
+ export type Resources = {
9
+ translation: typeof enTranslation
10
+ }
@@ -0,0 +1,22 @@
1
+ import { Plugin } from 'vite';
2
+ import { ReactNode } from 'react';
3
+
4
+ type MenuNestedItem = {
5
+ label: string;
6
+ to: string;
7
+ useTranslation?: boolean;
8
+ };
9
+ type MenuItem = {
10
+ icon: ReactNode;
11
+ label: string;
12
+ to: string;
13
+ useTranslation?: boolean;
14
+ items?: MenuNestedItem[];
15
+ };
16
+ type MenuConfig = {
17
+ items: MenuItem[];
18
+ };
19
+
20
+ declare function menuConfigPlugin(): Plugin;
21
+
22
+ export { type MenuConfig, type MenuItem, type MenuNestedItem, menuConfigPlugin };
@@ -0,0 +1,22 @@
1
+ import { Plugin } from 'vite';
2
+ import { ReactNode } from 'react';
3
+
4
+ type MenuNestedItem = {
5
+ label: string;
6
+ to: string;
7
+ useTranslation?: boolean;
8
+ };
9
+ type MenuItem = {
10
+ icon: ReactNode;
11
+ label: string;
12
+ to: string;
13
+ useTranslation?: boolean;
14
+ items?: MenuNestedItem[];
15
+ };
16
+ type MenuConfig = {
17
+ items: MenuItem[];
18
+ };
19
+
20
+ declare function menuConfigPlugin(): Plugin;
21
+
22
+ export { type MenuConfig, type MenuItem, type MenuNestedItem, menuConfigPlugin };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mantajs/dashboard",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "B2B Admin Dashboard for Medusa - Fork of @medusajs/dashboard",
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -84,6 +84,7 @@
84
84
  "@medusajs/types": "2.13.1",
85
85
  "@medusajs/ui-preset": "2.13.1",
86
86
  "@types/node": "^20.0.0",
87
+ "@types/react": "^19.2.13",
87
88
  "@vitejs/plugin-react": "^4.0.0",
88
89
  "autoprefixer": "^10.4.16",
89
90
  "postcss": "^8.4.31",
@@ -1,3 +1,5 @@
1
+ import type { ReactNode } from "react"
2
+
1
3
  export type MenuNestedItem = {
2
4
  label: string
3
5
  to: string
@@ -5,7 +7,7 @@ export type MenuNestedItem = {
5
7
  }
6
8
 
7
9
  export type MenuItem = {
8
- icon: React.ReactNode
10
+ icon: ReactNode
9
11
  label: string
10
12
  to: string
11
13
  useTranslation?: boolean