useyuva 0.0.26 → 0.0.27

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 (202) hide show
  1. package/README.md +1 -0
  2. package/dist/esm/apps-5c2vy32k.js +1 -0
  3. package/dist/esm/apps-ghkaqqx8.js +128 -0
  4. package/dist/esm/chat.js +33 -16
  5. package/dist/esm/{client-ebw9d6ms.js → client-k8txer77.js} +1 -1
  6. package/dist/esm/docs.js +4 -4
  7. package/dist/esm/index-0b3zs3hm.js +2 -0
  8. package/dist/esm/index-17p275de.js +2 -0
  9. package/dist/esm/index-1tyn193t.js +2 -0
  10. package/dist/esm/index-4mayxpxs.js +2 -0
  11. package/dist/esm/index-5tfxryvn.js +2 -0
  12. package/dist/esm/index-69xd7mjq.js +12 -0
  13. package/dist/esm/index-kf733km6.js +2 -0
  14. package/dist/esm/index.js +1 -1
  15. package/dist/esm/panel-jfe47dat.js +1 -0
  16. package/dist/esm/react.js +1 -1
  17. package/dist/esm/status.js +2 -2
  18. package/dist/esm/subscribe.js +2 -2
  19. package/dist/esm/thread-3y5hexyq.js +61 -0
  20. package/dist/esm/yuva-chat-j6fbj8y2.js +282 -0
  21. package/dist/types/apps/apps.d.ts +4 -0
  22. package/dist/types/apps/feedback.d.ts +3 -0
  23. package/dist/types/apps/help.d.ts +4 -0
  24. package/dist/types/apps/roadmap.d.ts +3 -0
  25. package/dist/types/apps/status.d.ts +3 -0
  26. package/dist/types/apps/styles.d.ts +1 -0
  27. package/dist/types/apps/subscribe.d.ts +3 -0
  28. package/dist/types/apps/whatsnew.d.ts +3 -0
  29. package/dist/types/catalogs/apps.d.ts +2 -0
  30. package/dist/types/client/api.d.ts +25 -0
  31. package/dist/types/client/client.d.ts +41 -2
  32. package/dist/types/element.d.ts +2 -1
  33. package/dist/types/i18n.d.ts +1 -1
  34. package/dist/types/index.d.ts +2 -2
  35. package/dist/types/locales/ar/apps.d.ts +2 -0
  36. package/dist/types/locales/bn/apps.d.ts +2 -0
  37. package/dist/types/locales/ca/apps.d.ts +2 -0
  38. package/dist/types/locales/cs/apps.d.ts +2 -0
  39. package/dist/types/locales/da/apps.d.ts +2 -0
  40. package/dist/types/locales/de/apps.d.ts +2 -0
  41. package/dist/types/locales/el/apps.d.ts +2 -0
  42. package/dist/types/locales/en/apps.d.ts +2 -0
  43. package/dist/types/locales/es/apps.d.ts +2 -0
  44. package/dist/types/locales/es-MX/apps.d.ts +2 -0
  45. package/dist/types/locales/fi/apps.d.ts +2 -0
  46. package/dist/types/locales/fr/apps.d.ts +2 -0
  47. package/dist/types/locales/fr-CA/apps.d.ts +2 -0
  48. package/dist/types/locales/gu/apps.d.ts +2 -0
  49. package/dist/types/locales/he/apps.d.ts +2 -0
  50. package/dist/types/locales/hi/apps.d.ts +2 -0
  51. package/dist/types/locales/hr/apps.d.ts +2 -0
  52. package/dist/types/locales/hu/apps.d.ts +2 -0
  53. package/dist/types/locales/id/apps.d.ts +2 -0
  54. package/dist/types/locales/it/apps.d.ts +2 -0
  55. package/dist/types/locales/ja/apps.d.ts +2 -0
  56. package/dist/types/locales/kn/apps.d.ts +2 -0
  57. package/dist/types/locales/ko/apps.d.ts +2 -0
  58. package/dist/types/locales/ml/apps.d.ts +2 -0
  59. package/dist/types/locales/mr/apps.d.ts +2 -0
  60. package/dist/types/locales/ms/apps.d.ts +2 -0
  61. package/dist/types/locales/nb/apps.d.ts +2 -0
  62. package/dist/types/locales/nl/apps.d.ts +2 -0
  63. package/dist/types/locales/or/apps.d.ts +2 -0
  64. package/dist/types/locales/pa/apps.d.ts +2 -0
  65. package/dist/types/locales/pl/apps.d.ts +2 -0
  66. package/dist/types/locales/pt-BR/apps.d.ts +2 -0
  67. package/dist/types/locales/pt-PT/apps.d.ts +2 -0
  68. package/dist/types/locales/ro/apps.d.ts +2 -0
  69. package/dist/types/locales/ru/apps.d.ts +2 -0
  70. package/dist/types/locales/sk/apps.d.ts +2 -0
  71. package/dist/types/locales/sl/apps.d.ts +2 -0
  72. package/dist/types/locales/sv/apps.d.ts +2 -0
  73. package/dist/types/locales/ta/apps.d.ts +2 -0
  74. package/dist/types/locales/te/apps.d.ts +2 -0
  75. package/dist/types/locales/th/apps.d.ts +2 -0
  76. package/dist/types/locales/tr/apps.d.ts +2 -0
  77. package/dist/types/locales/uk/apps.d.ts +2 -0
  78. package/dist/types/locales/ur/apps.d.ts +2 -0
  79. package/dist/types/locales/vi/apps.d.ts +2 -0
  80. package/dist/types/locales/zh-Hans/apps.d.ts +2 -0
  81. package/dist/types/locales/zh-Hant/apps.d.ts +2 -0
  82. package/dist/types/panel/capture.d.ts +2 -0
  83. package/dist/types/panel/chat.d.ts +3 -1
  84. package/dist/types/panel/helpers.d.ts +15 -0
  85. package/dist/types/panel/home.d.ts +18 -0
  86. package/dist/types/panel/icons.d.ts +28 -0
  87. package/dist/types/panel/styles.d.ts +1 -1
  88. package/dist/types/react.d.ts +30 -2
  89. package/dist/types/schema.gen.d.ts +18078 -11611
  90. package/dist/types/translate.d.ts +1 -1
  91. package/dist/types/types.d.ts +33 -1
  92. package/dist/types/updates.d.ts +3 -0
  93. package/dist/widget/yuva-apps-ar-wk63tmr6.js +1 -0
  94. package/dist/widget/yuva-apps-bn-mv215pfz.js +1 -0
  95. package/dist/widget/yuva-apps-ca-mxrszyen.js +1 -0
  96. package/dist/widget/yuva-apps-cs-szpm8fq7.js +1 -0
  97. package/dist/widget/yuva-apps-da-v9sx8j55.js +1 -0
  98. package/dist/widget/yuva-apps-de-fd1snm0x.js +1 -0
  99. package/dist/widget/yuva-apps-el-wecybgxk.js +1 -0
  100. package/dist/widget/yuva-apps-en-skz2hc45.js +1 -0
  101. package/dist/widget/yuva-apps-es-18nqt6cs.js +1 -0
  102. package/dist/widget/yuva-apps-es-mx-23h92xvs.js +1 -0
  103. package/dist/widget/yuva-apps-fi-9tffjg50.js +1 -0
  104. package/dist/widget/yuva-apps-fr-ca-ma4cfsvr.js +1 -0
  105. package/dist/widget/yuva-apps-fr-v6fmnc7n.js +1 -0
  106. package/dist/widget/yuva-apps-gu-4v1dxzbn.js +1 -0
  107. package/dist/widget/yuva-apps-he-yy8ajb9j.js +1 -0
  108. package/dist/widget/yuva-apps-hi-zezzdfb4.js +1 -0
  109. package/dist/widget/yuva-apps-hr-skjtsrz6.js +1 -0
  110. package/dist/widget/yuva-apps-hu-q79hae7c.js +1 -0
  111. package/dist/widget/yuva-apps-id-rvr6g27r.js +1 -0
  112. package/dist/widget/yuva-apps-it-hkfb6swg.js +1 -0
  113. package/dist/widget/yuva-apps-ja-71z2p7a6.js +1 -0
  114. package/dist/widget/yuva-apps-kn-xm2wsv24.js +1 -0
  115. package/dist/widget/yuva-apps-ko-5b90egt2.js +1 -0
  116. package/dist/widget/yuva-apps-ml-qyjc0208.js +1 -0
  117. package/dist/widget/yuva-apps-mr-wh0985vm.js +1 -0
  118. package/dist/widget/yuva-apps-ms-2et5c44x.js +1 -0
  119. package/dist/widget/yuva-apps-nb-hnr4p136.js +1 -0
  120. package/dist/widget/yuva-apps-nl-m5z18z8w.js +1 -0
  121. package/dist/widget/yuva-apps-or-6ggz8n7c.js +1 -0
  122. package/dist/widget/yuva-apps-pa-p0zp743s.js +1 -0
  123. package/dist/widget/yuva-apps-pl-ayf5z37n.js +1 -0
  124. package/dist/widget/yuva-apps-pt-br-pmegf5s7.js +1 -0
  125. package/dist/widget/yuva-apps-pt-pt-fqqmhnsg.js +1 -0
  126. package/dist/widget/yuva-apps-ro-kq1mexyc.js +1 -0
  127. package/dist/widget/yuva-apps-ru-k3vhm4n9.js +1 -0
  128. package/dist/widget/yuva-apps-sk-n0st8g80.js +1 -0
  129. package/dist/widget/yuva-apps-sl-5yzf8nkk.js +1 -0
  130. package/dist/widget/yuva-apps-sv-bfchg8n0.js +1 -0
  131. package/dist/widget/yuva-apps-ta-zgn0hzpc.js +1 -0
  132. package/dist/widget/yuva-apps-te-eyyyp1fs.js +1 -0
  133. package/dist/widget/yuva-apps-th-tq3fdyxf.js +1 -0
  134. package/dist/widget/yuva-apps-tr-9bq6yzyy.js +1 -0
  135. package/dist/widget/yuva-apps-uk-0azd9r77.js +1 -0
  136. package/dist/widget/yuva-apps-ur-j8m34b8k.js +1 -0
  137. package/dist/widget/yuva-apps-vi-hs9e6h1q.js +1 -0
  138. package/dist/widget/yuva-apps-zh-hans-bc7j7gt0.js +1 -0
  139. package/dist/widget/yuva-apps-zh-hant-9ke56jnf.js +1 -0
  140. package/dist/widget/yuva-chat-apps-yrvvqdf9.js +128 -0
  141. package/dist/widget/{yuva-docs-thread-3594bmxy.js → yuva-docs-thread-gha4vzfm.js} +5 -5
  142. package/dist/widget/yuva-panel-ar-w9kxar7b.js +1 -0
  143. package/dist/widget/yuva-panel-bn-w0jg8rz0.js +1 -0
  144. package/dist/widget/yuva-panel-ca-3xmep2qy.js +1 -0
  145. package/dist/widget/yuva-panel-cs-jxdap7hk.js +1 -0
  146. package/dist/widget/yuva-panel-da-xy0gn2ch.js +1 -0
  147. package/dist/widget/yuva-panel-de-z1haaaf5.js +1 -0
  148. package/dist/widget/yuva-panel-el-vhskf13n.js +1 -0
  149. package/dist/widget/yuva-panel-en-yntqp1wb.js +1 -0
  150. package/dist/widget/yuva-panel-es-91gq45ad.js +1 -0
  151. package/dist/widget/yuva-panel-es-mx-593ry1sp.js +1 -0
  152. package/dist/widget/yuva-panel-fi-dw2qy2ep.js +1 -0
  153. package/dist/widget/yuva-panel-fr-ca-kwqpxepb.js +1 -0
  154. package/dist/widget/yuva-panel-fr-mksekp2w.js +1 -0
  155. package/dist/widget/yuva-panel-gu-9brj4atb.js +1 -0
  156. package/dist/widget/yuva-panel-he-kwf5a5r1.js +1 -0
  157. package/dist/widget/yuva-panel-hi-hyqwxkva.js +1 -0
  158. package/dist/widget/yuva-panel-hr-xyc32ytv.js +1 -0
  159. package/dist/widget/yuva-panel-hu-dsf2tr60.js +1 -0
  160. package/dist/widget/yuva-panel-id-egadejce.js +1 -0
  161. package/dist/widget/yuva-panel-it-dstzsdpt.js +1 -0
  162. package/dist/widget/yuva-panel-ja-5ep2nhr6.js +1 -0
  163. package/dist/widget/yuva-panel-kn-ggsqc21e.js +1 -0
  164. package/dist/widget/yuva-panel-ko-7cr7d0zc.js +1 -0
  165. package/dist/widget/yuva-panel-ml-0vb742gf.js +1 -0
  166. package/dist/widget/yuva-panel-mr-f7sn0acm.js +1 -0
  167. package/dist/widget/yuva-panel-ms-7xavwv7n.js +1 -0
  168. package/dist/widget/yuva-panel-nb-34x0g8mq.js +1 -0
  169. package/dist/widget/yuva-panel-nl-rkak2t5r.js +1 -0
  170. package/dist/widget/yuva-panel-or-q6eks6dh.js +1 -0
  171. package/dist/widget/yuva-panel-pa-26mhm7me.js +1 -0
  172. package/dist/widget/yuva-panel-pl-6bsq33w3.js +1 -0
  173. package/dist/widget/yuva-panel-pt-br-5bf6ja6w.js +1 -0
  174. package/dist/widget/yuva-panel-pt-pt-2a7vh8y9.js +1 -0
  175. package/dist/widget/yuva-panel-ro-9255bnc4.js +1 -0
  176. package/dist/widget/yuva-panel-ru-1ydh24ae.js +1 -0
  177. package/dist/widget/yuva-panel-sk-50gc8kfg.js +1 -0
  178. package/dist/widget/yuva-panel-sl-0j7nnz7k.js +1 -0
  179. package/dist/widget/yuva-panel-sv-175kbch1.js +1 -0
  180. package/dist/widget/yuva-panel-ta-x4nnzatk.js +1 -0
  181. package/dist/widget/yuva-panel-te-35y4486b.js +1 -0
  182. package/dist/widget/yuva-panel-th-rx5h6eq6.js +1 -0
  183. package/dist/widget/yuva-panel-tr-ywyzb4rn.js +1 -0
  184. package/dist/widget/yuva-panel-uk-9h1czxf0.js +1 -0
  185. package/dist/widget/yuva-panel-ur-peb4hk7h.js +1 -0
  186. package/dist/widget/yuva-panel-vi-t97hnjrg.js +1 -0
  187. package/dist/widget/yuva-panel-zh-hans-djf7yajw.js +1 -0
  188. package/dist/widget/yuva-panel-zh-hant-a9cgjbmw.js +1 -0
  189. package/dist/widget/yuva-subscribe-client-32k2vgq4.js +11 -0
  190. package/dist/yuva-chat.js +238 -158
  191. package/dist/yuva-docs.js +6 -6
  192. package/dist/yuva-status.js +5 -5
  193. package/dist/yuva-subscribe.js +2 -2
  194. package/dist/yuva.js +33 -16
  195. package/package.json +1 -1
  196. package/dist/esm/index-3wpqkv7x.js +0 -2
  197. package/dist/esm/index-6brgxahe.js +0 -12
  198. package/dist/esm/index-ceev0134.js +0 -2
  199. package/dist/esm/index-rdzxvj2r.js +0 -2
  200. package/dist/esm/thread-g9jsp0c5.js +0 -61
  201. package/dist/esm/yuva-chat-9hx7wb3q.js +0 -202
  202. package/dist/widget/yuva-subscribe-client-bx862wkt.js +0 -11
