strapi-plugin-matomo 1.0.0 → 1.1.0

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/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  <div align="center" width="150px">
2
- <img style="width: 150px; height: auto;" src="public/assets/logo.png" alt="Logo - Strapi Matomo plugin" />
2
+ <img style="width: 150px; height: auto;" src="https://raw.githubusercontent.com/TobeyTG/strapi-plugin-matomo/master/assets/logo.png" alt="Logo - Strapi Matomo plugin" />
3
3
  </div>
4
4
  <div align="center">
5
5
  <h1>Strapi v5 - Matomo plugin</h1>
@@ -2,7 +2,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { Page } from "@strapi/strapi/admin";
3
3
  import { Routes, Route } from "react-router-dom";
4
4
  import { Suspense, lazy } from "react";
5
- const Dashboard = lazy(() => import("./Dashboard-C9FKj-j8.mjs"));
5
+ const Dashboard = lazy(() => import("./Dashboard-CYss1z6R.mjs"));
6
6
  const HomePage = () => {
7
7
  return /* @__PURE__ */ jsx(Suspense, { fallback: /* @__PURE__ */ jsx(Page.Loading, {}), children: /* @__PURE__ */ jsx(Dashboard, {}) });
8
8
  };
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
4
4
  const admin = require("@strapi/strapi/admin");
5
5
  const reactRouterDom = require("react-router-dom");
6
6
  const react = require("react");
7
- const Dashboard = react.lazy(() => Promise.resolve().then(() => require("./Dashboard-DdFVwM_o.js")));
7
+ const Dashboard = react.lazy(() => Promise.resolve().then(() => require("./Dashboard-B3Fux96c.js")));
8
8
  const HomePage = () => {
9
9
  return /* @__PURE__ */ jsxRuntime.jsx(react.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(admin.Page.Loading, {}), children: /* @__PURE__ */ jsxRuntime.jsx(Dashboard, {}) });
10
10
  };
@@ -9,10 +9,8 @@ const Dashboard = () => {
9
9
  const { get } = admin.useFetchClient();
10
10
  react.useEffect(() => {
11
11
  (async () => {
12
- const res = await get(`/${PLUGIN_ID}/config`);
13
- const config = res.data;
14
- console.log(config.config);
15
- setUrl(config.config.widgetURL);
12
+ const { data } = await get(`/${PLUGIN_ID}/config`);
13
+ setUrl(data.config.widgetURL);
16
14
  })();
17
15
  }, []);
18
16
  return url ? /* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
@@ -42,5 +40,5 @@ const Dashboard = () => {
42
40
  ] })
43
41
  ] }) : null;
44
42
  };
45
- const Dashboard$1 = react.memo(Dashboard);
46
- exports.default = Dashboard$1;
43
+ const Dashboard_default = react.memo(Dashboard);
44
+ exports.default = Dashboard_default;
@@ -7,10 +7,8 @@ const Dashboard = () => {
7
7
  const { get } = useFetchClient();
8
8
  useEffect(() => {
9
9
  (async () => {
10
- const res = await get(`/${PLUGIN_ID}/config`);
11
- const config = res.data;
12
- console.log(config.config);
13
- setUrl(config.config.widgetURL);
10
+ const { data } = await get(`/${PLUGIN_ID}/config`);
11
+ setUrl(data.config.widgetURL);
14
12
  })();
15
13
  }, []);
16
14
  return url ? /* @__PURE__ */ jsxs("div", { children: [
@@ -40,7 +38,7 @@ const Dashboard = () => {
40
38
  ] })
41
39
  ] }) : null;
42
40
  };
43
- const Dashboard$1 = memo(Dashboard);
41
+ const Dashboard_default = memo(Dashboard);
44
42
  export {
45
- Dashboard$1 as default
43
+ Dashboard_default as default
46
44
  };
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
2
3
  const react = require("react");
3
4
  const jsxRuntime = require("react/jsx-runtime");
4
5
  const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
@@ -25,7 +26,7 @@ const Initializer = ({ setPlugin }) => {
25
26
  }, []);
26
27
  return null;
27
28
  };
