@consilioweb/payload-support 0.6.2 → 0.6.4

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 (94) hide show
  1. package/dist/components/TicketConversation/components/AISummaryPanel.cjs +77 -0
  2. package/dist/components/TicketConversation/components/AISummaryPanel.js +76 -0
  3. package/dist/components/TicketConversation/components/ActionPanels.cjs +121 -0
  4. package/dist/components/TicketConversation/components/ActionPanels.js +118 -0
  5. package/dist/components/TicketConversation/components/ActivityLog.cjs +24 -0
  6. package/dist/components/TicketConversation/components/ActivityLog.js +23 -0
  7. package/dist/components/TicketConversation/components/ClientBar.cjs +43 -0
  8. package/dist/components/TicketConversation/components/ClientBar.js +42 -0
  9. package/dist/components/TicketConversation/components/ClientHistory.cjs +138 -0
  10. package/dist/components/TicketConversation/components/ClientHistory.js +137 -0
  11. package/dist/components/TicketConversation/components/CodeBlock.cjs +154 -0
  12. package/dist/components/TicketConversation/components/CodeBlock.js +152 -0
  13. package/dist/components/TicketConversation/components/CodeBlockInserter.cjs +156 -0
  14. package/dist/components/TicketConversation/components/CodeBlockInserter.js +155 -0
  15. package/dist/components/TicketConversation/components/QuickActions.cjs +66 -0
  16. package/dist/components/TicketConversation/components/QuickActions.js +65 -0
  17. package/dist/components/TicketConversation/components/TicketHeader.cjs +93 -0
  18. package/dist/components/TicketConversation/components/TicketHeader.js +92 -0
  19. package/dist/components/TicketConversation/components/TimeTrackingPanel.cjs +134 -0
  20. package/dist/components/TicketConversation/components/TimeTrackingPanel.js +133 -0
  21. package/dist/components/TicketConversation/config.cjs +44 -0
  22. package/dist/components/TicketConversation/config.js +41 -0
  23. package/dist/components/TicketConversation/constants.cjs +100 -0
  24. package/dist/components/TicketConversation/constants.js +96 -0
  25. package/dist/components/TicketConversation/context.cjs +13 -0
  26. package/dist/components/TicketConversation/context.js +11 -0
  27. package/dist/components/TicketConversation/hooks/useAI.cjs +177 -0
  28. package/dist/components/TicketConversation/hooks/useAI.js +176 -0
  29. package/dist/components/TicketConversation/hooks/useMessageActions.cjs +136 -0
  30. package/dist/components/TicketConversation/hooks/useMessageActions.js +135 -0
  31. package/dist/components/TicketConversation/hooks/useReply.cjs +188 -0
  32. package/dist/components/TicketConversation/hooks/useReply.js +187 -0
  33. package/dist/components/TicketConversation/hooks/useTicketActions.cjs +231 -0
  34. package/dist/components/TicketConversation/hooks/useTicketActions.js +230 -0
  35. package/dist/components/TicketConversation/hooks/useTimeTracking.cjs +123 -0
  36. package/dist/components/TicketConversation/hooks/useTimeTracking.js +122 -0
  37. package/dist/components/TicketConversation/hooks/useTranslation.cjs +78 -0
  38. package/dist/components/TicketConversation/hooks/useTranslation.js +70 -0
  39. package/dist/components/TicketConversation/index.cjs +1128 -0
  40. package/dist/components/TicketConversation/index.js +1123 -0
  41. package/dist/components/TicketConversation/locales/en.json +878 -0
  42. package/dist/components/TicketConversation/locales/fr.json +878 -0
  43. package/dist/components/TicketConversation/types.cjs +2 -0
  44. package/dist/components/TicketConversation/types.js +2 -0
  45. package/dist/components/TicketConversation/utils.cjs +27 -0
  46. package/dist/components/TicketConversation/utils.js +25 -0
  47. package/dist/styles/BillingView.module.scss +311 -0
  48. package/dist/styles/ChatView.module.scss +438 -0
  49. package/dist/styles/CommandPalette.module.scss +160 -0
  50. package/dist/styles/CrmView.module.scss +554 -0
  51. package/dist/styles/EmailTracking.module.scss +238 -0
  52. package/dist/styles/ImportConversation.module.scss +267 -0
  53. package/dist/styles/Layout.module.scss +55 -0
  54. package/dist/styles/Logs.module.scss +164 -0
  55. package/dist/styles/NewTicket.module.scss +143 -0
  56. package/dist/styles/PendingEmails.module.scss +629 -0
  57. package/dist/styles/SupportDashboard.module.scss +649 -0
  58. package/dist/styles/TicketDetail.module.scss +1050 -0
  59. package/dist/styles/TicketInbox.module.scss +296 -0
  60. package/dist/styles/TicketingSettings.module.scss +358 -0
  61. package/dist/styles/TimeDashboard.module.scss +287 -0
  62. package/dist/styles/_tokens.scss +78 -0
  63. package/dist/{components/TicketConversation.css → styles/theme.css} +326 -13
  64. package/dist/views/BillingView/client.js +1 -1
  65. package/dist/views/BillingView/index.js +2 -2
  66. package/dist/views/ChatView/client.js +1 -1
  67. package/dist/views/ChatView/index.js +2 -2
  68. package/dist/views/CrmView/client.js +1 -1
  69. package/dist/views/CrmView/index.js +2 -2
  70. package/dist/views/EmailTrackingView/client.js +1 -1
  71. package/dist/views/EmailTrackingView/index.js +2 -2
  72. package/dist/views/ImportConversationView/client.js +1 -1
  73. package/dist/views/ImportConversationView/index.js +2 -2
  74. package/dist/views/LogsView/client.js +1 -1
  75. package/dist/views/LogsView/index.js +2 -2
  76. package/dist/views/NewTicketView/client.js +1 -1
  77. package/dist/views/NewTicketView/index.js +2 -2
  78. package/dist/views/PendingEmailsView/client.js +1 -1
  79. package/dist/views/PendingEmailsView/index.js +2 -2
  80. package/dist/views/SupportDashboardView/client.js +1 -1
  81. package/dist/views/SupportDashboardView/index.js +2 -2
  82. package/dist/views/TicketDetailView/client.js +2 -2
  83. package/dist/views/TicketDetailView/index.js +2 -2
  84. package/dist/views/TicketInboxView/client.js +1 -1
  85. package/dist/views/TicketInboxView/index.js +2 -2
  86. package/dist/views/TicketingSettingsView/client.js +3 -3
  87. package/dist/views/TicketingSettingsView/index.js +2 -2
  88. package/dist/views/TimeDashboardView/client.js +1 -1
  89. package/dist/views/TimeDashboardView/index.js +2 -2
  90. package/dist/views/shared/AdminViewHeader.js +1 -1
  91. package/dist/views/shared/index.js +5 -5
  92. package/dist/views.js +13 -13
  93. package/package.json +2 -2
  94. package/dist/components/TicketConversation.js +0 -3004
