strapi-plugin-magic-sessionmanager 4.2.16 → 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.
- package/dist/_chunks/{Analytics-BC4jdzBT.mjs → Analytics-sX94t6D9.mjs} +2 -2
- package/dist/_chunks/{Analytics-D6RGeWO5.js → Analytics-tOOj5T92.js} +2 -2
- package/dist/_chunks/{App-CahdcIEB.mjs → App-Cs4KKd3L.mjs} +155 -54
- package/dist/_chunks/{App-BkaaNOpt.js → App-D4qVym6y.js} +154 -53
- package/dist/_chunks/{License-BFx721o7.mjs → License-CN5YpqIu.mjs} +1 -1
- package/dist/_chunks/{License-C8VnKtV1.js → License-kfVcskd3.js} +1 -1
- package/dist/_chunks/{OnlineUsersWidget-uJ6DZB_N.js → OnlineUsersWidget-Cg3R7602.js} +1 -1
- package/dist/_chunks/{OnlineUsersWidget-r2ZgSnok.mjs → OnlineUsersWidget-ytykP_tA.mjs} +1 -1
- package/dist/_chunks/{Settings-jtZRw_VP.js → Settings-DVRIrGho.js} +26 -54
- package/dist/_chunks/{Settings-DOUUwwxB.mjs → Settings-XloJ-aHl.mjs} +26 -54
- package/dist/_chunks/StyledButtons-D2EbG_Zw.js +419 -0
- package/dist/_chunks/StyledButtons-fbNVRlMY.mjs +418 -0
- package/dist/_chunks/{UpgradePage-mqr6dLVY.mjs → UpgradePage-C441wvPX.mjs} +1 -1
- package/dist/_chunks/{UpgradePage-Bwy_1m6f.js → UpgradePage-D2FRalDz.js} +1 -1
- package/dist/_chunks/{index-BuxWeACw.js → index-DtBfKBne.js} +236 -190
- package/dist/_chunks/{index-CUSrDKCG.mjs → index-Ij0JRf9W.mjs} +237 -193
- package/dist/_chunks/{useLicense-xjKLHcVq.mjs → useLicense-DJEDGSap.mjs} +1 -1
- package/dist/_chunks/{useLicense-D7FSpX8c.js → useLicense-NCFYHpDd.js} +1 -1
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/server/index.js +35938 -169
- package/dist/server/index.mjs +35927 -167
- package/package.json +7 -7
|
@@ -0,0 +1,418 @@
|
|
|
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: white;
|
|
32
|
+
color: #7C3AED;
|
|
33
|
+
font-weight: 600;
|
|
34
|
+
border: 2px solid transparent;
|
|
35
|
+
background-image: linear-gradient(white, white), 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: #64748B;
|
|
64
|
+
font-weight: 500;
|
|
65
|
+
border: 1px solid #E2E8F0;
|
|
66
|
+
padding: 10px 20px;
|
|
67
|
+
min-height: 40px;
|
|
68
|
+
transition: all 0.2s ease;
|
|
69
|
+
|
|
70
|
+
&:hover:not(:disabled) {
|
|
71
|
+
background: #F1F5F9;
|
|
72
|
+
border-color: #CBD5E1;
|
|
73
|
+
color: #334155;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&:disabled {
|
|
77
|
+
opacity: 0.6;
|
|
78
|
+
cursor: not-allowed;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
`;
|
|
82
|
+
const DangerButton = styled(Button)`
|
|
83
|
+
&& {
|
|
84
|
+
background: #FEE2E2;
|
|
85
|
+
color: #DC2626;
|
|
86
|
+
font-weight: 600;
|
|
87
|
+
border: 1px solid #FECACA;
|
|
88
|
+
padding: 10px 20px;
|
|
89
|
+
min-height: 40px;
|
|
90
|
+
transition: all 0.2s ease;
|
|
91
|
+
|
|
92
|
+
&:hover:not(:disabled) {
|
|
93
|
+
background: #DC2626;
|
|
94
|
+
color: white;
|
|
95
|
+
border-color: #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, #F8FAFC 0%, #F1F5F9 100%);
|
|
129
|
+
color: #64748B;
|
|
130
|
+
border: 1px solid #E2E8F0;
|
|
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: #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, #FEF2F2 0%, #FEE2E2 100%);
|
|
165
|
+
color: #EF4444;
|
|
166
|
+
border: 1px solid #FECACA;
|
|
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: #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, #F0F9FF 0%, #E0F2FE 100%);
|
|
201
|
+
color: #0EA5E9;
|
|
202
|
+
border: 1px solid #BAE6FD;
|
|
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: #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, #F0FDF4 0%, #DCFCE7 100%);
|
|
237
|
+
color: #22C55E;
|
|
238
|
+
border: 1px solid #BBF7D0;
|
|
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: #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, #FFFBEB 0%, #FEF3C7 100%);
|
|
273
|
+
color: #D97706;
|
|
274
|
+
border: 1px solid #FDE68A;
|
|
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: #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: #F3F4F6;
|
|
304
|
+
border-color: #E5E7EB;
|
|
305
|
+
color: #9CA3AF;
|
|
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: #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: #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, #F8FAFC 0%, #F1F5F9 100%);
|
|
363
|
+
color: #64748B;
|
|
364
|
+
font-weight: 600;
|
|
365
|
+
border: 1px solid #E2E8F0;
|
|
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, #E2E8F0 0%, #CBD5E1 100%);
|
|
373
|
+
color: #334155;
|
|
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, #F0F9FF 0%, #E0F2FE 100%);
|
|
386
|
+
color: #0284C7;
|
|
387
|
+
font-weight: 600;
|
|
388
|
+
border: 1px solid #BAE6FD;
|
|
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: #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
|
+
};
|
|
@@ -4,7 +4,7 @@ import { useFetchClient, useNotification } from "@strapi/strapi/admin";
|
|
|
4
4
|
import styled from "styled-components";
|
|
5
5
|
import { Flex, Typography, Box, Badge, Button } from "@strapi/design-system";
|
|
6
6
|
import { Check, Cross, Sparkle, Lightning, Rocket } from "@strapi/icons";
|
|
7
|
-
import { a as pluginId } from "./index-
|
|
7
|
+
import { a as pluginId } from "./index-Ij0JRf9W.mjs";
|
|
8
8
|
const Container = styled(Box)`
|
|
9
9
|
padding: 32px;
|
|
10
10
|
max-width: 1400px;
|
|
@@ -6,7 +6,7 @@ const admin = require("@strapi/strapi/admin");
|
|
|
6
6
|
const styled = require("styled-components");
|
|
7
7
|
const designSystem = require("@strapi/design-system");
|
|
8
8
|
const icons = require("@strapi/icons");
|
|
9
|
-
const index = require("./index-
|
|
9
|
+
const index = require("./index-DtBfKBne.js");
|
|
10
10
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
11
11
|
const styled__default = /* @__PURE__ */ _interopDefault(styled);
|
|
12
12
|
const Container = styled__default.default(designSystem.Box)`
|