@@ -3,4 +3,4 @@ import { directionOf, sourceLocale } from "./translate.js";
3
3
  export { directionOf, sourceLocale };
4
4
  export declare function resolveLocale(...candidates: (string | null | undefined)[]): string;
5
5
  export declare function catalogFor(locale: string): Messages;
6
- export declare function translatePlain(messages: Messages, descriptor: MessageDescriptor, fallback?: Messages): string;
6
+ export declare function translatePlain(messages: Messages, descriptor: MessageDescriptor, fallback?: Messages, locale?: string): string;
@@ -1,3 +1,3 @@
1
- export { createYuvaClient, YuvaClient, type ConnectionState, type ConversationInput, type DiscussionListOptions, type IdentityTokenSource, type MessageInput, type Page, type StoredState, type YuvaClientEvents, type YuvaClientOptions, type YuvaStorage, } from "./client/client.js";
1
+ export { createYuvaClient, YuvaClient, type ConnectionState, type ConversationInput, type DiscussionListOptions, type Help, type HelpGetOptions, type HelpOptions, type HelpSearchOptions, type IdeaInput, type IdeaListOptions, type WhatsNewOptions, type IdentityTokenSource, type MessageInput, type Page, type StoredState, type YuvaClientEvents, type YuvaClientOptions, type YuvaStorage, } from "./client/client.js";
2
2
  export { openReaderPopup, readerConnectUrl, type ReaderSession, type ReaderSignInOptions } from "./client/reader.js";
