@pubinfo/module-captcha 2.1.1

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 (58) hide show
  1. package/LICENSE +21 -0
  2. package/dist/api/modules/auth/index.d.ts +1 -0
  3. package/dist/api/modules/auth/renzhengfuwu.d.ts +78 -0
  4. package/dist/api/request.d.ts +1 -0
  5. package/dist/components/VerifyInput/PubinfoVerifyInput.vue.d.ts +17 -0
  6. package/dist/components/VerifyInput/authService.d.ts +9 -0
  7. package/dist/components/VerifyInput/captchaUtils.d.ts +6 -0
  8. package/dist/components/VerifyPoints/PubinfoFixedPoint.vue.d.ts +11 -0
  9. package/dist/components/VerifyPoints/PubinfoPopPoint.vue.d.ts +17 -0
  10. package/dist/components/VerifyPoints/PubinfoTouchPoint.vue.d.ts +30 -0
  11. package/dist/components/VerifyPoints/common/checkEvent.d.ts +5 -0
  12. package/dist/components/VerifyPoints/common/initFuns.d.ts +2 -0
  13. package/dist/components/VerifyPoints/common/touchService.d.ts +10 -0
  14. package/dist/components/VerifyPoints/common/variable.d.ts +39 -0
  15. package/dist/components/VerifyPoints/pubinfoPopPoint.d.ts +1 -0
  16. package/dist/components/VerifySlide/PubinfoFixedSlide.vue.d.ts +14 -0
  17. package/dist/components/VerifySlide/PubinfoPopSlide.vue.d.ts +17 -0
  18. package/dist/components/VerifySlide/PubinfoTouchSlide.vue.d.ts +35 -0
  19. package/dist/components/VerifySlide/common/init.d.ts +2 -0
  20. package/dist/components/VerifySlide/common/mouse.d.ts +9 -0
  21. package/dist/components/VerifySlide/common/touchService.d.ts +10 -0
  22. package/dist/components/VerifySlide/common/variable.d.ts +59 -0
  23. package/dist/components/VerifySlide/pubinfoPopSlide.d.ts +1 -0
  24. package/dist/components/aes.d.ts +1 -0
  25. package/dist/context.d.ts +2 -0
  26. package/dist/index.css +1 -0
  27. package/dist/index.d.ts +12 -0
  28. package/dist/index.js +6165 -0
  29. package/dist/interface.d.ts +15 -0
  30. package/package.json +44 -0
  31. package/src/api/modules/auth/index.ts +1 -0
  32. package/src/api/modules/auth/renzhengfuwu.ts +223 -0
  33. package/src/api/modules/auth/typings.d.ts +140 -0
  34. package/src/api/request.ts +4 -0
  35. package/src/components/VerifyInput/PubinfoVerifyInput.vue +91 -0
  36. package/src/components/VerifyInput/authService.ts +22 -0
  37. package/src/components/VerifyInput/captchaUtils.ts +15 -0
  38. package/src/components/VerifyPoints/PubinfoFixedPoint.vue +224 -0
  39. package/src/components/VerifyPoints/PubinfoPopPoint.vue +55 -0
  40. package/src/components/VerifyPoints/PubinfoTouchPoint.vue +73 -0
  41. package/src/components/VerifyPoints/common/checkEvent.ts +72 -0
  42. package/src/components/VerifyPoints/common/initFuns.ts +44 -0
  43. package/src/components/VerifyPoints/common/touchService.ts +53 -0
  44. package/src/components/VerifyPoints/common/variable.ts +76 -0
  45. package/src/components/VerifyPoints/pubinfoPopPoint.ts +34 -0
  46. package/src/components/VerifySlide/PubinfoFixedSlide.vue +285 -0
  47. package/src/components/VerifySlide/PubinfoPopSlide.vue +53 -0
  48. package/src/components/VerifySlide/PubinfoTouchSlide.vue +51 -0
  49. package/src/components/VerifySlide/common/init.ts +41 -0
  50. package/src/components/VerifySlide/common/mouse.ts +124 -0
  51. package/src/components/VerifySlide/common/touchService.ts +52 -0
  52. package/src/components/VerifySlide/common/variable.ts +90 -0
  53. package/src/components/VerifySlide/pubinfoPopSlide.ts +34 -0
  54. package/src/components/aes.ts +13 -0
  55. package/src/context.ts +4 -0
  56. package/src/images/click.png +0 -0
  57. package/src/index.ts +37 -0
  58. package/src/interface.ts +19 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 PUBINFO 腾龙框架
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ export * from './renzhengfuwu';
@@ -0,0 +1,78 @@
1
+ import { auth as request } from '../../request';
2
+ /**
3
+ * @description 验证码-前端校验 需要校验的验证码类型:blockPuzzle、clickWord
4
+ * @url /auth/captcha/check
5
+ * @method POST
6
+ * @author @pubinfo/openapi
7
+ */
8
+ export declare function postAuthCaptchaCheck<R = API.ResponseDataValidCodeVo, T = API.ResponseDataValidCodeVo>(body: API.CaptchaCheckDto, options?: Parameters<typeof request.Post<R, T>>[2]): import('alova').Method<import('alova').RespondedAlovaGenerics<import('pubinfo').AG, R, T>>;
9
+ /**
10
+ * @description 验证码-获取验证码图片
11
+ * @url /auth/captcha/get
12
+ * @method POST
13
+ * @author @pubinfo/openapi
14
+ */
15
+ export declare function postAuthCaptchaGet<R = API.ResponseDataValidCodeVo, T = API.ResponseDataValidCodeVo>(body: API.CaptchaGetDto, options?: Parameters<typeof request.Post<R, T>>[2]): import('alova').Method<import('alova').RespondedAlovaGenerics<import('pubinfo').AG, R, T>>;
16
+ /**
17
+ * @description 切换登录组织
18
+ * @url /auth/changeLoginOrg
19
+ * @method POST
20
+ * @author @pubinfo/openapi
21
+ */
22
+ export declare function postAuthChangeLoginOrg<R = API.ResponseDataLoginTokenVo, T = API.ResponseDataLoginTokenVo>(params: API.postAuthChangeLoginOrgParams, options?: Parameters<typeof request.Post<R, T>>[2]): import('alova').Method<import('alova').RespondedAlovaGenerics<import('pubinfo').AG, R, T>>;
23
+ /**
24
+ * @description 判断缓存的token是否有效
25
+ * @url /auth/checkCacheToken
26
+ * @method GET
27
+ * @author @pubinfo/openapi
28
+ */
29
+ export declare function getAuthCheckCacheToken<R = API.ResponseDataBoolean, T = API.ResponseDataBoolean>(params: API.getAuthCheckCacheTokenParams, options?: Parameters<typeof request.Get<R, T>>[1]): import('alova').Method<import('alova').RespondedAlovaGenerics<import('pubinfo').AG, R, T>>;
30
+ /**
31
+ * @description 密码登录
32
+ * @url /auth/login
33
+ * @method POST
34
+ * @author @pubinfo/openapi
35
+ */
36
+ export declare function postAuthLogin<R = API.ResponseDataLoginTokenVo, T = API.ResponseDataLoginTokenVo>(body: API.LoginByPwdDto, options?: Parameters<typeof request.Post<R, T>>[2]): import('alova').Method<import('alova').RespondedAlovaGenerics<import('pubinfo').AG, R, T>>;
37
+ /**
38
+ * @description 获取登录公钥
39
+ * @url /auth/login/key
40
+ * @method GET
41
+ * @author @pubinfo/openapi
42
+ */
43
+ export declare function getAuthLoginKey<R = API.ResponseDataString, T = API.ResponseDataString>(options?: Parameters<typeof request.Get<R, T>>[1]): import('alova').Method<import('alova').RespondedAlovaGenerics<import('pubinfo').AG, R, T>>;
44
+ /**
45
+ * @description 获取图片验证码
46
+ * @url /auth/login/validCode
47
+ * @method GET
48
+ * @author @pubinfo/openapi
49
+ */
50
+ export declare function getAuthLoginValidCode<R = API.ResponseDataValidCodeVo, T = API.ResponseDataValidCodeVo>(params: API.getAuthLoginValidCodeParams, options?: Parameters<typeof request.Get<R, T>>[1]): import('alova').Method<import('alova').RespondedAlovaGenerics<import('pubinfo').AG, R, T>>;
51
+ /**
52
+ * @description 验证码-密码登录
53
+ * @url /auth/loginNew
54
+ * @method POST
55
+ * @author @pubinfo/openapi
56
+ */
57
+ export declare function postAuthLoginNew<R = API.ResponseDataLoginTokenVo, T = API.ResponseDataLoginTokenVo>(body: API.LoginByPwdCaptchaDto, options?: Parameters<typeof request.Post<R, T>>[2]): import('alova').Method<import('alova').RespondedAlovaGenerics<import('pubinfo').AG, R, T>>;
58
+ /**
59
+ * @description 登出
60
+ * @url /auth/loginOut
61
+ * @method POST
62
+ * @author @pubinfo/openapi
63
+ */
64
+ export declare function postAuthLoginOut<R = API.ResponseDataVoid, T = API.ResponseDataVoid>(options?: Parameters<typeof request.Post<R, T>>[2]): import('alova').Method<import('alova').RespondedAlovaGenerics<import('pubinfo').AG, R, T>>;
65
+ /**
66
+ * @description 单点免密登录接口
67
+ * @url /auth/ssoLogin
68
+ * @method POST
69
+ * @author @pubinfo/openapi
70
+ */
71
+ export declare function postAuthSsoLogin<R = API.ResponseDataLoginTokenVo, T = API.ResponseDataLoginTokenVo>(body: API.SsoLoginDto, options?: Parameters<typeof request.Post<R, T>>[2]): import('alova').Method<import('alova').RespondedAlovaGenerics<import('pubinfo').AG, R, T>>;
72
+ /**
73
+ * @description 刷新访问令牌
74
+ * @url /auth/token/refresh
75
+ * @method POST
76
+ * @author @pubinfo/openapi
77
+ */
78
+ export declare function postAuthTokenRefresh<R = API.ResponseDataLoginTokenVo, T = API.ResponseDataLoginTokenVo>(params: API.postAuthTokenRefreshParams, options?: Parameters<typeof request.Post<R, T>>[2]): import('alova').Method<import('alova').RespondedAlovaGenerics<import('pubinfo').AG, R, T>>;
@@ -0,0 +1 @@
1
+ export declare const auth: import('pubinfo').RequestInstance;
@@ -0,0 +1,17 @@
1
+ type __VLS_Props = {
2
+ size?: 'large' | 'middle' | 'small';
3
+ modelValue: string;
4
+ };
5
+ declare function send(): Promise<void>;
6
+ declare const _default: import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').DefineComponent<__VLS_Props, {
7
+ refresh: typeof send;
8
+ }, {}, {}, {}, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentOptionsMixin, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentOptionsMixin, {
9
+ "update:modelValue": (...args: any[]) => void;
10
+ getCaptchaHash: (...args: any[]) => void;
11
+ }, string, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
12
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
13
+ onGetCaptchaHash?: ((...args: any[]) => any) | undefined;
14
+ }>, {
15
+ size: "large" | "middle" | "small";
16
+ }, {}, {}, {}, string, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentProvideOptions, false, {}, any>;
17
+ export default _default;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 获取验证码图片
3
+ * @param size 验证码尺寸
4
+ * @returns 包含验证码图片URL和hash的对象
5
+ */
6
+ export declare function fetchCaptcha(size?: string): Promise<{
7
+ imgUrl: string;
8
+ hash: string | undefined;
9
+ }>;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 根据尺寸计算高度
3
+ * @param size 尺寸大小
4
+ * @returns 对应的高度值
5
+ */
6
+ export declare function getAddonAfterHeight(size: 'large' | 'middle' | 'small'): 36 | 20 | 28;
@@ -0,0 +1,11 @@
1
+ declare const _default: import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').DefineComponent<{}, {
2
+ refresh: () => void;
3
+ }, {}, {}, {}, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentOptionsMixin, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentOptionsMixin, {
4
+ success: (...args: any[]) => void;
5
+ }, string, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').PublicProps, Readonly<{}> & Readonly<{
6
+ onSuccess?: ((...args: any[]) => any) | undefined;
7
+ }>, {}, {}, {}, {}, string, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentProvideOptions, true, {
8
+ pointRef: HTMLDivElement;
9
+ canvas: HTMLImageElement;
10
+ }, HTMLDivElement>;
11
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { RESULT } from './common/checkEvent.ts';
2
+ export interface PubinfoPopPointProps {
3
+ onSuccess?: (data: RESULT) => void;
4
+ }
5
+ type __VLS_Props = PubinfoPopPointProps;
6
+ declare function onOpen(): void;
7
+ type __VLS_PublicProps = {
8
+ 'open'?: boolean;
9
+ } & __VLS_Props;
10
+ declare const _default: import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').DefineComponent<__VLS_PublicProps, {
11
+ open: typeof onOpen;
12
+ }, {}, {}, {}, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentOptionsMixin, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentOptionsMixin, {
13
+ "update:open": (value: boolean) => any;
14
+ }, string, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
15
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
17
+ export default _default;
@@ -0,0 +1,30 @@
1
+ declare const _default: import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').DefineComponent<{}, {
2
+ refresh: () => void;
3
+ }, {}, {}, {}, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentOptionsMixin, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentOptionsMixin, {
4
+ success: (...args: any[]) => void;
5
+ }, string, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').PublicProps, Readonly<{}> & Readonly<{
6
+ onSuccess?: ((...args: any[]) => any) | undefined;
7
+ }>, {}, {}, {}, {}, string, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentProvideOptions, true, {
8
+ pubinfoMMRef: import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
9
+ onSuccess?: ((...args: any[]) => any) | undefined;
10
+ }>, {
11
+ refresh: () => void;
12
+ }, {}, {}, {}, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentOptionsMixin, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentOptionsMixin, {
13
+ success: (...args: any[]) => void;
14
+ }, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').PublicProps, {}, true, {}, {}, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').GlobalComponents, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').GlobalDirectives, string, {
15
+ pointRef: HTMLDivElement;
16
+ canvas: HTMLImageElement;
17
+ }, HTMLDivElement, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentProvideOptions, {
18
+ P: {};
19
+ B: {};
20
+ D: {};
21
+ C: {};
22
+ M: {};
23
+ Defaults: {};
24
+ }, Readonly<{}> & Readonly<{
25
+ onSuccess?: ((...args: any[]) => any) | undefined;
26
+ }>, {
27
+ refresh: () => void;
28
+ }, {}, {}, {}, {}> | null;
29
+ }, HTMLDivElement>;
30
+ export default _default;
@@ -0,0 +1,5 @@
1
+ export interface RESULT {
2
+ captchaVerification: string;
3
+ captchaType: string;
4
+ }
5
+ export declare function canvasClick(e: any, canvas: any, VA: any, callback: any): void;
@@ -0,0 +1,2 @@
1
+ export declare function init(VA: any): void;
2
+ export declare function refresh(VA: any): void;
@@ -0,0 +1,10 @@
1
+ export type EmitFunction = (event: 'success', data: any) => void;
2
+ export declare function useTouchService(): {
3
+ showButton: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<boolean, boolean>;
4
+ isSuccess: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<boolean, boolean>;
5
+ inArea: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<boolean, boolean>;
6
+ handleSubmit: (data: any, emit: EmitFunction) => void;
7
+ onMouseEnter: () => void;
8
+ onMouseLeave: () => void;
9
+ onButtonAreaMouseLeave: () => void;
10
+ };
@@ -0,0 +1,39 @@
1
+ export declare function variable(): {
2
+ secretKey: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<string, string>;
3
+ checkNum: number;
4
+ checkPosArr: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Reactive<any[]>;
5
+ num: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<number, number>;
6
+ pointBackImgBase: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<string, string>;
7
+ poinTextList: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<any[], any[]>;
8
+ backToken: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<string, string>;
9
+ setSize: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<{
10
+ imgHeight: string;
11
+ imgWidth: string;
12
+ barHeight: string;
13
+ }, {
14
+ imgHeight: string;
15
+ imgWidth: string;
16
+ barHeight: string;
17
+ } | {
18
+ imgHeight: string;
19
+ imgWidth: string;
20
+ barHeight: string;
21
+ }>;
22
+ realImgSize: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<{
23
+ width: number;
24
+ height: number;
25
+ }, {
26
+ width: number;
27
+ height: number;
28
+ } | {
29
+ width: number;
30
+ height: number;
31
+ }>;
32
+ tempPoints: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Reactive<any[]>;
33
+ text: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<string, string>;
34
+ barTextColor: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<string, string>;
35
+ barBackgroundColor: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<string, string>;
36
+ barAreaBorderColor: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<string, string>;
37
+ showRefresh: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<boolean, boolean>;
38
+ bindingClick: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<boolean, boolean>;
39
+ };
@@ -0,0 +1 @@
1
+ export declare function pubinfoPopPoint(): Promise<any>;
@@ -0,0 +1,14 @@
1
+ declare const _default: import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').DefineComponent<{}, {
2
+ refresh: () => void;
3
+ }, {}, {}, {}, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentOptionsMixin, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentOptionsMixin, {
4
+ success: (...args: any[]) => void;
5
+ menter: (...args: any[]) => void;
6
+ mleave: (...args: any[]) => void;
7
+ }, string, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').PublicProps, Readonly<{}> & Readonly<{
8
+ onSuccess?: ((...args: any[]) => any) | undefined;
9
+ onMenter?: ((...args: any[]) => any) | undefined;
10
+ onMleave?: ((...args: any[]) => any) | undefined;
11
+ }>, {}, {}, {}, {}, string, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentProvideOptions, true, {
12
+ slideRef: HTMLDivElement;
13
+ }, HTMLDivElement>;
14
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { RESULT } from './common/mouse.ts';
2
+ export interface PubinfoPopSlideProps {
3
+ onSuccess?: (data: RESULT) => void;
4
+ }
5
+ type __VLS_Props = PubinfoPopSlideProps;
6
+ declare function onOpen(): void;
7
+ type __VLS_PublicProps = {
8
+ 'open'?: boolean;
9
+ } & __VLS_Props;
10
+ declare const _default: import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').DefineComponent<__VLS_PublicProps, {
11
+ open: typeof onOpen;
12
+ }, {}, {}, {}, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentOptionsMixin, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentOptionsMixin, {
13
+ "update:open": (value: boolean) => any;
14
+ }, string, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
15
+ "onUpdate:open"?: ((value: boolean) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
17
+ export default _default;
@@ -0,0 +1,35 @@
1
+ declare const _default: import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').DefineComponent<{}, {
2
+ refresh: () => void;
3
+ }, {}, {}, {}, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentOptionsMixin, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentOptionsMixin, {
4
+ success: (...args: any[]) => void;
5
+ }, string, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').PublicProps, Readonly<{}> & Readonly<{
6
+ onSuccess?: ((...args: any[]) => any) | undefined;
7
+ }>, {}, {}, {}, {}, string, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentProvideOptions, true, {
8
+ pubinfoMMFixedSlideRef: import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').CreateComponentPublicInstanceWithMixins<Readonly<{}> & Readonly<{
9
+ onSuccess?: ((...args: any[]) => any) | undefined;
10
+ onMenter?: ((...args: any[]) => any) | undefined;
11
+ onMleave?: ((...args: any[]) => any) | undefined;
12
+ }>, {
13
+ refresh: () => void;
14
+ }, {}, {}, {}, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentOptionsMixin, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentOptionsMixin, {
15
+ success: (...args: any[]) => void;
16
+ menter: (...args: any[]) => void;
17
+ mleave: (...args: any[]) => void;
18
+ }, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').PublicProps, {}, true, {}, {}, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').GlobalComponents, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').GlobalDirectives, string, {
19
+ slideRef: HTMLDivElement;
20
+ }, HTMLDivElement, import('../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').ComponentProvideOptions, {
21
+ P: {};
22
+ B: {};
23
+ D: {};
24
+ C: {};
25
+ M: {};
26
+ Defaults: {};
27
+ }, Readonly<{}> & Readonly<{
28
+ onSuccess?: ((...args: any[]) => any) | undefined;
29
+ onMenter?: ((...args: any[]) => any) | undefined;
30
+ onMleave?: ((...args: any[]) => any) | undefined;
31
+ }>, {
32
+ refresh: () => void;
33
+ }, {}, {}, {}, {}> | null;
34
+ }, HTMLDivElement>;
35
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export declare function refresh(VA: any): void;
2
+ export declare function getPictrue(VA: any): void;
@@ -0,0 +1,9 @@
1
+ export interface RESULT {
2
+ captchaVerification: string;
3
+ captchaType: string;
4
+ }
5
+ export default function useMounseOpertae(VA: any): {
6
+ start: (e: any) => void;
7
+ move: (e: any, options?: any) => void;
8
+ end: (emit: any) => void;
9
+ };
@@ -0,0 +1,10 @@
1
+ export type EmitFunction = (event: 'success', data: any) => void;
2
+ export declare function useTouchService(): {
3
+ showButton: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<boolean, boolean>;
4
+ isSuccess: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<boolean, boolean>;
5
+ inArea: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<boolean, boolean>;
6
+ handleSubmit: (data: any, emit: EmitFunction) => void;
7
+ onMouseEnter: () => void;
8
+ onMouseLeave: () => void;
9
+ onAreaMouseLeave: () => void;
10
+ };
@@ -0,0 +1,59 @@
1
+ export declare function variable(): {
2
+ backImgBase: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<any, any>;
3
+ backToken: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<any, any>;
4
+ blockBackImgBase: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<any, any>;
5
+ blockSize: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<{
6
+ width: string;
7
+ height: string;
8
+ }, {
9
+ width: string;
10
+ height: string;
11
+ } | {
12
+ width: string;
13
+ height: string;
14
+ }>;
15
+ endMovetime: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<number, number>;
16
+ iconColor: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<string, string>;
17
+ iconName: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<string, string>;
18
+ isEnd: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<boolean, boolean>;
19
+ leftBarBorderColor: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<string, string>;
20
+ leftBarWidth: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<any, any>;
21
+ moveBlockBackgroundColor: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<string, string>;
22
+ moveBlockLeft: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<string, string>;
23
+ passFlag: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<boolean, boolean>;
24
+ secretKey: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<any, any>;
25
+ setSize: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<{
26
+ imgHeight: string;
27
+ width: string;
28
+ barHeight: string;
29
+ barWidth: string;
30
+ }, {
31
+ imgHeight: string;
32
+ width: string;
33
+ barHeight: string;
34
+ barWidth: string;
35
+ } | {
36
+ imgHeight: string;
37
+ width: string;
38
+ barHeight: string;
39
+ barWidth: string;
40
+ }>;
41
+ realImgSize: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<{
42
+ width: number;
43
+ height: number;
44
+ }, {
45
+ width: number;
46
+ height: number;
47
+ } | {
48
+ width: number;
49
+ height: number;
50
+ }>;
51
+ showRefresh: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<boolean, boolean>;
52
+ startLeft: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<number, number>;
53
+ startMoveTime: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<number, number>;
54
+ status: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<boolean, boolean>;
55
+ text: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<string, string>;
56
+ tipWords: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<string, string>;
57
+ transitionLeft: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<string, string>;
58
+ verifyLeftBarBackgroundColor: import('../../../../../../node_modules/.pnpm/vue@3.5.17_typescript@5.8.3/node_modules/vue').Ref<string, string>;
59
+ };
@@ -0,0 +1 @@
1
+ export declare function pubinfoPopSlide(): Promise<any>;
@@ -0,0 +1 @@
1
+ export declare function aesEncrypt(word: any, secretKey?: string): string;
@@ -0,0 +1,2 @@
1
+ import { InternalContext } from './interface.ts';
2
+ export declare const ctx: import('unctx').UseContext<InternalContext>;
package/dist/index.css ADDED
@@ -0,0 +1 @@
1
+ .i-solar-shield-check-bold{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cpath fill='currentColor' fill-rule='evenodd' d='M3.378 5.082C3 5.62 3 7.22 3 10.417v1.574c0 5.638 4.239 8.375 6.899 9.536c.721.315 1.082.473 2.101.473c1.02 0 1.38-.158 2.101-.473C16.761 20.365 21 17.63 21 11.991v-1.574c0-3.198 0-4.797-.378-5.335c-.377-.537-1.88-1.052-4.887-2.081l-.573-.196C13.595 2.268 12.812 2 12 2s-1.595.268-3.162.805L8.265 3c-3.007 1.03-4.51 1.545-4.887 2.082M15.06 10.5a.75.75 0 0 0-1.12-.999l-3.011 3.374l-.87-.974a.75.75 0 0 0-1.118 1l1.428 1.6a.75.75 0 0 0 1.119 0z' clip-rule='evenodd'/%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.i-solar-shield-check-broken{--un-icon:url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 24 24' display='inline-block' vertical-align='middle' width='1em' height='1em' xmlns='http://www.w3.org/2000/svg' %3E%3Cg fill='none' stroke='currentColor' stroke-linecap='round' stroke-width='1.5'%3E%3Cpath stroke-linejoin='round' d='m9.5 12.4l1.429 1.6l3.571-4'/%3E%3Cpath d='M3 10.417c0-3.198 0-4.797.378-5.335c.377-.537 1.88-1.052 4.887-2.081l.573-.196C10.405 2.268 11.188 2 12 2s1.595.268 3.162.805l.573.196c3.007 1.029 4.51 1.544 4.887 2.081C21 5.62 21 7.22 21 10.417v1.574c0 2.505-.837 4.437-2 5.913M3.193 14c.857 4.298 4.383 6.513 6.706 7.527c.721.315 1.082.473 2.101.473c1.02 0 1.38-.158 2.101-.473c.579-.252 1.231-.58 1.899-.994'/%3E%3C/g%3E%3C/svg%3E");-webkit-mask:var(--un-icon) no-repeat;mask:var(--un-icon) no-repeat;-webkit-mask-size:100% 100%;mask-size:100% 100%;background-color:currentColor;color:inherit;display:inline-block;vertical-align:middle;width:1em;height:1em}.visible{visibility:visible}.absolute,[absolute=""]{position:absolute}.relative,[relative=""]{position:relative}.bottom-0,[bottom-0=""]{bottom:0}.left-0,[left-0=""]{left:0}.right-0,[right-0=""]{right:0}.z-99999,[z-99999=""]{z-index:99999}.block{display:block}.hidden{display:none}.size-full,[size-full=""]{width:100%;height:100%}.h-40px,[h-40px=""]{height:40px}.w-100\%,.w-full,[w-full=""]{width:100%}.w-100px,[w-100px=""]{width:100px}.flex,[flex=""]{display:flex}.transform{transform:translate(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotate(var(--un-rotate-z)) skew(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z))}.cursor-pointer,[cursor-pointer=""]{cursor:pointer}.items-center,[items-center=""]{align-items:center}.justify-center,[justify-center=""]{justify-content:center}.border{border-width:1px}.p-2px,[p-2px=""]{padding:2px}.px{padding-left:1rem;padding-right:1rem}[color~="#1578FF"]{--un-text-opacity:1;color:rgb(21 120 255 / var(--un-text-opacity))}[color~="#AFB0B2"]{--un-text-opacity:1;color:rgb(175 176 178 / var(--un-text-opacity))}.filter{filter:var(--un-blur) var(--un-brightness) var(--un-contrast) var(--un-drop-shadow) var(--un-grayscale) var(--un-hue-rotate) var(--un-invert) var(--un-saturate) var(--un-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}[data-v-b87f1ba4] .ant-input-group-addon{padding:0!important;overflow:hidden}.verify-tips[data-v-a699c46e]{position:absolute;bottom:0;left:0;right:0;z-index:7;height:30px;line-height:30px;color:#fff;padding-left:8px;opacity:1}.suc-bg[data-v-a699c46e]{background-color:#5cb85c80;filter:progid:DXImageTransform.Microsoft.gradient(startcolorstr=#7f5CB85C,endcolorstr=#7f5CB85C)}.err-bg[data-v-a699c46e]{background-color:#d9534f80;filter:progid:DXImageTransform.Microsoft.gradient(startcolorstr=#7fD9534F,endcolorstr=#7fD9534F)}.verify-bar-area[data-v-a699c46e]{position:relative;box-sizing:border-box;border:1px solid #e4e7eb;background-color:#f7f9fa;border-radius:2px;display:flex;align-items:center;justify-content:center}.verify-bar-area .verify-move-block[data-v-a699c46e]{position:absolute;top:0;left:0;box-sizing:border-box;cursor:pointer;background-color:#fff;border-radius:2px;box-shadow:0 0 3px #0000004d;transition:background .2s linear;display:flex;align-items:center;justify-content:center}.verify-bar-area .verify-move-block[data-v-a699c46e]:hover{background-color:#1991fa}.verify-bar-area .verify-move-block:hover .verify-icon[data-v-a699c46e]{color:#fff}.verify-bar-area .verify-left-bar[data-v-a699c46e]{position:absolute;top:-1px;left:-1px;box-sizing:border-box;cursor:pointer;background-color:#7bbaf1;border:1px solid #1991fa}.verify-img-panel[data-v-a699c46e]{width:100%;position:relative;box-sizing:border-box;margin:0;border:1px solid #ddd;border-radius:3px}.verify-img-panel .verify-refresh[data-v-a699c46e]{position:absolute;top:0;right:0;z-index:2;width:30px;height:30px;text-align:center;cursor:pointer;background-color:#0000001f;line-height:30px}.verify-img-panel .icon-refresh[data-v-a699c46e]{font-size:20px;color:#fff}.verify-bar-area .verify-move-block .verify-sub-block[data-v-a699c46e]{position:absolute;z-index:3;text-align:center;left:0}.verify-bar-area .verify-move-block .verify-icon[data-v-a699c46e]{font-size:18px}.verify-bar-area .verify-msg[data-v-a699c46e]{z-index:3}.pubinfo-m-normal .verify-img-out[data-v-a699c46e]{width:100%;position:absolute;bottom:20px;opacity:0;transition:opacity .5s,bottom .5s}.pubinfo-m-touch .verify-img-out[data-v-a699c46e]{bottom:40px;opacity:1}.button_touch[data-v-939785d2]{width:100%;height:40px;border-radius:2px;background:linear-gradient(180deg,#fff 0,#ebedf0 87%);border:1px solid #e4e7eb;cursor:pointer;font-size:14px;color:#45494c}.pubinfo-m-normal[data-v-939785d2]{visibility:hidden;transition:visibility .2s}.pubinfo-m-touch[data-v-939785d2]{visibility:visible}.pubinfo-m-success[data-v-939785d2]{color:#52ccba;background:#d2f4ef;border-color:#52ccba;cursor:default}.verify-tips[data-v-719346d3]{position:absolute;bottom:0;left:0;right:0;z-index:7;height:30px;line-height:30px;color:#fff;padding-left:8px;opacity:1}.suc-bg[data-v-719346d3]{background-color:#5cb85c80;filter:progid:DXImageTransform.Microsoft.gradient(startcolorstr=#7f5CB85C,endcolorstr=#7f5CB85C)}.err-bg[data-v-719346d3]{background-color:#d9534f80;filter:progid:DXImageTransform.Microsoft.gradient(startcolorstr=#7fD9534F,endcolorstr=#7fD9534F)}.verify-bar-area[data-v-719346d3]{position:relative;box-sizing:border-box;text-align:center;border:1px solid #e4e7eb;background-color:#f7f9fa;border-radius:2px}.verify-bar-area .verify-move-block[data-v-719346d3]{position:absolute;top:-1px;left:0;box-sizing:border-box;cursor:pointer;background-color:#fff;border-radius:2px;box-shadow:0 0 3px #0000004d;transition:background .2s linear;display:flex;align-items:center;justify-content:center}.verify-bar-area .verify-move-block[data-v-719346d3]:hover{background-color:#1991fa}.verify-bar-area .verify-move-block:hover .verify-icon[data-v-719346d3]{color:#fff}.verify-bar-area .verify-left-bar[data-v-719346d3]{position:absolute;top:-1px;left:0;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;cursor:pointer;background-color:#7bbaf1;border:1px solid #1991fa;border-right-width:0px}.verify-img-panel[data-v-719346d3]{position:relative;-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;margin:0;border-top:1px solid #ddd;border-bottom:1px solid #ddd;border-radius:3px}.verify-img-panel .verify-refresh[data-v-719346d3]{position:absolute;top:0;right:0;z-index:2;width:30px;height:30px;text-align:center;cursor:pointer;background-color:#0000001f;line-height:30px}.verify-img-panel .icon-refresh[data-v-719346d3]{font-size:20px;color:#fff}.verify-img-out[data-v-719346d3]{position:relative}.verify-sub-block[data-v-719346d3]{position:absolute;z-index:3;text-align:center;left:0;top:0}.verify-bar-area .verify-move-block .verify-icon[data-v-719346d3]{font-size:18px}.verify-bar-area .verify-msg[data-v-719346d3]{z-index:3}.pubinfo-m-normal .verify-img-out[data-v-719346d3]{position:absolute;bottom:20px;opacity:0;transition:opacity .5s,bottom .5s,visibility .5s;visibility:hidden;z-index:999}.pubinfo-m-touch .verify-img-out[data-v-719346d3]{bottom:40px;opacity:1;transition:opacity .5s,bottom .5s,visibility .5s;visibility:visible}.button_touch[data-v-d475149e]{width:320px;height:40px;border-radius:2px;background:linear-gradient(180deg,#fff 0,#ebedf0 87%);border:1px solid #e4e7eb;cursor:pointer;font-size:14px;color:#45494c}
@@ -0,0 +1,12 @@
1
+ import { ModuleOptions } from 'pubinfo';
2
+ import { CaptchaOptions } from './interface';
3
+ import 'uno.css';
4
+ export declare function captcha(options: CaptchaOptions): ModuleOptions;
5
+ export { default as PubinfoVerifyInput } from './components/VerifyInput/PubinfoVerifyInput.vue';
6
+ export { default as PubinfoFixedPoint } from './components/VerifyPoints/PubinfoFixedPoint.vue';
7
+ export { pubinfoPopPoint as captchaPopPoint } from './components/VerifyPoints/pubinfoPopPoint.ts';
8
+ export { default as PubinfoTouchPoint } from './components/VerifyPoints/PubinfoTouchPoint.vue';
9
+ export { default as PubinfoFixedSlide } from './components/VerifySlide/PubinfoFixedSlide.vue';
10
+ export { pubinfoPopSlide as captchaPopSlide } from './components/VerifySlide/pubinfoPopSlide.ts';
11
+ export { default as PubinfoTouchSlide } from './components/VerifySlide/PubinfoTouchSlide.vue';
12
+ export type { CaptchaResult } from './interface';