28
- const PluginIcon = () => /* @__PURE__ */ jsxRuntime.jsxs(
29
+ const PluginIcon = () => /* @__PURE__ */ jsxRuntime.jsx(
29
30
  "svg",
30
31
  {
31
32
  xmlns: "http://www.w3.org/2000/svg",
@@ -33,51 +34,38 @@ const PluginIcon = () => /* @__PURE__ */ jsxRuntime.jsxs(
33
34
  width: "100%",
34
35
  height: "100%",
35
36
  viewBox: "-30 0 150 50",
36
- children: [
37
- /* @__PURE__ */ jsxRuntime.jsxs("defs", { children: [
38
- /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "a", transform: "translate(-7.52 -22.83)", children: /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "none", d: "M0 0h360v99H0z" }) }),
39
- /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "b", transform: "translate(-7.52 -22.83)", children: /* @__PURE__ */ jsxRuntime.jsx(
37
+ children: /* @__PURE__ */ jsxRuntime.jsxs("g", { "data-name": "Layer 1", children: [
38
+ /* @__PURE__ */ jsxRuntime.jsxs("g", { children: [
39
+ /* @__PURE__ */ jsxRuntime.jsx(
40
40
  "path",
41
41
  {
42
- d: "M54.17 39.63a11.74 11.74 0 0 0 3 7.86L71 68.71l.17.27.08.11a11.79 11.79 0 0 0 19.69-13l-.21-.33a.71.71 0 0 1-.1-.14L76 33.45a11.79 11.79 0 0 0-21.84 6.18",
43
- fill: "none"
42
+ d: "M83.38 33.29l-.21-.33a.71.71 0 0 1-.1-.14l-14.59-22.2-18.85 14 13.85 21.26.17.27.08.11a11.8 11.8 0 0 0 19.69-13",
43
+ fill: "#95c748"
44
44
  }
45
- ) }),
46
- /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "c", transform: "translate(-7.52 -22.83)", children: /* @__PURE__ */ jsxRuntime.jsx("path", { fill: "none", d: "M7.52 22.83h77.52v58.32H7.52z" }) })
45
+ ),
46
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M26.83 39.47a11.8 11.8 0 1 0-11.8 11.8 11.8 11.8 0 0 0 11.8-11.8", fill: "#35bfc0" })
47
47
  ] }),
48
- /* @__PURE__ */ jsxRuntime.jsxs("g", { "clip-path": "url(#a)", "data-name": "Layer 1", style: { clipPath: "url(#clip-path)" }, children: [
49
- /* @__PURE__ */ jsxRuntime.jsxs("g", { "clip-path": "url(#a)", children: [
50
- /* @__PURE__ */ jsxRuntime.jsx(
51
- "path",
52
- {
53
- d: "M83.38 33.29l-.21-.33a.71.71 0 0 1-.1-.14l-14.59-22.2-18.85 14 13.85 21.26.17.27.08.11a11.8 11.8 0 0 0 19.69-13",
54
- fill: "#95c748"
55
- }
56
- ),
57
- /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M26.83 39.47a11.8 11.8 0 1 0-11.8 11.8 11.8 11.8 0 0 0 11.8-11.8", fill: "#35bfc0" })
58
- ] }),
59
- /* @__PURE__ */ jsxRuntime.jsxs("g", { "clip-path": "url(#b)", children: [
60
- /* @__PURE__ */ jsxRuntime.jsx("g", { "clip-path": "url(#c)", style: { clipPath: "url(#clip-path-5)" }, opacity: ".5" }),
61
- /* @__PURE__ */ jsxRuntime.jsx(
62
- "path",
63
- {
64
- d: "M70.3 16.8a11.81 11.81 0 1 0-21.66 6.48l-9-12.66a11.78 11.78 0 0 0-20.08 0L5.3 32.86a11.79 11.79 0 0 1 19.87.51l9.31 13.09a11.77 11.77 0 0 0 19 0l.1-.15a10.53 10.53 0 0 0 .67-1.06l14-21.83a11.77 11.77 0 0 0 2-6.62m-19.84 8.58l.2.19-.2-.19m1 .88l.23.17-.16-.17m2.58 1.47l.31.11-.31-.11m1.28.43l.42.1-.42-.1m1.37.29l.42.06-.42-.06m9.57-2.77l.31-.29-.31.29m-6.39 2.84l.42-.07-.42.07m1.34-.24l.45-.12-.45.12m1.34-.41a3.57 3.57 0 0 0 .38-.14 3.57 3.57 0 0 1-.38.14m2.66-1.39l.25-.21-.29.22m2-1.77l.25-.27-.25.27M5.01 33.33c.09-.15.17-.29.27-.43l-.28.43z",
65
- fill: "#3253a0"
66
- }
67
- )
68
- ] }),
69
- /* @__PURE__ */ jsxRuntime.jsxs("g", { "clip-path": "url(#a)", children: [
70
- /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M70.25 16.8a11.8 11.8 0 1 0-11.77 11.8 11.8 11.8 0 0 0 11.8-11.8", fill: "#f38334" }),
71
- /* @__PURE__ */ jsxRuntime.jsx(
72
- "path",
73
- {
74
- d: "M58.48 28.6a11.78 11.78 0 0 1-9.86-5.32l-9-12.66a11.77 11.77 0 0 0-20.07 0L5.25 32.86a11.79 11.79 0 0 1 19.87.51l9.36 13.09a11.77 11.77 0 0 0 19 0l.09-.15.68-1 14-21.84a11.78 11.78 0 0 1-9.77 5.13M4.95 33.33l.26-.43z",
75
- fill: "#3152a0"
76
- }
77
- )
78
- ] })
48
+ /* @__PURE__ */ jsxRuntime.jsxs("g", { children: [
49
+ /* @__PURE__ */ jsxRuntime.jsx("g", { opacity: ".5" }),
50
+ /* @__PURE__ */ jsxRuntime.jsx(
51
+ "path",
52
+ {
53
+ d: "M70.3 16.8a11.81 11.81 0 1 0-21.66 6.48l-9-12.66a11.78 11.78 0 0 0-20.08 0L5.3 32.86a11.79 11.79 0 0 1 19.87.51l9.31 13.09a11.77 11.77 0 0 0 19 0l.1-.15a10.53 10.53 0 0 0 .67-1.06l14-21.83a11.77 11.77 0 0 0 2-6.62m-19.84 8.58l.2.19-.2-.19m1 .88l.23.17-.16-.17m2.58 1.47l.31.11-.31-.11m1.28.43l.42.1-.42-.1m1.37.29l.42.06-.42-.06m9.57-2.77l.31-.29-.31.29m-6.39 2.84l.42-.07-.42.07m1.34-.24l.45-.12-.45.12m1.34-.41a3.57 3.57 0 0 0 .38-.14 3.57 3.57 0 0 1-.38.14m2.66-1.39l.25-.21-.29.22m2-1.77l.25-.27-.25.27M5.01 33.33c.09-.15.17-.29.27-.43l-.28.43z",
54
+ fill: "#3253a0"
55
+ }
56
+ )
57
+ ] }),
58
+ /* @__PURE__ */ jsxRuntime.jsxs("g", { children: [
59
+ /* @__PURE__ */ jsxRuntime.jsx("path", { d: "M70.25 16.8a11.8 11.8 0 1 0-11.77 11.8 11.8 11.8 0 0 0 11.8-11.8", fill: "#f38334" }),
60
+ /* @__PURE__ */ jsxRuntime.jsx(
61
+ "path",
62
+ {
63
+ d: "M58.48 28.6a11.78 11.78 0 0 1-9.86-5.32l-9-12.66a11.77 11.77 0 0 0-20.07 0L5.25 32.86a11.79 11.79 0 0 1 19.87.51l9.36 13.09a11.77 11.77 0 0 0 19 0l.09-.15.68-1 14-21.84a11.78 11.78 0 0 1-9.77 5.13M4.95 33.33l.26-.43z",
64
+ fill: "#3152a0"
65
+ }
66
+ )
79
67
  ] })
80
- ]
68
+ ] })
81
69
  }
82
70
  );
