useyuva 0.0.25 → 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.
- package/README.md +1 -0
- package/dist/esm/apps-5c2vy32k.js +1 -0
- package/dist/esm/apps-ghkaqqx8.js +128 -0
- package/dist/esm/chat.js +33 -16
- package/dist/esm/{client-ebw9d6ms.js → client-k8txer77.js} +1 -1
- package/dist/esm/docs.js +4 -4
- package/dist/esm/index-0b3zs3hm.js +2 -0
- package/dist/esm/index-17p275de.js +2 -0
- package/dist/esm/index-1tyn193t.js +2 -0
- package/dist/esm/index-4mayxpxs.js +2 -0
- package/dist/esm/index-5tfxryvn.js +2 -0
- package/dist/esm/index-69xd7mjq.js +12 -0
- package/dist/esm/index-kf733km6.js +2 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/panel-jfe47dat.js +1 -0
- package/dist/esm/react.js +1 -1
- package/dist/esm/status.js +6 -4
- package/dist/esm/subscribe.js +2 -2
- package/dist/esm/thread-3y5hexyq.js +61 -0
- package/dist/esm/yuva-chat-j6fbj8y2.js +282 -0
- package/dist/types/apps/apps.d.ts +4 -0
- package/dist/types/apps/feedback.d.ts +3 -0
- package/dist/types/apps/help.d.ts +4 -0
- package/dist/types/apps/roadmap.d.ts +3 -0
- package/dist/types/apps/status.d.ts +3 -0
- package/dist/types/apps/styles.d.ts +1 -0
- package/dist/types/apps/subscribe.d.ts +3 -0
- package/dist/types/apps/whatsnew.d.ts +3 -0
- package/dist/types/catalogs/apps.d.ts +2 -0
- package/dist/types/client/api.d.ts +25 -0
- package/dist/types/client/client.d.ts +41 -2
- package/dist/types/element.d.ts +2 -1
- package/dist/types/i18n.d.ts +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/locales/ar/apps.d.ts +2 -0
- package/dist/types/locales/bn/apps.d.ts +2 -0
- package/dist/types/locales/ca/apps.d.ts +2 -0
- package/dist/types/locales/cs/apps.d.ts +2 -0
- package/dist/types/locales/da/apps.d.ts +2 -0
- package/dist/types/locales/de/apps.d.ts +2 -0
- package/dist/types/locales/el/apps.d.ts +2 -0
- package/dist/types/locales/en/apps.d.ts +2 -0
- package/dist/types/locales/es/apps.d.ts +2 -0
- package/dist/types/locales/es-MX/apps.d.ts +2 -0
- package/dist/types/locales/fi/apps.d.ts +2 -0
- package/dist/types/locales/fr/apps.d.ts +2 -0
- package/dist/types/locales/fr-CA/apps.d.ts +2 -0
- package/dist/types/locales/gu/apps.d.ts +2 -0
- package/dist/types/locales/he/apps.d.ts +2 -0
- package/dist/types/locales/hi/apps.d.ts +2 -0
- package/dist/types/locales/hr/apps.d.ts +2 -0
- package/dist/types/locales/hu/apps.d.ts +2 -0
- package/dist/types/locales/id/apps.d.ts +2 -0
- package/dist/types/locales/it/apps.d.ts +2 -0
- package/dist/types/locales/ja/apps.d.ts +2 -0
- package/dist/types/locales/kn/apps.d.ts +2 -0
- package/dist/types/locales/ko/apps.d.ts +2 -0
- package/dist/types/locales/ml/apps.d.ts +2 -0
- package/dist/types/locales/mr/apps.d.ts +2 -0
- package/dist/types/locales/ms/apps.d.ts +2 -0
- package/dist/types/locales/nb/apps.d.ts +2 -0
- package/dist/types/locales/nl/apps.d.ts +2 -0
- package/dist/types/locales/or/apps.d.ts +2 -0
- package/dist/types/locales/pa/apps.d.ts +2 -0
- package/dist/types/locales/pl/apps.d.ts +2 -0
- package/dist/types/locales/pt-BR/apps.d.ts +2 -0
- package/dist/types/locales/pt-PT/apps.d.ts +2 -0
- package/dist/types/locales/ro/apps.d.ts +2 -0
- package/dist/types/locales/ru/apps.d.ts +2 -0
- package/dist/types/locales/sk/apps.d.ts +2 -0
- package/dist/types/locales/sl/apps.d.ts +2 -0
- package/dist/types/locales/sv/apps.d.ts +2 -0
- package/dist/types/locales/ta/apps.d.ts +2 -0
- package/dist/types/locales/te/apps.d.ts +2 -0
- package/dist/types/locales/th/apps.d.ts +2 -0
- package/dist/types/locales/tr/apps.d.ts +2 -0
- package/dist/types/locales/uk/apps.d.ts +2 -0
- package/dist/types/locales/ur/apps.d.ts +2 -0
- package/dist/types/locales/vi/apps.d.ts +2 -0
- package/dist/types/locales/zh-Hans/apps.d.ts +2 -0
- package/dist/types/locales/zh-Hant/apps.d.ts +2 -0
- package/dist/types/panel/capture.d.ts +2 -0
- package/dist/types/panel/chat.d.ts +3 -1
- package/dist/types/panel/helpers.d.ts +15 -0
- package/dist/types/panel/home.d.ts +18 -0
- package/dist/types/panel/icons.d.ts +28 -0
- package/dist/types/panel/styles.d.ts +1 -1
- package/dist/types/react.d.ts +30 -2
- package/dist/types/schema.gen.d.ts +18078 -11611
- package/dist/types/translate.d.ts +1 -1
- package/dist/types/types.d.ts +33 -1
- package/dist/types/updates.d.ts +3 -0
- package/dist/widget/yuva-apps-ar-wk63tmr6.js +1 -0
- package/dist/widget/yuva-apps-bn-mv215pfz.js +1 -0
- package/dist/widget/yuva-apps-ca-mxrszyen.js +1 -0
- package/dist/widget/yuva-apps-cs-szpm8fq7.js +1 -0
- package/dist/widget/yuva-apps-da-v9sx8j55.js +1 -0
- package/dist/widget/yuva-apps-de-fd1snm0x.js +1 -0
- package/dist/widget/yuva-apps-el-wecybgxk.js +1 -0
- package/dist/widget/yuva-apps-en-skz2hc45.js +1 -0
- package/dist/widget/yuva-apps-es-18nqt6cs.js +1 -0
- package/dist/widget/yuva-apps-es-mx-23h92xvs.js +1 -0
- package/dist/widget/yuva-apps-fi-9tffjg50.js +1 -0
- package/dist/widget/yuva-apps-fr-ca-ma4cfsvr.js +1 -0
- package/dist/widget/yuva-apps-fr-v6fmnc7n.js +1 -0
- package/dist/widget/yuva-apps-gu-4v1dxzbn.js +1 -0
- package/dist/widget/yuva-apps-he-yy8ajb9j.js +1 -0
- package/dist/widget/yuva-apps-hi-zezzdfb4.js +1 -0
- package/dist/widget/yuva-apps-hr-skjtsrz6.js +1 -0
- package/dist/widget/yuva-apps-hu-q79hae7c.js +1 -0
- package/dist/widget/yuva-apps-id-rvr6g27r.js +1 -0
- package/dist/widget/yuva-apps-it-hkfb6swg.js +1 -0
- package/dist/widget/yuva-apps-ja-71z2p7a6.js +1 -0
- package/dist/widget/yuva-apps-kn-xm2wsv24.js +1 -0
- package/dist/widget/yuva-apps-ko-5b90egt2.js +1 -0
- package/dist/widget/yuva-apps-ml-qyjc0208.js +1 -0
- package/dist/widget/yuva-apps-mr-wh0985vm.js +1 -0
- package/dist/widget/yuva-apps-ms-2et5c44x.js +1 -0
- package/dist/widget/yuva-apps-nb-hnr4p136.js +1 -0
- package/dist/widget/yuva-apps-nl-m5z18z8w.js +1 -0
- package/dist/widget/yuva-apps-or-6ggz8n7c.js +1 -0
- package/dist/widget/yuva-apps-pa-p0zp743s.js +1 -0
- package/dist/widget/yuva-apps-pl-ayf5z37n.js +1 -0
- package/dist/widget/yuva-apps-pt-br-pmegf5s7.js +1 -0
- package/dist/widget/yuva-apps-pt-pt-fqqmhnsg.js +1 -0
- package/dist/widget/yuva-apps-ro-kq1mexyc.js +1 -0
- package/dist/widget/yuva-apps-ru-k3vhm4n9.js +1 -0
- package/dist/widget/yuva-apps-sk-n0st8g80.js +1 -0
- package/dist/widget/yuva-apps-sl-5yzf8nkk.js +1 -0
- package/dist/widget/yuva-apps-sv-bfchg8n0.js +1 -0
- package/dist/widget/yuva-apps-ta-zgn0hzpc.js +1 -0
- package/dist/widget/yuva-apps-te-eyyyp1fs.js +1 -0
- package/dist/widget/yuva-apps-th-tq3fdyxf.js +1 -0
- package/dist/widget/yuva-apps-tr-9bq6yzyy.js +1 -0
- package/dist/widget/yuva-apps-uk-0azd9r77.js +1 -0
- package/dist/widget/yuva-apps-ur-j8m34b8k.js +1 -0
- package/dist/widget/yuva-apps-vi-hs9e6h1q.js +1 -0
- package/dist/widget/yuva-apps-zh-hans-bc7j7gt0.js +1 -0
- package/dist/widget/yuva-apps-zh-hant-9ke56jnf.js +1 -0
- package/dist/widget/yuva-chat-apps-yrvvqdf9.js +128 -0
- package/dist/widget/{yuva-docs-thread-3594bmxy.js → yuva-docs-thread-gha4vzfm.js} +5 -5
- package/dist/widget/yuva-panel-ar-w9kxar7b.js +1 -0
- package/dist/widget/yuva-panel-bn-w0jg8rz0.js +1 -0
- package/dist/widget/yuva-panel-ca-3xmep2qy.js +1 -0
- package/dist/widget/yuva-panel-cs-jxdap7hk.js +1 -0
- package/dist/widget/yuva-panel-da-xy0gn2ch.js +1 -0
- package/dist/widget/yuva-panel-de-z1haaaf5.js +1 -0
- package/dist/widget/yuva-panel-el-vhskf13n.js +1 -0
- package/dist/widget/yuva-panel-en-yntqp1wb.js +1 -0
- package/dist/widget/yuva-panel-es-91gq45ad.js +1 -0
- package/dist/widget/yuva-panel-es-mx-593ry1sp.js +1 -0
- package/dist/widget/yuva-panel-fi-dw2qy2ep.js +1 -0
- package/dist/widget/yuva-panel-fr-ca-kwqpxepb.js +1 -0
- package/dist/widget/yuva-panel-fr-mksekp2w.js +1 -0
- package/dist/widget/yuva-panel-gu-9brj4atb.js +1 -0
- package/dist/widget/yuva-panel-he-kwf5a5r1.js +1 -0
- package/dist/widget/yuva-panel-hi-hyqwxkva.js +1 -0
- package/dist/widget/yuva-panel-hr-xyc32ytv.js +1 -0
- package/dist/widget/yuva-panel-hu-dsf2tr60.js +1 -0
- package/dist/widget/yuva-panel-id-egadejce.js +1 -0
- package/dist/widget/yuva-panel-it-dstzsdpt.js +1 -0
- package/dist/widget/yuva-panel-ja-5ep2nhr6.js +1 -0
- package/dist/widget/yuva-panel-kn-ggsqc21e.js +1 -0
- package/dist/widget/yuva-panel-ko-7cr7d0zc.js +1 -0
- package/dist/widget/yuva-panel-ml-0vb742gf.js +1 -0
- package/dist/widget/yuva-panel-mr-f7sn0acm.js +1 -0
- package/dist/widget/yuva-panel-ms-7xavwv7n.js +1 -0
- package/dist/widget/yuva-panel-nb-34x0g8mq.js +1 -0
- package/dist/widget/yuva-panel-nl-rkak2t5r.js +1 -0
- package/dist/widget/yuva-panel-or-q6eks6dh.js +1 -0
- package/dist/widget/yuva-panel-pa-26mhm7me.js +1 -0
- package/dist/widget/yuva-panel-pl-6bsq33w3.js +1 -0
- package/dist/widget/yuva-panel-pt-br-5bf6ja6w.js +1 -0
- package/dist/widget/yuva-panel-pt-pt-2a7vh8y9.js +1 -0
- package/dist/widget/yuva-panel-ro-9255bnc4.js +1 -0
- package/dist/widget/yuva-panel-ru-1ydh24ae.js +1 -0
- package/dist/widget/yuva-panel-sk-50gc8kfg.js +1 -0
- package/dist/widget/yuva-panel-sl-0j7nnz7k.js +1 -0
- package/dist/widget/yuva-panel-sv-175kbch1.js +1 -0
- package/dist/widget/yuva-panel-ta-x4nnzatk.js +1 -0
- package/dist/widget/yuva-panel-te-35y4486b.js +1 -0
- package/dist/widget/yuva-panel-th-rx5h6eq6.js +1 -0
- package/dist/widget/yuva-panel-tr-ywyzb4rn.js +1 -0
- package/dist/widget/yuva-panel-uk-9h1czxf0.js +1 -0
- package/dist/widget/yuva-panel-ur-peb4hk7h.js +1 -0
- package/dist/widget/yuva-panel-vi-t97hnjrg.js +1 -0
- package/dist/widget/yuva-panel-zh-hans-djf7yajw.js +1 -0
- package/dist/widget/yuva-panel-zh-hant-a9cgjbmw.js +1 -0
- package/dist/widget/yuva-subscribe-client-32k2vgq4.js +11 -0
- package/dist/yuva-chat.js +238 -158
- package/dist/yuva-docs.js +6 -6
- package/dist/yuva-status.js +9 -7
- package/dist/yuva-subscribe.js +2 -2
- package/dist/yuva.js +33 -16
- package/package.json +1 -1
- package/dist/esm/index-3wpqkv7x.js +0 -2
- package/dist/esm/index-6brgxahe.js +0 -12
- package/dist/esm/index-ceev0134.js +0 -2
- package/dist/esm/index-rdzxvj2r.js +0 -2
- package/dist/esm/thread-g9jsp0c5.js +0 -61
- package/dist/esm/yuva-chat-9hx7wb3q.js +0 -202
- package/dist/widget/yuva-subscribe-client-bx862wkt.js +0 -11
package/dist/types/i18n.d.ts
CHANGED
|
@@ -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;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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";
|
|
@@ -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
|
|
1
|
+
export declare const styles: string;
|
package/dist/types/react.d.ts
CHANGED
|
@@ -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;
|