@nanahoshi/mona-ui 0.44.0 → 0.45.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.
Files changed (59) hide show
  1. package/chat/package.json +4 -0
  2. package/docs/api/chat.json +1 -0
  3. package/docs/api/chat.md +212 -0
  4. package/docs/api/i18n.json +1 -1
  5. package/docs/api/i18n.md +34 -0
  6. package/docs/api/index.json +1 -1
  7. package/docs/api/locales.json +1 -1
  8. package/docs/api/locales.md +14 -14
  9. package/docs/chat.md +480 -0
  10. package/docs/manifest.json +1 -1
  11. package/fesm2022/nanahoshi-mona-ui-chat.mjs +1230 -0
  12. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +37 -0
  13. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +19 -0
  14. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +19 -0
  15. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +19 -0
  16. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +19 -0
  17. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +19 -0
  18. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +19 -0
  19. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +19 -0
  20. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +19 -0
  21. package/fesm2022/nanahoshi-mona-ui-locales-pl-pl.mjs +29 -0
  22. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +19 -0
  23. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +29 -0
  24. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +19 -0
  25. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +19 -0
  26. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +19 -0
  27. package/i18n/catalogs/en-US.messages.json +19 -0
  28. package/llms.txt +6 -1
  29. package/locales/ar-sa/ar-sa.messages.json +19 -0
  30. package/locales/de-de/de-de.messages.json +19 -0
  31. package/locales/es-es/es-es.messages.json +19 -0
  32. package/locales/fr-fr/fr-fr.messages.json +19 -0
  33. package/locales/id-id/id-id.messages.json +19 -0
  34. package/locales/it-it/it-it.messages.json +19 -0
  35. package/locales/ja-jp/ja-jp.messages.json +19 -0
  36. package/locales/ko-kr/ko-kr.messages.json +19 -0
  37. package/locales/pl-pl/pl-pl.messages.json +19 -0
  38. package/locales/pt-br/pt-br.messages.json +19 -0
  39. package/locales/ru-ru/ru-ru.messages.json +19 -0
  40. package/locales/tr-tr/tr-tr.messages.json +19 -0
  41. package/locales/zh-cn/zh-cn.messages.json +19 -0
  42. package/locales/zh-tw/zh-tw.messages.json +19 -0
  43. package/package.json +5 -1
  44. package/types/nanahoshi-mona-ui-chat.d.ts +424 -0
  45. package/types/nanahoshi-mona-ui-i18n.d.ts +43 -0
  46. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +19 -0
  47. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +19 -0
  48. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +19 -0
  49. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +19 -0
  50. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +19 -0
  51. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +19 -0
  52. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +19 -0
  53. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +19 -0
  54. package/types/nanahoshi-mona-ui-locales-pl-pl.d.ts +19 -0
  55. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +19 -0
  56. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +19 -0
  57. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +19 -0
  58. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +19 -0
  59. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +19 -0
@@ -220,6 +220,48 @@ export interface MonaChartMessages {
220
220
  /** Announced when the keyboard zooms the viewport out. */
221
221
  readonly zoomedOut: string;
222
222
  }
223
+ export interface MonaChatMessages {
224
+ /** Names the button that opens the file picker to attach files to a message. */
225
+ readonly attachFiles: string;
226
+ /** Names the message box. */
227
+ readonly messageBox: string;
228
+ /** Names the list of messages, when the chat has no name of its own. */
229
+ readonly messages: string;
230
+ /**
231
+ * Announces a message from someone else as it arrives, or once it has finished streaming: who sent it and what it
232
+ * says ("Ana: See you at six").
233
+ */
234
+ newMessage(name: string, text: string): string;
235
+ /** Labels the button that scrolls to messages that arrived while the user was reading earlier ones. */
236
+ readonly newMessages: string;
237
+ /** Shown in a chat with no messages. */
238
+ readonly noMessages: string;
239
+ /** Shown under a message of the user's that couldn't be sent. */
240
+ readonly notSent: string;
241
+ /** The message box's placeholder. */
242
+ readonly placeholder: string;
243
+ /** Names the button that removes a file waiting to be sent ("Remove photo.jpg"). */
244
+ removeFile(name: string): string;
245
+ /** Labels the button that sends a message that couldn't be sent again. */
246
+ readonly retry: string;
247
+ /** Names the button that sends the message. */
248
+ readonly send: string;
249
+ /** Shown under a message of the user's that's being sent. */
250
+ readonly sending: string;
251
+ /** Names the button that stops a reply that's streaming in. */
252
+ readonly stop: string;
253
+ /** Names the group of suggested replies. */
254
+ readonly suggestions: string;
255
+ /**
256
+ * Says who's typing, their names joined in the locale's way ("Ana is typing", "Ana and Ben are typing"), for up to
257
+ * three people.
258
+ */
259
+ typing(names: string, count: number): string;
260
+ /** Says how many people are typing, for more than three ("4 people are typing"). */
261
+ typingMany(count: number): string;
262
+ /** Names the user's own messages to assistive technology, where others' messages have their author's name. */
263
+ readonly you: string;
264
+ }
223
265
  export interface MonaChipMessages {
224
266
  removeLabel(label?: string): string;
225
267
  }