3
- export { ApiError, type Fetch, type ClientAttachment, type ClientChatSettings, type ClientContact, type ClientConversation, type ClientConversationCreated, type ClientConversationPage, type ClientFeedbackCreate, type ClientInbox, type ClientMailingList, type ClientMailingLists, type ClientMessage, type ClientMessagePage, type ClientDiscussionCreate, type ClientDiscussionPostUpdate, type ClientPresence, type ClientReadState, type ClientRealtimeMessage, type ClientSession, type ClientSessionInfo, type ClientSubscription, type ClientSubscriptionAccepted, type ClientSubscriptionCreate, type ClientSubscriptionList, type ClientSubscriptionPut, type ClientSubscriptionStatus, type Discussion, type DiscussionAuthor, type DiscussionDetail, type DiscussionMode, type DiscussionPage, type DiscussionPost, type DiscussionPostCreate, type DiscussionSort, type DiscussionState, type PageRating, type PageRatingCreate, type Problem, type ReaderProfile, type ReaderToken, type SubscriptionState, } from "./client/api.js";
3
+ export { ApiError, type Fetch, type ClientAttachment, type ClientChatSettings, type ClientContact, type ClientConversation, type ClientConversationCreated, type ClientConversationPage, type ClientFeedbackCreate, type ClientHelp, type ClientHelpArticle, type ClientHelpArticleSummary, type ClientHelpCenter, type ClientHelpCollection, type ClientHelpCollectionDetail, type ClientHelpReaction, type ClientHelpSearchClick, type ClientHelpSearchResult, type ClientHelpSearchResults, type ClientInboxHelp, type ClientInboxRoadmap, type ClientRoadmap, type ClientRoadmapStages, type ChangelogLabel, type ClientChangelog, type ClientInboxWhatsNew, type ClientWhatsNew, type ClientWhatsNewEntry, type ClientWhatsNewImage, type DiscussionKind, type IdeaStage, type RoadmapSuggestions, type HelpHighlight, type MessageCard, type ClientInbox, type ClientMailingList, type ClientMailingLists, type ClientMessage, type ClientMessagePage, type ClientDiscussionCreate, type ClientDiscussionPostUpdate, type ClientPresence, type ClientReadState, type ClientRealtimeMessage, type ClientSession, type ClientSessionInfo, type ClientSubscription, type ClientSubscriptionAccepted, type ClientSubscriptionCreate, type ClientSubscriptionList, type ClientSubscriptionPut, type ClientSubscriptionStatus, type Discussion, type DiscussionAuthor, type DiscussionDetail, type DiscussionMode, type DiscussionPage, type DiscussionPost, type DiscussionPostCreate, type DiscussionSort, type DiscussionState, type PageRating, type PageRatingCreate, type Problem, type ReaderProfile, type ReaderToken, type SubscriptionState, } from "./client/api.js";
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ import type { Messages } from "@lingui/core";
2
+ export declare const messages: Messages;
@@ -0,0 +1,2 @@
1
+ export declare const canCapture: () => boolean;
2
+ export declare function captureScreen(hide?: HTMLElement): Promise<File | null>;
@@ -1,10 +1,12 @@
1
- import { type PanelController, type PanelHost } from "../types.js";
1
+ import { type AppKind, type AppParams, type PanelController, type PanelHost } from "../types.js";
2
2
  import { type ClientConversation, type Rating } from "../client/api.js";
