@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
package/docs/api/i18n.md CHANGED
@@ -648,6 +648,39 @@ validator's own `message` wins over these.
648
648
 
649
649
  **Used by:** [`MonaLocaleMessages`](i18n.md#monalocalemessages)
650
650
 
651
+ ## `MonaChatMessages`
652
+
653
+ Interface.
654
+
655
+ ### Properties
656
+
657
+ | Name | Type | Description |
658
+ | --- | --- | --- |
659
+ | `attachFiles` (read-only) | `string` | Names the button that opens the file picker to attach files to a message. |
660
+ | `messageBox` (read-only) | `string` | Names the message box. |
661
+ | `messages` (read-only) | `string` | Names the list of messages, when the chat has no name of its own. |
662
+ | `newMessages` (read-only) | `string` | Labels the button that scrolls to messages that arrived while the user was reading earlier ones. |
663
+ | `noMessages` (read-only) | `string` | Shown in a chat with no messages. |
664
+ | `notSent` (read-only) | `string` | Shown under a message of the user's that couldn't be sent. |
665
+ | `placeholder` (read-only) | `string` | The message box's placeholder. |
666
+ | `retry` (read-only) | `string` | Labels the button that sends a message that couldn't be sent again. |
667
+ | `send` (read-only) | `string` | Names the button that sends the message. |
668
+ | `sending` (read-only) | `string` | Shown under a message of the user's that's being sent. |
669
+ | `stop` (read-only) | `string` | Names the button that stops a reply that's streaming in. |
670
+ | `suggestions` (read-only) | `string` | Names the group of suggested replies. |
671
+ | `you` (read-only) | `string` | Names the user's own messages to assistive technology, where others' messages have their author's name. |
672
+
673
+ ### Methods
674
+
675
+ | Signature | Description |
676
+ | --- | --- |
677
+ | `newMessage(name: string, text: string): string` | Announces a message from someone else as it arrives, or once it has finished streaming: who sent it and what it says ("Ana: See you at six"). |
678
+ | `removeFile(name: string): string` | Names the button that removes a file waiting to be sent ("Remove photo.jpg"). |
679
+ | `typing(names: string, count: number): string` | Says who's typing, their names joined in the locale's way ("Ana is typing", "Ana and Ben are typing"), for up to three people. |
680
+ | `typingMany(count: number): string` | Says how many people are typing, for more than three ("4 people are typing"). |
681
+
682
+ **Used by:** [`CHAT_DEFAULT_MESSAGES`](chat.md#chat-default-messages), [`MonaLocaleMessages`](i18n.md#monalocalemessages)
683
+
651
684
  ## `MonaKanbanMessages`
652
685
 
653
686
  Interface.
@@ -1380,6 +1413,7 @@ Interface.
1380
1413
  | `calendar` | `MonaCalendarMessages` |
1381
1414
  | `card` | `MonaCardMessages` |
1382
1415
  | `chart` | `MonaChartMessages` |
1416
+ | `chat` | `MonaChatMessages` |
1383
1417
  | `chip` | `MonaChipMessages` |
1384
1418
  | `colorGradient` | `MonaColorGradientMessages` |
1385
1419
  | `colorPalette` | `MonaColorPaletteMessages` |