@liftitapp/wa-conversations 0.4.0 → 0.5.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/element/index.js +485 -142
- package/dist/react/index.d.ts +16 -1
- package/dist/react/index.js +982 -267
- package/package.json +1 -1
package/dist/react/index.d.ts
CHANGED
|
@@ -674,10 +674,25 @@ interface ConversationThreadProps {
|
|
|
674
674
|
fetcher: WaFetcher;
|
|
675
675
|
/** El hilo a mostrar. Cambiarlo es una consulta nueva. */
|
|
676
676
|
phone: string;
|
|
677
|
+
/**
|
|
678
|
+
* El nombre para pintar en el header, si el host lo tiene (D-02).
|
|
679
|
+
*
|
|
680
|
+
* Es PURAMENTE presentacional y no viola DATA-05: lo prohibido son las props con las que se
|
|
681
|
+
* pueda construir una ruta (`orgId`, `phoneNumberId`, `apiUrl`, `baseUrl`, `token`); con un
|
|
682
|
+
* nombre no se arma ninguna URL ni entra en ningún descriptor. Viene de acá y no del hilo
|
|
683
|
+
* porque `LeadThreadResponse` NO trae `name`: ese campo vive sólo en `ConversationSummary`, o
|
|
684
|
+
* sea en la lista — y el contrato no se toca. Lo baja el shell, que ya recibe el summary entero
|
|
685
|
+
* en su `onSelect`.
|
|
686
|
+
*
|
|
687
|
+
* Sin él (el drawer por fila de DEV-4990 monta con `initialPhone` y no tiene summary) el header
|
|
688
|
+
* pinta el teléfono como línea principal: la misma regla de `ConversationRow`, jamás la cadena
|
|
689
|
+
* "null" ni un «(sin nombre)» inventado.
|
|
690
|
+
*/
|
|
691
|
+
displayName?: string | null;
|
|
677
692
|
/** Clase extra para la raíz, para que el host la ubique en SU layout. */
|
|
678
693
|
className?: string;
|
|
679
694
|
}
|
|
680
|
-
declare function ConversationThread({ fetcher, phone, className }: ConversationThreadProps): import("react").JSX.Element;
|
|
695
|
+
declare function ConversationThread({ fetcher, phone, displayName, className }: ConversationThreadProps): import("react").JSX.Element;
|
|
681
696
|
//#endregion
|
|
682
697
|
//#region src/core/thread/useThread.d.ts
|
|
683
698
|
/** En qué está el hilo. `empty` es distinto de `ready` con 0 burbujas: la vista dice cosas distintas. */
|