strapi-plugin-magic-sessionmanager 4.7.2 → 4.9.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.
Files changed (71) hide show
  1. package/CHANGELOG.md +98 -0
  2. package/README.md +380 -663
  3. package/dist/admin/Analytics-B6d-39Qh.js +420 -0
  4. package/dist/admin/Analytics-DxOWXHn8.mjs +418 -0
  5. package/dist/admin/App-ZsSGj7n8.mjs +1894 -0
  6. package/dist/admin/App-mRFV50K6.js +1896 -0
  7. package/dist/admin/License-BE6UQ_V3.mjs +443 -0
  8. package/dist/admin/License-DXt2oi6u.js +443 -0
  9. package/dist/admin/OnlineUsersWidget-CFvM3Vbp.js +273 -0
  10. package/dist/admin/OnlineUsersWidget-_tJ6aeWl.mjs +254 -0
  11. package/dist/admin/SectionCard-BlWv8CRt.js +54 -0
  12. package/dist/admin/SectionCard-D51bv4Hi.mjs +55 -0
  13. package/dist/admin/Settings-BUc12TP5.js +3570 -0
  14. package/dist/admin/Settings-dtW7cjTX.mjs +3568 -0
  15. package/dist/admin/de-BFKoGEVT.js +544 -0
  16. package/dist/admin/de-j0oZH9Pz.mjs +544 -0
  17. package/dist/admin/en-UY4Tb5tE.mjs +544 -0
  18. package/dist/admin/en-s7Ksdkcg.js +544 -0
  19. package/dist/admin/es-07OGMe_5.js +544 -0
  20. package/dist/admin/es-DGBcZwQy.mjs +544 -0
  21. package/dist/admin/fr-B6-DWhGO.mjs +544 -0
  22. package/dist/admin/fr-ETj_2UBY.js +544 -0
  23. package/dist/admin/index-C_SyRULc.mjs +1750 -0
  24. package/dist/admin/index-D4kEnXSp.js +1751 -0
  25. package/dist/admin/index.js +1 -1
  26. package/dist/admin/index.mjs +2 -2
  27. package/dist/admin/maskSensitiveValue-BWcSjow7.js +9 -0
  28. package/dist/admin/maskSensitiveValue-lLRhN_S7.mjs +10 -0
  29. package/dist/admin/pt-C7PwrQtV.js +544 -0
  30. package/dist/admin/pt-YMRLm9gx.mjs +544 -0
  31. package/dist/server/index.js +3555 -6350
  32. package/dist/server/index.mjs +3555 -6350
  33. package/package.json +30 -19
  34. package/pics/analytics.png +0 -0
  35. package/pics/dashboard-dark.png +0 -0
  36. package/pics/dashboard.png +0 -0
  37. package/pics/dashboardsessionmodal.png +0 -0
  38. package/pics/mobile-dashboard.png +0 -0
  39. package/pics/mobile-session.png +0 -0
  40. package/pics/sessioninfopanel.png +0 -0
  41. package/pics/settings1.png +0 -0
  42. package/pics/settings2.png +0 -0
  43. package/pics/widget.png +0 -0
  44. package/scripts/geoip-updater.cjs +266 -36
  45. package/scripts/update-geoip-db.mjs +3 -0
  46. package/dist/admin/Analytics-CsrpxJwQ.mjs +0 -497
  47. package/dist/admin/Analytics-D03ZNNMR.js +0 -499
  48. package/dist/admin/App-B2VCS3cz.js +0 -1481
  49. package/dist/admin/App-qxKnK7G2.mjs +0 -1479
  50. package/dist/admin/License-ClW7sZLR.mjs +0 -318
  51. package/dist/admin/License-fixnQ7wF.js +0 -320
  52. package/dist/admin/OnlineUsersWidget-mR_OMiwi.mjs +0 -185
  53. package/dist/admin/OnlineUsersWidget-qb9utPBy.js +0 -185
  54. package/dist/admin/Settings-U3V4eGMo.mjs +0 -2038
  55. package/dist/admin/Settings-gv2BF54w.js +0 -2040
  56. package/dist/admin/StyledButtons-Cz8oYhmc.mjs +0 -418
  57. package/dist/admin/StyledButtons-DDuxnYz8.js +0 -419
  58. package/dist/admin/de-BnqGCokx.js +0 -316
  59. package/dist/admin/de-JBE-iylO.mjs +0 -316
  60. package/dist/admin/en-BRmVwd8-.js +0 -316
  61. package/dist/admin/en-kQWtdEai.mjs +0 -316
  62. package/dist/admin/es-CH691xcL.js +0 -301
  63. package/dist/admin/es-DOQvBxih.mjs +0 -301
  64. package/dist/admin/fr-CLExO0w_.js +0 -301
  65. package/dist/admin/fr-CmfCpepX.mjs +0 -301
  66. package/dist/admin/index-B_lFjUAg.mjs +0 -551
  67. package/dist/admin/index-Duc7cR_d.js +0 -552
  68. package/dist/admin/pt-BJ_F0yNi.js +0 -301
  69. package/dist/admin/pt-BSzZdyAH.mjs +0 -301
  70. package/dist/admin/sessionStatus-D_fWEzgj.js +0 -11
  71. package/dist/admin/sessionStatus-kwggjEMw.mjs +0 -12