@@ -0,0 +1,554 @@
1
+ // CRM View — Clean SaaS design, 2026
2
+
3
+ $font-stack: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
4
+ $font-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', 'Cascadia Code', monospace;
5
+ $accent: #2563eb;
6
+ $green: #16a34a;
7
+ $orange: #ea580c;
8
+ $amber: #d97706;
9
+ $red: #dc2626;
10
+
11
+ // Layout
12
+ .page {
13
+ max-width: 1920px;
14
+ margin: 0 auto;
15
+ padding: 0 24px 60px;
16
+ font-family: $font-stack;
17
+ }
18
+
19
+ // Header
20
+ .header {
21
+ display: flex;
22
+ align-items: center;
23
+ gap: 16px;
24
+ padding: 20px 0 16px;
25
+ flex-wrap: wrap;
26
+ }
27
+
28
+ .title {
29
+ font-size: 24px;
30
+ font-weight: 800;
31
+ color: var(--theme-text);
32
+ margin: 0;
33
+ }
34
+
35
+ .subtitle {
36
+ font-size: 13px;
37
+ color: var(--theme-elevation-500);
38
+ font-weight: 400;
39
+ }
40
+
41
+ // Grid layout
42
+ .grid {
43
+ display: grid;
44
+ grid-template-columns: 320px 1fr;
45
+ gap: 16px;
46
+ align-items: start;
47
+
48
+ @media (max-width: 800px) {
49
+ grid-template-columns: 1fr;
50
+ }
51
+ }
52
+
53
+ // Cards
54
+ .card {
55
+ border: 1px solid var(--theme-elevation-200);
56
+ border-radius: 10px;
57
+ background: var(--theme-elevation-0, #fff);
58
+ }
59
+
60
+ // Sidebar: client list
61
+ .sidebar {
62
+ composes: card;
63
+ overflow: hidden;
64
+ }
65
+
66
+ .sidebarSearch {
67
+ padding: 12px;
68
+ border-bottom: 1px solid var(--theme-elevation-200);
69
+ }
70
+
71
+ .searchInput {
72
+ width: 100%;
73
+ padding: 8px 12px;
74
+ border-radius: 8px;
75
+ border: 1px solid var(--theme-elevation-200);
76
+ background: var(--theme-elevation-0, #fff);
77
+ color: var(--theme-text);
78
+ font-size: 13px;
79
+ font-family: $font-stack;
80
+ transition: border-color 150ms, box-shadow 150ms;
81
+ box-sizing: border-box;
82
+
83
+ &:focus {
84
+ outline: none;
85
+ border-color: $accent;
86
+ box-shadow: 0 0 0 3px rgba($accent, 0.08);
87
+ }
88
+
89
+ &::placeholder {
90
+ color: var(--theme-elevation-400);
91
+ }
92
+ }
93
+
94
+ .clientList {
95
+ max-height: 600px;
96
+ overflow-y: auto;
97
+ }
98
+
99
+ .clientItem {
100
+ padding: 10px 14px;
101
+ border-bottom: 1px solid var(--theme-elevation-100);
102
+ cursor: pointer;
103
+ border-left: 3px solid transparent;
104
+ transition: background 80ms;
105
+
106
+ &:hover {
107
+ background: var(--theme-elevation-50);
108
+ }
109
+
110
+ &:last-child {
111
+ border-bottom: none;
112
+ }
113
+ }
114
+
115
+ .clientItemActive {
116
+ background: var(--theme-elevation-50);
117
+ border-left-color: $accent;
118
+ }
119
+
120
+ .clientCompany {
121
+ font-size: 14px;
122
+ font-weight: 600;
123
+ color: var(--theme-text);
124
+ }
125
+
126
+ .clientName {
127
+ font-size: 12px;
128
+ color: var(--theme-elevation-500);
129
+ }
130
+
131
+ .clientEmail {
132
+ font-size: 11px;
133
+ color: var(--theme-elevation-400);
134
+ }
135
+
136
+ // Empty / loading states
137
+ .emptyState {
138
+ padding: 24px;
139
+ text-align: center;
140
+ color: var(--theme-elevation-400);
141
+ font-size: 13px;
142
+ }
143
+
144
+ .placeholder {
145
+ composes: card;
146
+ text-align: center;
147
+ padding: 60px 24px;
148
+ color: var(--theme-elevation-400);
149
+ font-size: 14px;
150
+ }
151
+
152
+ .loadingCard {
153
+ composes: card;
154
+ padding: 40px;
155
+ }
156
+
157
+ // Detail panel
158
+ .detailStack {
159
+ display: flex;
160
+ flex-direction: column;
161
+ gap: 12px;
162
+ }
163
+
164
+ // Client header card
165
+ .clientHeader {
166
+ composes: card;
167
+ padding: 16px;
168
+ display: flex;
169
+ justify-content: space-between;
170
+ align-items: flex-start;
171
+ flex-wrap: wrap;
172
+ gap: 12px;
173
+ }
174
+
175
+ .clientHeaderName {
176
+ margin: 0;
177
+ font-size: 20px;
178
+ font-weight: 700;
179
+ color: var(--theme-text);
180
+ }
181
+
182
+ .clientHeaderContact {
183
+ font-size: 14px;
184
+ color: var(--theme-elevation-500);
185
+ margin-top: 4px;
186
+ }
187
+
188
+ .clientContactRow {
189
+ display: flex;
190
+ gap: 16px;
191
+ margin-top: 8px;
192
+ font-size: 13px;
193
+ color: var(--theme-text);
194
+ }
195
+
196
+ .clientNotes {
197
+ margin-top: 8px;
198
+ padding: 8px;
199
+ background: var(--theme-elevation-50);
200
+ border-radius: 6px;
201
+ font-size: 12px;
202
+ color: var(--theme-elevation-500);
203
+ font-style: italic;
204
+ }
205
+
206
+ .headerActions {
207
+ display: flex;
208
+ gap: 8px;
209
+ }
210
+
211
+ // Buttons
212
+ .btn {
213
+ padding: 8px 14px;
214
+ border-radius: 8px;
215
+ border: 1px solid var(--theme-elevation-200);
216
+ font-size: 13px;
217
+ font-weight: 600;
218
+ font-family: $font-stack;
219
+ cursor: pointer;
220
+ text-decoration: none;
221
+ white-space: nowrap;
222
+ transition: all 100ms;
223
+ display: inline-flex;
224
+ align-items: center;
225
+ gap: 6px;
226
+ }
227
+
228
+ .btnPrimary {
229
+ composes: btn;
230
+ background: $accent;
231
+ color: #fff;
232
+ border-color: $accent;
233
+
234
+ &:hover {
235
+ background: darken($accent, 8%);
236
+ }
237
+ }
238
+
239
+ .btnWarning {
240
+ composes: btn;
241
+ background: $orange;
242
+ color: #fff;
243
+ border-color: $orange;
244
+
245
+ &:hover {
246
+ background: darken($orange, 8%);
247
+ }
248
+ }
249
+
250
+ // Success toast
251
+ .successBanner {
252
+ padding: 10px 14px;
253
+ border-radius: 8px;
254
+ background: #f0fdf4;
255
+ border: 1px solid #86efac;
256
+ color: #166534;
257
+ font-size: 13px;
258
+ font-weight: 600;
259
+ }
260
+
261
+ // Merge panel
262
+ .mergePanel {
263
+ padding: 16px;
264
+ border-radius: 10px;
265
+ background: #fff7ed;
266
+ border: 2px solid $orange;
267
+
268
+ // Dark mode override
269
+ @media (prefers-color-scheme: dark) {
270
+ background: rgba($orange, 0.06);
271
+ }
272
+ }
273
+
274
+ .mergePanelTitle {
275
+ font-size: 13px;
276
+ font-weight: 800;
277
+ color: $orange;
278
+ text-transform: uppercase;
279
+ margin: 0 0 10px;
280
+ }
281
+
282
+ .mergePanelDesc {
283
+ font-size: 12px;
284
+ color: var(--theme-elevation-500);
285
+ margin: 0 0 10px;
286
+ line-height: 1.5;
287
+ }
288
+
289
+ .mergeInput {
290
+ composes: searchInput;
291
+ margin-bottom: 8px;
292
+ }
293
+
294
+ .mergeResultList {
295
+ display: flex;
296
+ flex-direction: column;
297
+ gap: 4px;
298
+ }
299
+
300
+ .mergeResultItem {
301
+ display: flex;
302
+ justify-content: space-between;
303
+ align-items: center;
304
+ padding: 8px 12px;
305
+ border-radius: 6px;
306
+ border: 1px solid var(--theme-elevation-200);
307
+ background: var(--theme-elevation-0, #fff);
308
+ cursor: pointer;
309
+ text-align: left;
310
+ font-size: 13px;
311
+ font-family: $font-stack;
312
+ width: 100%;
313
+ transition: background 80ms;
314
+
315
+ &:hover {
316
+ background: var(--theme-elevation-50);
317
+ }
318
+
319
+ &:disabled {
320
+ opacity: 0.5;
321
+ cursor: wait;
322
+ }
323
+ }
324
+
325
+ .mergeResultEmail {
326
+ color: var(--theme-elevation-400);
327
+ font-size: 12px;
328
+ }
329
+
330
+ .mergeResultName {
331
+ color: var(--theme-elevation-500);
332
+ margin-left: 8px;
333
+ }
334
+
335
+ .mergeEmpty {
336
+ font-size: 12px;
337
+ color: var(--theme-elevation-500);
338
+ font-style: italic;
339
+ margin: 0;
340
+ }
341
+
342
+ // Stats grid
343
+ .statsGrid {
344
+ display: grid;
345
+ grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
346
+ gap: 8px;
347
+ }
348
+
349
+ .statCard {
350
+ composes: card;
351
+ padding: 10px 12px;
352
+ }
353
+
354
+ .statLabel {
355
+ font-size: 10px;
356
+ font-weight: 700;
357
+ text-transform: uppercase;
358
+ color: var(--theme-elevation-500);
359
+ letter-spacing: 0.03em;
360
+ }
361
+
362
+ .statValue {
363
+ font-size: 20px;
364
+ font-weight: 600;
365
+ margin-top: 2px;
366
+ }
367
+
368
+ .statAccent { color: $accent; }
369
+ .statGreen { color: $green; }
370
+ .statOrange { color: $orange; }
371
+ .statAmber { color: $amber; }
372
+
373
+ // Section card with content
374
+ .sectionCard {
375
+ composes: card;
376
+ padding: 16px;
377
+ }
378
+
379
+ .sectionHeader {
380
+ display: flex;
381
+ justify-content: space-between;
382
+ align-items: center;
383
+ margin-bottom: 10px;
384
+ }
385
+
386
+ .sectionTitle {
387
+ margin: 0;
388
+ font-size: 13px;
389
+ font-weight: 600;
390
+ text-transform: uppercase;
391
+ color: var(--theme-text);
392
+ letter-spacing: 0.02em;
393
+ }
394
+
395
+ .sectionLink {
396
+ font-size: 12px;
397
+ font-weight: 700;
398
+ color: $accent;
399
+ text-decoration: none;
400
+
401
+ &:hover {
402
+ text-decoration: underline;
403
+ }
404
+ }
405
+
406
+ // Projects list
407
+ .projectList {
408
+ display: flex;
409
+ flex-wrap: wrap;
410
+ gap: 8px;
411
+ }
412
+
413
+ .projectChip {
414
+ display: flex;
415
+ align-items: center;
416
+ gap: 8px;
417
+ padding: 6px 12px;
418
+ border-radius: 6px;
419
+ border: 1.5px solid var(--theme-elevation-200);
420
+ text-decoration: none;
421
+ color: var(--theme-text);
422
+ font-size: 13px;
423
+ font-weight: 700;
424
+ transition: border-color 100ms;
425
+
426
+ &:hover {
427
+ border-color: var(--theme-elevation-400);
428
+ }
429
+ }
430
+
431
+ // Badges
432
+ .badge {
433
+ display: inline-block;
434
+ padding: 2px 8px;
435
+ border-radius: 4px;
436
+ font-size: 10px;
437
+ font-weight: 600;
438
+ text-transform: uppercase;
439
+ letter-spacing: 0.02em;
440
+ }
441
+
442
+ .badgeAccent {
443
+ background: $accent;
444
+ color: #fff;
445
+ }
446
+
447
+ .badgeGreen {
448
+ background: $green;
449
+ color: #fff;
450
+ }
451
+
452
+ .badgeOrange {
453
+ background: $orange;
454
+ color: #fff;
455
+ }
456
+
457
+ .badgeAmber {
458
+ background: $amber;
459
+ color: #000;
460
+ }
461
+
462
+ .badgeMuted {
463
+ background: var(--theme-elevation-300);
464
+ color: #fff;
465
+ }
466
+
467
+ // Tickets table
468
+ .table {
469
+ width: 100%;
470
+ border-collapse: collapse;
471
+ font-size: 13px;
472
+ }
473
+
474
+ .table th {
475
+ padding: 6px 8px;
476
+ text-align: left;
477
+ font-size: 10px;
478
+ font-weight: 600;
479
+ text-transform: uppercase;
480
+ color: var(--theme-elevation-500);
481
+ border-bottom: 1px solid var(--theme-elevation-200);
482
+ letter-spacing: 0.03em;
483
+ }
484
+
485
+ .table th:nth-child(3) {
486
+ text-align: center;
487
+ }
488
+
489
+ .table th:nth-child(4) {
490
+ text-align: right;
491
+ }
492
+
493
+ .table td {
494
+ padding: 6px 8px;
495
+ }
496
+
497
+ .table tr {
498
+ border-bottom: 1px solid var(--theme-elevation-100);
499
+
500
+ &:last-child {
501
+ border-bottom: none;
502
+ }
503
+ }
504
+
505
+ .ticketLink {
506
+ color: var(--theme-text);
507
+ font-weight: 700;
508
+ text-decoration: underline;
509
+ font-family: $font-mono;
510
+ font-size: 11px;
511
+
512
+ &:hover {
513
+ color: $accent;
514
+ }
515
+ }
516
+
517
+ .ticketSubject {
518
+ font-weight: 600;
519
+ }
520
+
521
+ .ticketStatusCell {
522
+ text-align: center;
523
+ }
524
+
525
+ .ticketDate {
526
+ text-align: right;
527
+ font-size: 11px;
528
+ color: var(--theme-elevation-400);
529
+ }
530
+
531
+ .ticketEmpty {
532
+ color: var(--theme-elevation-400);
533
+ font-size: 13px;
534
+ text-align: center;
535
+ padding: 20px;
536
+ }
537
+
538
+ // Skeleton placeholder
539
+ .skeleton {
540
+ height: 14px;
541
+ border-radius: 4px;
542
+ background: var(--theme-elevation-150, var(--theme-elevation-100));
543
+ animation: pulse 1.5s ease-in-out infinite;
544
+ margin-bottom: 10px;
545
+
546
+ &:nth-child(2) { width: 80%; }
547
+ &:nth-child(3) { width: 60%; }
548
+ &:nth-child(4) { width: 70%; }
549
+ }
550
+
551
+ @keyframes pulse {
552
+ 0%, 100% { opacity: 1; }
553
+ 50% { opacity: 0.4; }
554
+ }