@consilioweb/payload-support 0.6.2 → 0.6.3

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 (65) 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/package.json +2 -2
  65. package/dist/components/TicketConversation.js +0 -3004
@@ -1,33 +1,80 @@
1
- /* src/styles/theme.css */
1
+ /* ============================================
2
+ * Support Module — Theme Variables
3
+ * ============================================
4
+ * Override these variables to customize the
5
+ * support module's appearance.
6
+ *
7
+ * Usage: Import this file or copy the variables
8
+ * into your project's global CSS.
9
+ *
10
+ * The module integrates with Payload CMS theme
11
+ * variables (--theme-*) for seamless dark/light
12
+ * mode support.
13
+ * ============================================ */
14
+
2
15
  :root {
16
+
17
+ /* ------------------------------------------
18
+ * 1. PRIMARY BRAND COLORS
19
+ * ------------------------------------------
20
+ * Main action color used for buttons, links,
21
+ * active states, and focus rings.
22
+ * ------------------------------------------ */
3
23
  --support-primary: #2563eb;
4
24
  --support-primary-hover: #1d4ed8;
5
25
  --support-primary-light: #dbeafe;
6
26
  --support-primary-text: #1e40af;
27
+
28
+ /* ------------------------------------------
29
+ * 2. SEMANTIC COLORS
30
+ * ------------------------------------------
31
+ * Contextual colors for success, warning,
32
+ * error, and informational states.
33
+ * ------------------------------------------ */
7
34
  --support-success: #16a34a;
8
35
  --support-success-light: #dcfce7;
9
36
  --support-success-text: #166534;
37
+
10
38
  --support-warning: #d97706;
11
39
  --support-warning-light: #fef3c7;
12
40
  --support-warning-text: #92400e;
41
+
13
42
  --support-error: #dc2626;
14
43
  --support-error-light: #fef2f2;
15
44
  --support-error-text: #991b1b;
45
+
16
46
  --support-info: #0891b2;
17
47
  --support-info-light: #ecfeff;
18
48
  --support-info-text: #155e75;
49
+
50
+ /* ------------------------------------------
51
+ * 3. TICKET STATUS COLORS
52
+ * ------------------------------------------
53
+ * Background + text pairs for each ticket
54
+ * status badge.
55
+ * ------------------------------------------ */
19
56
  --support-status-open-bg: #dbeafe;
20
57
  --support-status-open-text: #1e40af;
21
58
  --support-status-open-dot: #2563eb;
59
+
22
60
  --support-status-waiting-bg: #fef3c7;
23
61
  --support-status-waiting-text: #92400e;
24
62
  --support-status-waiting-dot: #d97706;
63
+
25
64
  --support-status-resolved-bg: #dcfce7;
26
65
  --support-status-resolved-text: #166534;
27
66
  --support-status-resolved-dot: #16a34a;
67
+
28
68
  --support-status-closed-bg: #e5e7eb;
29
69
  --support-status-closed-text: #374151;
30
70
  --support-status-closed-dot: #6b7280;
71
+
72
+ /* ------------------------------------------
73
+ * 4. PRIORITY COLORS
74
+ * ------------------------------------------
75
+ * Left-border or badge accent for ticket
76
+ * priority levels.
77
+ * ------------------------------------------ */
31
78
  --support-priority-urgent: #dc2626;
32
79
  --support-priority-urgent-bg: #fef2f2;
33
80
  --support-priority-high: #ea580c;
@@ -36,60 +83,105 @@
36
83
  --support-priority-normal-bg: transparent;
37
84
  --support-priority-low: #94a3b8;
38
85
  --support-priority-low-bg: transparent;
86
+
87
+ /* ------------------------------------------
88
+ * 5. SENTIMENT COLORS
89
+ * ------------------------------------------
90
+ * AI-detected client sentiment indicators.
91
+ * ------------------------------------------ */
39
92
  --support-sentiment-frustrated: #dc2626;
40
93
  --support-sentiment-unhappy: #ea580c;
41
94
  --support-sentiment-urgent: #dc2626;
42
95
  --support-sentiment-neutral: #6b7280;
43
96
  --support-sentiment-satisfied: #16a34a;
97
+
98
+ /* ------------------------------------------
99
+ * 6. MESSAGE BUBBLES
100
+ * ------------------------------------------
101
+ * Background, border, and text colors for
102
+ * each message type in the conversation.
103
+ * ------------------------------------------ */
104
+
105
+ /* Admin messages (agent replies) */
44
106
  --support-msg-admin-bg: #f8fafc;
45
107
  --support-msg-admin-border: #2563eb;
46
108
  --support-msg-admin-text: var(--theme-text, #1e293b);
109
+
110
+ /* Client messages */
47
111
  --support-msg-client-bg: #fafafa;
48
112
  --support-msg-client-border: #e2e8f0;
49
113
  --support-msg-client-text: var(--theme-text, #1e293b);
114
+
115
+ /* Inbound email messages */
50
116
  --support-msg-email-bg: #fffbeb;
51
117
  --support-msg-email-border: #ea580c;
52
118
  --support-msg-email-text: var(--theme-text, #1e293b);
119
+
120
+ /* Internal notes (visible only to agents) */
53
121
  --support-msg-internal-bg: #fefce8;
54
122
  --support-msg-internal-border: #d97706;
55
123
  --support-msg-internal-text: var(--theme-text, #1e293b);
124
+
125
+ /* System/automated messages */
56
126
  --support-msg-system-bg: #f1f5f9;
57
127
  --support-msg-system-border: #cbd5e1;
58
128
  --support-msg-system-text: #64748b;
129
+
130
+ /* ------------------------------------------
131
+ * 7. CATEGORY COLORS
132
+ * ------------------------------------------
133
+ * Feature flag category indicators used on
134
+ * the settings page.
135
+ * ------------------------------------------ */
59
136
  --support-cat-core: #2563eb;
60
137
  --support-cat-communication: #16a34a;
61
138
  --support-cat-productivity: #d97706;
62
139
  --support-cat-advanced: #7c3aed;
140
+
141
+ /* ------------------------------------------
142
+ * 8. PROJECT STATUS COLORS
143
+ * ------------------------------------------
144
+ * Displayed in client history sidebar for
145
+ * associated projects.
146
+ * ------------------------------------------ */
63
147
  --support-project-active-bg: #dcfce7;
64
148
  --support-project-active-text: #166534;
65
149
  --support-project-paused-bg: #fef3c7;
66
150
  --support-project-paused-text: #92400e;
67
151
  --support-project-completed-bg: #e5e7eb;
68
152
  --support-project-completed-text: #374151;
69
- --support-font-family:
70
- -apple-system,
71
- BlinkMacSystemFont,
72
- "Inter",
73
- system-ui,
74
- sans-serif;
75
- --support-font-mono:
76
- "SF Mono",
77
- "Fira Code",
78
- "Cascadia Code",
79
- monospace;
153
+
154
+ /* ------------------------------------------
155
+ * 9. TYPOGRAPHY
156
+ * ------------------------------------------
157
+ * Font families, sizes, weights, and line
158
+ * heights used across the module.
159
+ * ------------------------------------------ */
160
+ --support-font-family: -apple-system, BlinkMacSystemFont, 'Inter', system-ui, sans-serif;
161
+ --support-font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
162
+
80
163
  --support-font-size-xs: 10px;
81
164
  --support-font-size-sm: 11px;
82
165
  --support-font-size-base: 13px;
83
166
  --support-font-size-md: 14px;
84
167
  --support-font-size-lg: 16px;
85
168
  --support-font-size-xl: 22px;
169
+
86
170
  --support-font-weight-normal: 400;
87
171
  --support-font-weight-medium: 500;
88
172
  --support-font-weight-semibold: 600;
89
173
  --support-font-weight-bold: 700;
174
+
90
175
  --support-line-height-tight: 1.3;
91
176
  --support-line-height-base: 1.5;
92
177
  --support-line-height-relaxed: 1.6;
178
+
179
+ /* ------------------------------------------
180
+ * 10. SPACING
181
+ * ------------------------------------------
182
+ * Consistent spacing scale used for padding,
183
+ * margins, and gaps.
184
+ * ------------------------------------------ */
93
185
  --support-space-xs: 4px;
94
186
  --support-space-sm: 6px;
95
187
  --support-space-md: 8px;
@@ -98,6 +190,13 @@
98
190
  --support-space-xl: 20px;
99
191
  --support-space-2xl: 24px;
100
192
  --support-space-3xl: 32px;
193
+
194
+ /* ------------------------------------------
195
+ * 11. BORDER RADIUS
196
+ * ------------------------------------------
197
+ * Corner rounding for cards, buttons,
198
+ * badges, and inputs.
199
+ * ------------------------------------------ */
101
200
  --support-radius-xs: 4px;
102
201
  --support-radius-sm: 6px;
103
202
  --support-radius: 8px;
@@ -105,17 +204,37 @@
105
204
  --support-radius-xl: 16px;
106
205
  --support-radius-pill: 9999px;
107
206
  --support-radius-circle: 50%;
207
+
208
+ /* ------------------------------------------
209
+ * 12. BORDERS
210
+ * ------------------------------------------
211
+ * Default border color and widths used
212
+ * throughout the module.
213
+ * ------------------------------------------ */
108
214
  --support-border-color: #e2e8f0;
109
215
  --support-border-light: #f1f5f9;
110
216
  --support-border-width: 1px;
111
217
  --support-border-width-thick: 2px;
112
218
  --support-border-width-accent: 3px;
219
+
220
+ /* ------------------------------------------
221
+ * 13. BACKGROUNDS
222
+ * ------------------------------------------
223
+ * Surface, card, and page-level backgrounds.
224
+ * Integrates with Payload CMS theme vars.
225
+ * ------------------------------------------ */
113
226
  --support-bg-page: var(--theme-elevation-50, #f8fafc);
114
227
  --support-bg-card: var(--theme-elevation-100, #f1f5f9);
115
228
  --support-bg-surface: var(--theme-elevation-0, #ffffff);
116
229
  --support-bg-hover: var(--theme-elevation-150, #e2e8f0);
117
230
  --support-bg-active: var(--theme-elevation-200, #cbd5e1);
118
231
  --support-bg-overlay: rgba(0, 0, 0, 0.5);
232
+
233
+ /* ------------------------------------------
234
+ * 14. TEXT COLORS
235
+ * ------------------------------------------
236
+ * Primary, secondary, and muted text levels.
237
+ * ------------------------------------------ */
119
238
  --support-text-primary: var(--theme-text, #1e293b);
120
239
  --support-text-secondary: #6b7280;
121
240
  --support-text-muted: #9ca3af;
@@ -124,6 +243,13 @@
124
243
  --support-text-link-hover: #1d4ed8;
125
244
  --support-text-on-primary: #ffffff;
126
245
  --support-text-on-dark: #f8fafc;
246
+
247
+ /* ------------------------------------------
248
+ * 15. SHADOWS
249
+ * ------------------------------------------
250
+ * Elevation shadows for cards, modals,
251
+ * dropdowns, and tooltips.
252
+ * ------------------------------------------ */
127
253
  --support-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
128
254
  --support-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
129
255
  --support-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
@@ -131,10 +257,22 @@
131
257
  --support-shadow-focus: 0 0 0 2px rgba(37, 99, 235, 0.15);
132
258
  --support-shadow-error-focus: 0 0 0 2px rgba(220, 38, 38, 0.15);
133
259
  --support-shadow-toggle: 0 1px 3px rgba(0, 0, 0, 0.15);
260
+
261
+ /* ------------------------------------------
262
+ * 16. TRANSITIONS & ANIMATIONS
263
+ * ------------------------------------------
264
+ * Duration and easing for interactive states.
265
+ * ------------------------------------------ */
134
266
  --support-transition-fast: 100ms ease;
135
267
  --support-transition-base: 150ms ease;
136
268
  --support-transition-slow: 300ms ease;
137
269
  --support-transition-spring: 200ms cubic-bezier(0.4, 0, 0.2, 1);
270
+
271
+ /* ------------------------------------------
272
+ * 17. Z-INDEX LAYERS
273
+ * ------------------------------------------
274
+ * Stacking order for overlapping elements.
275
+ * ------------------------------------------ */
138
276
  --support-z-base: 1;
139
277
  --support-z-sticky: 10;
140
278
  --support-z-dropdown: 100;
@@ -142,11 +280,25 @@
142
280
  --support-z-modal: 510;
143
281
  --support-z-toast: 600;
144
282
  --support-z-tooltip: 700;
283
+
284
+ /* ------------------------------------------
285
+ * 18. LAYOUT
286
+ * ------------------------------------------
287
+ * Page structure: sidebar width, max-width,
288
+ * header height, breakpoints.
289
+ * ------------------------------------------ */
145
290
  --support-sidebar-width: 320px;
146
291
  --support-content-max-width: 800px;
147
292
  --support-header-height: 56px;
148
293
  --support-reply-box-min-height: 120px;
149
294
  --support-reply-box-max-height: 400px;
295
+
296
+ /* ------------------------------------------
297
+ * 19. BUTTONS
298
+ * ------------------------------------------
299
+ * Padding, font-size, and border styles for
300
+ * button size variants.
301
+ * ------------------------------------------ */
150
302
  --support-btn-padding-sm: 6px 12px;
151
303
  --support-btn-padding-md: 7px 14px;
152
304
  --support-btn-padding-lg: 10px 18px;
@@ -155,6 +307,13 @@
155
307
  --support-btn-font-lg: 14px;
156
308
  --support-btn-radius: var(--support-radius-sm);
157
309
  --support-btn-disabled-opacity: 0.5;
310
+
311
+ /* ------------------------------------------
312
+ * 20. INPUTS & FORM CONTROLS
313
+ * ------------------------------------------
314
+ * Styling for text inputs, textareas,
315
+ * selects, and other form elements.
316
+ * ------------------------------------------ */
158
317
  --support-input-padding: 8px 12px;
159
318
  --support-input-radius: var(--support-radius-sm);
160
319
  --support-input-border: var(--support-border-color);
@@ -165,10 +324,24 @@
165
324
  --support-input-focus-shadow: var(--support-shadow-focus);
166
325
  --support-input-disabled-bg: var(--support-bg-card);
167
326
  --support-input-disabled-opacity: 0.6;
327
+
328
+ /* ------------------------------------------
329
+ * 21. BADGES & TAGS
330
+ * ------------------------------------------
331
+ * Small inline labels used for statuses,
332
+ * categories, and metadata.
333
+ * ------------------------------------------ */
168
334
  --support-badge-padding: 2px 8px;
169
335
  --support-badge-radius: var(--support-radius-xs);
170
336
  --support-badge-font-size: 11px;
171
337
  --support-badge-font-weight: 600;
338
+
339
+ /* ------------------------------------------
340
+ * 22. TOGGLE SWITCH
341
+ * ------------------------------------------
342
+ * Custom toggle control used in feature
343
+ * flags and boolean settings.
344
+ * ------------------------------------------ */
172
345
  --support-toggle-width: 40px;
173
346
  --support-toggle-height: 22px;
174
347
  --support-toggle-knob-size: 18px;
@@ -177,38 +350,86 @@
177
350
  --support-toggle-on-bg: var(--support-primary);
178
351
  --support-toggle-knob-color: #ffffff;
179
352
  --support-toggle-knob-shadow: var(--support-shadow-toggle);
353
+
354
+ /* ------------------------------------------
355
+ * 23. TIME TRACKING
356
+ * ------------------------------------------
357
+ * Timer display, entries table, and related
358
+ * indicators.
359
+ * ------------------------------------------ */
180
360
  --support-timer-running-bg: #fef2f2;
181
361
  --support-timer-running-border: #fca5a5;
182
362
  --support-timer-running-dot: #dc2626;
183
363
  --support-timer-idle-bg: var(--support-bg-card);
184
364
  --support-timer-idle-border: var(--support-border-color);
365
+
366
+ /* ------------------------------------------
367
+ * 25. SATISFACTION SURVEY
368
+ * ------------------------------------------
369
+ * CSAT rating colors (1-5 stars or emoji).
370
+ * ------------------------------------------ */
185
371
  --support-csat-1: #dc2626;
186
372
  --support-csat-2: #ea580c;
187
373
  --support-csat-3: #d97706;
188
374
  --support-csat-4: #16a34a;
189
375
  --support-csat-5: #059669;
190
376
  --support-csat-bg: #f0fdf4;
377
+
378
+ /* ------------------------------------------
379
+ * 26. ACTIVITY LOG
380
+ * ------------------------------------------
381
+ * Timeline dots, connector lines, and
382
+ * entry backgrounds.
383
+ * ------------------------------------------ */
191
384
  --support-activity-dot-size: 8px;
192
385
  --support-activity-line-color: var(--support-border-color);
193
386
  --support-activity-dot-default: var(--support-text-muted);
194
387
  --support-activity-dot-status: var(--support-primary);
195
388
  --support-activity-dot-assign: #7c3aed;
196
389
  --support-activity-dot-merge: #0891b2;
390
+
391
+ /* ------------------------------------------
392
+ * 27. NOTIFICATION INDICATORS
393
+ * ------------------------------------------
394
+ * Unread counts, typing indicator, and
395
+ * real-time notification badges.
396
+ * ------------------------------------------ */
197
397
  --support-notification-dot: #dc2626;
198
398
  --support-notification-dot-size: 8px;
199
399
  --support-typing-dot-color: #94a3b8;
200
400
  --support-typing-dot-size: 6px;
201
401
  --support-unread-bg: #dc2626;
202
402
  --support-unread-text: #ffffff;
403
+
404
+ /* ------------------------------------------
405
+ * 28. SEARCH & FILTERS
406
+ * ------------------------------------------
407
+ * Search bar, filter dropdowns, and
408
+ * highlighted match styles.
409
+ * ------------------------------------------ */
203
410
  --support-search-bg: var(--support-bg-surface);
204
411
  --support-search-border: var(--support-border-color);
205
412
  --support-search-focus-border: var(--support-primary);
206
413
  --support-search-highlight-bg: #fef08a;
207
414
  --support-search-highlight-text: #1e293b;
415
+
416
+ /* ------------------------------------------
417
+ * 29. SCROLLBAR
418
+ * ------------------------------------------
419
+ * Custom scrollbar styling for conversation
420
+ * panels and sidebars.
421
+ * ------------------------------------------ */
208
422
  --support-scrollbar-width: 6px;
209
423
  --support-scrollbar-track: transparent;
210
424
  --support-scrollbar-thumb: #cbd5e1;
211
425
  --support-scrollbar-thumb-hover: #94a3b8;
426
+
427
+ /* ------------------------------------------
428
+ * 30. RICH TEXT EDITOR
429
+ * ------------------------------------------
430
+ * Editor area, toolbar, and content styling
431
+ * within the reply box.
432
+ * ------------------------------------------ */
212
433
  --support-rte-bg: var(--support-bg-surface);
213
434
  --support-rte-border: var(--support-border-color);
214
435
  --support-rte-toolbar-bg: var(--support-bg-card);
@@ -216,22 +437,56 @@
216
437
  --support-rte-blockquote-border: var(--support-primary);
217
438
  --support-rte-blockquote-bg: var(--support-bg-page);
218
439
  --support-rte-link-color: var(--support-primary);
440
+
441
+ /* ------------------------------------------
442
+ * 31. SNOOZE INDICATOR
443
+ * ------------------------------------------
444
+ * Visual cues when a ticket is snoozed
445
+ * (hidden temporarily).
446
+ * ------------------------------------------ */
219
447
  --support-snooze-bg: #eff6ff;
220
448
  --support-snooze-border: #93c5fd;
221
449
  --support-snooze-text: #1d4ed8;
222
450
  --support-snooze-icon: #3b82f6;
451
+
452
+ /* ------------------------------------------
453
+ * 32. MERGE INDICATOR
454
+ * ------------------------------------------
455
+ * Visual treatment for merged tickets
456
+ * and their source references.
457
+ * ------------------------------------------ */
223
458
  --support-merge-bg: #ecfeff;
224
459
  --support-merge-border: #06b6d4;
225
460
  --support-merge-text: #155e75;
461
+
462
+ /* ------------------------------------------
463
+ * 33. SCHEDULED REPLY
464
+ * ------------------------------------------
465
+ * Indicator for messages scheduled to be
466
+ * sent at a future date/time.
467
+ * ------------------------------------------ */
226
468
  --support-scheduled-bg: #f5f3ff;
227
469
  --support-scheduled-border: #a78bfa;
228
470
  --support-scheduled-text: #5b21b6;
229
471
  --support-scheduled-icon: #7c3aed;
472
+
473
+ /* ------------------------------------------
474
+ * 34. EMAIL TRACKING
475
+ * ------------------------------------------
476
+ * Delivery and open status indicators for
477
+ * outbound email notifications.
478
+ * ------------------------------------------ */
230
479
  --support-email-sent: #2563eb;
231
480
  --support-email-delivered: #16a34a;
232
481
  --support-email-opened: #059669;
233
482
  --support-email-bounced: #dc2626;
234
483
  --support-email-pending: #9ca3af;
484
+
485
+ /* ------------------------------------------
486
+ * 35. CANNED RESPONSE PICKER
487
+ * ------------------------------------------
488
+ * Quick reply template selector dropdown.
489
+ * ------------------------------------------ */
235
490
  --support-canned-bg: var(--support-bg-surface);
236
491
  --support-canned-hover-bg: var(--support-bg-card);
237
492
  --support-canned-border: var(--support-border-color);
@@ -239,82 +494,140 @@
239
494
  --support-canned-shortcut-bg: var(--support-bg-card);
240
495
  --support-canned-shortcut-text: var(--support-text-secondary);
241
496
  }
242
- [data-theme=dark] {
497
+
498
+
499
+ /* ============================================
500
+ * DARK MODE OVERRIDES
501
+ * ============================================
502
+ * Applied when Payload CMS is in dark mode.
503
+ * Uses [data-theme="dark"] selector to match
504
+ * Payload's native theme switching.
505
+ * ============================================ */
506
+
507
+ [data-theme="dark"] {
508
+
509
+ /* Primary */
243
510
  --support-primary: #3b82f6;
244
511
  --support-primary-hover: #60a5fa;
245
512
  --support-primary-light: #1e3a5f;
246
513
  --support-primary-text: #93c5fd;
514
+
515
+ /* Semantic */
247
516
  --support-success: #22c55e;
248
517
  --support-success-light: #14532d;
249
518
  --support-success-text: #86efac;
519
+
250
520
  --support-warning: #eab308;
251
521
  --support-warning-light: #422006;
252
522
  --support-warning-text: #fde047;
523
+
253
524
  --support-error: #ef4444;
254
525
  --support-error-light: #450a0a;
255
526
  --support-error-text: #fca5a5;
527
+
256
528
  --support-info: #22d3ee;
257
529
  --support-info-light: #083344;
258
530
  --support-info-text: #67e8f9;
531
+
532
+ /* Ticket statuses */
259
533
  --support-status-open-bg: #1e3a5f;
260
534
  --support-status-open-text: #93c5fd;
261
535
  --support-status-open-dot: #3b82f6;
536
+
262
537
  --support-status-waiting-bg: #422006;
263
538
  --support-status-waiting-text: #fde047;
264
539
  --support-status-waiting-dot: #eab308;
540
+
265
541
  --support-status-resolved-bg: #14532d;
266
542
  --support-status-resolved-text: #86efac;
267
543
  --support-status-resolved-dot: #22c55e;
544
+
268
545
  --support-status-closed-bg: #374151;
269
546
  --support-status-closed-text: #d1d5db;
270
547
  --support-status-closed-dot: #9ca3af;
548
+
549
+ /* Priority */
271
550
  --support-priority-urgent: #ef4444;
272
551
  --support-priority-urgent-bg: #450a0a;
273
552
  --support-priority-high: #f97316;
274
553
  --support-priority-high-bg: #431407;
554
+
555
+ /* Message bubbles */
275
556
  --support-msg-admin-bg: #1e293b;
276
557
  --support-msg-admin-border: #3b82f6;
558
+
277
559
  --support-msg-client-bg: #0f172a;
278
560
  --support-msg-client-border: #334155;
561
+
279
562
  --support-msg-email-bg: #1c1917;
280
563
  --support-msg-email-border: #ea580c;
564
+
281
565
  --support-msg-internal-bg: #1a1a0e;
282
566
  --support-msg-internal-border: #eab308;
567
+
283
568
  --support-msg-system-bg: #1e293b;
284
569
  --support-msg-system-border: #475569;
285
570
  --support-msg-system-text: #94a3b8;
571
+
572
+ /* Backgrounds */
286
573
  --support-bg-overlay: rgba(0, 0, 0, 0.7);
574
+
575
+ /* Text */
287
576
  --support-text-secondary: #94a3b8;
288
577
  --support-text-muted: #64748b;
289
578
  --support-text-disabled: #475569;
290
579
  --support-text-link: #60a5fa;
291
580
  --support-text-link-hover: #93c5fd;
581
+
582
+ /* Borders */
292
583
  --support-border-color: #334155;
293
584
  --support-border-light: #1e293b;
585
+
586
+ /* Shadows (reduced in dark mode) */
294
587
  --support-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
295
588
  --support-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
296
589
  --support-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
297
590
  --support-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
298
591
  --support-shadow-focus: 0 0 0 2px rgba(59, 130, 246, 0.25);
299
592
  --support-shadow-error-focus: 0 0 0 2px rgba(239, 68, 68, 0.25);
593
+
594
+ /* Timer */
300
595
  --support-timer-running-bg: #450a0a;
301
596
  --support-timer-running-border: #7f1d1d;
597
+
598
+ /* Search */
302
599
  --support-search-highlight-bg: #854d0e;
303
600
  --support-search-highlight-text: #fef08a;
601
+
602
+ /* Scrollbar */
304
603
  --support-scrollbar-thumb: #475569;
305
604
  --support-scrollbar-thumb-hover: #64748b;
605
+
606
+ /* Snooze */
306
607
  --support-snooze-bg: #1e3a5f;
307
608
  --support-snooze-border: #1d4ed8;
308
609
  --support-snooze-text: #93c5fd;
610
+
611
+ /* Merge */
309
612
  --support-merge-bg: #083344;
310
613
  --support-merge-border: #0891b2;
311
614
  --support-merge-text: #67e8f9;
615
+
616
+ /* Scheduled */
312
617
  --support-scheduled-bg: #2e1065;
313
618
  --support-scheduled-border: #7c3aed;
314
619
  --support-scheduled-text: #c4b5fd;
620
+
621
+ /* Email tracking */
315
622
  --support-email-pending: #64748b;
623
+
624
+ /* CSAT */
316
625
  --support-csat-bg: #14532d;
626
+
627
+ /* Activity log */
317
628
  --support-activity-line-color: #334155;
629
+
630
+ /* Notification */
318
631
  --support-notification-dot: #ef4444;
319
632
  --support-typing-dot-color: #64748b;
320
633
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@consilioweb/payload-support",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "Payload CMS plugin — professional support & ticketing system with AI, SLA, time tracking, live chat, and more",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "./components/TicketConversation": {
41
41
  "import": {
42
- "default": "./dist/components/TicketConversation.js"
42
+ "default": "./dist/components/TicketConversation/index.js"
43
43
  }
44
44
  }
45
45
  },