@sensinum/strapi-plugin-xecp 5.1.0 → 5.3.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 +14 -3
- package/dist/admin/App-BbgV5mHU.mjs +2809 -0
- package/dist/admin/App-OXf6qXjU.js +74 -0
- package/dist/admin/TruncatedTypography-B8iYkeNP.js +12 -0
- package/dist/admin/{TruncatedTypography-BIh1V9g2.mjs → TruncatedTypography-BA_MhPw6.mjs} +4 -4
- package/dist/admin/de-9eabZie2.mjs +288 -0
- package/dist/admin/de-BN51VcbT.js +1 -0
- package/dist/admin/en-DI1XKd0e.js +1 -0
- package/dist/admin/en-tFIwzuCy.mjs +288 -0
- package/dist/admin/fr-BRWFIMrf.mjs +288 -0
- package/dist/admin/fr-lAhQzMjM.js +1 -0
- package/dist/admin/index-BU_gTHIE.mjs +110 -0
- package/dist/admin/index-C5CJ1Sy4.js +1 -0
- package/dist/admin/index-CT94KSzm.mjs +656 -0
- package/dist/admin/index-CmLDGvPV.js +1 -0
- package/dist/admin/{index-Dr164lAs.mjs → index-SQ5frWDn.mjs} +96 -90
- package/dist/admin/{index-CzhrALSL.js → index-ghS-FZ_7.js} +8 -8
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +3 -2
- package/dist/admin/pl-CSVwN6jF.js +1 -0
- package/dist/admin/pl-DLMBD4Lc.mjs +288 -0
- package/dist/admin/{queryKeys-rUHP1d6p.mjs → queryKeys-LazhiKSv.mjs} +5 -4
- package/dist/admin/queryKeys-Y6_AOyGq.js +1 -0
- package/dist/server/index.js +7 -7
- package/dist/server/index.mjs +8776 -8080
- package/package.json +48 -22
- package/dist/admin/App-DnN-IvA2.mjs +0 -1947
- package/dist/admin/App-fzbS9IJs.js +0 -30
- package/dist/admin/TruncatedTypography-IG2-4h8c.js +0 -12
- package/dist/admin/de-CXusi8Qg.mjs +0 -203
- package/dist/admin/de-DB2gq7qr.js +0 -1
- package/dist/admin/en-BuzP59R9.js +0 -1
- package/dist/admin/en-Dw6HZo7C.mjs +0 -203
- package/dist/admin/fr-CyBDGDh1.mjs +0 -203
- package/dist/admin/fr-ISZXcmX2.js +0 -1
- package/dist/admin/index-BPA-rtqa.js +0 -1
- package/dist/admin/index-CUUBtl-O.mjs +0 -113
- package/dist/admin/index-DDj2bCYO.mjs +0 -653
- package/dist/admin/index-DGBlS60G.js +0 -1
- package/dist/admin/pl-Ds5SR76s.js +0 -1
- package/dist/admin/pl-mwGoOpdR.mjs +0 -203
- package/dist/admin/queryKeys-B_GC_f73.js +0 -1
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import l from "zod";
|
|
2
|
-
import { useRef as p, useEffect as d } from "react";
|
|
3
|
-
import { jsx as g } from "react/jsx-runtime";
|
|
4
|
-
import { Files as f } from "@strapi/icons";
|
|
5
|
-
const b = (t, n, o) => {
|
|
6
|
-
const s = t[n];
|
|
7
|
-
return s ? typeof s == "function" ? s() : Promise.resolve(s) : new Promise((k, u) => {
|
|
8
|
-
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
9
|
-
u.bind(
|
|
10
|
-
null,
|
|
11
|
-
new Error(
|
|
12
|
-
"Unknown variable dynamic import: " + n + (n.split("/").length !== o ? ". Note that variables only represent file names one level deep." : "")
|
|
13
|
-
)
|
|
14
|
-
)
|
|
15
|
-
);
|
|
16
|
-
});
|
|
17
|
-
}, P = "@sensinum/strapi-plugin-xecp", R = "5.1.0", y = "https://www.sensinum.com/contact", $ = "hello@sensinum.com", x = { name: "content-promotion" }, j = {
|
|
18
|
-
name: P,
|
|
19
|
-
version: R,
|
|
20
|
-
homepage: y,
|
|
21
|
-
email: $,
|
|
22
|
-
strapi: x
|
|
23
|
-
}, e = l.literal("content-promotion").parse(j.strapi.name), a = "xecp", i = {
|
|
24
|
-
settings: {
|
|
25
|
-
read: "settings.read",
|
|
26
|
-
update: "settings.update"
|
|
27
|
-
},
|
|
28
|
-
promotion: {
|
|
29
|
-
read: "promotion.read",
|
|
30
|
-
execute: "promotion.execute"
|
|
31
|
-
}
|
|
32
|
-
}, w = (t) => `plugin::${e}.${t}`, r = (t) => ({
|
|
33
|
-
action: w(t),
|
|
34
|
-
subject: null
|
|
35
|
-
}), m = {
|
|
36
|
-
settingsRead: [r(i.settings.read)],
|
|
37
|
-
settingsUpdate: [r(i.settings.update)],
|
|
38
|
-
promotionRead: [r(i.promotion.read)],
|
|
39
|
-
promotionExecute: [r(i.promotion.execute)]
|
|
40
|
-
}, I = ({ setPlugin: t }) => {
|
|
41
|
-
const n = p(t);
|
|
42
|
-
return d(() => {
|
|
43
|
-
n.current(e);
|
|
44
|
-
}, []), null;
|
|
45
|
-
}, L = () => /* @__PURE__ */ g(f, { style: { width: 24 } }), c = (t) => `${e}.${t}`, M = (t) => Object.keys(t).reduce((n, o) => (n[`${e}.${o}`] = t[o], n), {}), E = {
|
|
46
|
-
register(t) {
|
|
47
|
-
t.addMenuLink({
|
|
48
|
-
to: `plugins/${a}`,
|
|
49
|
-
icon: L,
|
|
50
|
-
intlLabel: {
|
|
51
|
-
id: `${e}.plugin.name`,
|
|
52
|
-
defaultMessage: e
|
|
53
|
-
},
|
|
54
|
-
Component: () => import("./App-DnN-IvA2.mjs"),
|
|
55
|
-
permissions: [...m.promotionRead]
|
|
56
|
-
}), t.addSettingsLink(
|
|
57
|
-
{
|
|
58
|
-
id: e,
|
|
59
|
-
intlLabel: {
|
|
60
|
-
id: c("settings.section.sectionName"),
|
|
61
|
-
defaultMessage: "Content Promotion Plugin"
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
[
|
|
65
|
-
{
|
|
66
|
-
intlLabel: {
|
|
67
|
-
id: c("settings.section.about"),
|
|
68
|
-
defaultMessage: "About"
|
|
69
|
-
},
|
|
70
|
-
id: "about",
|
|
71
|
-
to: `${a}/about`,
|
|
72
|
-
Component: () => import("./index-Dr164lAs.mjs"),
|
|
73
|
-
permissions: [...m.settingsRead]
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
intlLabel: {
|
|
77
|
-
id: c("settings.section.configuration"),
|
|
78
|
-
defaultMessage: "Configuration"
|
|
79
|
-
},
|
|
80
|
-
id: "configuration",
|
|
81
|
-
to: `${a}/configuration`,
|
|
82
|
-
Component: () => import("./index-DDj2bCYO.mjs"),
|
|
83
|
-
permissions: [...m.settingsRead]
|
|
84
|
-
}
|
|
85
|
-
]
|
|
86
|
-
), t.registerPlugin({
|
|
87
|
-
id: e,
|
|
88
|
-
initializer: I,
|
|
89
|
-
isReady: !1,
|
|
90
|
-
name: e
|
|
91
|
-
});
|
|
92
|
-
},
|
|
93
|
-
async registerTrads({ locales: t }) {
|
|
94
|
-
return Promise.all(
|
|
95
|
-
t.map(async (n) => {
|
|
96
|
-
try {
|
|
97
|
-
const { default: o } = await b(/* @__PURE__ */ Object.assign({ "./translations/de.json": () => import("./de-CXusi8Qg.mjs"), "./translations/en.json": () => import("./en-Dw6HZo7C.mjs"), "./translations/fr.json": () => import("./fr-CyBDGDh1.mjs"), "./translations/pl.json": () => import("./pl-mwGoOpdR.mjs") }), `./translations/${n}.json`, 3);
|
|
98
|
-
return { data: M(o), locale: n };
|
|
99
|
-
} catch {
|
|
100
|
-
return { data: {}, locale: n };
|
|
101
|
-
}
|
|
102
|
-
})
|
|
103
|
-
);
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
export {
|
|
107
|
-
m as P,
|
|
108
|
-
a as U,
|
|
109
|
-
e as a,
|
|
110
|
-
c as g,
|
|
111
|
-
E as i,
|
|
112
|
-
j as p
|
|
113
|
-
};
|