medusa-stats 1.0.10 → 1.0.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.
@@ -15,7 +15,7 @@ const Medusa__default = /* @__PURE__ */ _interopDefault(Medusa);
15
15
  const React__default = /* @__PURE__ */ _interopDefault(React);
16
16
  const STATISTICS_QUERY = "statistics";
17
17
  const sdk = new Medusa__default.default({
18
- baseUrl: "/",
18
+ baseUrl: __BACKEND_URL__,
19
19
  debug: false,
20
20
  auth: {
21
21
  type: "session"
@@ -10463,17 +10463,17 @@ const menuItemModule = {
10463
10463
  translationNs: void 0
10464
10464
  },
10465
10465
  {
10466
- label: config$3.label,
10467
- icon: config$3.icon,
10468
- path: "/statistics/presets",
10466
+ label: config$2.label,
10467
+ icon: void 0,
10468
+ path: "/statistics/providers",
10469
10469
  nested: void 0,
10470
10470
  rank: void 0,
10471
10471
  translationNs: void 0
10472
10472
  },
10473
10473
  {
10474
- label: config$2.label,
10475
- icon: void 0,
10476
- path: "/statistics/providers",
10474
+ label: config$3.label,
10475
+ icon: config$3.icon,
10476
+ path: "/statistics/presets",
10477
10477
  nested: void 0,
10478
10478
  rank: void 0,
10479
10479
  translationNs: void 0
@@ -11,7 +11,7 @@ import { HexColorPicker } from "react-colorful";
11
11
  import { ResponsiveContainer, ComposedChart, CartesianGrid, XAxis, YAxis, Tooltip, Legend, Line, Bar, Area } from "recharts";
12
12
  const STATISTICS_QUERY = "statistics";
13
13
  const sdk = new Medusa({
14
- baseUrl: "/",
14
+ baseUrl: __BACKEND_URL__,
15
15
  debug: false,
16
16
  auth: {
17
17
  type: "session"
@@ -10459,17 +10459,17 @@ const menuItemModule = {
10459
10459
  translationNs: void 0
10460
10460
  },
10461
10461
  {
10462
- label: config$3.label,
10463
- icon: config$3.icon,
10464
- path: "/statistics/presets",
10462
+ label: config$2.label,
10463
+ icon: void 0,
10464
+ path: "/statistics/providers",
10465
10465
  nested: void 0,
10466
10466
  rank: void 0,
10467
10467
  translationNs: void 0
10468
10468
  },
10469
10469
  {
10470
- label: config$2.label,
10471
- icon: void 0,
10472
- path: "/statistics/providers",
10470
+ label: config$3.label,
10471
+ icon: config$3.icon,
10472
+ path: "/statistics/presets",
10473
10473
  nested: void 0,
10474
10474
  rank: void 0,
10475
10475
  translationNs: void 0
package/LICENSE ADDED
@@ -0,0 +1,7 @@
1
+ Copyright 2026 Maciej Gerhards (https://github.com/tax1driver)
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "medusa-stats",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "The most flexible statistics plugin for the most flexible commerce platform.",
5
5
  "author": "Maciej (https://github.com/tax1driver)",
6
6
  "license": "MIT",