strapi-plugin-magic-sessionmanager 4.3.0 → 4.3.1

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.
Files changed (23) hide show
  1. package/dist/_chunks/{Analytics-CYYb-qXQ.mjs → Analytics-sX94t6D9.mjs} +2 -2
  2. package/dist/_chunks/{Analytics-BWvrf9k5.js → Analytics-tOOj5T92.js} +2 -2
  3. package/dist/_chunks/{App-Bgq2FgRY.mjs → App-Cs4KKd3L.mjs} +155 -54
  4. package/dist/_chunks/{App-iF0Cl3Lj.js → App-D4qVym6y.js} +154 -53
  5. package/dist/_chunks/{License-CcD3WDcC.mjs → License-CN5YpqIu.mjs} +1 -1
  6. package/dist/_chunks/{License-DFShBRh1.js → License-kfVcskd3.js} +1 -1
  7. package/dist/_chunks/{OnlineUsersWidget-CdJFMOUZ.js → OnlineUsersWidget-Cg3R7602.js} +1 -1
  8. package/dist/_chunks/{OnlineUsersWidget-DHElrP3_.mjs → OnlineUsersWidget-ytykP_tA.mjs} +1 -1
  9. package/dist/_chunks/{Settings-5ZqZ0GC8.js → Settings-DVRIrGho.js} +14 -379
  10. package/dist/_chunks/{Settings-B3FaQckW.mjs → Settings-XloJ-aHl.mjs} +4 -369
  11. package/dist/_chunks/StyledButtons-D2EbG_Zw.js +419 -0
  12. package/dist/_chunks/StyledButtons-fbNVRlMY.mjs +418 -0
  13. package/dist/_chunks/{UpgradePage-B_2RowKN.mjs → UpgradePage-C441wvPX.mjs} +1 -1
  14. package/dist/_chunks/{UpgradePage-D8GaP9Yi.js → UpgradePage-D2FRalDz.js} +1 -1
  15. package/dist/_chunks/{index-Cf1Wqdeg.js → index-DtBfKBne.js} +214 -187
  16. package/dist/_chunks/{index-Dpdcg2zl.mjs → index-Ij0JRf9W.mjs} +214 -189
  17. package/dist/_chunks/{useLicense-CThICQyr.mjs → useLicense-DJEDGSap.mjs} +1 -1
  18. package/dist/_chunks/{useLicense-DOnfhNxz.js → useLicense-NCFYHpDd.js} +1 -1
  19. package/dist/admin/index.js +1 -1
  20. package/dist/admin/index.mjs +1 -1
  21. package/dist/server/index.js +35938 -169
  22. package/dist/server/index.mjs +35927 -167
  23. package/package.json +7 -7
@@ -7,376 +7,11 @@ const designSystem = require("@strapi/design-system");
7
7
  const admin = require("@strapi/strapi/admin");
8
8
  const icons = require("@strapi/icons");
9
9
  const styled = require("styled-components");
10
- const index = require("./index-Cf1Wqdeg.js");
11
- const useLicense = require("./useLicense-DOnfhNxz.js");
10
+ const index = require("./index-DtBfKBne.js");
11
+ const useLicense = require("./useLicense-NCFYHpDd.js");
12
+ const StyledButtons = require("./StyledButtons-D2EbG_Zw.js");
12
13
  const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
13
14
  const styled__default = /* @__PURE__ */ _interopDefault(styled);