83
71
  const index = {
@@ -90,7 +78,7 @@ const index = {
90
78
  defaultMessage: "Matomo"
91
79
  },
92
80
  Component: async () => {
93
- const { App } = await Promise.resolve().then(() => require("../_chunks/App-BiVY-Oop.js"));
81
+ const { App } = await Promise.resolve().then(() => require("./App-E7J3rbe-.js"));
94
82
  return App;
95
83
  }
96
84
  });
@@ -105,7 +93,7 @@ const index = {
105
93
  return Promise.all(
106
94
  locales.map(async (locale) => {
107
95
  try {
108
- const { default: data } = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => Promise.resolve().then(() => require("../_chunks/en-B4KWt_jN.js")) }), `./translations/${locale}.json`, 3);
96
+ const { default: data } = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => Promise.resolve().then(() => require("./en-B4KWt_jN.js")) }), `./translations/${locale}.json`, 3);
109
97
  return { data, locale };
110
98
  } catch {
111
99
  return { data: {}, locale };
@@ -114,4 +102,4 @@ const index = {
114
102
  );
115
103
  }
116
104
  };
117
- module.exports = index;
105
+ exports.default = index;
@@ -1,5 +1,5 @@
1
1
  import { useRef, useEffect } from "react";
2
- import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
3
  const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
