useyuva 0.0.7 → 0.0.9
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 +98 -6
- package/dist/esm/analytics.js +1 -0
- package/dist/esm/chat.js +2 -2
- package/dist/esm/client-p9899hvt.js +1 -0
- package/dist/esm/docs.js +4 -61
- package/dist/esm/index-8hzbxjv3.js +12 -0
- package/dist/esm/index-98r96a7e.js +2 -0
- package/dist/esm/index-c6q8br7d.js +2 -0
- package/dist/esm/index-gk84nm8f.js +2 -0
- package/dist/esm/index-rdzxvj2r.js +2 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/nuxt/module.js +7 -3
- package/dist/esm/nuxt/runtime/analytics.js +6 -0
- package/dist/esm/nuxt/runtime/components.js +32 -0
- package/dist/esm/nuxt/runtime/plugin.js +11 -0
- package/dist/esm/react.js +2 -1
- package/dist/esm/subscribe.js +33 -0
- package/dist/esm/thread-btm71nxt.js +61 -0
- package/dist/esm/yuva-chat-zzebx8pk.js +193 -0
- package/dist/types/analytics/core.d.ts +47 -0
- package/dist/types/analytics/handle.d.ts +3 -0
- package/dist/types/analytics.d.ts +1 -0
- package/dist/types/client/api.d.ts +11 -0
- package/dist/types/client/client.d.ts +6 -1
- package/dist/types/docs/base.d.ts +3 -2
- package/dist/types/docs/define.d.ts +1 -0
- package/dist/types/docs/discussions.d.ts +4 -13
- package/dist/types/docs/dom.d.ts +1 -0
- package/dist/types/docs/thread.d.ts +71 -0
- package/dist/types/docs.d.ts +2 -2
- package/dist/types/i18n.d.ts +2 -2
- package/dist/types/index.d.ts +1 -1
- package/dist/types/locales/de/docs.d.ts +2 -0
- package/dist/types/locales/de/loader.d.ts +2 -0
- package/dist/types/locales/de/panel.d.ts +2 -0
- package/dist/types/locales/de/subscribe.d.ts +2 -0
- package/dist/types/locales/de/thread.d.ts +2 -0
- package/dist/types/locales/en/subscribe.d.ts +2 -0
- package/dist/types/locales/en/thread.d.ts +2 -0
- package/dist/types/locales/tr/subscribe.d.ts +2 -0
- package/dist/types/locales/tr/thread.d.ts +2 -0
- package/dist/types/nuxt/module.d.ts +8 -1
- package/dist/types/nuxt/runtime/analytics.d.ts +2 -0
- package/dist/types/nuxt/runtime/components.d.ts +34 -0
- package/dist/types/nuxt/runtime/plugin.d.ts +6 -0
- package/dist/types/react.d.ts +18 -0
- package/dist/types/schema.gen.d.ts +15384 -5025
- package/dist/types/subscribe/element.d.ts +34 -0
- package/dist/types/subscribe.d.ts +4 -0
- package/dist/types/translate.d.ts +5 -0
- package/dist/widget/yuva-docs-thread-8st0egsq.js +61 -0
- package/dist/widget/yuva-subscribe-client-s3cx942g.js +11 -0
- package/dist/yuva-analytics.js +1 -0
- package/dist/yuva-chat.js +6 -6
- package/dist/yuva-docs.js +8 -65
- package/dist/yuva-subscribe.js +33 -0
- package/dist/yuva.js +2 -2
- package/package.json +27 -4
- package/dist/esm/index-cmr5w646.js +0 -2
- package/dist/esm/index-dj5dhqc1.js +0 -12
- package/dist/esm/yuva-chat-acme1k5r.js +0 -193
|
@@ -2,6 +2,7 @@ import { type PropType } from "vue";
|
|
|
2
2
|
import type { IdentityTokenSource, Layout } from "../../types.js";
|
|
3
3
|
import type { DiscussionDetailEvent, DiscussionPostDetail, PageFeedbackDetail, PageRatingDetail } from "../../docs.js";
|
|
4
4
|
import type { ReaderProfile } from "../../client/api.js";
|
|
5
|
+
import type { SubscribeDetail, SubscribeErrorDetail } from "../../subscribe.js";
|
|
5
6
|
export declare const YuvaPageFeedback: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
6
7
|
channel: StringConstructor;
|
|
7
8
|
server: StringConstructor;
|
|
@@ -86,3 +87,36 @@ export declare const YuvaChat: import("vue").DefineComponent<import("vue").Extra
|
|
|
86
87
|
}>, {
|
|
87
88
|
open: boolean;
|
|
88
89
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
90
|
+
export declare const YuvaSubscribe: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
91
|
+
channel: StringConstructor;
|
|
92
|
+
server: StringConstructor;
|
|
93
|
+
locale: StringConstructor;
|
|
94
|
+
dir: PropType<"ltr" | "rtl">;
|
|
95
|
+
identityToken: PropType<string | IdentityTokenSource | null>;
|
|
96
|
+
lists: PropType<string[]>;
|
|
97
|
+
layout: PropType<"stacked" | "inline">;
|
|
98
|
+
name: PropType<"off" | "optional" | "required">;
|
|
99
|
+
buttonText: StringConstructor;
|
|
100
|
+
consent: StringConstructor;
|
|
101
|
+
privacyUrl: StringConstructor;
|
|
102
|
+
}>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
103
|
+
[key: string]: any;
|
|
104
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
105
|
+
subscribe: (_: SubscribeDetail) => true;
|
|
106
|
+
error: (_: SubscribeErrorDetail) => true;
|
|
107
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
108
|
+
channel: StringConstructor;
|
|
109
|
+
server: StringConstructor;
|
|
110
|
+
locale: StringConstructor;
|
|
111
|
+
dir: PropType<"ltr" | "rtl">;
|
|
112
|
+
identityToken: PropType<string | IdentityTokenSource | null>;
|
|
113
|
+
lists: PropType<string[]>;
|
|
114
|
+
layout: PropType<"stacked" | "inline">;
|
|
115
|
+
name: PropType<"off" | "optional" | "required">;
|
|
116
|
+
buttonText: StringConstructor;
|
|
117
|
+
consent: StringConstructor;
|
|
118
|
+
privacyUrl: StringConstructor;
|
|
119
|
+
}>> & Readonly<{
|
|
120
|
+
onError?: ((_: SubscribeErrorDetail) => any) | undefined;
|
|
121
|
+
onSubscribe?: ((_: SubscribeDetail) => any) | undefined;
|
|
122
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
package/dist/types/react.d.ts
CHANGED
|
@@ -2,7 +2,9 @@ import { type CSSProperties, type ReactElement, type ReactNode } from "react";
|
|
|
2
2
|
import type { ClientConversation, ClientMessage } from "./client/api.js";
|
|
3
3
|
import type { IdentityTokenSource, MessageInput, YuvaClient } from "./client/client.js";
|
|
4
4
|
import type { DiscussionDetailEvent, DiscussionPostDetail, PageFeedbackDetail, PageRatingDetail } from "./docs.js";
|
|
5
|
+
import type { SubscribeDetail, SubscribeErrorDetail } from "./subscribe.js";
|
|
5
6
|
import type { ReaderProfile } from "./client/api.js";
|
|
7
|
+
import type { AnalyticsMethods, AnalyticsOptions } from "./analytics.js";
|
|
6
8
|
export interface YuvaProviderProps {
|
|
7
9
|
client: YuvaClient;
|
|
8
10
|
connect?: boolean;
|
|
@@ -49,5 +51,21 @@ export interface YuvaDiscussionsProps extends YuvaDocsProps {
|
|
|
49
51
|
onPost?: (detail: DiscussionPostDetail) => void;
|
|
50
52
|
onReader?: (detail: ReaderProfile | null) => void;
|
|
51
53
|
}
|
|
54
|
+
export interface YuvaSubscribeProps extends Omit<YuvaDocsProps, "page" | "pageTitle"> {
|
|
55
|
+
lists?: string[];
|
|
56
|
+
layout?: "stacked" | "inline";
|
|
57
|
+
name?: "off" | "optional" | "required";
|
|
58
|
+
buttonText?: string;
|
|
59
|
+
consent?: string;
|
|
60
|
+
privacyUrl?: string;
|
|
61
|
+
onSubscribe?: (detail: SubscribeDetail) => void;
|
|
62
|
+
onError?: (detail: SubscribeErrorDetail) => void;
|
|
63
|
+
}
|
|
52
64
|
export declare function YuvaPageFeedback({ onRating, onFeedback, ...props }: YuvaPageFeedbackProps): ReactElement;
|
|
53
65
|
export declare function YuvaDiscussions({ onDiscussion, onPost, onReader, ...props }: YuvaDiscussionsProps): ReactElement;
|
|
66
|
+
export declare function YuvaSubscribe({ onSubscribe, onError, ...props }: YuvaSubscribeProps): ReactElement;
|
|
67
|
+
export interface YuvaAnalyticsProps extends Omit<AnalyticsOptions, "key"> {
|
|
68
|
+
publicKey: string;
|
|
69
|
+
}
|
|
70
|
+
export declare function YuvaAnalytics({ server, publicKey: key, hash, consent, manual, outbound, files, chat, }: YuvaAnalyticsProps): null;
|
|
71
|
+
export declare function useYuvaAnalytics(): AnalyticsMethods;
|