14
- const GradientButton = styled__default.default(designSystem.Button)`
15
- && {
16
- background: linear-gradient(135deg, #0EA5E9 0%, #A855F7 100%);
17
- color: white;
18
- font-weight: 600;
19
- border: none;
20
- padding: 10px 20px;
21
- min-height: 40px;
22
- transition: all 0.2s ease;
23
-
24
- &:hover:not(:disabled) {
25
- background: linear-gradient(135deg, #0284C7 0%, #9333EA 100%);
26
- transform: translateY(-1px);
27
- box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
28
- }
29
-
30
- &:active:not(:disabled) {
31
- transform: translateY(0);
32
- }
33
-
34
- &:disabled {
35
- opacity: 0.6;
36
- cursor: not-allowed;
37
- }
38
- }
39
- `;
40
- const SecondaryButton = styled__default.default(designSystem.Button)`
41
- && {
42
- background: white;
43
- color: #7C3AED;
44
- font-weight: 600;
45
- border: 2px solid transparent;
46
- background-image: linear-gradient(white, white), linear-gradient(135deg, #0EA5E9 0%, #A855F7 100%);
47
- background-origin: border-box;
48
- background-clip: padding-box, border-box;
49
- padding: 10px 20px;
50
- min-height: 40px;
51
- transition: all 0.2s ease;
52
-
53
- &:hover:not(:disabled) {
54
- background: linear-gradient(135deg, #0EA5E9 0%, #A855F7 100%);
55
- background-clip: padding-box;
56
- color: white;
57
- transform: translateY(-1px);
58
- box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
59
- }
60
-
61
- &:active:not(:disabled) {
62
- transform: translateY(0);
63
- }
64
-
65
- &:disabled {
66
- opacity: 0.6;
67
- cursor: not-allowed;
68
- }
69
- }
70
- `;
71
- const TertiaryButton = styled__default.default(designSystem.Button)`
72
- && {
73
- background: transparent;
74
- color: #64748B;
75
- font-weight: 500;
76
- border: 1px solid #E2E8F0;
77
- padding: 10px 20px;
78
- min-height: 40px;
79
- transition: all 0.2s ease;
80
-
81
- &:hover:not(:disabled) {
82
- background: #F1F5F9;
83
- border-color: #CBD5E1;
84
- color: #334155;
85
- }
86
-
87
- &:disabled {
88
- opacity: 0.6;
89
- cursor: not-allowed;
90
- }
91
- }
92
- `;
93
- const DangerButton = styled__default.default(designSystem.Button)`
94
- && {
95
- background: #FEE2E2;
96
- color: #DC2626;
97
- font-weight: 600;
98
- border: 1px solid #FECACA;
99
- padding: 10px 20px;
100
- min-height: 40px;
101
- transition: all 0.2s ease;
102
-
103
- &:hover:not(:disabled) {
104
- background: #DC2626;
105
- color: white;
106
- border-color: #DC2626;
107
- }
108
-
109
- &:disabled {
110
- opacity: 0.6;
111
- cursor: not-allowed;
112
- }
113
- }
114
- `;
115
- styled__default.default(designSystem.Button)`
116
- && {
117
- background: linear-gradient(135deg, #10B981 0%, #059669 100%);
118
- color: white;
119
- font-weight: 600;
120
- border: none;
121
- padding: 10px 20px;
122
- min-height: 40px;
123
- transition: all 0.2s ease;
124
-
125
- &:hover:not(:disabled) {
126
- background: linear-gradient(135deg, #059669 0%, #047857 100%);
127
- transform: translateY(-1px);
128
- box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
129
- }
130
-
131
- &:disabled {
132
- opacity: 0.6;
133
- cursor: not-allowed;
134
- }
135
- }
136
- `;
137
- styled__default.default(designSystem.Button)`
138
- && {
139
- background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
140
- color: #64748B;
141
- border: 1px solid #E2E8F0;
142
- padding: 8px;
143
- min-width: 38px;
144
- min-height: 38px;
145
- width: 38px;
146
- height: 38px;
147
- border-radius: 10px;
148
- display: flex;
149
- align-items: center;
150
- justify-content: center;
151
- transition: all 0.2s ease;
152
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
153
-
154
- svg {
155
- width: 18px;
156
- height: 18px;
157
- }
158
-
159
- &:hover:not(:disabled) {
160
- background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
161
- border-color: #0EA5E9;
162
- color: white;
163
- transform: translateY(-1px);
164
- box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
165
- }
166
-
167
- &:disabled {
168
- opacity: 0.6;
169
- cursor: not-allowed;
170
- }
171
- }
172
- `;
173
- styled__default.default(designSystem.Button)`
174
- && {
175
- background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
176
- color: #EF4444;
177
- border: 1px solid #FECACA;
178
- padding: 8px;
179
- min-width: 38px;
180
- min-height: 38px;
181
- width: 38px;
182
- height: 38px;
183
- border-radius: 10px;
184
- display: flex;
185
- align-items: center;
186
- justify-content: center;
187
- transition: all 0.2s ease;
188
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
189
-
190
- svg {
191
- width: 18px;
192
- height: 18px;
193
- }
194
-
195
- &:hover:not(:disabled) {
196
- background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
197
- border-color: #EF4444;
198
- color: white;
199
- transform: translateY(-1px);
200
- box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
201
- }
202
-
203
- &:disabled {
204
- opacity: 0.6;
205
- cursor: not-allowed;
206
- }
207
- }
208
- `;
209
- styled__default.default(designSystem.Button)`
210
- && {
211
- background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
212
- color: #0EA5E9;
213
- border: 1px solid #BAE6FD;
214
- padding: 8px;
215
- min-width: 38px;
216
- min-height: 38px;
217
- width: 38px;
218
- height: 38px;
219
- border-radius: 10px;
220
- display: flex;
221
- align-items: center;
222
- justify-content: center;
223
- transition: all 0.2s ease;
224
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
225
-
226
- svg {
227
- width: 18px;
228
- height: 18px;
229
- }
230
-
231
- &:hover:not(:disabled) {
232
- background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
233
- border-color: #0EA5E9;
234
- color: white;
235
- transform: translateY(-1px);
236
- box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
237
- }
238
-
239
- &:disabled {
240
- opacity: 0.6;
241
- cursor: not-allowed;
242
- }
243
- }
244
- `;
245
- styled__default.default(designSystem.Button)`
246
- && {
247
- background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
248
- color: #22C55E;
249
- border: 1px solid #BBF7D0;
250
- padding: 8px;
251
- min-width: 38px;
252
- min-height: 38px;
253
- width: 38px;
254
- height: 38px;
255
- border-radius: 10px;
256
- display: flex;
257
- align-items: center;
258
- justify-content: center;
259
- transition: all 0.2s ease;
260
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
261
-
262
- svg {
263
- width: 18px;
264
- height: 18px;
265
- }
266
-
267
- &:hover:not(:disabled) {
268
- background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
269
- border-color: #22C55E;
270
- color: white;
271
- transform: translateY(-1px);
272
- box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
273
- }
274
-
275
- &:disabled {
276
- opacity: 0.6;
277
- cursor: not-allowed;
278
- }
279
- }
280
- `;
281
- styled__default.default(designSystem.Button)`
282
- && {
283
- background: linear-gradient(135deg, #0EA5E9 0%, #A855F7 100%);
284
- color: white;
285
- font-weight: 700;
286
- font-size: 1rem;
287
- border: none;
288
- padding: 14px 28px;
289
- min-height: 52px;
290
- border-radius: 12px;
291
- transition: all 0.2s ease;
292
- box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
293
-
294
- &:hover:not(:disabled) {
295
- background: linear-gradient(135deg, #0284C7 0%, #9333EA 100%);
296
- transform: translateY(-2px);
297
- box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
298
- }
299
-
300
- &:active:not(:disabled) {
301
- transform: translateY(0);
302
- }
303
-
304
- &:disabled {
305
- opacity: 0.6;
306
- cursor: not-allowed;
307
- }
308
- }
309
- `;
310
- styled__default.default(designSystem.Button)`
311
- && {
312
- background: transparent;
313
- color: #0EA5E9;
314
- font-weight: 500;
315
- border: none;
316
- padding: 4px 8px;
317
- min-height: auto;
318
- text-decoration: underline;
319
- transition: all 0.2s ease;
320
-
321
- &:hover:not(:disabled) {
322
- color: #0284C7;
323
- text-decoration: none;
324
- }
325
-
326
- &:disabled {
327
- opacity: 0.6;
328
- cursor: not-allowed;
329
- }
330
- }
331
- `;
332
- const ShowHideButton = styled__default.default(designSystem.Button)`
333
- && {
334
- background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
335
- color: #64748B;
336
- font-weight: 600;
337
- border: 1px solid #E2E8F0;
338
- padding: 10px 16px;
339
- min-height: 40px;
340
- border-radius: 8px;
341
- transition: all 0.2s ease;
342
-
343
- &:hover:not(:disabled) {
344
- background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E1 100%);
345
- color: #334155;
346
- transform: translateY(-1px);
347
- }
348
-
349
- &:disabled {
350
- opacity: 0.6;
351
- cursor: not-allowed;
352
- }
353
- }
354
- `;
355
- const CopyButton = styled__default.default(designSystem.Button)`
356
- && {
357
- background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
358
- color: #0284C7;
359
- font-weight: 600;
360
- border: 1px solid #BAE6FD;
361
- padding: 10px 16px;
362
- min-height: 40px;
363
- border-radius: 8px;
364
- transition: all 0.2s ease;
365
-
366
- &:hover:not(:disabled) {
367
- background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
368
- color: white;
369
- border-color: #0EA5E9;
370
- transform: translateY(-1px);
371
- box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
372
- }
373
-
374
- &:disabled {
375
- opacity: 0.6;
376
- cursor: not-allowed;
377
- }
378
- }
379
- `;
380
15
  const theme = {
381
16
  colors: {
382
17
  primary: { 600: "#0284C7", 700: "#075985", 100: "#E0F2FE", 50: "#F0F9FF" },
@@ -1007,7 +642,7 @@ const SettingsPage = () => {
1007
642
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Typography, { variant: "pi", textColor: "danger600", style: { fontSize: "13px", lineHeight: "1.7" }, children: t("settings.general.danger.description", "Clean All Inactive: Permanently deletes all inactive sessions. This cannot be undone.") })
1008
643
  ] }),
