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
@@ -1,378 +1,13 @@
1
1
  import { jsx, jsxs, Fragment } from "react/jsx-runtime";
2
2
  import { useState, useEffect } from "react";
3
3
  import { useIntl } from "react-intl";
4
- import { Button, Flex, Loader, Typography, Box, Badge, Accordion, Grid, SingleSelect, SingleSelectOption, Divider, Alert, TextInput, Toggle, NumberInput, Checkbox, Tabs } from "@strapi/design-system";
4
+ import { Flex, Loader, Typography, Button, Box, Badge, Accordion, Grid, SingleSelect, SingleSelectOption, Divider, Alert, TextInput, Toggle, NumberInput, Checkbox, Tabs } from "@strapi/design-system";
5
5
  import { useFetchClient, useNotification } from "@strapi/strapi/admin";
6
6
  import { Check, Information, Cog, Trash, Shield, Code, Duplicate, Mail } from "@strapi/icons";
7
7
  import styled, { css, keyframes } from "styled-components";
8
- import { a as pluginId, g as getTranslation } from "./index-Dpdcg2zl.mjs";
9
- import { u as useLicense } from "./useLicense-CThICQyr.mjs";
10
- const GradientButton = styled(Button)`
11
- && {
12
- background: linear-gradient(135deg, #0EA5E9 0%, #A855F7 100%);
13
- color: white;
14
- font-weight: 600;
15
- border: none;
16
- padding: 10px 20px;
17
- min-height: 40px;
18
- transition: all 0.2s ease;
19
-
20
- &:hover:not(:disabled) {
21
- background: linear-gradient(135deg, #0284C7 0%, #9333EA 100%);
22
- transform: translateY(-1px);
23
- box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
24
- }
25
-
26
- &:active:not(:disabled) {
27
- transform: translateY(0);
28
- }
29
-
30
- &:disabled {
31
- opacity: 0.6;
32
- cursor: not-allowed;
33
- }
34
- }
35
- `;
36
- const SecondaryButton = styled(Button)`
37
- && {
38
- background: white;
39
- color: #7C3AED;
40
- font-weight: 600;
41
- border: 2px solid transparent;
42
- background-image: linear-gradient(white, white), linear-gradient(135deg, #0EA5E9 0%, #A855F7 100%);
43
- background-origin: border-box;
44
- background-clip: padding-box, border-box;
45
- padding: 10px 20px;
46
- min-height: 40px;
47
- transition: all 0.2s ease;
48
-
49
- &:hover:not(:disabled) {
50
- background: linear-gradient(135deg, #0EA5E9 0%, #A855F7 100%);
51
- background-clip: padding-box;
52
- color: white;
53
- transform: translateY(-1px);
54
- box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
55
- }
56
-
57
- &:active:not(:disabled) {
58
- transform: translateY(0);
59
- }
60
-
61
- &:disabled {
62
- opacity: 0.6;
63
- cursor: not-allowed;
64
- }
65
- }
66
- `;
67
- const TertiaryButton = styled(Button)`
68
- && {
69
- background: transparent;
70
- color: #64748B;
71
- font-weight: 500;
72
- border: 1px solid #E2E8F0;
73
- padding: 10px 20px;
74
- min-height: 40px;
75
- transition: all 0.2s ease;
76
-
77
- &:hover:not(:disabled) {
78
- background: #F1F5F9;
79
- border-color: #CBD5E1;
80
- color: #334155;
81
- }
82
-
83
- &:disabled {
84
- opacity: 0.6;
85
- cursor: not-allowed;
86
- }
87
- }
88
- `;
89
- const DangerButton = styled(Button)`
90
- && {
91
- background: #FEE2E2;
92
- color: #DC2626;
93
- font-weight: 600;
94
- border: 1px solid #FECACA;
95
- padding: 10px 20px;
96
- min-height: 40px;
97
- transition: all 0.2s ease;
98
-
99
- &:hover:not(:disabled) {
100
- background: #DC2626;
101
- color: white;
102
- border-color: #DC2626;
103
- }
104
-
105
- &:disabled {
106
- opacity: 0.6;
107
- cursor: not-allowed;
108
- }
109
- }
110
- `;
111
- styled(Button)`
112
- && {
113
- background: linear-gradient(135deg, #10B981 0%, #059669 100%);
114
- color: white;
115
- font-weight: 600;
116
- border: none;
117
- padding: 10px 20px;
118
- min-height: 40px;
119
- transition: all 0.2s ease;
120
-
121
- &:hover:not(:disabled) {
122
- background: linear-gradient(135deg, #059669 0%, #047857 100%);
123
- transform: translateY(-1px);
124
- box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
125
- }
126
-
127
- &:disabled {
128
- opacity: 0.6;
129
- cursor: not-allowed;
130
- }
131
- }
132
- `;
133
- styled(Button)`
134
- && {
135
- background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
136
- color: #64748B;
137
- border: 1px solid #E2E8F0;
138
- padding: 8px;
139
- min-width: 38px;
140
- min-height: 38px;
141
- width: 38px;
142
- height: 38px;
143
- border-radius: 10px;
144
- display: flex;
145
- align-items: center;
146
- justify-content: center;
147
- transition: all 0.2s ease;
148
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
149
-
150
- svg {
151
- width: 18px;
152
- height: 18px;
153
- }
154
-
155
- &:hover:not(:disabled) {
156
- background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
157
- border-color: #0EA5E9;
158
- color: white;
159
- transform: translateY(-1px);
160
- box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
161
- }
162
-
163
- &:disabled {
164
- opacity: 0.6;
165
- cursor: not-allowed;
166
- }
167
- }
168
- `;
169
- styled(Button)`
170
- && {
171
- background: linear-gradient(135deg, #FEF2F2 0%, #FEE2E2 100%);
172
- color: #EF4444;
173
- border: 1px solid #FECACA;
174
- padding: 8px;
175
- min-width: 38px;
176
- min-height: 38px;
177
- width: 38px;
178
- height: 38px;
179
- border-radius: 10px;
180
- display: flex;
181
- align-items: center;
182
- justify-content: center;
183
- transition: all 0.2s ease;
184
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
185
-
186
- svg {
187
- width: 18px;
188
- height: 18px;
189
- }
190
-
191
- &:hover:not(:disabled) {
192
- background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
193
- border-color: #EF4444;
194
- color: white;
195
- transform: translateY(-1px);
196
- box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
197
- }
198
-
199
- &:disabled {
200
- opacity: 0.6;
201
- cursor: not-allowed;
202
- }
203
- }
204
- `;
205
- styled(Button)`
206
- && {
207
- background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
208
- color: #0EA5E9;
209
- border: 1px solid #BAE6FD;
210
- padding: 8px;
211
- min-width: 38px;
212
- min-height: 38px;
213
- width: 38px;
214
- height: 38px;
215
- border-radius: 10px;
216
- display: flex;
217
- align-items: center;
218
- justify-content: center;
219
- transition: all 0.2s ease;
220
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
221
-
222
- svg {
223
- width: 18px;
224
- height: 18px;
225
- }
226
-
227
- &:hover:not(:disabled) {
228
- background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
229
- border-color: #0EA5E9;
230
- color: white;
231
- transform: translateY(-1px);
232
- box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
233
- }
234
-
235
- &:disabled {
236
- opacity: 0.6;
237
- cursor: not-allowed;
238
- }
239
- }
240
- `;
241
- styled(Button)`
242
- && {
243
- background: linear-gradient(135deg, #F0FDF4 0%, #DCFCE7 100%);
244
- color: #22C55E;
245
- border: 1px solid #BBF7D0;
246
- padding: 8px;
247
- min-width: 38px;
248
- min-height: 38px;
249
- width: 38px;
250
- height: 38px;
251
- border-radius: 10px;
252
- display: flex;
253
- align-items: center;
254
- justify-content: center;
255
- transition: all 0.2s ease;
256
- box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
257
-
258
- svg {
259
- width: 18px;
260
- height: 18px;
261
- }
262
-
263
- &:hover:not(:disabled) {
264
- background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
265
- border-color: #22C55E;
266
- color: white;
267
- transform: translateY(-1px);
268
- box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
269
- }
270
-
271
- &:disabled {
272
- opacity: 0.6;
273
- cursor: not-allowed;
274
- }
275
- }
276
- `;
277
- styled(Button)`
278
- && {
279
- background: linear-gradient(135deg, #0EA5E9 0%, #A855F7 100%);
280
- color: white;
281
- font-weight: 700;
282
- font-size: 1rem;
283
- border: none;
284
- padding: 14px 28px;
285
- min-height: 52px;
286
- border-radius: 12px;
287
- transition: all 0.2s ease;
288
- box-shadow: 0 4px 14px rgba(14, 165, 233, 0.25);
289
-
290
- &:hover:not(:disabled) {
291
- background: linear-gradient(135deg, #0284C7 0%, #9333EA 100%);
292
- transform: translateY(-2px);
293
- box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
294
- }
295
-
296
- &:active:not(:disabled) {
297
- transform: translateY(0);
298
- }
299
-
300
- &:disabled {
301
- opacity: 0.6;
302
- cursor: not-allowed;
303
- }
304
- }
305
- `;
306
- styled(Button)`
307
- && {
308
- background: transparent;
309
- color: #0EA5E9;
310
- font-weight: 500;
311
- border: none;
312
- padding: 4px 8px;
313
- min-height: auto;
314
- text-decoration: underline;
315
- transition: all 0.2s ease;
316
-
317
- &:hover:not(:disabled) {
318
- color: #0284C7;
319
- text-decoration: none;
320
- }
321
-
322
- &:disabled {
323
- opacity: 0.6;
324
- cursor: not-allowed;
325
- }
326
- }
327
- `;
328
- const ShowHideButton = styled(Button)`
329
- && {
330
- background: linear-gradient(135deg, #F8FAFC 0%, #F1F5F9 100%);
331
- color: #64748B;
332
- font-weight: 600;
333
- border: 1px solid #E2E8F0;
334
- padding: 10px 16px;
335
- min-height: 40px;
336
- border-radius: 8px;
337
- transition: all 0.2s ease;
338
-
339
- &:hover:not(:disabled) {
340
- background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E1 100%);
341
- color: #334155;
342
- transform: translateY(-1px);
343
- }
344
-
345
- &:disabled {
346
- opacity: 0.6;
347
- cursor: not-allowed;
348
- }
349
- }
350
- `;
351
- const CopyButton = styled(Button)`
352
- && {
353
- background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
354
- color: #0284C7;
355
- font-weight: 600;
356
- border: 1px solid #BAE6FD;
357
- padding: 10px 16px;
358
- min-height: 40px;
359
- border-radius: 8px;
360
- transition: all 0.2s ease;
361
-
362
- &:hover:not(:disabled) {
363
- background: linear-gradient(135deg, #0EA5E9 0%, #0284C7 100%);
364
- color: white;
365
- border-color: #0EA5E9;
366
- transform: translateY(-1px);
367
- box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
368
- }
369
-
370
- &:disabled {
371
- opacity: 0.6;
372
- cursor: not-allowed;
373
- }
374
- }
375
- `;
8
+ import { a as pluginId, g as getTranslation } from "./index-Ij0JRf9W.mjs";
9
+ import { u as useLicense } from "./useLicense-DJEDGSap.mjs";
10
+ import { D as DangerButton, S as ShowHideButton, G as GradientButton, C as CopyButton, T as TertiaryButton, c as SecondaryButton } from "./StyledButtons-fbNVRlMY.mjs";
376
11
  const theme = {
377
12
  colors: {
378
13
  primary: { 600: "#0284C7", 700: "#075985", 100: "#E0F2FE", 50: "#F0F9FF" },