4
4
  const v = glob[path];
5
5
  if (v) {
@@ -24,7 +24,7 @@ const Initializer = ({ setPlugin }) => {
24
24
  }, []);
25
25
  return null;
26
26
  };
27
- const PluginIcon = () => /* @__PURE__ */ jsxs(
27
+ const PluginIcon = () => /* @__PURE__ */ jsx(
28
28
  "svg",
29
29
  {
30
30
  xmlns: "http://www.w3.org/2000/svg",
@@ -32,51 +32,38 @@ const PluginIcon = () => /* @__PURE__ */ jsxs(
32
32
  width: "100%",
33
33
  height: "100%",
34
34
  viewBox: "-30 0 150 50",
35
- children: [
36
- /* @__PURE__ */ jsxs("defs", { children: [
37
- /* @__PURE__ */ jsx("clipPath", { id: "a", transform: "translate(-7.52 -22.83)", children: /* @__PURE__ */ jsx("path", { fill: "none", d: "M0 0h360v99H0z" }) }),
38
- /* @__PURE__ */ jsx("clipPath", { id: "b", transform: "translate(-7.52 -22.83)", children: /* @__PURE__ */ jsx(
35
+ children: /* @__PURE__ */ jsxs("g", { "data-name": "Layer 1", children: [
36
+ /* @__PURE__ */ jsxs("g", { children: [
37
+ /* @__PURE__ */ jsx(
39
38
  "path",
40
39
  {
41
- d: "M54.17 39.63a11.74 11.74 0 0 0 3 7.86L71 68.71l.17.27.08.11a11.79 11.79 0 0 0 19.69-13l-.21-.33a.71.71 0 0 1-.1-.14L76 33.45a11.79 11.79 0 0 0-21.84 6.18",
42
- fill: "none"
40
+ d: "M83.38 33.29l-.21-.33a.71.71 0 0 1-.1-.14l-14.59-22.2-18.85 14 13.85 21.26.17.27.08.11a11.8 11.8 0 0 0 19.69-13",
41
+ fill: "#95c748"
43
42
  }
44
- ) }),
45
- /* @__PURE__ */ jsx("clipPath", { id: "c", transform: "translate(-7.52 -22.83)", children: /* @__PURE__ */ jsx("path", { fill: "none", d: "M7.52 22.83h77.52v58.32H7.52z" }) })
43
+ ),
44
+ /* @__PURE__ */ jsx("path", { d: "M26.83 39.47a11.8 11.8 0 1 0-11.8 11.8 11.8 11.8 0 0 0 11.8-11.8", fill: "#35bfc0" })
46
45
  ] }),
47
- /* @__PURE__ */ jsxs("g", { "clip-path": "url(#a)", "data-name": "Layer 1", style: { clipPath: "url(#clip-path)" }, children: [
48
- /* @__PURE__ */ jsxs("g", { "clip-path": "url(#a)", children: [
49
- /* @__PURE__ */ jsx(
50
- "path",
51
- {
52
- d: "M83.38 33.29l-.21-.33a.71.71 0 0 1-.1-.14l-14.59-22.2-18.85 14 13.85 21.26.17.27.08.11a11.8 11.8 0 0 0 19.69-13",
53
- fill: "#95c748"
54
- }
55
- ),
56
- /* @__PURE__ */ jsx("path", { d: "M26.83 39.47a11.8 11.8 0 1 0-11.8 11.8 11.8 11.8 0 0 0 11.8-11.8", fill: "#35bfc0" })
57
- ] }),
58
- /* @__PURE__ */ jsxs("g", { "clip-path": "url(#b)", children: [
59
- /* @__PURE__ */ jsx("g", { "clip-path": "url(#c)", style: { clipPath: "url(#clip-path-5)" }, opacity: ".5" }),
60
- /* @__PURE__ */ jsx(
61
- "path",
62
- {
63
- d: "M70.3 16.8a11.81 11.81 0 1 0-21.66 6.48l-9-12.66a11.78 11.78 0 0 0-20.08 0L5.3 32.86a11.79 11.79 0 0 1 19.87.51l9.31 13.09a11.77 11.77 0 0 0 19 0l.1-.15a10.53 10.53 0 0 0 .67-1.06l14-21.83a11.77 11.77 0 0 0 2-6.62m-19.84 8.58l.2.19-.2-.19m1 .88l.23.17-.16-.17m2.58 1.47l.31.11-.31-.11m1.28.43l.42.1-.42-.1m1.37.29l.42.06-.42-.06m9.57-2.77l.31-.29-.31.29m-6.39 2.84l.42-.07-.42.07m1.34-.24l.45-.12-.45.12m1.34-.41a3.57 3.57 0 0 0 .38-.14 3.57 3.57 0 0 1-.38.14m2.66-1.39l.25-.21-.29.22m2-1.77l.25-.27-.25.27M5.01 33.33c.09-.15.17-.29.27-.43l-.28.43z",
64
- fill: "#3253a0"
65
- }
66
- )
67
- ] }),
68
- /* @__PURE__ */ jsxs("g", { "clip-path": "url(#a)", children: [
69
- /* @__PURE__ */ jsx("path", { d: "M70.25 16.8a11.8 11.8 0 1 0-11.77 11.8 11.8 11.8 0 0 0 11.8-11.8", fill: "#f38334" }),
70
- /* @__PURE__ */ jsx(
71
- "path",
72
- {
73
- d: "M58.48 28.6a11.78 11.78 0 0 1-9.86-5.32l-9-12.66a11.77 11.77 0 0 0-20.07 0L5.25 32.86a11.79 11.79 0 0 1 19.87.51l9.36 13.09a11.77 11.77 0 0 0 19 0l.09-.15.68-1 14-21.84a11.78 11.78 0 0 1-9.77 5.13M4.95 33.33l.26-.43z",
74
- fill: "#3152a0"
75
- }
76
- )
77
- ] })
46
+ /* @__PURE__ */ jsxs("g", { children: [
47
+ /* @__PURE__ */ jsx("g", { opacity: ".5" }),
48
+ /* @__PURE__ */ jsx(
49
+ "path",
50
+ {
51
+ d: "M70.3 16.8a11.81 11.81 0 1 0-21.66 6.48l-9-12.66a11.78 11.78 0 0 0-20.08 0L5.3 32.86a11.79 11.79 0 0 1 19.87.51l9.31 13.09a11.77 11.77 0 0 0 19 0l.1-.15a10.53 10.53 0 0 0 .67-1.06l14-21.83a11.77 11.77 0 0 0 2-6.62m-19.84 8.58l.2.19-.2-.19m1 .88l.23.17-.16-.17m2.58 1.47l.31.11-.31-.11m1.28.43l.42.1-.42-.1m1.37.29l.42.06-.42-.06m9.57-2.77l.31-.29-.31.29m-6.39 2.84l.42-.07-.42.07m1.34-.24l.45-.12-.45.12m1.34-.41a3.57 3.57 0 0 0 .38-.14 3.57 3.57 0 0 1-.38.14m2.66-1.39l.25-.21-.29.22m2-1.77l.25-.27-.25.27M5.01 33.33c.09-.15.17-.29.27-.43l-.28.43z",
52
+ fill: "#3253a0"
53
+ }
54
+ )
55
+ ] }),
56
+ /* @__PURE__ */ jsxs("g", { children: [
57
+ /* @__PURE__ */ jsx("path", { d: "M70.25 16.8a11.8 11.8 0 1 0-11.77 11.8 11.8 11.8 0 0 0 11.8-11.8", fill: "#f38334" }),
58
+ /* @__PURE__ */ jsx(
59
+ "path",
60
+ {
61
+ d: "M58.48 28.6a11.78 11.78 0 0 1-9.86-5.32l-9-12.66a11.77 11.77 0 0 0-20.07 0L5.25 32.86a11.79 11.79 0 0 1 19.87.51l9.36 13.09a11.77 11.77 0 0 0 19 0l.09-.15.68-1 14-21.84a11.78 11.78 0 0 1-9.77 5.13M4.95 33.33l.26-.43z",
62
+ fill: "#3152a0"
63
+ }
64
+ )
78
65
  ] })
79
- ]
66
+ ] })
80
67
  }
81
68
  );
82
69
  const index = {
@@ -89,7 +76,7 @@ const index = {
89
76
  defaultMessage: "Matomo"
90
77
  },
91
78
  Component: async () => {
92
- const { App } = await import("../_chunks/App-S_HgRhsg.mjs");
79
+ const { App } = await import("./App-DFni9nGt.mjs");
93
80
  return App;
94
81
  }
95
82
  });
@@ -104,7 +91,7 @@ const index = {
104
91
  return Promise.all(
105
92
  locales.map(async (locale) => {
106
93
  try {
107
- const { default: data } = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => import("../_chunks/en-Byx4XI2L.mjs") }), `./translations/${locale}.json`, 3);
94
+ const { default: data } = await __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/en.json": () => import("./en-Byx4XI2L.mjs") }), `./translations/${locale}.json`, 3);
108
95
  return { data, locale };
109
96
  } catch {
110
97
  return { data: {}, locale };
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
- declare const _default: import("react").MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element | null>;
1
+ declare const _default: import('react').MemoExoticComponent<() => import("react").JSX.Element | null>;
3
2
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const PluginIcon: () => import("react/jsx-runtime").JSX.Element;
1
+ declare const PluginIcon: () => import("react").JSX.Element;
2
2
  export { PluginIcon };
@@ -1,2 +1,2 @@
1
- declare const App: () => import("react/jsx-runtime").JSX.Element;
1
+ declare const App: () => import("react").JSX.Element;
2
2
  export { App };
@@ -1,2 +1,2 @@
1
- declare const HomePage: () => import("react/jsx-runtime").JSX.Element;
1
+ declare const HomePage: () => import("react").JSX.Element;
2
2
  export { HomePage };
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
2
3
  const bootstrap = ({ strapi }) => {
3
4
  };
4
5
  const destroy = ({ strapi }) => {
@@ -58,4 +59,4 @@ const index = {
58
59
  policies,
59
60
  middlewares
60
61
  };
61
- module.exports = index;
62
+ exports.default = index;
@@ -1,4 +1,4 @@
1
- import type { Core } from '@strapi/strapi';
1
+ import { Core } from '@strapi/strapi';
2
2
  declare const bootstrap: ({ strapi }: {
3
3
  strapi: Core.Strapi;
4
4
  }) => void;
@@ -1,4 +1,4 @@
1
- import type { Core } from '@strapi/strapi';
1
+ import { Core } from '@strapi/strapi';
2
2
  declare const destroy: ({ strapi }: {
3
3
  strapi: Core.Strapi;
4
4
  }) => void;
@@ -1,12 +1,12 @@
1
1
  declare const _default: {
2
2
  register: ({ strapi }: {
3
- strapi: import("@strapi/types/dist/core").Strapi;
3
+ strapi: import('@strapi/types/dist/core').Strapi;
4
4
  }) => void;
5
5
  bootstrap: ({ strapi }: {
6
- strapi: import("@strapi/types/dist/core").Strapi;
6
+ strapi: import('@strapi/types/dist/core').Strapi;
7
7
  }) => void;
8
8
  destroy: ({ strapi }: {
9
- strapi: import("@strapi/types/dist/core").Strapi;
9
+ strapi: import('@strapi/types/dist/core').Strapi;
10
10
  }) => void;
11
11
  controllers: {
12
12
  matomo: {
@@ -20,9 +20,6 @@ declare const _default: {
20
20
  method: string;
21
21
  path: string;
22
22
  handler: string;
23
- /**
24
- * Plugin server methods
25
- */
26
23
  config: {
27
24
  policies: string[];
28
25
  };
@@ -31,9 +28,9 @@ declare const _default: {
31
28
  };
32
29
  services: {
33
30
  config: ({ strapi }: {
34
- strapi: import("@strapi/types/dist/core").Strapi;
31
+ strapi: import('@strapi/types/dist/core').Strapi;
35
32
  }) => {
36
- get(): Promise<import("./config").MatomoPluginConfig>;
33
+ get(): Promise<import('./config').MatomoPluginConfig>;
37
34
  };
38
35
  };
39
36
  contentTypes: {};
@@ -1,4 +1,4 @@
1
- import type { Core } from '@strapi/strapi';
1
+ import { Core } from '@strapi/strapi';
2
2
  declare const register: ({ strapi }: {
3
3
  strapi: Core.Strapi;
4
4
  }) => void;
@@ -1,5 +1,5 @@
1
- import { type Core } from '@strapi/strapi';
2
- import { type MatomoPluginConfig } from '../config';
1
+ import { Core } from '@strapi/strapi';
2
+ import { MatomoPluginConfig } from '../config';
3
3
  export type ConfigService = ReturnType<typeof configService>;
4
4
  declare const configService: ({ strapi }: {
5
5
  strapi: Core.Strapi;
@@ -1,12 +1,12 @@
1
- import { type ConfigService } from './config';
1
+ import { ConfigService } from './config';
2
2
  export interface MatomoServices {
3
3
  config: ConfigService;
4
4
  }
5
5
  declare const _default: {
6
6
  config: ({ strapi }: {
7
- strapi: import("@strapi/types/dist/core").Strapi;
7
+ strapi: import('@strapi/types/dist/core').Strapi;
8
8
  }) => {
9
- get(): Promise<import("../config").MatomoPluginConfig>;
9
+ get(): Promise<import('../config').MatomoPluginConfig>;
10
10
  };
11
11
  };
12
12
  export default _default;
@@ -1,3 +1,3 @@
1
- import { type MatomoServices } from '../services';
2
- declare const getService: <TName extends "config">(name: TName) => MatomoServices[TName];
1
+ import { MatomoServices } from '../services';
2
+ declare const getService: <TName extends keyof MatomoServices>(name: TName) => MatomoServices[TName];
3
3
  export default getService;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0",
2
+ "version": "1.1.0",
3
3
  "keywords": [],
4
4
  "type": "commonjs",
5
5
  "exports": {
@@ -28,29 +28,24 @@
28
28
  "watch:link": "strapi-plugin watch:link",
29
29
  "verify": "strapi-plugin verify",
30
30
  "test:ts:front": "run -T tsc -p admin/tsconfig.json",
31
- "test:ts:back": "run -T tsc -p server/tsconfig.json"
32
- },
33
- "dependencies": {
34
- "@strapi/design-system": "^2.0.0-rc.18",
35
- "@strapi/icons": "^2.0.0-rc.18",
36
- "react-intl": "^7.1.6"
31
+ "test:ts:back": "run -T tsc -p server/tsconfig.json",
32
+ "prepublishOnly": "npm run build && npm run verify"
37
33
  },
38
34
  "devDependencies": {
39
- "@strapi/strapi": "^5.11.1",
40
- "@strapi/sdk-plugin": "^5.3.2",
35
+ "@strapi/sdk-plugin": "^6.1.1",
36
+ "@strapi/strapi": "^5.64.0",
37
+ "@strapi/typescript-utils": "^5.64.0",
38
+ "@types/react": "^18.3.12",
39
+ "@types/react-dom": "^18.3.1",
41
40
  "prettier": "^3.5.3",
42
41
  "react": "^18.3.1",
43
42
  "react-dom": "^18.3.1",
44
43
  "react-router-dom": "^6.30.0",
45
44
  "styled-components": "^6.1.15",
46
- "@types/react": "^19.0.10",
47
- "@types/react-dom": "^19.0.4",
48
- "@strapi/typescript-utils": "^5.11.1",
49
- "typescript": "^5.8.2"
45
+ "typescript": "^5.9.3"
50
46
  },
51
47
  "peerDependencies": {
52
48
  "@strapi/strapi": "^5.11.1",
53
- "@strapi/sdk-plugin": "^5.3.2",
54
49
  "react": "^18.3.1",
55
50
  "react-dom": "^18.3.1",
56
51
  "react-router-dom": "^6.30.0",
@@ -65,5 +60,9 @@
65
60
  "name": "strapi-plugin-matomo",
66
61
  "description": "Add your Matomo analytics dahsboard to Strapi.",
67
62
  "license": "MIT",
68
- "author": "Tobias Blättermann <tobias.blaettermann1@gmail.com>"
69
- }
63
+ "author": "Tobias Blättermann <tobias.blaettermann1@gmail.com>",
64
+ "repository": {
65
+ "type": "git",
66
+ "url": "git+https://github.com/TobeyTG/strapi-plugin-matomo.git"
67
+ }
68
+ }
Binary file
File without changes
File without changes