@sendbird/ai-agent-messenger-react 1.21.3 → 1.22.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.
@@ -1,6 +1,6 @@
1
- import { es as n } from "date-fns/locale/es";
2
- import { m as _ } from "../index.js";
3
- const i = {
1
+ import { es as i } from "date-fns/locale/es";
2
+ import { m as r } from "../index.js";
3
+ const t = {
4
4
  conversation: {
5
5
  input_placeholder: "Hacer una pregunta",
6
6
  input_placeholder_disabled: "El chat no está disponible en este canal",
@@ -20,13 +20,59 @@ const i = {
20
20
  a11y_message_list: "Mensajes del chat",
21
21
  a11y_scroll_to_bottom: "Desplazarse hacia abajo",
22
22
  a11y_scroll_to_new_messages: "Desplazarse a nuevos mensajes",
23
- a11y_open_conversation_list: "Abrir lista de conversaciones"
23
+ a11y_open_conversation_list: "Abrir lista de conversaciones",
24
+ a11y_open_conversation: "Abrir conversación",
25
+ a11y_open_conversations: "Abrir lista de conversaciones",
26
+ a11y_close_conversation: "Cerrar conversación",
27
+ a11y_close_conversations: "Cerrar lista de conversaciones",
28
+ a11y_menu: "Menú",
29
+ a11y_message_input: "Mensaje",
30
+ a11y_send_message: "Enviar mensaje",
31
+ a11y_attach_file: "Adjuntar archivo",
32
+ a11y_close_messenger: "Cerrar mensajero",
33
+ a11y_expand_messenger: "Expandir mensajero",
34
+ a11y_collapse_messenger: "Contraer mensajero",
35
+ a11y_connect_agent: "Conectarse con un agente",
36
+ a11y_message_sender_you: "Tú",
37
+ a11y_suggested_reply: "Respuesta sugerida",
38
+ a11y_typing_indicator: "Escribiendo",
39
+ a11y_code_block_placeholder: "Bloque de código",
40
+ a11y_typing_format: (e) => `${e} está escribiendo`,
41
+ a11y_message_failed: "Error al enviar el mensaje",
42
+ a11y_new_messages_received: (e) => `${e} ${e === 1 ? "mensaje nuevo recibido" : "mensajes nuevos recibidos"}`,
43
+ a11y_new_messages_received_from_sender: (e, a) => `${e}: ${a} ${a === 1 ? "mensaje nuevo recibido" : "mensajes nuevos recibidos"}`,
44
+ a11y_agent_connected: (e) => "Conectado con agente humano",
45
+ a11y_conversation_closed: "La conversación ha finalizado",
46
+ a11y_file_image: (e) => `Archivo de imagen: ${e}`,
47
+ a11y_file_video: (e) => `Archivo de video: ${e}`,
48
+ a11y_file_document: (e) => `Archivo de documento: ${e}`,
49
+ a11y_screen_conversation: "Conversación",
50
+ a11y_screen_conversation_with_agent: (e) => `Conversación con ${e}`,
51
+ a11y_screen_conversation_list_no_count: "Lista de conversaciones",
52
+ a11y_csat_displayed: "Encuesta de satisfacción mostrada",
53
+ a11y_empty_conversation: "No hay mensajes en esta conversación",
54
+ a11y_input_disabled: "La entrada de mensajes está deshabilitada",
55
+ a11y_file_size_exceeded: (e) => `El archivo excede el límite de ${e}MB`,
56
+ a11y_csat_form_error: "Por favor complete los campos obligatorios",
57
+ a11y_hint_send_message: "Envía el mensaje",
58
+ a11y_hint_open_conversation: "Abre la conversación",
59
+ a11y_hint_open_conversations: "Abre la lista de conversaciones",
60
+ a11y_hint_close_conversation: "Cierra la conversación",
61
+ a11y_hint_open_menu: "Abre el menú",
62
+ a11y_hint_connect_to_agent: "Conecta con un agente humano",
63
+ a11y_hint_attach_file: "Abre las opciones para adjuntar archivos",
64
+ a11y_hint_view_new_messages: "Se desplaza a los mensajes nuevos",
65
+ a11y_hint_open_file: "Abre el archivo",
66
+ a11y_hint_open_image: "Abre la imagen",
67
+ a11y_hint_send_reply: "Envía esta respuesta"
24
68
  },
25
69
  conversation_list: {
26
70
  header_title: "Conversaciones",
27
71
  ended: "Finalizado",
72
+ system_message: "Mensaje del sistema",
28
73
  footer_title: "Iniciar una conversación",
29
- multiple_files_count: (e) => `${e} ${e === 1 ? "archivo" : "archivos"}`
74
+ multiple_files_count: (e) => `${e} ${e === 1 ? "archivo" : "archivos"}`,
75
+ a11y_conversation_item: (e, a, s, n) => `${e}, ${a}, ${s}, ${n} mensaje${n === 1 ? "" : "s"} sin leer`
30
76
  },
31
77
  date_format: {
32
78
  just_now: "Ahora mismo",
@@ -45,7 +91,9 @@ const i = {
45
91
  reason_placeholder: "Comparte tu opinión",
46
92
  question: "¿Cómo calificarías tu experiencia?",
47
93
  submit_label: "Enviar",
48
- submission_expired: "Lo sentimos, el período de la encuesta ha terminado."
94
+ submission_expired: "Lo sentimos, el período de la encuesta ha terminado.",
95
+ a11y_rating_label: (e, a) => `${e} de 5 — ${a}`,
96
+ a11y_hint_select_rating: "Selecciona esta calificación"
49
97
  },
50
98
  form: {
51
99
  optional_label: "opcional",
@@ -75,12 +123,12 @@ const i = {
75
123
  confirm_cancel: "Cancelar",
76
124
  confirm_handoff: "Transferir"
77
125
  }
78
- }, a = {
126
+ }, o = {
79
127
  language: "es",
80
- strings: i,
81
- dateLocale: n
82
- }, o = _(a.strings), r = {
83
- ...o,
128
+ strings: t,
129
+ dateLocale: i
130
+ }, _ = r(o.strings), c = {
131
+ ..._,
84
132
  // Channel Header
85
133
  HEADER_BUTTON__AGENT_HANDOFF: "Conectarse con un agente",
86
134
  // Message Input
@@ -106,6 +154,12 @@ const i = {
106
154
  A11Y_IMAGE_VIEWER_NEXT: "Imagen siguiente",
107
155
  A11Y_IMAGE_VIEWER_DOWNLOAD: "Descargar imagen",
108
156
  A11Y_ATTACH_FILE: "Adjuntar archivo",
157
+ A11Y_FILE_SELECTED: (e) => `${e}, seleccionado`,
158
+ A11Y_FILE_REMOVE_BUTTON: (e) => `Eliminar archivo: ${e}`,
159
+ A11Y_CSAT_RATING_LABEL: (e, a) => `${e} de 5, ${a}`,
160
+ A11Y_FILE_UPLOAD_OPTIONS: "Opciones de carga de archivos",
161
+ A11Y_FAILED_MESSAGE_OPTIONS: "Opciones de mensaje fallido",
162
+ A11Y_FEEDBACK_OPTIONS: "Opciones de comentarios",
109
163
  // Form
110
164
  FORM_UNAVAILABLE: "El formulario ya no está disponible.",
111
165
  FORM_NOT_SUPPORTED: "Este formulario no es compatible con la versión actual.",
@@ -117,7 +171,7 @@ const i = {
117
171
  FORM_VALIDATION_MAX_SELECT: (e) => `Selecciona como máximo ${e} opciones`,
118
172
  FORM_VALIDATION_REGEX_FAILED: "Formato inválido",
119
173
  /** @deprecated Please use DATE_FORMAT__DATE_SHORT instead. **/
120
- DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE: o.DATE_FORMAT__DATE_SHORT,
174
+ DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE: _.DATE_FORMAT__DATE_SHORT,
121
175
  /** @deprecated Unused string **/
122
176
  DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE_CAPTION: "HH:mm",
123
177
  /** @deprecated Unused string **/
@@ -136,11 +190,11 @@ const i = {
136
190
  NO_NAME: "(Sin nombre)",
137
191
  /** @deprecated Unused string **/
138
192
  CHANNEL_FROZEN: "Canal congelado"
139
- }, l = {
140
- language: a.language,
141
- dateLocale: a.dateLocale,
142
- stringSet: r
193
+ }, m = {
194
+ language: o.language,
195
+ dateLocale: o.dateLocale,
196
+ stringSet: c
143
197
  };
144
198
  export {
145
- l as default
199
+ m as default
146
200
  };
@@ -1,6 +1,6 @@
1
- import { ja as a } from "date-fns/locale/ja";
2
- import { m as t } from "../index.js";
3
- const E = {
1
+ import { ja as s } from "date-fns/locale/ja";
2
+ import { m as i } from "../index.js";
3
+ const l = {
4
4
  conversation: {
5
5
  input_placeholder: "質問する",
6
6
  input_placeholder_disabled: "このチャンネルではチャットを利用できません",
@@ -20,13 +20,59 @@ const E = {
20
20
  a11y_message_list: "チャットメッセージ",
21
21
  a11y_scroll_to_bottom: "一番下にスクロール",
22
22
  a11y_scroll_to_new_messages: "新しいメッセージにスクロール",
23
- a11y_open_conversation_list: "会話リストを開く"
23
+ a11y_open_conversation_list: "会話リストを開く",
24
+ a11y_open_conversation: "会話を開く",
25
+ a11y_open_conversations: "会話一覧を開く",
26
+ a11y_close_conversation: "会話を閉じる",
27
+ a11y_close_conversations: "会話一覧を閉じる",
28
+ a11y_menu: "メニュー",
29
+ a11y_message_input: "メッセージ",
30
+ a11y_send_message: "メッセージを送信",
31
+ a11y_attach_file: "ファイルを添付",
32
+ a11y_close_messenger: "メッセンジャーを閉じる",
33
+ a11y_expand_messenger: "メッセンジャーを展開",
34
+ a11y_collapse_messenger: "メッセンジャーを折りたたむ",
35
+ a11y_connect_agent: "エージェントに接続",
36
+ a11y_message_sender_you: "自分",
37
+ a11y_suggested_reply: "おすすめの返信",
38
+ a11y_typing_indicator: "入力中",
39
+ a11y_code_block_placeholder: "コードブロック",
40
+ a11y_typing_format: (_) => `${_}が入力中です`,
41
+ a11y_message_failed: "メッセージの送信に失敗しました",
42
+ a11y_new_messages_received: (_) => `新着メッセージ${_}件`,
43
+ a11y_new_messages_received_from_sender: (_, e) => `${_}から新着メッセージ${e}件`,
44
+ a11y_agent_connected: (_) => "人間のエージェントに接続しました",
45
+ a11y_conversation_closed: "会話が終了しました",
46
+ a11y_file_image: (_) => `画像ファイル: ${_}`,
47
+ a11y_file_video: (_) => `動画ファイル: ${_}`,
48
+ a11y_file_document: (_) => `文書ファイル: ${_}`,
49
+ a11y_screen_conversation: "会話",
50
+ a11y_screen_conversation_with_agent: (_) => `${_}との会話`,
51
+ a11y_screen_conversation_list_no_count: "会話リスト",
52
+ a11y_csat_displayed: "満足度アンケートが表示されました",
53
+ a11y_empty_conversation: "この会話にはメッセージがありません",
54
+ a11y_input_disabled: "メッセージ入力が無効です",
55
+ a11y_file_size_exceeded: (_) => `ファイルサイズが${_}MBの上限を超えています`,
56
+ a11y_csat_form_error: "必須項目を入力してください",
57
+ a11y_hint_send_message: "メッセージを送信します",
58
+ a11y_hint_open_conversation: "会話を開きます",
59
+ a11y_hint_open_conversations: "会話一覧を開きます",
60
+ a11y_hint_close_conversation: "会話を閉じます",
61
+ a11y_hint_open_menu: "メニューを開きます",
62
+ a11y_hint_connect_to_agent: "人間のエージェントに接続します",
63
+ a11y_hint_attach_file: "ファイル添付オプションを開きます",
64
+ a11y_hint_view_new_messages: "新しいメッセージまでスクロールします",
65
+ a11y_hint_open_file: "ファイルを開きます",
66
+ a11y_hint_open_image: "画像を開きます",
67
+ a11y_hint_send_reply: "この返信を送信します"
24
68
  },
25
69
  conversation_list: {
26
70
  header_title: "会話",
27
71
  ended: "終了",
72
+ system_message: "システムメッセージ",
28
73
  footer_title: "会話を始める",
29
- multiple_files_count: (_) => `${_}個のファイル`
74
+ multiple_files_count: (_) => `${_}個のファイル`,
75
+ a11y_conversation_item: (_, e, o, t) => `${_}, ${e}, ${o}, 未読メッセージ${t}件`
30
76
  },
31
77
  date_format: {
32
78
  just_now: "たった今",
@@ -45,7 +91,9 @@ const E = {
45
91
  reason_placeholder: "フィードバックを共有する",
46
92
  question: "あなたの経験をどう評価しますか?",
47
93
  submit_label: "送信",
48
- submission_expired: "申し訳ありません、アンケートの受付期間は終了しました。"
94
+ submission_expired: "申し訳ありません、アンケートの受付期間は終了しました。",
95
+ a11y_rating_label: (_, e) => `5点中${_}点 — ${e}`,
96
+ a11y_hint_select_rating: "この評価を選択します"
49
97
  },
50
98
  form: {
51
99
  optional_label: "任意",
@@ -75,12 +123,12 @@ const E = {
75
123
  confirm_cancel: "キャンセル",
76
124
  confirm_handoff: "引き継ぎ"
77
125
  }
78
- }, e = {
126
+ }, a = {
79
127
  language: "ja",
80
- strings: E,
81
- dateLocale: a
82
- }, o = t(e.strings), T = {
83
- ...o,
128
+ strings: l,
129
+ dateLocale: s
130
+ }, n = i(a.strings), r = {
131
+ ...n,
84
132
  // Channel Header
85
133
  HEADER_BUTTON__AGENT_HANDOFF: "エージェントに接続",
86
134
  // Message Input
@@ -106,6 +154,12 @@ const E = {
106
154
  A11Y_IMAGE_VIEWER_NEXT: "次の画像",
107
155
  A11Y_IMAGE_VIEWER_DOWNLOAD: "画像をダウンロード",
108
156
  A11Y_ATTACH_FILE: "ファイルを添付",
157
+ A11Y_FILE_SELECTED: (_) => `${_}、選択済み`,
158
+ A11Y_FILE_REMOVE_BUTTON: (_) => `ファイルを削除: ${_}`,
159
+ A11Y_CSAT_RATING_LABEL: (_, e) => `5段階中${_}、${e}`,
160
+ A11Y_FILE_UPLOAD_OPTIONS: "ファイルアップロードオプション",
161
+ A11Y_FAILED_MESSAGE_OPTIONS: "送信失敗メッセージのオプション",
162
+ A11Y_FEEDBACK_OPTIONS: "フィードバックオプション",
109
163
  // Form
110
164
  FORM_UNAVAILABLE: "このフォームはもう利用できません。",
111
165
  FORM_NOT_SUPPORTED: "このフォームは現在のバージョンではサポートされていません。",
@@ -117,7 +171,7 @@ const E = {
117
171
  FORM_VALIDATION_MAX_SELECT: (_) => `最大${_}個のオプションを選択してください`,
118
172
  FORM_VALIDATION_REGEX_FAILED: "無効な形式",
119
173
  /** @deprecated Please use DATE_FORMAT__DATE_SHORT instead. **/
120
- DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE: o.DATE_FORMAT__DATE_SHORT,
174
+ DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE: n.DATE_FORMAT__DATE_SHORT,
121
175
  /** @deprecated Unused string **/
122
176
  DATE_FORMAT__CONVERSATION_LIST__LIST_ITEM_TITLE_CAPTION: "HH:mm",
123
177
  /** @deprecated Unused string **/
@@ -136,11 +190,11 @@ const E = {
136
190
  NO_NAME: "(名前なし)",
137
191
  /** @deprecated Unused string **/
138
192
  CHANNEL_FROZEN: "チャンネルが凍結されました"
139
- }, l = {
140
- language: e.language,
141
- dateLocale: e.dateLocale,
142
- stringSet: T
193
+ }, T = {
194
+ language: a.language,
195
+ dateLocale: a.dateLocale,
196
+ stringSet: r
143
197
  };
144
198
  export {
145
- l as default
199
+ T as default
146
200
  };