@mantajs/core 0.1.5 → 0.1.6

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.
@@ -9,16 +9,6 @@ const Medusa = require("@medusajs/js-sdk");
9
9
  const _interopDefault = (e2) => e2 && e2.__esModule ? e2 : { default: e2 };
10
10
  const React__default = /* @__PURE__ */ _interopDefault(React);
11
11
  const Medusa__default = /* @__PURE__ */ _interopDefault(Medusa);
12
- const EmployeesPage = () => {
13
- return /* @__PURE__ */ jsxRuntime.jsx(ui.Container, { className: "divide-y p-0", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "px-6 py-4", children: [
14
- /* @__PURE__ */ jsxRuntime.jsx(ui.Heading, { level: "h1", children: "Employees" }),
15
- /* @__PURE__ */ jsxRuntime.jsx(ui.Text, { className: "text-ui-fg-subtle", children: "Manage employees and their company assignments." })
16
- ] }) });
17
- };
18
- adminSdk.defineRouteConfig({
19
- label: "Employees",
20
- nested: "/companies"
21
- });
22
12
  var isCheckBoxInput = (element) => element.type === "checkbox";
23
13
  var isDateObject = (value) => value instanceof Date;
24
14
  var isNullOrUndefined = (value) => value == null;
@@ -5328,15 +5318,12 @@ const CompaniesPage = () => {
5328
5318
  };
5329
5319
  const config = adminSdk.defineRouteConfig({
5330
5320
  label: "Companies",
5331
- icon: icons.BuildingStorefront
5321
+ icon: icons.BuildingStorefront,
5322
+ rank: 4
5332
5323
  });
5333
5324
  const widgetModule = { widgets: [] };
5334
5325
  const routeModule = {
5335
5326
  routes: [
5336
- {
5337
- Component: EmployeesPage,
5338
- path: "/employees"
5339
- },
5340
5327
  {
5341
5328
  Component: CompaniesPage,
5342
5329
  path: "/companies"
@@ -5350,7 +5337,7 @@ const menuItemModule = {
5350
5337
  icon: config.icon,
5351
5338
  path: "/companies",
5352
5339
  nested: void 0,
5353
- rank: void 0,
5340
+ rank: 4,
5354
5341
  translationNs: void 0
5355
5342
  }
5356
5343
  ]
@@ -1,20 +1,10 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { defineRouteConfig } from "@medusajs/admin-sdk";
3
- import { Container, Heading, Text, toast, Button, Table, FocusModal, Label, Input } from "@medusajs/ui";
3
+ import { toast, Container, Heading, Text, Button, Table, FocusModal, Label, Input } from "@medusajs/ui";
4
4
  import { BuildingStorefront, Plus, Spinner } from "@medusajs/icons";
5
5
  import { useQueryClient, useQuery, useMutation } from "@tanstack/react-query";
6
6
  import React, { useState } from "react";
7
7
  import Medusa from "@medusajs/js-sdk";
8
- const EmployeesPage = () => {
9
- return /* @__PURE__ */ jsx(Container, { className: "divide-y p-0", children: /* @__PURE__ */ jsxs("div", { className: "px-6 py-4", children: [
10
- /* @__PURE__ */ jsx(Heading, { level: "h1", children: "Employees" }),
11
- /* @__PURE__ */ jsx(Text, { className: "text-ui-fg-subtle", children: "Manage employees and their company assignments." })
12
- ] }) });
13
- };
14
- defineRouteConfig({
15
- label: "Employees",
16
- nested: "/companies"
17
- });
18
8
  var isCheckBoxInput = (element) => element.type === "checkbox";
19
9
  var isDateObject = (value) => value instanceof Date;
20
10
  var isNullOrUndefined = (value) => value == null;
@@ -5324,15 +5314,12 @@ const CompaniesPage = () => {
5324
5314
  };
5325
5315
  const config = defineRouteConfig({
5326
5316
  label: "Companies",
5327
- icon: BuildingStorefront
5317
+ icon: BuildingStorefront,
5318
+ rank: 4
5328
5319
  });
5329
5320
  const widgetModule = { widgets: [] };
5330
5321
  const routeModule = {
5331
5322
  routes: [
5332
- {
5333
- Component: EmployeesPage,
5334
- path: "/employees"
5335
- },
5336
5323
  {
5337
5324
  Component: CompaniesPage,
5338
5325
  path: "/companies"
@@ -5346,7 +5333,7 @@ const menuItemModule = {
5346
5333
  icon: config.icon,
5347
5334
  path: "/companies",
5348
5335
  nested: void 0,
5349
- rank: void 0,
5336
+ rank: 4,
5350
5337
  translationNs: void 0
5351
5338
  }
5352
5339
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mantajs/core",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "B2B plugin for Medusa with Company and Employee management",
5
5
  "author": "MANTAJS",
6
6
  "license": "MIT",