1009
644
  /* @__PURE__ */ jsxRuntime.jsx(
1010
- DangerButton,
645
+ StyledButtons.DangerButton,
1011
646
  {
1012
647
  onClick: handleCleanInactive,
1013
648
  loading: cleaning,
@@ -1070,7 +705,7 @@ const SettingsPage = () => {
1070
705
  }
1071
706
  ) }),
1072
707
  /* @__PURE__ */ jsxRuntime.jsx(
1073
- ShowHideButton,
708
+ StyledButtons.ShowHideButton,
1074
709
  {
1075
710
  onClick: () => setShowEncryptionKey(!showEncryptionKey),
1076
711
  size: "L",
@@ -1080,7 +715,7 @@ const SettingsPage = () => {
1080
715
  ] }),
1081
716
  /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { gap: 3, children: [
1082
717
  /* @__PURE__ */ jsxRuntime.jsx(
1083
- GradientButton,
718
+ StyledButtons.GradientButton,
1084
719
  {
1085
720
  startIcon: /* @__PURE__ */ jsxRuntime.jsx(icons.Code, {}),
1086
721
  onClick: () => {
@@ -1097,7 +732,7 @@ const SettingsPage = () => {
1097
732
  }
1098
733
  ),
1099
734
  /* @__PURE__ */ jsxRuntime.jsx(
1100
- CopyButton,
735
+ StyledButtons.CopyButton,
1101
736
  {
1102
737
  startIcon: /* @__PURE__ */ jsxRuntime.jsx(icons.Duplicate, {}),
1103
738
  onClick: () => {
@@ -1115,7 +750,7 @@ const SettingsPage = () => {
1115
750
  }
1116
751
  ),
1117
752
  /* @__PURE__ */ jsxRuntime.jsx(
1118
- CopyButton,
753
+ StyledButtons.CopyButton,
1119
754
  {
1120
755
  startIcon: /* @__PURE__ */ jsxRuntime.jsx(icons.Duplicate, {}),
1121
756
  onClick: () => {
@@ -1460,7 +1095,7 @@ const SettingsPage = () => {
1460
1095
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Badge, { variant: "success", children: t("settings.email.templates.html.badge", "Main Template") })
1461
1096
  ] }),
1462
1097
  /* @__PURE__ */ jsxRuntime.jsx(
1463
- TertiaryButton,
1098
+ StyledButtons.TertiaryButton,
1464
1099
  {
1465
1100
  size: "S",
1466
1101
  onClick: () => {
@@ -1531,7 +1166,7 @@ const SettingsPage = () => {
1531
1166
  ),
1532
1167
  /* @__PURE__ */ jsxRuntime.jsxs(designSystem.Flex, { gap: 2, style: { marginTop: "12px" }, wrap: "wrap", children: [
1533
1168
  /* @__PURE__ */ jsxRuntime.jsx(
1534
- CopyButton,
1169
+ StyledButtons.CopyButton,
1535
1170
  {
1536
1171
  size: "S",
1537
1172
  onClick: () => {
@@ -1542,7 +1177,7 @@ const SettingsPage = () => {
1542
1177
  }
1543
1178
  ),
1544
1179
  /* @__PURE__ */ jsxRuntime.jsx(
1545
- SecondaryButton,
1180
+ StyledButtons.SecondaryButton,
1546
1181
  {
1547
1182
  size: "S",
1548
1183
  onClick: () => {
@@ -1556,7 +1191,7 @@ const SettingsPage = () => {
1556
1191
  }
1557
1192
  ),
1558
1193
  /* @__PURE__ */ jsxRuntime.jsx(
1559
- TertiaryButton,
1194
+ StyledButtons.TertiaryButton,
1560
1195
  {
1561
1196
  size: "S",
1562
1197
  onClick: () => {
@@ -1590,7 +1225,7 @@ const SettingsPage = () => {
1590
1225
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Badge, { variant: "secondary", children: t("settings.email.templates.text.badge", "Fallback") })
1591
1226
  ] }),
1592
1227
  /* @__PURE__ */ jsxRuntime.jsx(
1593
- TertiaryButton,
1228
+ StyledButtons.TertiaryButton,
1594
1229
  {
1595
1230
  size: "S",
1596
1231
  onClick: () => {
@@ -1660,7 +1295,7 @@ const SettingsPage = () => {
1660
1295
  }
1661
1296
  ),
1662
1297
  /* @__PURE__ */ jsxRuntime.jsx(designSystem.Flex, { gap: 2, style: { marginTop: "12px" }, wrap: "wrap", children: /* @__PURE__ */ jsxRuntime.jsx(
1663
- CopyButton,
1298
+ StyledButtons.CopyButton,
1664
1299
  {
1665
1300
  size: "S",
1666
1301
  onClick: () => {