@fayz-ai/plugin-conversations 0.27.0 → 0.28.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/{ConversationsPage-6WOZYAD4.js → ConversationsPage-2D343Q5P.js} +352 -170
- package/dist/ConversationsPage-2D343Q5P.js.map +1 -0
- package/dist/{chunk-VZLFELO6.js → chunk-NXYQFOT7.js} +2 -2
- package/dist/chunk-NXYQFOT7.js.map +1 -0
- package/dist/data/supabase.d.ts.map +1 -1
- package/dist/index.js +100 -9
- package/dist/index.js.map +1 -1
- package/dist/locales/en.d.ts.map +1 -1
- package/dist/locales/pt-BR.d.ts.map +1 -1
- package/dist/migrations/index.d.ts +2 -0
- package/dist/migrations/index.d.ts.map +1 -1
- package/dist/migrations/main.browser.js +3 -1
- package/dist/migrations/main.browser.js.map +1 -1
- package/dist/migrations/main.js +61 -2
- package/dist/migrations/main.js.map +1 -1
- package/dist/store.d.ts.map +1 -1
- package/dist/types.d.ts +3 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/views/ContactPanel.d.ts.map +1 -1
- package/dist/views/ConversationList.d.ts.map +1 -1
- package/dist/views/ConversationsPage.d.ts +2 -0
- package/dist/views/ConversationsPage.d.ts.map +1 -1
- package/dist/views/MessageThread.d.ts.map +1 -1
- package/dist/views/contact-profile.d.ts +58 -0
- package/dist/views/contact-profile.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/ConversationsPage-6WOZYAD4.js.map +0 -1
- package/dist/chunk-VZLFELO6.js.map +0 -1
- package/dist/views/LeadCard.d.ts +0 -6
- package/dist/views/LeadCard.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { isWaitingOnUs, assinarChegada, ConversationsContextProvider, MessagePreview, useConversationsStore } from './chunk-
|
|
2
|
-
export { isWaitingOnUs } from './chunk-
|
|
1
|
+
import { isWaitingOnUs, assinarChegada, ConversationsContextProvider, MessagePreview, useConversationsStore } from './chunk-NXYQFOT7.js';
|
|
2
|
+
export { isWaitingOnUs } from './chunk-NXYQFOT7.js';
|
|
3
3
|
import { T, listMessagingChannels, findDedicatedChannel, findFallbackChannel, isPendingChannelStatus, canClaimDedicated, CHANNEL_CLAIM_TIMELINE } from './chunk-W5VV6G35.js';
|
|
4
4
|
export { listMessagingChannels } from './chunk-W5VV6G35.js';
|
|
5
5
|
import { providersApi } from './chunk-HMWUU5O7.js';
|
|
@@ -653,6 +653,7 @@ function mapConversation(r) {
|
|
|
653
653
|
id: String(r.id),
|
|
654
654
|
contactName: r.contact_name ?? "",
|
|
655
655
|
contactPersonId: r.contact_person_id ?? void 0,
|
|
656
|
+
provider: r.provider ?? void 0,
|
|
656
657
|
contactHandle: r.contact_handle ?? "",
|
|
657
658
|
channel: r.channel ?? "sms",
|
|
658
659
|
lastMessagePreview: r.last_message_preview ?? "",
|
|
@@ -914,7 +915,7 @@ function createConversationsStore(provider) {
|
|
|
914
915
|
leadOwnerId: get().leadOwnerFilter,
|
|
915
916
|
search: get().search || void 0
|
|
916
917
|
});
|
|
917
|
-
const selectedId = get().selectedId ?? (opts?.autoSelect === false ? null : conversations[0]?.id ?? null);
|
|
918
|
+
const selectedId = get().selectedId ?? (opts?.autoSelect === false ? null : (conversations.find((c) => c.status !== "closed") ?? conversations[0])?.id ?? null);
|
|
918
919
|
set({ conversations, loading: false, selectedId });
|
|
919
920
|
if (selectedId) await get().select(selectedId);
|
|
920
921
|
},
|
|
@@ -1044,7 +1045,9 @@ function createConversationsStore(provider) {
|
|
|
1044
1045
|
if (!id) return;
|
|
1045
1046
|
const updated = await provider.setStatus(id, status);
|
|
1046
1047
|
set((s) => ({
|
|
1047
|
-
conversations: s.conversations.map((c) => c.id === id ? updated : c)
|
|
1048
|
+
conversations: s.conversations.map((c) => c.id === id ? updated : c),
|
|
1049
|
+
// An archived conversation leaves the inbox, so it stops being the open one.
|
|
1050
|
+
...status === "closed" ? { selectedId: null } : {}
|
|
1048
1051
|
}));
|
|
1049
1052
|
}
|
|
1050
1053
|
}));
|
|
@@ -1092,7 +1095,7 @@ var en = {
|
|
|
1092
1095
|
"conversations.thread.back": "Back to conversations",
|
|
1093
1096
|
"conversations.thread.snooze": "Snooze",
|
|
1094
1097
|
"conversations.thread.close": "Close",
|
|
1095
|
-
"conversations.thread.details": "
|
|
1098
|
+
"conversations.thread.details": "Open contact details",
|
|
1096
1099
|
"conversations.thread.empty": "No messages yet",
|
|
1097
1100
|
"conversations.thread.reply": "Reply via {{channel}}\u2026",
|
|
1098
1101
|
"conversations.thread.send": "Send",
|
|
@@ -1158,7 +1161,51 @@ var en = {
|
|
|
1158
1161
|
"conversations.settings.status.verifying": "Verifying",
|
|
1159
1162
|
"conversations.settings.status.failed": "Failed",
|
|
1160
1163
|
"conversations.settings.status.released": "Released",
|
|
1161
|
-
"conversations.settings.status.disconnected": "Disconnected"
|
|
1164
|
+
"conversations.settings.status.disconnected": "Disconnected",
|
|
1165
|
+
"conversations.thread.more": "More actions",
|
|
1166
|
+
"conversations.thread.archive": "Archive conversation",
|
|
1167
|
+
"conversations.profile.loading": "Loading the contact\u2026",
|
|
1168
|
+
"conversations.profile.notInCrm": "This contact is not in the CRM yet.",
|
|
1169
|
+
"conversations.profile.conversation": "Conversation",
|
|
1170
|
+
"conversations.profile.lead": "Lead",
|
|
1171
|
+
"conversations.profile.openLead": "Open lead",
|
|
1172
|
+
"conversations.profile.status": "Status",
|
|
1173
|
+
"conversations.profile.temperature": "Temperature",
|
|
1174
|
+
"conversations.profile.source": "Source",
|
|
1175
|
+
"conversations.profile.company": "Company",
|
|
1176
|
+
"conversations.profile.openCompany": "Open company",
|
|
1177
|
+
"conversations.profile.declared": "Declared on the form",
|
|
1178
|
+
"conversations.profile.tradeName": "Trade name",
|
|
1179
|
+
"conversations.profile.legalName": "Legal name",
|
|
1180
|
+
"conversations.profile.cnpj": "CNPJ",
|
|
1181
|
+
"conversations.profile.cpf": "CPF",
|
|
1182
|
+
"conversations.profile.size": "Size",
|
|
1183
|
+
"conversations.profile.since": "Open since",
|
|
1184
|
+
"conversations.profile.phone": "Phone",
|
|
1185
|
+
"conversations.profile.email": "Email",
|
|
1186
|
+
"conversations.profile.website": "Website",
|
|
1187
|
+
"conversations.profile.address": "Address",
|
|
1188
|
+
"conversations.profile.person": "Contact",
|
|
1189
|
+
"conversations.profile.city": "City",
|
|
1190
|
+
"conversations.profile.role": "Role",
|
|
1191
|
+
"conversations.profile.buyingRole": "Buying role",
|
|
1192
|
+
"conversations.profile.venueType": "Venue type",
|
|
1193
|
+
"conversations.profile.revenue": "Annual revenue",
|
|
1194
|
+
"conversations.profile.challenges": "Challenges",
|
|
1195
|
+
"conversations.profile.goals": "Goals",
|
|
1196
|
+
"conversations.profile.history": "History",
|
|
1197
|
+
"conversations.leadStatus.new": "New",
|
|
1198
|
+
"conversations.leadStatus.contacted": "Contacted",
|
|
1199
|
+
"conversations.leadStatus.qualified": "Qualified",
|
|
1200
|
+
"conversations.leadStatus.unqualified": "Unqualified",
|
|
1201
|
+
"conversations.leadStatus.converted": "Converted",
|
|
1202
|
+
"conversations.leadStatus.lost": "Lost",
|
|
1203
|
+
"conversations.temperature.hot": "Hot",
|
|
1204
|
+
"conversations.temperature.warm": "Warm",
|
|
1205
|
+
"conversations.temperature.cold": "Cold",
|
|
1206
|
+
"conversations.thread.unarchive": "Unarchive",
|
|
1207
|
+
"conversations.filter.archived": "Archived",
|
|
1208
|
+
"conversations.list.emptyArchived": "No archived conversations."
|
|
1162
1209
|
};
|
|
1163
1210
|
|
|
1164
1211
|
// src/locales/pt-BR.ts
|
|
@@ -1203,7 +1250,7 @@ var ptBR = {
|
|
|
1203
1250
|
"conversations.thread.back": "Voltar \xE0s conversas",
|
|
1204
1251
|
"conversations.thread.snooze": "Adiar",
|
|
1205
1252
|
"conversations.thread.close": "Encerrar",
|
|
1206
|
-
"conversations.thread.details": "
|
|
1253
|
+
"conversations.thread.details": "Abrir detalhes do contato",
|
|
1207
1254
|
"conversations.thread.empty": "Nenhuma mensagem ainda",
|
|
1208
1255
|
"conversations.thread.reply": "Responder via {{channel}}\u2026",
|
|
1209
1256
|
"conversations.thread.send": "Enviar",
|
|
@@ -1269,7 +1316,51 @@ var ptBR = {
|
|
|
1269
1316
|
"conversations.settings.status.verifying": "Verificando",
|
|
1270
1317
|
"conversations.settings.status.failed": "Falhou",
|
|
1271
1318
|
"conversations.settings.status.released": "Devolvido",
|
|
1272
|
-
"conversations.settings.status.disconnected": "Desconectado"
|
|
1319
|
+
"conversations.settings.status.disconnected": "Desconectado",
|
|
1320
|
+
"conversations.thread.more": "Mais a\xE7\xF5es",
|
|
1321
|
+
"conversations.thread.archive": "Arquivar conversa",
|
|
1322
|
+
"conversations.profile.loading": "Carregando o contato\u2026",
|
|
1323
|
+
"conversations.profile.notInCrm": "Este contato ainda n\xE3o est\xE1 no CRM.",
|
|
1324
|
+
"conversations.profile.conversation": "Conversa",
|
|
1325
|
+
"conversations.profile.lead": "Lead",
|
|
1326
|
+
"conversations.profile.openLead": "Abrir lead",
|
|
1327
|
+
"conversations.profile.status": "Situa\xE7\xE3o",
|
|
1328
|
+
"conversations.profile.temperature": "Temperatura",
|
|
1329
|
+
"conversations.profile.source": "Origem",
|
|
1330
|
+
"conversations.profile.company": "Empresa",
|
|
1331
|
+
"conversations.profile.openCompany": "Abrir empresa",
|
|
1332
|
+
"conversations.profile.declared": "Declarada no formul\xE1rio",
|
|
1333
|
+
"conversations.profile.tradeName": "Nome fantasia",
|
|
1334
|
+
"conversations.profile.legalName": "Raz\xE3o social",
|
|
1335
|
+
"conversations.profile.cnpj": "CNPJ",
|
|
1336
|
+
"conversations.profile.cpf": "CPF",
|
|
1337
|
+
"conversations.profile.size": "Porte",
|
|
1338
|
+
"conversations.profile.since": "Aberta em",
|
|
1339
|
+
"conversations.profile.phone": "Telefone",
|
|
1340
|
+
"conversations.profile.email": "E-mail",
|
|
1341
|
+
"conversations.profile.website": "Site",
|
|
1342
|
+
"conversations.profile.address": "Endere\xE7o",
|
|
1343
|
+
"conversations.profile.person": "Contato",
|
|
1344
|
+
"conversations.profile.city": "Cidade",
|
|
1345
|
+
"conversations.profile.role": "Cargo",
|
|
1346
|
+
"conversations.profile.buyingRole": "Papel na compra",
|
|
1347
|
+
"conversations.profile.venueType": "Tipo de estabelecimento",
|
|
1348
|
+
"conversations.profile.revenue": "Faturamento anual",
|
|
1349
|
+
"conversations.profile.challenges": "Maiores desafios",
|
|
1350
|
+
"conversations.profile.goals": "Objetivos",
|
|
1351
|
+
"conversations.profile.history": "Hist\xF3rico",
|
|
1352
|
+
"conversations.leadStatus.new": "Novo",
|
|
1353
|
+
"conversations.leadStatus.contacted": "Contatado",
|
|
1354
|
+
"conversations.leadStatus.qualified": "Qualificado",
|
|
1355
|
+
"conversations.leadStatus.unqualified": "Desqualificado",
|
|
1356
|
+
"conversations.leadStatus.converted": "Convertido",
|
|
1357
|
+
"conversations.leadStatus.lost": "Perdido",
|
|
1358
|
+
"conversations.temperature.hot": "Quente",
|
|
1359
|
+
"conversations.temperature.warm": "Morno",
|
|
1360
|
+
"conversations.temperature.cold": "Frio",
|
|
1361
|
+
"conversations.thread.unarchive": "Desarquivar",
|
|
1362
|
+
"conversations.filter.archived": "Arquivadas",
|
|
1363
|
+
"conversations.list.emptyArchived": "Nenhuma conversa arquivada."
|
|
1273
1364
|
};
|
|
1274
1365
|
|
|
1275
1366
|
// src/locales/index.ts
|
|
@@ -2285,7 +2376,7 @@ function createConversationsPlugin(options) {
|
|
|
2285
2376
|
locales: conversationsLocales
|
|
2286
2377
|
};
|
|
2287
2378
|
}
|
|
2288
|
-
var ConversationsPage = React__default.lazy(() => import('./ConversationsPage-
|
|
2379
|
+
var ConversationsPage = React__default.lazy(() => import('./ConversationsPage-2D343Q5P.js').then((m) => ({ default: m.ConversationsPage })));
|
|
2289
2380
|
var AtendeAIPage = React__default.lazy(() => import('./AtendeAIPage-PBBMWIDW.js').then((m) => ({ default: m.AtendeAIPage })));
|
|
2290
2381
|
var ConversationsSettingsTab = lazyComponent(() => import('./ConversationsSettings-GORCWUHD.js').then((m) => m.ConversationsSettingsTab));
|
|
2291
2382
|
var CampaignsSurface = React__default.lazy(() => import('./CampaignsSurface-75POQIRI.js').then((m) => ({ default: m.CampaignsSurface })));
|