@consilioweb/payload-support 0.5.2 → 0.6.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.
- package/dist/components/TicketConversation/components/AISummaryPanel.js +76 -0
- package/dist/components/TicketConversation/components/ActionPanels.js +118 -0
- package/dist/components/TicketConversation/components/ActivityLog.js +23 -0
- package/dist/components/TicketConversation/components/ClientBar.js +42 -0
- package/dist/components/TicketConversation/components/ClientHistory.js +137 -0
- package/dist/components/TicketConversation/components/CodeBlock.js +152 -0
- package/dist/components/TicketConversation/components/CodeBlockInserter.js +155 -0
- package/dist/components/TicketConversation/components/QuickActions.js +65 -0
- package/dist/components/TicketConversation/components/TicketHeader.js +92 -0
- package/dist/components/TicketConversation/components/TimeTrackingPanel.js +133 -0
- package/dist/components/TicketConversation/config.js +41 -0
- package/dist/components/TicketConversation/constants.js +96 -0
- package/dist/components/TicketConversation/context.js +11 -0
- package/dist/components/TicketConversation/hooks/useAI.js +176 -0
- package/dist/components/TicketConversation/hooks/useMessageActions.js +135 -0
- package/dist/components/TicketConversation/hooks/useReply.js +187 -0
- package/dist/components/TicketConversation/hooks/useTicketActions.js +230 -0
- package/dist/components/TicketConversation/hooks/useTimeTracking.js +122 -0
- package/dist/components/TicketConversation/hooks/useTranslation.js +70 -0
- package/dist/components/TicketConversation/index.js +1123 -0
- package/dist/components/TicketConversation/locales/en.json +878 -0
- package/dist/components/TicketConversation/locales/fr.json +878 -0
- package/dist/components/TicketConversation/types.js +2 -0
- package/dist/components/TicketConversation/utils.js +25 -0
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/dist/styles/BillingView.module.scss +311 -0
- package/dist/styles/ChatView.module.scss +438 -0
- package/dist/styles/CommandPalette.module.scss +160 -0
- package/dist/styles/CrmView.module.scss +554 -0
- package/dist/styles/EmailTracking.module.scss +238 -0
- package/dist/styles/ImportConversation.module.scss +267 -0
- package/dist/styles/Layout.module.scss +55 -0
- package/dist/styles/Logs.module.scss +164 -0
- package/dist/styles/NewTicket.module.scss +143 -0
- package/dist/styles/PendingEmails.module.scss +629 -0
- package/dist/styles/SupportDashboard.module.scss +649 -0
- package/dist/styles/TicketDetail.module.scss +1050 -0
- package/dist/styles/TicketInbox.module.scss +296 -0
- package/dist/styles/TicketingSettings.module.scss +358 -0
- package/dist/styles/TimeDashboard.module.scss +287 -0
- package/dist/styles/_tokens.scss +78 -0
- package/dist/styles/theme.css +633 -0
- package/dist/views/BillingView/client.js +204 -0
- package/dist/views/BillingView/index.js +29 -0
- package/dist/views/ChatView/client.js +252 -0
- package/dist/views/ChatView/index.js +29 -0
- package/dist/views/CrmView/client.js +232 -0
- package/dist/views/CrmView/index.js +29 -0
- package/dist/views/EmailTrackingView/client.js +154 -0
- package/dist/views/EmailTrackingView/index.js +29 -0
- package/dist/views/ImportConversationView/client.js +204 -0
- package/dist/views/ImportConversationView/index.js +29 -0
- package/dist/views/LogsView/client.js +148 -0
- package/dist/views/LogsView/index.js +27 -0
- package/dist/views/NewTicketView/client.js +224 -0
- package/dist/views/NewTicketView/index.js +27 -0
- package/dist/views/PendingEmailsView/client.js +172 -0
- package/dist/views/PendingEmailsView/index.js +29 -0
- package/dist/views/SupportDashboardView/client.js +296 -0
- package/dist/views/SupportDashboardView/index.js +29 -0
- package/dist/views/TicketDetailView/client.js +844 -0
- package/dist/views/TicketDetailView/index.js +29 -0
- package/dist/views/TicketInboxView/client.js +294 -0
- package/dist/views/TicketInboxView/index.js +27 -0
- package/dist/{views.css → views/TicketingSettingsView/TicketingSettings.module.scss} +138 -66
- package/dist/views/TicketingSettingsView/client.js +728 -0
- package/dist/views/TicketingSettingsView/index.js +29 -0
- package/dist/views/TimeDashboardView/client.js +164 -0
- package/dist/views/TimeDashboardView/index.js +29 -0
- package/dist/views/shared/AdminViewHeader.js +67 -0
- package/dist/views/shared/ErrorBoundary.js +50 -0
- package/dist/views/shared/Skeleton.js +72 -0
- package/dist/views/shared/adminTokens.js +32 -0
- package/dist/views/shared/config.js +41 -0
- package/dist/views/shared/index.js +6 -0
- package/package.json +8 -12
- package/src/collections/Tickets.ts +1 -1
- package/src/components/TicketConversation/index.tsx +21 -2
- package/src/plugin.ts +3 -2
- package/dist/views.cjs +0 -6172
- package/dist/views.d.cts +0 -30
- package/dist/views.d.ts +0 -30
- package/dist/views.js +0 -6153
- package/src/views.ts +0 -16
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
.page {
|
|
2
|
+
max-width: 760px;
|
|
3
|
+
margin: 0 auto;
|
|
4
|
+
padding: 0 24px 60px;
|
|
5
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', system-ui, sans-serif;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.header {
|
|
9
|
+
padding: 20px 0 8px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.backLink {
|
|
13
|
+
display: inline-flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
gap: 4px;
|
|
16
|
+
color: var(--theme-elevation-500);
|
|
17
|
+
text-decoration: none;
|
|
18
|
+
font-size: 13px;
|
|
19
|
+
font-weight: 500;
|
|
20
|
+
margin-bottom: 12px;
|
|
21
|
+
&:hover { color: var(--theme-text); }
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.title {
|
|
25
|
+
font-size: 22px;
|
|
26
|
+
font-weight: 800;
|
|
27
|
+
color: var(--theme-text);
|
|
28
|
+
margin: 0 0 4px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.subtitle {
|
|
32
|
+
font-size: 13px;
|
|
33
|
+
color: var(--theme-elevation-500);
|
|
34
|
+
margin: 0 0 24px;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.form {
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
gap: 20px;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.fieldGroup {
|
|
44
|
+
display: flex;
|
|
45
|
+
flex-direction: column;
|
|
46
|
+
gap: 6px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.label {
|
|
50
|
+
font-size: 13px;
|
|
51
|
+
font-weight: 600;
|
|
52
|
+
color: var(--theme-text);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.required { color: #ef4444; }
|
|
56
|
+
|
|
57
|
+
.input, .select, .textarea {
|
|
58
|
+
padding: 10px 14px;
|
|
59
|
+
border-radius: 10px;
|
|
60
|
+
border: 1px solid var(--theme-elevation-200);
|
|
61
|
+
background: var(--theme-elevation-0, #fff);
|
|
62
|
+
color: var(--theme-text);
|
|
63
|
+
font-size: 14px;
|
|
64
|
+
font-family: inherit;
|
|
65
|
+
transition: border-color 150ms, box-shadow 150ms;
|
|
66
|
+
|
|
67
|
+
&:focus {
|
|
68
|
+
outline: none;
|
|
69
|
+
border-color: #2563eb;
|
|
70
|
+
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&::placeholder { color: var(--theme-elevation-400); }
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
|
|
77
|
+
|
|
78
|
+
.row {
|
|
79
|
+
display: grid;
|
|
80
|
+
grid-template-columns: 1fr 1fr;
|
|
81
|
+
gap: 16px;
|
|
82
|
+
@media (max-width: 500px) { grid-template-columns: 1fr; }
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.row3 {
|
|
86
|
+
display: grid;
|
|
87
|
+
grid-template-columns: 1fr 1fr 1fr;
|
|
88
|
+
gap: 16px;
|
|
89
|
+
@media (max-width: 600px) { grid-template-columns: 1fr; }
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.searchWrap {
|
|
93
|
+
position: relative;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.searchResults {
|
|
97
|
+
position: absolute;
|
|
98
|
+
top: 100%;
|
|
99
|
+
left: 0;
|
|
100
|
+
right: 0;
|
|
101
|
+
z-index: 20;
|
|
102
|
+
margin-top: 4px;
|
|
103
|
+
max-height: 200px;
|
|
104
|
+
overflow-y: auto;
|
|
105
|
+
border-radius: 10px;
|
|
106
|
+
border: 1px solid var(--theme-elevation-200);
|
|
107
|
+
background: var(--theme-elevation-0, #fff);
|
|
108
|
+
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.searchItem {
|
|
112
|
+
padding: 10px 14px;
|
|
113
|
+
cursor: pointer;
|
|
114
|
+
font-size: 13px;
|
|
115
|
+
color: var(--theme-text);
|
|
116
|
+
border-bottom: 1px solid var(--theme-elevation-100);
|
|
117
|
+
&:hover { background: var(--theme-elevation-50); }
|
|
118
|
+
&:last-child { border-bottom: none; }
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.submitBtn {
|
|
122
|
+
padding: 12px 24px;
|
|
123
|
+
border-radius: 10px;
|
|
124
|
+
border: none;
|
|
125
|
+
background: #2563eb;
|
|
126
|
+
color: #fff;
|
|
127
|
+
font-size: 14px;
|
|
128
|
+
font-weight: 700;
|
|
129
|
+
cursor: pointer;
|
|
130
|
+
transition: background 100ms;
|
|
131
|
+
&:hover { background: #1d4ed8; }
|
|
132
|
+
&:disabled { opacity: 0.4; cursor: not-allowed; }
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.error {
|
|
136
|
+
padding: 12px 16px;
|
|
137
|
+
border-radius: 10px;
|
|
138
|
+
background: #fef2f2;
|
|
139
|
+
border: 1px solid #fecaca;
|
|
140
|
+
color: #991b1b;
|
|
141
|
+
font-size: 13px;
|
|
142
|
+
font-weight: 500;
|
|
143
|
+
}
|