3
3
  export declare class Chat implements PanelController {
4
4
  #private;
5
+ ready: Promise<void>;
5
6
  constructor(host: PanelHost);
6
7
  update(): void;
7
8
  opened(): void;
9
+ openApp(kind: AppKind, params?: AppParams): Promise<void>;
8
10
  closed(): void;
9
11
  identityChanged(): void;
10
12
  signOut(): Promise<void>;
@@ -0,0 +1,15 @@
1
+ import type { ClientAttachment, ClientMessage, ClientConversation } from "../client/api.js";
2
+ export declare function el<K extends keyof HTMLElementTagNameMap>(tag: K, className?: string, text?: string): HTMLElementTagNameMap[K];
3
+ export declare function iconButton(icon: string, label: string, onClick: () => void, className?: string): HTMLButtonElement;
4
+ export declare function textButton(label: string, className: string, onClick: () => void): HTMLButtonElement;
5
+ export declare function searchField(label: string, value: string, submit: (query: string) => void, input?: (query: string) => void): HTMLFormElement;
6
+ export declare const time: (value: string) => number;
7
+ export declare const byCreated: (a: ClientMessage, b: ClientMessage) => number;
8
+ export declare const byActivity: (a: ClientConversation, b: ClientConversation) => number;
9
+ export declare const authorKey: (m: ClientMessage) => string;
10
+ export declare const isImage: (a: ClientAttachment) => boolean;
11
+ export declare function initialsOf(name: string): string;
12
+ export declare function fileKind(name: string, type: string): string;
13
+ export declare function fileSize(locale: string, bytes: number): string;
14
+ export declare function dayLabel(locale: string, value: string): string;
15
+ export declare function sameDay(a: string, b: string): boolean;
@@ -0,0 +1,18 @@
1
+ import type { MessageDescriptor } from "@lingui/core";
2
+ import type { ClientConversation, ClientInbox } from "../client/api.js";
3
+ import type { AppKind, AppParams } from "../types.js";
4
+ export interface HomeData {
5
+ inbox: ClientInbox;
6
+ conversations: ClientConversation[];
7
+ mailingLists: boolean;
8
+ updates: number;
9
+ locale: string;
10
+ t(descriptor: MessageDescriptor): string;
11
+ notice: HTMLElement;
12
+ openConversation(id: string): void;
13
+ allConversations(): void;
14
+ newConversation(): void;
15
+ openApp(kind: AppKind, params?: AppParams): void;
16
+ }
17
+ export declare function appTitle(kind: AppKind): MessageDescriptor;
18
+ export declare function buildHome(data: HomeData): HTMLElement;
@@ -0,0 +1,28 @@
1
+ export declare const icons: {
2
+ close: string;
3
+ closeSmall: string;
4
+ back: string;
5
+ chevron: string;
6
+ arrow: string;
7
+ attach: string;
8
+ shot: string;
9
+ send: string;
10
+ file: string;
11
+ down: string;
12
+ seen: string;
13
+ check: string;
14
+ person: string;
15
+ mail: string;
16
+ alert: string;
17
+ bubble: string;
18
+ search: string;
19
+ book: string;
20
+ vote: string;
21
+ plus: string;
22
+ sparkle: string;
23
+ bell: string;
24
+ idea: string;
25
+ planned: string;
26
+ progress: string;
27
+ shipped: string;
28
+ };
@@ -1 +1 @@
1
- export declare const styles = "\n[hidden] { display: none !important; }\n.header {\n display: flex;\n align-items: center;\n gap: 10px;\n padding-block: 12px;\n padding-inline: 14px 10px;\n background: var(--yuva-accent);\n color: var(--yuva-on-accent);\n}\n.heading { flex: 1; min-inline-size: 0; }\n.title {\n margin: 0;\n font-size: 16px;\n font-weight: 600;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n.status { display: flex; align-items: center; gap: 6px; font-size: 13px; opacity: 0.9; }\n.dot { inline-size: 8px; block-size: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 2px rgb(255 255 255 / 0.6); }\n.dot.away { background: #9ca3af; }\n.avatars { display: flex; }\n.avatars .avatar { margin-inline-start: -8px; box-shadow: 0 0 0 2px var(--yuva-accent); }\n.avatars .avatar:first-child { margin-inline-start: 0; }\n.avatar {\n display: grid;\n place-items: center;\n flex: none;\n inline-size: 28px;\n block-size: 28px;\n border-radius: 50%;\n background: var(--yuva-soft);\n color: var(--yuva-fg);\n font-size: 11px;\n font-weight: 700;\n text-transform: uppercase;\n}\n.icon {\n display: grid;\n place-items: center;\n flex: none;\n inline-size: 32px;\n block-size: 32px;\n padding: 0;\n border: 0;\n border-radius: 8px;\n background: transparent;\n color: inherit;\n cursor: pointer;\n}\n.icon:hover { background: rgb(127 127 127 / 0.18); }\n.icon:focus-visible { outline: 2px solid currentColor; outline-offset: -4px; }\n[dir=\"rtl\"] .flip { transform: scaleX(-1); }\n.body { position: relative; flex: 1; min-block-size: 0; display: flex; flex-direction: column; }\n.scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px; display: flex; flex-direction: column; gap: 4px; }\n.center { flex: 1; display: grid; place-content: center; gap: 6px; padding: 24px; text-align: center; }\n.empty { margin: 0; font-weight: 600; }\n.hint { margin: 0; color: var(--yuva-muted); font-size: 14px; }\n.list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; flex: 1; }\n.item {\n display: flex;\n gap: 10px;\n align-items: center;\n inline-size: 100%;\n padding: 10px;\n border: 0;\n border-radius: 10px;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n cursor: pointer;\n}\n.item:hover, .item:focus-visible { background: var(--yuva-soft); outline: none; }\n.item-main { flex: 1; min-inline-size: 0; }\n.item-top { display: flex; gap: 8px; justify-content: space-between; }\n.item-subject, .item-preview { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n.item-subject { font-weight: 600; }\n.item-preview { color: var(--yuva-muted); font-size: 14px; }\n.item.unread .item-preview { color: var(--yuva-fg); font-weight: 600; }\n.item-state { flex: none; margin-inline-start: auto; color: var(--yuva-muted); font-size: 12px; }\n.hint.resolved { text-align: center; }\n.item-time { flex: none; color: var(--yuva-muted); font-size: 12px; }\n.unread-dot { flex: none; inline-size: 9px; block-size: 9px; border-radius: 50%; background: var(--yuva-accent); }\n.primary {\n margin: 10px;\n padding: 10px 14px;\n border: 0;\n border-radius: 10px;\n background: var(--yuva-accent);\n color: var(--yuva-on-accent);\n font: inherit;\n font-weight: 600;\n cursor: pointer;\n}\n.row { display: flex; gap: 8px; align-items: flex-end; max-inline-size: 85%; }\n.row.mine { align-self: flex-end; }\n.row.theirs .avatar { margin-block-end: 2px; }\n.avatar img { inline-size: 100%; block-size: 100%; border-radius: 50%; object-fit: cover; }\n.group-gap { margin-block-start: 8px; }\n.author { margin: 6px 0 2px; margin-inline-start: 36px; color: var(--yuva-muted); font-size: 12px; }\n.bubble {\n padding: 8px 12px;\n border-radius: 16px;\n background: var(--yuva-soft);\n overflow-wrap: anywhere;\n white-space: normal;\n}\n.mine .bubble { background: var(--yuva-accent); color: var(--yuva-on-accent); border-end-end-radius: 4px; }\n.theirs .bubble { border-end-start-radius: 4px; }\n.bubble a { color: inherit; text-decoration: underline; }\n.bubble code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; padding: 1px 4px; border-radius: 4px; background: rgb(127 127 127 / 0.2); }\n.bubble pre { margin: 4px 0; padding: 8px; border-radius: 8px; background: rgb(127 127 127 / 0.2); font-family: ui-monospace, Menlo, monospace; font-size: 13px; white-space: pre-wrap; }\n.greeting { align-self: flex-start; max-inline-size: 85%; }\n.files { display: flex; flex-direction: column; gap: 4px; margin-block-start: 4px; }\n.files img { display: block; max-inline-size: 100%; max-block-size: 220px; border-radius: 10px; cursor: zoom-in; }\n.file {\n display: inline-flex;\n gap: 6px;\n align-items: center;\n padding: 6px 10px;\n border: 1px solid currentColor;\n border-radius: 8px;\n background: transparent;\n color: inherit;\n font: inherit;\n font-size: 13px;\n cursor: pointer;\n}\n.meta { align-self: flex-end; color: var(--yuva-muted); font-size: 12px; margin-block-start: 2px; }\n.meta.failed { color: var(--yuva-danger); }\n.link { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }\n.typing { display: flex; gap: 6px; align-items: center; color: var(--yuva-muted); font-size: 13px; margin-block-start: 6px; }\n.typing i { display: inline-block; inline-size: 6px; block-size: 6px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite both; }\n.typing i:nth-child(2) { animation-delay: 0.2s; }\n.typing i:nth-child(3) { animation-delay: 0.4s; }\n@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }\n@media (prefers-reduced-motion: reduce) { .typing i { animation: none; } }\n.card { margin-block-start: 10px; padding: 12px; border: 1px solid var(--yuva-border); border-radius: 12px; font-size: 14px; }\n.card p { margin: 0 0 8px; }\n.card form { display: flex; gap: 6px; }\n.card input {\n flex: 1;\n min-inline-size: 0;\n padding: 8px 10px;\n border: 1px solid var(--yuva-border);\n border-radius: 8px;\n background: var(--yuva-bg);\n color: inherit;\n font: inherit;\n}\n.card button { padding: 8px 12px; border: 0; border-radius: 8px; background: var(--yuva-accent); color: var(--yuva-on-accent); font: inherit; font-weight: 600; cursor: pointer; }\n.card .error { margin: 6px 0 0; color: var(--yuva-danger); }\n.card button:disabled { opacity: 0.6; cursor: default; }\n.rate { text-align: center; }\n.choices { display: flex; justify-content: center; gap: 10px; }\n.card .choice { inline-size: 44px; block-size: 44px; padding: 0; border: 1px solid var(--yuva-border); border-radius: 50%; background: var(--yuva-bg); font-size: 20px; line-height: 1; }\n.card .choice:hover:not(:disabled), .card .choice[aria-pressed=\"true\"] { border-color: var(--yuva-accent); box-shadow: 0 0 0 1px var(--yuva-accent); }\n.card .choice:disabled { opacity: 1; }\n.card .choice:focus-visible { outline: 2px solid var(--yuva-accent); outline-offset: 2px; }\n.rate .choices + p { margin: 8px 0 0; }\n.rate form { flex-direction: column; margin-block-start: 10px; }\n.rate textarea { box-sizing: border-box; inline-size: 100%; padding: 8px 10px; border: 1px solid var(--yuva-border); border-radius: 8px; background: var(--yuva-bg); color: inherit; font: inherit; resize: vertical; }\n.rate .actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }\n.card .link { padding: 0; background: none; color: var(--yuva-muted); font-weight: 400; }\n.composer { border-block-start: 1px solid var(--yuva-border); padding: 8px; }\n.composer form { display: flex; gap: 4px; align-items: flex-end; }\n.composer textarea {\n flex: 1;\n min-inline-size: 0;\n box-sizing: border-box;\n block-size: 38px;\n max-block-size: 140px;\n padding: 8px 10px;\n border: 0;\n border-radius: 10px;\n background: transparent;\n color: inherit;\n font: inherit;\n resize: none;\n outline: none;\n}\n.composer .icon { color: var(--yuva-muted); }\n.composer .send { color: var(--yuva-accent); }\n.composer .send:disabled { opacity: 0.4; cursor: default; }\n.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 6px 6px; }\n.chip { display: inline-flex; gap: 4px; align-items: center; max-inline-size: 100%; padding: 2px 4px 2px 10px; border-radius: 999px; background: var(--yuva-soft); font-size: 13px; }\n.chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-inline-size: 180px; }\n.chip .icon { inline-size: 22px; block-size: 22px; }\n.banner { padding: 6px 12px; background: var(--yuva-soft); color: var(--yuva-muted); font-size: 13px; text-align: center; }\n@media (max-width: 480px) { .composer textarea, .card input, .card textarea { font-size: 16px; } }\n.notice { display: flex; align-items: center; gap: 6px; margin: 8px 8px 0; padding-block: 6px; padding-inline: 10px 4px; border-inline-start: 3px solid var(--yuva-muted); border-radius: 8px; background: var(--yuva-soft); font-size: 13px; }\n.notice-text { flex: 1; min-inline-size: 0; overflow-wrap: anywhere; }\n.notice a { color: inherit; text-decoration: underline; }\n.notice .icon { inline-size: 24px; block-size: 24px; color: var(--yuva-muted); }\n.notice.impact-minor { border-inline-start-color: #d97706; }\n.notice.impact-major { border-inline-start-color: #ea580c; }\n.notice.impact-critical { border-inline-start-color: var(--yuva-danger); }\n.sr { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }\n";
1
+ export declare const styles: string;
@@ -1,6 +1,6 @@
1
1
  import { type CSSProperties, type ReactElement, type ReactNode } from "react";
2
- import type { ClientConversation, ClientMessage } from "./client/api.js";
3
- import type { IdentityTokenSource, MessageInput, YuvaClient } from "./client/client.js";
2
+ import type { ClientChangelog, ClientConversation, ClientHelp, ClientMessage, ClientWhatsNewEntry } from "./client/api.js";
3
+ import type { Help, IdentityTokenSource, MessageInput, YuvaClient } from "./client/client.js";
4
4
  import type { DiscussionDetailEvent, DiscussionPostDetail, PageFeedbackDetail, PageRatingDetail } from "./docs.js";
5
5
  import type { SubscribeDetail, SubscribeErrorDetail } from "./subscribe.js";
6
6
  import type { ReaderProfile } from "./client/api.js";
@@ -21,6 +21,34 @@ export interface ConversationsResult {
21
21
  reload(): Promise<void>;
22
22
  }
23
23
  export declare function useConversations(): ConversationsResult;
24
+ export interface HelpResult {
25
+ help: ClientHelp | null;
26
+ loading: boolean;
27
+ error: unknown;
28
+ reload(): Promise<void>;
29
+ search: Help["search"];
30
+ collection: Help["collection"];
31
+ article: Help["article"];
32
+ react: Help["react"];
33
+ click: Help["click"];
34
+ }
35
+ export interface UseHelpOptions {
36
+ locale?: string;
37
+ page?: string;
38
+ }
39
+ export declare function useHelp({ locale, page }?: UseHelpOptions): HelpResult;
40
+ export interface WhatsNewResult {
41
+ changelog: ClientChangelog | null;
42
+ items: ClientWhatsNewEntry[];
43
+ loading: boolean;
44
+ error: unknown;
45
+ hasMore: boolean;
46
+ loadMore(): Promise<void>;
47
+ reload(): Promise<void>;
48
+ }
49
+ export declare function useWhatsNew({ locale }?: {
50
+ locale?: string;
51
+ }): WhatsNewResult;
24
52
  export interface MessagesResult {
25
53
  messages: ClientMessage[];
26
54
  loading: boolean;