@fayz-ai/plugin-conversations 0.24.9 → 0.26.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.
@@ -0,0 +1,54 @@
1
+ import * as React from 'react';
2
+ import type { Message } from '../types';
3
+ /** WhatsApp's inline formatting: *bold*, _italic_, ~strike~, `code`, and
4
+ * ```monospace``` — plus links that open. */
5
+ export declare function RichText({ text, outbound }: {
6
+ text: string;
7
+ outbound: boolean;
8
+ }): React.JSX.Element;
9
+ /** "Encaminhada" above the text, as WhatsApp prints it. */
10
+ export declare function ForwardedLabel({ m }: {
11
+ m: Message;
12
+ }): React.JSX.Element | null;
13
+ /** The message this one answers. Click jumps to it when it is in the thread. */
14
+ export declare function QuotedBlock({ m, outbound, onJump }: {
15
+ m: Message;
16
+ outbound: boolean;
17
+ onJump?: (providerId: string) => void;
18
+ }): React.JSX.Element | null;
19
+ /** The card a link gets on the sender's phone: thumbnail, title, description. */
20
+ export declare function LinkPreview({ m, outbound }: {
21
+ m: Message;
22
+ outbound: boolean;
23
+ }): React.JSX.Element | null;
24
+ /** A template's or interactive card's buttons, under the bubble's text,
25
+ * separated by a rule — each one does what it says. */
26
+ export declare function ButtonRows({ m, outbound }: {
27
+ m: Message;
28
+ outbound: boolean;
29
+ }): React.JSX.Element | null;
30
+ /** A poll: the question and its options, as read-only rows. */
31
+ export declare function PollCard({ m, outbound }: {
32
+ m: Message;
33
+ outbound: boolean;
34
+ }): React.JSX.Element;
35
+ /** A shared location: the place and a link that opens it on a map. */
36
+ export declare function LocationCard({ m, outbound }: {
37
+ m: Message;
38
+ outbound: boolean;
39
+ }): React.JSX.Element;
40
+ /** "Esta mensagem foi apagada" in place of the content. */
41
+ export declare function DeletedBody(): React.JSX.Element;
42
+ /** The reaction chips WhatsApp hangs off the bubble's lower edge. */
43
+ export declare function Reactions({ m, outbound }: {
44
+ m: Message;
45
+ outbound: boolean;
46
+ }): React.JSX.Element | null;
47
+ /** "editada", next to the time. */
48
+ export declare function EditedMark({ m }: {
49
+ m: Message;
50
+ }): React.JSX.Element | null;
51
+ /** Rows that are not bubbles of their own: a reaction, an edit, a delete
52
+ * (stored by rows older than the backend that folds them into the target). */
53
+ export declare function isFoldedRow(m: Message): boolean;
54
+ //# sourceMappingURL=WhatsAppParts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WhatsAppParts.d.ts","sourceRoot":"","sources":["../../src/components/WhatsAppParts.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAI9B,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,UAAU,CAAA;AAcvC;8CAC8C;AAC9C,wBAAgB,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,qBAmB/E;AAmBD,2DAA2D;AAC3D,wBAAgB,cAAc,CAAC,EAAE,CAAC,EAAE,EAAE;IAAE,CAAC,EAAE,OAAO,CAAA;CAAE,4BAUnD;AAED,gFAAgF;AAChF,wBAAgB,WAAW,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE;IAAE,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAC;IAAC,MAAM,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE,4BAiB5H;AAED,iFAAiF;AACjF,wBAAgB,WAAW,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,4BAa7E;AAED;wDACwD;AACxD,wBAAgB,UAAU,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,4BAqB5E;AAED,+DAA+D;AAC/D,wBAAgB,QAAQ,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,qBAc1E;AAED,sEAAsE;AACtE,wBAAgB,YAAY,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,qBAiB9E;AAED,2DAA2D;AAC3D,wBAAgB,WAAW,sBAO1B;AAED,qEAAqE;AACrE,wBAAgB,SAAS,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,CAAC,EAAE,OAAO,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,4BAY3E;AAED,mCAAmC;AACnC,wBAAgB,UAAU,CAAC,EAAE,CAAC,EAAE,EAAE;IAAE,CAAC,EAAE,OAAO,CAAA;CAAE,4BAI/C;AAED;+EAC+E;AAC/E,wBAAgB,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,OAAO,CAE/C"}
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { providersApi, isWaitingOnUs, assinarChegada, ConversationsContextProvider, useConversationsStore } from './chunk-3IQOSA3Y.js';
2
- export { isWaitingOnUs, providersApi } from './chunk-3IQOSA3Y.js';
1
+ import { providersApi, isWaitingOnUs, assinarChegada, ConversationsContextProvider, MessagePreview, useConversationsStore } from './chunk-6EZLUC62.js';
2
+ export { isWaitingOnUs, providersApi } from './chunk-6EZLUC62.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 * as React from 'react';
@@ -1049,6 +1049,20 @@ function createConversationsStore(provider) {
1049
1049
 
1050
1050
  // src/locales/en.ts
1051
1051
  var en = {
1052
+ "conversations.bubble.forwarded": "Forwarded",
1053
+ "conversations.bubble.forwardedMany": "Forwarded many times",
1054
+ "conversations.bubble.poll": "Poll",
1055
+ "conversations.bubble.openMap": "Open in maps",
1056
+ "conversations.bubble.deleted": "This message was deleted",
1057
+ "conversations.bubble.edited": "edited",
1058
+ "conversations.preview.audio": "Voice message",
1059
+ "conversations.preview.image": "Photo",
1060
+ "conversations.preview.video": "Video",
1061
+ "conversations.preview.document": "Document",
1062
+ "conversations.preview.sticker": "Sticker",
1063
+ "conversations.preview.location": "Location",
1064
+ "conversations.preview.contact": "Contact",
1065
+ "conversations.preview.unsupported": "Unsupported message",
1052
1066
  "conversations.markRead": "Mark as read",
1053
1067
  "conversations.title": "Conversations",
1054
1068
  "conversations.subtitle": "Unified inbox across every channel",
@@ -1146,6 +1160,20 @@ var en = {
1146
1160
 
1147
1161
  // src/locales/pt-BR.ts
1148
1162
  var ptBR = {
1163
+ "conversations.bubble.forwarded": "Encaminhada",
1164
+ "conversations.bubble.forwardedMany": "Encaminhada com frequ\xEAncia",
1165
+ "conversations.bubble.poll": "Enquete",
1166
+ "conversations.bubble.openMap": "Abrir no mapa",
1167
+ "conversations.bubble.deleted": "Esta mensagem foi apagada",
1168
+ "conversations.bubble.edited": "editada",
1169
+ "conversations.preview.audio": "Mensagem de voz",
1170
+ "conversations.preview.image": "Foto",
1171
+ "conversations.preview.video": "V\xEDdeo",
1172
+ "conversations.preview.document": "Documento",
1173
+ "conversations.preview.sticker": "Figurinha",
1174
+ "conversations.preview.location": "Localiza\xE7\xE3o",
1175
+ "conversations.preview.contact": "Contato",
1176
+ "conversations.preview.unsupported": "Mensagem n\xE3o suportada",
1149
1177
  "conversations.markRead": "Marcar como lida",
1150
1178
  "conversations.title": "Conversas",
1151
1179
  "conversations.subtitle": "Caixa de entrada unificada de todos os canais",
@@ -1317,7 +1345,7 @@ function WaitingTable() {
1317
1345
  // The message, not just the name: half of triage is deciding which of
1318
1346
  // five waiting people is the one worth answering first, and that is
1319
1347
  // decided by what they said.
1320
- cell: ({ row }) => /* @__PURE__ */ jsx("span", { className: "line-clamp-1 text-xs text-muted-foreground", children: row.original.lastMessagePreview })
1348
+ cell: ({ row }) => /* @__PURE__ */ jsx("span", { className: "line-clamp-1 text-xs text-muted-foreground", children: /* @__PURE__ */ jsx(MessagePreview, { text: row.original.lastMessagePreview }) })
1321
1349
  },
1322
1350
  {
1323
1351
  id: "channel",
@@ -2254,7 +2282,7 @@ function createConversationsPlugin(options) {
2254
2282
  locales: conversationsLocales
2255
2283
  };
2256
2284
  }
2257
- var ConversationsPage = React__default.lazy(() => import('./ConversationsPage-I47C36I5.js').then((m) => ({ default: m.ConversationsPage })));
2285
+ var ConversationsPage = React__default.lazy(() => import('./ConversationsPage-7W7LDH2H.js').then((m) => ({ default: m.ConversationsPage })));
2258
2286
  var AtendeAIPage = React__default.lazy(() => import('./AtendeAIPage-PBBMWIDW.js').then((m) => ({ default: m.AtendeAIPage })));
2259
2287
  var ConversationsSettingsTab = lazyComponent(() => import('./ConversationsSettings-GORCWUHD.js').then((m) => m.ConversationsSettingsTab));
2260
2288