@@ -1,418 +0,0 @@
1
- import styled from "styled-components";
2
- import { Button } from "@strapi/design-system";
3
- const GradientButton = styled(Button)`
4
- && {
5
- background: linear-gradient(135deg, #0EA5E9 0%, #A855F7 100%);
6
- color: white;
7
- font-weight: 600;
8
- border: none;
9
- padding: 10px 20px;
10
- min-height: 40px;
11
- transition: all 0.2s ease;
12
-
13
- &:hover:not(:disabled) {
14
- background: linear-gradient(135deg, #0284C7 0%, #9333EA 100%);
15
- transform: translateY(-1px);
16
- box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
17
- }
18
-
19
- &:active:not(:disabled) {
20
- transform: translateY(0);
21
- }
22
-
23
- &:disabled {
24
- opacity: 0.6;
25
- cursor: not-allowed;
26
- }
27
- }
28
- `;
29
- const SecondaryButton = styled(Button)`
30
- && {
31
- background: ${(p) => p.theme.colors.neutral0};
32
- color: var(--colors-secondary600, #7C3AED);
33
- font-weight: 600;
34
- border: 2px solid transparent;
35
- background-image: linear-gradient(${(p) => p.theme.colors.neutral0}, ${(p) => p.theme.colors.neutral0}), linear-gradient(135deg, #0EA5E9 0%, #A855F7 100%);
36
- background-origin: border-box;
37
- background-clip: padding-box, border-box;
38
- padding: 10px 20px;
39
- min-height: 40px;
40
- transition: all 0.2s ease;
41
-
42
- &:hover:not(:disabled) {
43
- background: linear-gradient(135deg, #0EA5E9 0%, #A855F7 100%);
44
- background-clip: padding-box;
45
- color: white;
46
- transform: translateY(-1px);
47
- box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
48
- }
49
-
50
- &:active:not(:disabled) {
51
- transform: translateY(0);
52
- }
53
-
54
- &:disabled {
55
- opacity: 0.6;
56
- cursor: not-allowed;
57
- }
58
- }
59
- `;
60
- const TertiaryButton = styled(Button)`
61
- && {
62
- background: transparent;
63
- color: var(--colors-neutral600);
64
- font-weight: 500;
65
- border: 1px solid rgba(128, 128, 128, 0.2);
66
- padding: 10px 20px;
67
- min-height: 40px;
68
- transition: all 0.2s ease;
69
-
70
- &:hover:not(:disabled) {
71
- background: rgba(128, 128, 128, 0.08);
72
- border-color: rgba(128, 128, 128, 0.3);
73
- color: var(--colors-neutral800);
74
- }
75
-
76
- &:disabled {
77
- opacity: 0.6;
78
- cursor: not-allowed;
79
- }
80
- }
81
- `;
82
- const DangerButton = styled(Button)`
83
- && {
84
- background: rgba(220, 38, 38, 0.12);
85
- color: var(--colors-danger600, #DC2626);
86
- font-weight: 600;
87
- border: 1px solid rgba(239, 68, 68, 0.4);
88
- padding: 10px 20px;
89
- min-height: 40px;
90
- transition: all 0.2s ease;
91
-
92
- &:hover:not(:disabled) {
93
- background: var(--colors-danger600, #DC2626);
94
- color: white;
95
- border-color: var(--colors-danger600, #DC2626);
96
- }
97
-
98
- &:disabled {
99
- opacity: 0.6;
100
- cursor: not-allowed;
101
- }
102
- }
103
- `;
104
- styled(Button)`
105
- && {
106
- background: linear-gradient(135deg, #10B981 0%, #059669 100%);
107
- color: white;
108
- font-weight: 600;
109
- border: none;
110
- padding: 10px 20px;
111
- min-height: 40px;
112
- transition: all 0.2s ease;
113
-
114
- &:hover:not(:disabled) {
115
- background: linear-gradient(135deg, #059669 0%, #047857 100%);
116
- transform: translateY(-1px);
117
- box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
118
- }
119
-
120
- &:disabled {
121
- opacity: 0.6;
122
- cursor: not-allowed;
123
- }
124
- }
125
- `;
126
- styled(Button)`
127
- && {
128
- background: linear-gradient(135deg, rgba(128, 128, 128, 0.04) 0%, rgba(128, 128, 128, 0.08) 100%);
129
- color: var(--colors-neutral600);
130
- border: 1px solid rgba(128, 128, 128, 0.2);
131
- padding: 8px;
132
- min-width: 38px;
133
- min-height: 38px;
134
- width: 38px;
135
- height: 38px;
136
- border-radius: 10px;
137
- display: flex;
138
- align-items: center;
139
- justify-content: center;
140
- transition: all 0.2s ease;
141
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
142
-
143
- svg {
144
- width: 18px;
145
- height: 18px;
146
- }
147
-
148
- &:hover:not(:disabled) {
149
- background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
150
- border-color: var(--colors-primary600, #0EA5E9);
151
- color: white;
152
- transform: translateY(-1px);
153
- box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
154
- }
155
-
156
- &:disabled {
157
- opacity: 0.6;
158
- cursor: not-allowed;
159
- }
160
- }
161
- `;
162
- const IconButtonDanger = styled(Button)`
163
- && {
164
- background: linear-gradient(135deg, rgba(220, 38, 38, 0.06) 0%, rgba(220, 38, 38, 0.12) 100%);
165
- color: var(--colors-danger600, #EF4444);
166
- border: 1px solid rgba(239, 68, 68, 0.4);
167
- padding: 8px;
168
- min-width: 38px;
169
- min-height: 38px;
170
- width: 38px;
171
- height: 38px;
172
- border-radius: 10px;
173
- display: flex;
174
- align-items: center;
175
- justify-content: center;
176
- transition: all 0.2s ease;
177
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
178
-
179
- svg {
180
- width: 18px;
181
- height: 18px;
182
- }
183
-
184
- &:hover:not(:disabled) {
185
- background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
186
- border-color: var(--colors-danger600, #EF4444);
187
- color: white;
188
- transform: translateY(-1px);
189
- box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
190
- }
191
-
192
- &:disabled {
193
- opacity: 0.6;
194
- cursor: not-allowed;
195
- }
196
- }
197
- `;
198
- const IconButtonPrimary = styled(Button)`
199
- && {
200
- background: linear-gradient(135deg, rgba(2, 132, 199, 0.06) 0%, rgba(2, 132, 199, 0.12) 100%);
201
- color: var(--colors-primary600, #0EA5E9);
202
- border: 1px solid rgba(14, 165, 233, 0.3);
203
- padding: 8px;
204
- min-width: 38px;
205
- min-height: 38px;
206
- width: 38px;
207
- height: 38px;
208
- border-radius: 10px;
209
- display: flex;
210
- align-items: center;
211
- justify-content: center;
212
- transition: all 0.2s ease;
213
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
214
-
215
- svg {
216
- width: 18px;
217
- height: 18px;
218
- }
219
-
220
- &:hover:not(:disabled) {
221
- background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
222
- border-color: var(--colors-primary600, #0EA5E9);
223
- color: white;
224
- transform: translateY(-1px);
225
- box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
226
- }
227
-
228
- &:disabled {
229
- opacity: 0.6;
230
- cursor: not-allowed;
231
- }
232
- }
233
- `;
234
- styled(Button)`
235
- && {
236
- background: linear-gradient(135deg, rgba(22, 163, 74, 0.06) 0%, rgba(22, 163, 74, 0.12) 100%);
237
- color: var(--colors-success600, #22C55E);
238
- border: 1px solid rgba(34, 197, 94, 0.3);
239
- padding: 8px;
240
- min-width: 38px;
241
- min-height: 38px;
242
- width: 38px;
243
- height: 38px;
244
- border-radius: 10px;
245
- display: flex;
246
- align-items: center;
247
- justify-content: center;
248
- transition: all 0.2s ease;
249
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
250
-
251
- svg {
252
- width: 18px;
253
- height: 18px;
254
- }
255
-
256
- &:hover:not(:disabled) {
257
- background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
258
- border-color: var(--colors-success600, #22C55E);
259
- color: white;
260
- transform: translateY(-1px);
261
- box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
262
- }
263
-
264
- &:disabled {
265
- opacity: 0.6;
266
- cursor: not-allowed;
267
- }
268
- }
269
- `;
270
- const IconButtonWarning = styled(Button)`
271
- && {
272
- background: linear-gradient(135deg, rgba(234, 179, 8, 0.06) 0%, rgba(234, 179, 8, 0.12) 100%);
273
- color: var(--colors-warning600, #D97706);
274
- border: 1px solid rgba(234, 179, 8, 0.4);
275
- padding: 8px;
276
- min-width: 38px;
277
- min-height: 38px;
278
- width: 38px;
279
- height: 38px;
280
- border-radius: 10px;
281
- display: flex;
282
- align-items: center;
283
- justify-content: center;
284
- transition: all 0.2s ease;
285
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
286
-
287
- svg {
288
- width: 18px;
289
- height: 18px;
290
- }
291
-
292
- &:hover:not(:disabled) {
293
- background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
294
- border-color: var(--colors-warning600, #F59E0B);
295
- color: white;
296
- transform: translateY(-1px);
297
- box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
298
- }
299
-
300
- &:disabled {
301
- opacity: 0.5;
302
- cursor: not-allowed;
303
- background: var(--colors-neutral100);
304
- border-color: rgba(128, 128, 128, 0.2);
305
- color: var(--colors-neutral500);
306
- }
307
- }
308
- `;
309
- styled(Button)`
310
- && {
311
- background: linear-gradient(135deg, #0EA5E9 0%, #A855F7 100%);
312
- color: white;
313
- font-weight: 700;
314
- font-size: 1rem;
315
- border: none;
316
- padding: 14px 28px;
317
- min-height: 52px;
318
- border-radius: 12px;
319
- transition: all 0.2s ease;
320
- box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
321
-
322
- &:hover:not(:disabled) {
323
- background: linear-gradient(135deg, #0284C7 0%, #9333EA 100%);
324
- transform: translateY(-2px);
325
- box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
326
- }
327
-
328
- &:active:not(:disabled) {
329
- transform: translateY(0);
330
- }
331
-
332
- &:disabled {
333
- opacity: 0.6;
334
- cursor: not-allowed;
335
- }
336
- }
337
- `;
338
- styled(Button)`
339
- && {
340
- background: transparent;
341
- color: var(--colors-primary600, #0EA5E9);
342
- font-weight: 500;
343
- border: none;
344
- padding: 4px 8px;
345
- min-height: auto;
346
- text-decoration: underline;
347
- transition: all 0.2s ease;
348
-
349
- &:hover:not(:disabled) {
350
- color: var(--colors-primary600, #0284C7);
351
- text-decoration: none;
352
- }
353
-
354
- &:disabled {
355
- opacity: 0.6;
356
- cursor: not-allowed;
357
- }
358
- }
359
- `;
360
- const ShowHideButton = styled(Button)`
361
- && {
362
- background: linear-gradient(135deg, rgba(128, 128, 128, 0.04) 0%, rgba(128, 128, 128, 0.08) 100%);
363
- color: var(--colors-neutral600);
364
- font-weight: 600;
365
- border: 1px solid rgba(128, 128, 128, 0.2);
366
- padding: 10px 16px;
367
- min-height: 40px;
368
- border-radius: 8px;
369
- transition: all 0.2s ease;
370
-
371
- &:hover:not(:disabled) {
372
- background: linear-gradient(135deg, rgba(128, 128, 128, 0.15) 0%, rgba(128, 128, 128, 0.25) 100%);
373
- color: var(--colors-neutral800);
374
- transform: translateY(-1px);
375
- }
376
-
377
- &:disabled {
378
- opacity: 0.6;
379
- cursor: not-allowed;
380
- }
381
- }
382
- `;
383
- const CopyButton = styled(Button)`
384
- && {
385
- background: linear-gradient(135deg, rgba(2, 132, 199, 0.06) 0%, rgba(2, 132, 199, 0.12) 100%);
386
- color: var(--colors-primary600, #0284C7);
387
- font-weight: 600;
388
- border: 1px solid rgba(14, 165, 233, 0.3);
389
- padding: 10px 16px;
390
- min-height: 40px;
391
- border-radius: 8px;
392
- transition: all 0.2s ease;
393
-
394
- &:hover:not(:disabled) {
395
- background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
396
- color: white;
397
- border-color: var(--colors-primary600, #0EA5E9);
398
- transform: translateY(-1px);
399
- box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
400
- }
401
-
402
- &:disabled {
403
- opacity: 0.6;
404
- cursor: not-allowed;
405
- }
406
- }
407
- `;
408
- export {
409
- CopyButton as C,
410
- DangerButton as D,
411
- GradientButton as G,
412
- IconButtonPrimary as I,
413
- ShowHideButton as S,
414
- TertiaryButton as T,
415
- IconButtonWarning as a,
416
- IconButtonDanger as b,
417
- SecondaryButton as c
418
- };