@@ -1021,6 +1063,7 @@ export interface MonaLocaleMessages {
1021
1063
  calendar: MonaCalendarMessages;
1022
1064
  card: MonaCardMessages;
1023
1065
  chart: MonaChartMessages;
1066
+ chat: MonaChatMessages;
1024
1067
  chip: MonaChipMessages;
1025
1068
  colorGradient: MonaColorGradientMessages;
1026
1069
  colorPalette: MonaColorPaletteMessages;
@@ -123,6 +123,25 @@ export declare const MONA_AR_SA_LOCALE: {
123
123
  zoomedIn: string;
124
124
  zoomedOut: string;
125
125
  };
126
+ chat: {
127
+ attachFiles: string;
128
+ messageBox: string;
129
+ messages: string;
130
+ newMessage: (name: string, text: string) => string;
131
+ newMessages: string;
132
+ noMessages: string;
133
+ notSent: string;
134
+ placeholder: string;
135
+ removeFile: (name: string) => string;
136
+ retry: string;
137
+ send: string;
138
+ sending: string;
139
+ stop: string;
140
+ suggestions: string;
141
+ typing: (names: string, _count: number) => string;
142
+ typingMany: (count: number) => string;
143
+ you: string;
144
+ };
126
145
  chip: {
127
146
  removeLabel: (label?: string) => string;
128
147
  };
@@ -123,6 +123,25 @@ export declare const MONA_DE_DE_LOCALE: {
123
123
  zoomedIn: string;
124
124
  zoomedOut: string;
125
125
  };
126
+ chat: {
127
+ attachFiles: string;
128
+ messageBox: string;
129
+ messages: string;
130
+ newMessage: (name: string, text: string) => string;
131
+ newMessages: string;
132
+ noMessages: string;
133
+ notSent: string;
134
+ placeholder: string;
135
+ removeFile: (name: string) => string;
136
+ retry: string;
137
+ send: string;
138
+ sending: string;
139
+ stop: string;
140
+ suggestions: string;
141
+ typing: (names: string, count: number) => string;
142
+ typingMany: (count: number) => string;
143
+ you: string;
144
+ };
126
145
  chip: {
127
146
  removeLabel: (label?: string) => string;
128
147
  };
@@ -123,6 +123,25 @@ export declare const MONA_ES_ES_LOCALE: {
123
123
  zoomedIn: string;
124
124
  zoomedOut: string;
125
125
  };
126
+ chat: {
127
+ attachFiles: string;
128
+ messageBox: string;
129
+ messages: string;
130
+ newMessage: (name: string, text: string) => string;
131
+ newMessages: string;
132
+ noMessages: string;
133
+ notSent: string;
134
+ placeholder: string;
135
+ removeFile: (name: string) => string;
136
+ retry: string;
137
+ send: string;
138
+ sending: string;
139
+ stop: string;
140
+ suggestions: string;
141
+ typing: (names: string, count: number) => string;
142
+ typingMany: (count: number) => string;
143
+ you: string;
144
+ };
126
145
  chip: {
127
146
  removeLabel: (label?: string) => string;
128
147
  };
@@ -123,6 +123,25 @@ export declare const MONA_FR_FR_LOCALE: {
123
123
  zoomedIn: string;
124
124
  zoomedOut: string;
125
125
  };
126
+ chat: {
127
+ attachFiles: string;
128
+ messageBox: string;
129
+ messages: string;
130
+ newMessage: (name: string, text: string) => string;
131
+ newMessages: string;
132
+ noMessages: string;
133
+ notSent: string;
134
+ placeholder: string;
135
+ removeFile: (name: string) => string;
136
+ retry: string;
137
+ send: string;
138
+ sending: string;
139
+ stop: string;
140
+ suggestions: string;
141
+ typing: (names: string, count: number) => string;
142
+ typingMany: (count: number) => string;
143
+ you: string;
144
+ };
126
145
  chip: {
127
146
  removeLabel: (label?: string) => string;
128
147
  };
@@ -123,6 +123,25 @@ export declare const MONA_ID_ID_LOCALE: {
123
123
  zoomedIn: string;
124
124
  zoomedOut: string;
125
125
  };
126
+ chat: {
127
+ attachFiles: string;
128
+ messageBox: string;
129
+ messages: string;
130
+ newMessage: (name: string, text: string) => string;
131
+ newMessages: string;
132
+ noMessages: string;
133
+ notSent: string;
134
+ placeholder: string;
135
+ removeFile: (name: string) => string;
136
+ retry: string;
137
+ send: string;
138
+ sending: string;
139
+ stop: string;
140
+ suggestions: string;
141
+ typing: (names: string, _count: number) => string;
142
+ typingMany: (count: number) => string;
143
+ you: string;
144
+ };
126
145
  chip: {
127
146
  removeLabel: (label?: string) => string;
128
147
  };
@@ -123,6 +123,25 @@ export declare const MONA_IT_IT_LOCALE: {
123
123
  zoomedIn: string;
124
124
  zoomedOut: string;
125
125
  };
126
+ chat: {
127
+ attachFiles: string;
128
+ messageBox: string;
129
+ messages: string;
130
+ newMessage: (name: string, text: string) => string;
131
+ newMessages: string;
132
+ noMessages: string;
133
+ notSent: string;
134
+ placeholder: string;
135
+ removeFile: (name: string) => string;
136
+ retry: string;
137
+ send: string;
138
+ sending: string;
139
+ stop: string;
140
+ suggestions: string;
141
+ typing: (names: string, count: number) => string;
142
+ typingMany: (count: number) => string;
143
+ you: string;
144
+ };
126
145
  chip: {
127
146
  removeLabel: (label?: string) => string;
128
147
  };
@@ -123,6 +123,25 @@ export declare const MONA_JA_JP_LOCALE: {
123
123
  zoomedIn: string;
124
124
  zoomedOut: string;
125
125
  };
126
+ chat: {
127
+ attachFiles: string;
128
+ messageBox: string;
129
+ messages: string;
130
+ newMessage: (name: string, text: string) => string;
131
+ newMessages: string;
132
+ noMessages: string;
133
+ notSent: string;
134
+ placeholder: string;
135
+ removeFile: (name: string) => string;
136
+ retry: string;
137
+ send: string;
138
+ sending: string;
139
+ stop: string;
140
+ suggestions: string;
141
+ typing: (names: string, _count: number) => string;
142
+ typingMany: (count: number) => string;
143
+ you: string;
144
+ };
126
145
  chip: {
127
146
  removeLabel: (label?: string) => string;
128
147
  };
@@ -123,6 +123,25 @@ export declare const MONA_KO_KR_LOCALE: {
123
123
  zoomedIn: string;
124
124
  zoomedOut: string;
125
125
  };
126
+ chat: {
127
+ attachFiles: string;
128
+ messageBox: string;
129
+ messages: string;
130
+ newMessage: (name: string, text: string) => string;
131
+ newMessages: string;
132
+ noMessages: string;
133
+ notSent: string;
134
+ placeholder: string;
135
+ removeFile: (name: string) => string;
136
+ retry: string;
137
+ send: string;
138
+ sending: string;
139
+ stop: string;
140
+ suggestions: string;
141
+ typing: (names: string, _count: number) => string;
142
+ typingMany: (count: number) => string;
143
+ you: string;
144
+ };
126
145
  chip: {
127
146
  removeLabel: (label?: string) => string;
128
147
  };
@@ -123,6 +123,25 @@ export declare const MONA_PL_PL_LOCALE: {
123
123
  zoomedIn: string;
124
124
  zoomedOut: string;
125
125
  };
126
+ chat: {
127
+ attachFiles: string;
128
+ messageBox: string;
129
+ messages: string;
130
+ newMessage: (name: string, text: string) => string;
131
+ newMessages: string;
132
+ noMessages: string;
133
+ notSent: string;
134
+ placeholder: string;
135
+ removeFile: (name: string) => string;
136
+ retry: string;
137
+ send: string;
138
+ sending: string;
139
+ stop: string;
140
+ suggestions: string;
141
+ typing: (names: string, count: number) => string;
142
+ typingMany: (count: number) => string;
143
+ you: string;
144
+ };
126
145
  chip: {
127
146
  removeLabel: (label?: string) => string;
128
147
  };
@@ -123,6 +123,25 @@ export declare const MONA_PT_BR_LOCALE: {
123
123
  zoomedIn: string;
124
124
  zoomedOut: string;
125
125
  };
126
+ chat: {
127
+ attachFiles: string;
128
+ messageBox: string;
129
+ messages: string;
130
+ newMessage: (name: string, text: string) => string;
131
+ newMessages: string;
132
+ noMessages: string;
133
+ notSent: string;
134
+ placeholder: string;
135
+ removeFile: (name: string) => string;
136
+ retry: string;
137
+ send: string;
138
+ sending: string;
139
+ stop: string;
140
+ suggestions: string;
141
+ typing: (names: string, count: number) => string;
142
+ typingMany: (count: number) => string;
143
+ you: string;
144
+ };
126
145
  chip: {
127
146
  removeLabel: (label?: string) => string;
128
147
  };
@@ -123,6 +123,25 @@ export declare const MONA_RU_RU_LOCALE: {
123
123
  zoomedIn: string;
124
124
  zoomedOut: string;
125
125
  };
126
+ chat: {
127
+ attachFiles: string;
128
+ messageBox: string;
129
+ messages: string;
130
+ newMessage: (name: string, text: string) => string;
131
+ newMessages: string;
132
+ noMessages: string;
133
+ notSent: string;
134
+ placeholder: string;
135
+ removeFile: (name: string) => string;
136
+ retry: string;
137
+ send: string;
138
+ sending: string;
139
+ stop: string;
140
+ suggestions: string;
141
+ typing: (names: string, count: number) => string;
142
+ typingMany: (count: number) => string;
143
+ you: string;
144
+ };
126
145
  chip: {
127
146
  removeLabel: (label?: string) => string;
128
147
  };
@@ -123,6 +123,25 @@ export declare const MONA_TR_TR_LOCALE: {
123
123
  zoomedIn: string;
124
124
  zoomedOut: string;
125
125
  };
126
+ chat: {
127
+ attachFiles: string;
128
+ messageBox: string;
129
+ messages: string;
130
+ newMessage: (name: string, text: string) => string;
131
+ newMessages: string;
132
+ noMessages: string;
133
+ notSent: string;
134
+ placeholder: string;
135
+ removeFile: (name: string) => string;
136
+ retry: string;
137
+ send: string;
138
+ sending: string;
139
+ stop: string;
140
+ suggestions: string;
141
+ typing: (names: string, _count: number) => string;
142
+ typingMany: (count: number) => string;
143
+ you: string;
144
+ };
126
145
  chip: {
127
146
  removeLabel: (label?: string) => string;
128
147
  };
@@ -123,6 +123,25 @@ export declare const MONA_ZH_CN_LOCALE: {
123
123
  zoomedIn: string;
124
124
  zoomedOut: string;
125
125
  };
126
+ chat: {
127
+ attachFiles: string;
128
+ messageBox: string;
129
+ messages: string;
130
+ newMessage: (name: string, text: string) => string;
131
+ newMessages: string;
132
+ noMessages: string;
133
+ notSent: string;
134
+ placeholder: string;
135
+ removeFile: (name: string) => string;
136
+ retry: string;
137
+ send: string;
138
+ sending: string;
139
+ stop: string;
140
+ suggestions: string;
141
+ typing: (names: string, _count: number) => string;
142
+ typingMany: (count: number) => string;
143
+ you: string;
144
+ };
126
145
  chip: {
127
146
  removeLabel: (label?: string) => string;
128
147
  };
@@ -123,6 +123,25 @@ export declare const MONA_ZH_TW_LOCALE: {
123
123
  zoomedIn: string;
124
124
  zoomedOut: string;
125
125
  };
126
+ chat: {
127
+ attachFiles: string;
128
+ messageBox: string;
129
+ messages: string;
130
+ newMessage: (name: string, text: string) => string;
131
+ newMessages: string;
132
+ noMessages: string;
133
+ notSent: string;
134
+ placeholder: string;
135
+ removeFile: (name: string) => string;
136
+ retry: string;
137
+ send: string;
138
+ sending: string;
139
+ stop: string;
140
+ suggestions: string;
141
+ typing: (names: string, _count: number) => string;
142
+ typingMany: (count: number) => string;
143
+ you: string;
144
+ };
126
145
  chip: {
127
146
  removeLabel: (label?: string) => string;
128
147
  };