jk-vue-comps 0.1.1 → 0.1.3

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.
@@ -1,34 +0,0 @@
1
- var i = Object.defineProperty;
2
- var l = (c, a, o) => a in c ? i(c, a, { enumerable: !0, configurable: !0, writable: !0, value: o }) : c[a] = o;
3
- var s = (c, a, o) => (l(c, typeof a != "symbol" ? a + "" : a, o), o);
4
- import * as n from "vue-types";
5
- const { createTypes: u, toValidableType: r } = n, t = void 0, y = {
6
- func: t,
7
- bool: t,
8
- string: t,
9
- number: t,
10
- object: t,
11
- integer: t
12
- };
13
- class e extends u(y) {
14
- static get style() {
15
- return r("style", {
16
- type: [String, Object],
17
- default: t
18
- });
19
- }
20
- static get vueNode() {
21
- return r("vueNode", { default: t });
22
- }
23
- }
24
- s(e, "vueTypes", n), s(e, "anyType", n.any), s(e, "stringType", n.string), s(e, "boolType", n.bool), s(e, "numberType", n.number), s(e, "funcType", n.func);
25
- const b = e, p = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
26
- __proto__: null,
27
- default: e,
28
- propTypes: b
29
- }, Symbol.toStringTag, { value: "Module" }));
30
- export {
31
- e as V,
32
- p as a,
33
- b as p
34
- };
@@ -1,14 +0,0 @@
1
- function r(t, l) {
2
- const e = t;
3
- return e.install = (o) => {
4
- o.component(e.name || e.displayName, t), l && (o.config.globalProperties[l] = t);
5
- }, t;
6
- }
7
- const a = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8
- __proto__: null,
9
- withInstall: r
10
- }, Symbol.toStringTag, { value: "Module" }));
11
- export {
12
- a,
13
- r as w
14
- };
@@ -1,95 +0,0 @@
1
- import { type SlotsType } from 'vue';
2
- /** 跳转谷歌身份检查 */
3
- export declare function toGoogleAuth(clientId: string, redirectUri: string): void;
4
- /** 谷歌身份检查 */
5
- export declare const GoogleAuth: {
6
- new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
7
- clientId: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/types").ValidatorFunction<string>> & {
8
- default: string;
9
- };
10
- redirectUri: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/types").ValidatorFunction<string>> & {
11
- default: string;
12
- };
13
- }>> & {
14
- onCallback?: ((_data: {
15
- code: string;
16
- }) => any) | undefined;
17
- onRejectCallback?: ((_data: any) => any) | undefined;
18
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
- callback: (_data: {
20
- code: string;
21
- }) => true;
22
- rejectCallback: (_data: any) => true;
23
- }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
24
- clientId: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/types").ValidatorFunction<string>> & {
25
- default: string;
26
- };
27
- redirectUri: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/types").ValidatorFunction<string>> & {
28
- default: string;
29
- };
30
- }>> & {
31
- onCallback?: ((_data: {
32
- code: string;
33
- }) => any) | undefined;
34
- onRejectCallback?: ((_data: any) => any) | undefined;
35
- }, {
36
- clientId: string;
37
- redirectUri: string;
38
- }, true, {}, SlotsType<{
39
- default: {
40
- startCheck: () => void;
41
- };
42
- }>, {
43
- P: {};
44
- B: {};
45
- D: {};
46
- C: {};
47
- M: {};
48
- Defaults: {};
49
- }, Readonly<import("vue").ExtractPropTypes<{
50
- clientId: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/types").ValidatorFunction<string>> & {
51
- default: string;
52
- };
53
- redirectUri: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/types").ValidatorFunction<string>> & {
54
- default: string;
55
- };
56
- }>> & {
57
- onCallback?: ((_data: {
58
- code: string;
59
- }) => any) | undefined;
60
- onRejectCallback?: ((_data: any) => any) | undefined;
61
- }, () => JSX.Element, {}, {}, {}, {
62
- clientId: string;
63
- redirectUri: string;
64
- }>;
65
- __isFragment?: undefined;
66
- __isTeleport?: undefined;
67
- __isSuspense?: undefined;
68
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
69
- clientId: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/types").ValidatorFunction<string>> & {
70
- default: string;
71
- };
72
- redirectUri: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/types").ValidatorFunction<string>> & {
73
- default: string;
74
- };
75
- }>> & {
76
- onCallback?: ((_data: {
77
- code: string;
78
- }) => any) | undefined;
79
- onRejectCallback?: ((_data: any) => any) | undefined;
80
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
81
- callback: (_data: {
82
- code: string;
83
- }) => true;
84
- rejectCallback: (_data: any) => true;
85
- }, string, {
86
- clientId: string;
87
- redirectUri: string;
88
- }, {}, string, SlotsType<{
89
- default: {
90
- startCheck: () => void;
91
- };
92
- }>> & (import("vue").VNodeProps & (import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & ({
93
- readonly toGoogleAuth: typeof toGoogleAuth;
94
- } & import("vue").Plugin)));
95
- export default GoogleAuth;
@@ -1,70 +0,0 @@
1
- import { defineComponent as g, ref as p, onMounted as h, createVNode as C } from "vue";
2
- import { p as f } from "../chunks/vuePropTypes-zy5Iwonj.js";
3
- import { C as w, A as _ } from "../chunks/is-bvgc5qxU.js";
4
- import { w as b } from "../chunks/withInstall-b5j1glXj.js";
5
- function v(o, r) {
6
- if (!o || !r)
7
- return;
8
- const c = encodeURIComponent(r), a = encodeURIComponent("email profile"), i = encodeURIComponent(o), n = `https://accounts.google.com/o/oauth2/v2/auth?response_type=code&redirect_uri=${c}&scope=${a}&client_id=${i}`;
9
- w() ? window.open(n, "_self") : window.location.href = n;
10
- }
11
- const I = /* @__PURE__ */ g({
12
- name: "GoogleAuth",
13
- toGoogleAuth: v,
14
- props: {
15
- clientId: f.string,
16
- redirectUri: f.string
17
- },
18
- emits: {
19
- callback: (o) => !0,
20
- rejectCallback: (o) => !0
21
- },
22
- slots: Object,
23
- setup(o, {
24
- emit: r,
25
- slots: c,
26
- expose: a
27
- }) {
28
- const i = p(null), n = p(!0), s = () => {
29
- var e, t, l;
30
- return (l = (t = (e = window == null ? void 0 : window.google) == null ? void 0 : e.accounts) == null ? void 0 : t.oauth2) == null ? void 0 : l.initCodeClient;
31
- };
32
- function d() {
33
- var e, t, l;
34
- (l = (t = (e = s()) == null ? void 0 : e({
35
- client_id: o.clientId,
36
- scope: "email profile",
37
- redirect_uri: o.redirectUri,
38
- ux_mode: _() ? "redirect" : "popup",
39
- callback(u) {
40
- u.error ? r("rejectCallback", u) : r("callback", u);
41
- }
42
- })) == null ? void 0 : t.requestCode) == null || l.call(t);
43
- }
44
- function m() {
45
- if (!(window != null && window.document) || s() || !i.value) {
46
- s() && (n.value = !1);
47
- return;
48
- }
49
- const e = document.createElement("script");
50
- e.async = !0, e.defer = !0, e.src = "https://accounts.google.com/gsi/client", i.value.appendChild(e), e.onload = () => {
51
- s() && (n.value = !1);
52
- };
53
- }
54
- return h(m), a({
55
- startCheck: d
56
- }), () => {
57
- var e;
58
- return C("div", {
59
- ref: i
60
- }, [!n.value && ((e = c.default) == null ? void 0 : e.call(c, {
61
- startCheck: d
62
- }))]);
63
- };
64
- }
65
- }), R = b(I);
66
- export {
67
- R as GoogleAuth,
68
- R as default,
69
- v as toGoogleAuth
70
- };
@@ -1,96 +0,0 @@
1
- import { type SlotsType } from 'vue';
2
- /** tg用户信息 */
3
- export type TgUserData = {
4
- auth_date: number;
5
- first_name: string;
6
- hash: string;
7
- id: number;
8
- last_name: string;
9
- photo_url: string;
10
- username: string;
11
- };
12
- /** 跳转Telegram身份检查 */
13
- export declare function toTelegramAuth(botId: number, toPath: string): void;
14
- /** 获取路由中的Telegram身份检查回调参数 */
15
- export declare function getTelegramAuthUrlParams(): TgUserData | null;
16
- /** Telegram身份检查 */
17
- export declare const TelegramAuth: {
18
- new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
19
- botId: import("vue-types").VueTypeValidableDef<number, import("node_modules/vue-types/dist/types").ValidatorFunction<number>> & {
20
- default: number;
21
- };
22
- toPath: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/types").ValidatorFunction<string>> & {
23
- default: string;
24
- };
25
- }>> & {
26
- onCallback?: ((_user: TgUserData) => any) | undefined;
27
- onRejectCallback?: (() => any) | undefined;
28
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
29
- callback: (_user: TgUserData) => true;
30
- rejectCallback: () => true;
31
- }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
32
- botId: import("vue-types").VueTypeValidableDef<number, import("node_modules/vue-types/dist/types").ValidatorFunction<number>> & {
33
- default: number;
34
- };
35
- toPath: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/types").ValidatorFunction<string>> & {
36
- default: string;
37
- };
38
- }>> & {
39
- onCallback?: ((_user: TgUserData) => any) | undefined;
40
- onRejectCallback?: (() => any) | undefined;
41
- }, {
42
- botId: number;
43
- toPath: string;
44
- }, true, {}, SlotsType<{
45
- default: {
46
- startCheck: () => void;
47
- };
48
- }>, {
49
- P: {};
50
- B: {};
51
- D: {};
52
- C: {};
53
- M: {};
54
- Defaults: {};
55
- }, Readonly<import("vue").ExtractPropTypes<{
56
- botId: import("vue-types").VueTypeValidableDef<number, import("node_modules/vue-types/dist/types").ValidatorFunction<number>> & {
57
- default: number;
58
- };
59
- toPath: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/types").ValidatorFunction<string>> & {
60
- default: string;
61
- };
62
- }>> & {
63
- onCallback?: ((_user: TgUserData) => any) | undefined;
64
- onRejectCallback?: (() => any) | undefined;
65
- }, () => JSX.Element, {}, {}, {}, {
66
- botId: number;
67
- toPath: string;
68
- }>;
69
- __isFragment?: undefined;
70
- __isTeleport?: undefined;
71
- __isSuspense?: undefined;
72
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
73
- botId: import("vue-types").VueTypeValidableDef<number, import("node_modules/vue-types/dist/types").ValidatorFunction<number>> & {
74
- default: number;
75
- };
76
- toPath: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/types").ValidatorFunction<string>> & {
77
- default: string;
78
- };
79
- }>> & {
80
- onCallback?: ((_user: TgUserData) => any) | undefined;
81
- onRejectCallback?: (() => any) | undefined;
82
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
83
- callback: (_user: TgUserData) => true;
84
- rejectCallback: () => true;
85
- }, string, {
86
- botId: number;
87
- toPath: string;
88
- }, {}, string, SlotsType<{
89
- default: {
90
- startCheck: () => void;
91
- };
92
- }>> & (import("vue").VNodeProps & (import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & ({
93
- readonly toTelegramAuth: typeof toTelegramAuth;
94
- readonly getTelegramAuthUrlParams: typeof getTelegramAuthUrlParams;
95
- } & import("vue").Plugin)));
96
- export default TelegramAuth;
@@ -1,91 +0,0 @@
1
- import { defineComponent as h, ref as g, onMounted as w, createVNode as b } from "vue";
2
- import { p as m } from "../chunks/vuePropTypes-zy5Iwonj.js";
3
- import { a as A } from "../chunks/index-CA5i_Cgq.js";
4
- import { w as C } from "../chunks/withInstall-b5j1glXj.js";
5
- import { C as _, A as p } from "../chunks/is-bvgc5qxU.js";
6
- function d(r, o) {
7
- if (!r || !o)
8
- return;
9
- const t = encodeURIComponent(A()), n = encodeURIComponent(o), a = `https://oauth.telegram.org/auth?bot_id=${r}&origin=${t}&embed=1&request_access=write&return_to=${t}${n}`;
10
- _() ? window.open(a, "_self") : window.location.href = a;
11
- }
12
- function T() {
13
- const r = /[#\?\&]tgAuthResult=([A-Za-z0-9\-_=]*)$/;
14
- try {
15
- const o = window.location.hash.toString(), t = o.match(r);
16
- if (!t)
17
- return null;
18
- window.location.hash = o.replace(r, "");
19
- let n = t[1].replace(/-/g, "+").replace(/_/g, "/");
20
- const a = n.length % 4;
21
- return a > 1 && (n += new Array(5 - a).join("=")), n ? JSON.parse(window.atob(n)) : null;
22
- } catch {
23
- return null;
24
- }
25
- }
26
- const j = /* @__PURE__ */ h({
27
- name: "TelegramAuth",
28
- toTelegramAuth: d,
29
- getTelegramAuthUrlParams: T,
30
- props: {
31
- botId: m.number,
32
- toPath: m.string
33
- },
34
- emits: {
35
- callback: (r) => !0,
36
- rejectCallback: () => !0
37
- },
38
- slots: Object,
39
- setup(r, {
40
- emit: o,
41
- slots: t,
42
- expose: n
43
- }) {
44
- const a = g(null), i = () => {
45
- var e, c;
46
- return (c = (e = window == null ? void 0 : window.Telegram) == null ? void 0 : e.Login) == null ? void 0 : c.auth;
47
- };
48
- function l() {
49
- const {
50
- botId: e,
51
- toPath: c
52
- } = r;
53
- if (!e)
54
- return;
55
- const s = i();
56
- if (p() || !s) {
57
- d(e, c);
58
- return;
59
- }
60
- s == null || s({
61
- bot_id: e,
62
- request_access: !0
63
- }, (u) => {
64
- u ? o("callback", u) : o("rejectCallback");
65
- });
66
- }
67
- function f() {
68
- var c;
69
- if (!(window != null && window.document) || i() || p())
70
- return;
71
- const e = document.createElement("script");
72
- e.async = !0, e.defer = !0, e.src = "https://telegram.org/js/telegram-widget.js", (c = a.value) == null || c.appendChild(e);
73
- }
74
- return w(f), n({
75
- startCheck: l
76
- }), () => {
77
- var e;
78
- return b("div", {
79
- ref: a
80
- }, [(e = t.default) == null ? void 0 : e.call(t, {
81
- startCheck: l
82
- })]);
83
- };
84
- }
85
- }), R = C(j);
86
- export {
87
- R as TelegramAuth,
88
- R as default,
89
- T as getTelegramAuthUrlParams,
90
- d as toTelegramAuth
91
- };
@@ -1,2 +0,0 @@
1
- export * from './GoogleAuth';
2
- export * from './TelegramAuth';
@@ -1,9 +0,0 @@
1
- import { GoogleAuth as t, toGoogleAuth as r } from "./GoogleAuth.js";
2
- import { TelegramAuth as l, getTelegramAuthUrlParams as m, toTelegramAuth as a } from "./TelegramAuth.js";
3
- export {
4
- t as GoogleAuth,
5
- l as TelegramAuth,
6
- m as getTelegramAuthUrlParams,
7
- r as toGoogleAuth,
8
- a as toTelegramAuth
9
- };
package/dist/index.d.ts DELETED
@@ -1,227 +0,0 @@
1
- import * as comps from './components';
2
- import * as utils from './utils';
3
- export * from './components';
4
- export * from './utils';
5
- declare const JKVUEComps: {
6
- Utils: {
7
- is: typeof import("./utils/is");
8
- propTypes: typeof import("./utils/vuePropTypes");
9
- timeZone: typeof import("./utils/timeZone");
10
- withInstall: typeof import("./utils/withInstall");
11
- };
12
- Comps: typeof comps;
13
- evalPro(str: string): any;
14
- filterInputNum(e: string | number, type?: "int" | "float", maxDecimal?: number): string;
15
- generateHandleInputFn<T extends object, K extends keyof T>(obj: T, key: K, fn?: (() => void) | undefined, type?: "int" | "float", maxDecimal?: number): (e: ChangeEvent) => void;
16
- renderHtmlStr(html: string): string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
17
- [key: string]: any;
18
- }>;
19
- getWebsiteUrl(): string;
20
- getRouterParams(): Recordable<any> | undefined;
21
- is(val: unknown, type: string): boolean;
22
- isDef<T_1 = unknown>(val?: T_1 | undefined): val is T_1;
23
- isUnDef<T_2 = unknown>(val?: T_2 | undefined): val is T_2;
24
- isObject(val: any): val is Record<any, any>;
25
- isDate(val: unknown): val is Date;
26
- isNull(val: unknown): val is null;
27
- isNullAndUnDef(val: unknown): val is null | undefined;
28
- isNullOrUnDef(val: unknown): val is null | undefined;
29
- isNumber(val: unknown): val is number;
30
- isString(val: unknown): val is string;
31
- isFunction(val: unknown): val is Function;
32
- isBoolean(val: unknown): val is boolean;
33
- isRegExp(val: unknown): val is RegExp;
34
- isArray(val: any): val is any[];
35
- isEmpty<T_3 = unknown>(val: T_3): val is T_3;
36
- isPromise<T_4 = any>(val: unknown): val is Promise<T_4>;
37
- isPromiseLink<T_5>(it: T_5 | PromiseLike<T_5>): it is PromiseLike<T_5>;
38
- isWindow(val: any): val is Window;
39
- isElement(val: unknown): val is Element;
40
- isMap(val: unknown): val is Map<any, any>;
41
- isUrl(path: string): boolean;
42
- isValidPhoneNumber(phoneNumber: string): boolean;
43
- isInMobileBrowser(): false | RegExpMatchArray | null;
44
- isZhLang(lang: string): boolean;
45
- isEdgeBrowser(): boolean;
46
- isServer: boolean;
47
- isClient: boolean;
48
- isIp: (ip: string) => boolean;
49
- isEmail: (email: string) => boolean;
50
- isHtmlStr: (str: string) => boolean;
51
- propTypes: typeof import("./utils/vuePropTypes").default;
52
- timeZoneOptions: utils.TimeZoneItem[];
53
- withInstall<T_6>(component: T_6, alias?: string | undefined): T_6 & import("vue").Plugin;
54
- toGoogleAuth(clientId: string, redirectUri: string): void;
55
- GoogleAuth: {
56
- new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
57
- clientId: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/types").ValidatorFunction<string>> & {
58
- default: string;
59
- };
60
- redirectUri: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/types").ValidatorFunction<string>> & {
61
- default: string;
62
- };
63
- }>> & {
64
- onCallback?: ((_data: {
65
- code: string;
66
- }) => any) | undefined;
67
- onRejectCallback?: ((_data: any) => any) | undefined;
68
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
69
- callback: (_data: {
70
- code: string;
71
- }) => true;
72
- rejectCallback: (_data: any) => true;
73
- }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
74
- clientId: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/types").ValidatorFunction<string>> & {
75
- default: string;
76
- };
77
- redirectUri: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/types").ValidatorFunction<string>> & {
78
- default: string;
79
- };
80
- }>> & {
81
- onCallback?: ((_data: {
82
- code: string;
83
- }) => any) | undefined;
84
- onRejectCallback?: ((_data: any) => any) | undefined;
85
- }, {
86
- clientId: string;
87
- redirectUri: string;
88
- }, true, {}, import("vue").SlotsType<{
89
- default: {
90
- startCheck: () => void;
91
- };
92
- }>, {
93
- P: {};
94
- B: {};
95
- D: {};
96
- C: {};
97
- M: {};
98
- Defaults: {};
99
- }, Readonly<import("vue").ExtractPropTypes<{
100
- clientId: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/types").ValidatorFunction<string>> & {
101
- default: string;
102
- };
103
- redirectUri: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/types").ValidatorFunction<string>> & {
104
- default: string;
105
- };
106
- }>> & {
107
- onCallback?: ((_data: {
108
- code: string;
109
- }) => any) | undefined;
110
- onRejectCallback?: ((_data: any) => any) | undefined;
111
- }, () => JSX.Element, {}, {}, {}, {
112
- clientId: string;
113
- redirectUri: string;
114
- }>;
115
- __isFragment?: undefined;
116
- __isTeleport?: undefined;
117
- __isSuspense?: undefined;
118
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
119
- clientId: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/types").ValidatorFunction<string>> & {
120
- default: string;
121
- };
122
- redirectUri: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/types").ValidatorFunction<string>> & {
123
- default: string;
124
- };
125
- }>> & {
126
- onCallback?: ((_data: {
127
- code: string;
128
- }) => any) | undefined;
129
- onRejectCallback?: ((_data: any) => any) | undefined;
130
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
131
- callback: (_data: {
132
- code: string;
133
- }) => true;
134
- rejectCallback: (_data: any) => true;
135
- }, string, {
136
- clientId: string;
137
- redirectUri: string;
138
- }, {}, string, import("vue").SlotsType<{
139
- default: {
140
- startCheck: () => void;
141
- };
142
- }>> & (import("vue").VNodeProps & (import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & ({
143
- readonly toGoogleAuth: typeof comps.toGoogleAuth;
144
- } & import("vue").Plugin)));
145
- toTelegramAuth(botId: number, toPath: string): void;
146
- getTelegramAuthUrlParams(): comps.TgUserData | null;
147
- TelegramAuth: {
148
- new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
149
- botId: import("vue-types").VueTypeValidableDef<number, import("node_modules/vue-types/dist/types").ValidatorFunction<number>> & {
150
- default: number;
151
- };
152
- toPath: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/types").ValidatorFunction<string>> & {
153
- default: string;
154
- };
155
- }>> & {
156
- onCallback?: ((_user: comps.TgUserData) => any) | undefined;
157
- onRejectCallback?: (() => any) | undefined;
158
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
159
- callback: (_user: comps.TgUserData) => true;
160
- rejectCallback: () => true;
161
- }, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
162
- botId: import("vue-types").VueTypeValidableDef<number, import("node_modules/vue-types/dist/types").ValidatorFunction<number>> & {
163
- default: number;
164
- };
165
- toPath: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/types").ValidatorFunction<string>> & {
166
- default: string;
167
- };
168
- }>> & {
169
- onCallback?: ((_user: comps.TgUserData) => any) | undefined;
170
- onRejectCallback?: (() => any) | undefined;
171
- }, {
172
- botId: number;
173
- toPath: string;
174
- }, true, {}, import("vue").SlotsType<{
175
- default: {
176
- startCheck: () => void;
177
- };
178
- }>, {
179
- P: {};
180
- B: {};
181
- D: {};
182
- C: {};
183
- M: {};
184
- Defaults: {};
185
- }, Readonly<import("vue").ExtractPropTypes<{
186
- botId: import("vue-types").VueTypeValidableDef<number, import("node_modules/vue-types/dist/types").ValidatorFunction<number>> & {
187
- default: number;
188
- };
189
- toPath: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/types").ValidatorFunction<string>> & {
190
- default: string;
191
- };
192
- }>> & {
193
- onCallback?: ((_user: comps.TgUserData) => any) | undefined;
194
- onRejectCallback?: (() => any) | undefined;
195
- }, () => JSX.Element, {}, {}, {}, {
196
- botId: number;
197
- toPath: string;
198
- }>;
199
- __isFragment?: undefined;
200
- __isTeleport?: undefined;
201
- __isSuspense?: undefined;
202
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
203
- botId: import("vue-types").VueTypeValidableDef<number, import("node_modules/vue-types/dist/types").ValidatorFunction<number>> & {
204
- default: number;
205
- };
206
- toPath: import("vue-types").VueTypeValidableDef<string, import("node_modules/vue-types/dist/types").ValidatorFunction<string>> & {
207
- default: string;
208
- };
209
- }>> & {
210
- onCallback?: ((_user: comps.TgUserData) => any) | undefined;
211
- onRejectCallback?: (() => any) | undefined;
212
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
213
- callback: (_user: comps.TgUserData) => true;
214
- rejectCallback: () => true;
215
- }, string, {
216
- botId: number;
217
- toPath: string;
218
- }, {}, string, import("vue").SlotsType<{
219
- default: {
220
- startCheck: () => void;
221
- };
222
- }>> & (import("vue").VNodeProps & (import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & ({
223
- readonly toTelegramAuth: typeof comps.toTelegramAuth;
224
- readonly getTelegramAuthUrlParams: typeof comps.getTelegramAuthUrlParams;
225
- } & import("vue").Plugin)));
226
- };
227
- export default JKVUEComps;