@core-ease/telegram-kit 3.0.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.
- package/LICENSE +21 -0
- package/README.md +299 -0
- package/dist/animation/index.d.mts +4 -0
- package/dist/animation/index.d.ts +4 -0
- package/dist/animation/index.js +2413 -0
- package/dist/animation/index.mjs +5 -0
- package/dist/animation/lottie/index.d.mts +10 -0
- package/dist/animation/lottie/index.d.ts +10 -0
- package/dist/animation/lottie/index.js +2313 -0
- package/dist/animation/lottie/index.mjs +4 -0
- package/dist/animation/tgs/index.d.mts +18 -0
- package/dist/animation/tgs/index.d.ts +18 -0
- package/dist/animation/tgs/index.js +2402 -0
- package/dist/animation/tgs/index.mjs +4 -0
- package/dist/bot/index.d.mts +477 -0
- package/dist/bot/index.d.ts +477 -0
- package/dist/bot/index.js +870 -0
- package/dist/bot/index.mjs +847 -0
- package/dist/bot-D8BnLWIi.d.mts +2041 -0
- package/dist/bot-D8BnLWIi.d.ts +2041 -0
- package/dist/browser.global.js +23 -0
- package/dist/chunk-7AARTHNW.mjs +40 -0
- package/dist/chunk-7CVYPKAL.mjs +15 -0
- package/dist/chunk-B3PWALX5.mjs +4418 -0
- package/dist/chunk-BQEUEAVK.mjs +2262 -0
- package/dist/chunk-FPWYSKK2.mjs +3089 -0
- package/dist/chunk-JXK5HCDV.mjs +254 -0
- package/dist/chunk-OMH2JGOH.mjs +88 -0
- package/dist/chunk-PXO36YTU.mjs +38 -0
- package/dist/core/index.d.mts +151 -0
- package/dist/core/index.d.ts +151 -0
- package/dist/core/index.js +3837 -0
- package/dist/core/index.mjs +495 -0
- package/dist/dev/index.d.mts +77 -0
- package/dist/dev/index.d.ts +77 -0
- package/dist/dev/index.js +3214 -0
- package/dist/dev/index.mjs +151 -0
- package/dist/engine-BDm1_hzn.d.mts +382 -0
- package/dist/engine-BDm1_hzn.d.ts +382 -0
- package/dist/format/index.d.mts +61 -0
- package/dist/format/index.d.ts +61 -0
- package/dist/format/index.js +121 -0
- package/dist/format/index.mjs +112 -0
- package/dist/hooks/index.d.mts +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +4234 -0
- package/dist/hooks/index.mjs +3 -0
- package/dist/hooks-C5Per70R.d.mts +1066 -0
- package/dist/hooks-C5Per70R.d.ts +1066 -0
- package/dist/index.d.mts +849 -0
- package/dist/index.d.ts +849 -0
- package/dist/index.js +5026 -0
- package/dist/index.mjs +478 -0
- package/dist/keyboards/index.d.mts +50 -0
- package/dist/keyboards/index.d.ts +50 -0
- package/dist/keyboards/index.js +127 -0
- package/dist/keyboards/index.mjs +124 -0
- package/dist/links/index.d.mts +53 -0
- package/dist/links/index.d.ts +53 -0
- package/dist/links/index.js +139 -0
- package/dist/links/index.mjs +133 -0
- package/dist/lottie/index.d.mts +3 -0
- package/dist/lottie/index.d.ts +3 -0
- package/dist/lottie/index.js +2313 -0
- package/dist/lottie/index.mjs +4 -0
- package/dist/qr/index.d.mts +75 -0
- package/dist/qr/index.d.ts +75 -0
- package/dist/qr/index.js +983 -0
- package/dist/qr/index.mjs +946 -0
- package/dist/sdk/index.d.mts +322 -0
- package/dist/sdk/index.d.ts +322 -0
- package/dist/sdk/index.js +3138 -0
- package/dist/sdk/index.mjs +2 -0
- package/dist/server/index.d.mts +28 -0
- package/dist/server/index.d.ts +28 -0
- package/dist/server/index.js +254 -0
- package/dist/server/index.mjs +246 -0
- package/dist/tgs/index.d.mts +3 -0
- package/dist/tgs/index.d.ts +3 -0
- package/dist/tgs/index.js +2402 -0
- package/dist/tgs/index.mjs +4 -0
- package/dist/webapp-B-3_74nK.d.mts +842 -0
- package/dist/webapp-B-3_74nK.d.ts +842 -0
- package/dist/webapp-BDi9q3-a.d.mts +42 -0
- package/dist/webapp-YvmwFYUQ.d.ts +42 -0
- package/package.json +165 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
type ErrorCorrectionLevel = 'L' | 'M' | 'Q' | 'H';
|
|
4
|
+
|
|
5
|
+
interface QrEncodeOptions {
|
|
6
|
+
errorCorrectionLevel?: ErrorCorrectionLevel;
|
|
7
|
+
version?: number;
|
|
8
|
+
minVersion?: number;
|
|
9
|
+
maxVersion?: number;
|
|
10
|
+
maskPattern?: number;
|
|
11
|
+
}
|
|
12
|
+
interface QrEncodeResult {
|
|
13
|
+
modules: boolean[][];
|
|
14
|
+
size: number;
|
|
15
|
+
version: number;
|
|
16
|
+
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
17
|
+
maskPattern: number;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare function encodeQRCode(text: string, options?: QrEncodeOptions): QrEncodeResult;
|
|
21
|
+
interface QrSvgOptions extends QrEncodeOptions {
|
|
22
|
+
size?: number;
|
|
23
|
+
color?: string;
|
|
24
|
+
background?: string;
|
|
25
|
+
quietZone?: number;
|
|
26
|
+
}
|
|
27
|
+
declare function qrCodeToSVG(text: string, options?: QrSvgOptions): string;
|
|
28
|
+
|
|
29
|
+
type QRDotShape = 'square' | 'dots' | 'rounded' | 'extra-rounded' | 'classy' | 'classy-rounded';
|
|
30
|
+
type QRCornerSquareShape = 'square' | 'dot' | 'rounded' | 'classy';
|
|
31
|
+
type QRCornerDotShape = 'square' | 'dot' | 'rounded';
|
|
32
|
+
type QRLogoShape = 'circle' | 'square' | 'rounded' | 'none';
|
|
33
|
+
interface QRDotsOptions {
|
|
34
|
+
color?: string;
|
|
35
|
+
style?: QRDotShape;
|
|
36
|
+
}
|
|
37
|
+
interface QRCornersSquareOptions {
|
|
38
|
+
color?: string;
|
|
39
|
+
style?: QRCornerSquareShape;
|
|
40
|
+
}
|
|
41
|
+
interface QRCornersDotOptions {
|
|
42
|
+
color?: string;
|
|
43
|
+
style?: QRCornerDotShape;
|
|
44
|
+
}
|
|
45
|
+
interface QRCodeProps {
|
|
46
|
+
value: string;
|
|
47
|
+
size?: number;
|
|
48
|
+
errorCorrectionLevel?: ErrorCorrectionLevel;
|
|
49
|
+
dotsOptions?: QRDotsOptions;
|
|
50
|
+
cornersSquareOptions?: QRCornersSquareOptions;
|
|
51
|
+
cornersDotOptions?: QRCornersDotOptions;
|
|
52
|
+
dotColor?: string;
|
|
53
|
+
eyeColor?: string;
|
|
54
|
+
backgroundColor?: string;
|
|
55
|
+
logo?: string;
|
|
56
|
+
logoSize?: number;
|
|
57
|
+
logoPadding?: number;
|
|
58
|
+
logoShape?: QRLogoShape;
|
|
59
|
+
logoBackgroundColor?: string;
|
|
60
|
+
onLogoSizeClamped?: (clampedSizePx: number, requestedSizePx: number) => void;
|
|
61
|
+
quietZone?: number;
|
|
62
|
+
borderRadius?: number;
|
|
63
|
+
className?: string;
|
|
64
|
+
style?: React.CSSProperties;
|
|
65
|
+
}
|
|
66
|
+
declare const QRCode: React.ForwardRefExoticComponent<QRCodeProps & React.RefAttributes<SVGSVGElement>>;
|
|
67
|
+
interface DownloadQRCodeOptions {
|
|
68
|
+
format?: 'svg' | 'png';
|
|
69
|
+
fileName?: string;
|
|
70
|
+
scale?: number;
|
|
71
|
+
pngBackgroundColor?: string;
|
|
72
|
+
}
|
|
73
|
+
declare function downloadQRCode(svgElement: SVGSVGElement | null | undefined, options?: DownloadQRCodeOptions): Promise<void>;
|
|
74
|
+
|
|
75
|
+
export { type DownloadQRCodeOptions, type ErrorCorrectionLevel, QRCode, type QRCodeProps, type QRCornerDotShape, type QRCornerSquareShape, type QRCornersDotOptions, type QRCornersSquareOptions, type QRDotShape, type QRDotsOptions, type QRLogoShape, type QrEncodeOptions, type QrEncodeResult, type QrSvgOptions, downloadQRCode, encodeQRCode, qrCodeToSVG };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
type ErrorCorrectionLevel = 'L' | 'M' | 'Q' | 'H';
|
|
4
|
+
|
|
5
|
+
interface QrEncodeOptions {
|
|
6
|
+
errorCorrectionLevel?: ErrorCorrectionLevel;
|
|
7
|
+
version?: number;
|
|
8
|
+
minVersion?: number;
|
|
9
|
+
maxVersion?: number;
|
|
10
|
+
maskPattern?: number;
|
|
11
|
+
}
|
|
12
|
+
interface QrEncodeResult {
|
|
13
|
+
modules: boolean[][];
|
|
14
|
+
size: number;
|
|
15
|
+
version: number;
|
|
16
|
+
errorCorrectionLevel: ErrorCorrectionLevel;
|
|
17
|
+
maskPattern: number;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
declare function encodeQRCode(text: string, options?: QrEncodeOptions): QrEncodeResult;
|
|
21
|
+
interface QrSvgOptions extends QrEncodeOptions {
|
|
22
|
+
size?: number;
|
|
23
|
+
color?: string;
|
|
24
|
+
background?: string;
|
|
25
|
+
quietZone?: number;
|
|
26
|
+
}
|
|
27
|
+
declare function qrCodeToSVG(text: string, options?: QrSvgOptions): string;
|
|
28
|
+
|
|
29
|
+
type QRDotShape = 'square' | 'dots' | 'rounded' | 'extra-rounded' | 'classy' | 'classy-rounded';
|
|
30
|
+
type QRCornerSquareShape = 'square' | 'dot' | 'rounded' | 'classy';
|
|
31
|
+
type QRCornerDotShape = 'square' | 'dot' | 'rounded';
|
|
32
|
+
type QRLogoShape = 'circle' | 'square' | 'rounded' | 'none';
|
|
33
|
+
interface QRDotsOptions {
|
|
34
|
+
color?: string;
|
|
35
|
+
style?: QRDotShape;
|
|
36
|
+
}
|
|
37
|
+
interface QRCornersSquareOptions {
|
|
38
|
+
color?: string;
|
|
39
|
+
style?: QRCornerSquareShape;
|
|
40
|
+
}
|
|
41
|
+
interface QRCornersDotOptions {
|
|
42
|
+
color?: string;
|
|
43
|
+
style?: QRCornerDotShape;
|
|
44
|
+
}
|
|
45
|
+
interface QRCodeProps {
|
|
46
|
+
value: string;
|
|
47
|
+
size?: number;
|
|
48
|
+
errorCorrectionLevel?: ErrorCorrectionLevel;
|
|
49
|
+
dotsOptions?: QRDotsOptions;
|
|
50
|
+
cornersSquareOptions?: QRCornersSquareOptions;
|
|
51
|
+
cornersDotOptions?: QRCornersDotOptions;
|
|
52
|
+
dotColor?: string;
|
|
53
|
+
eyeColor?: string;
|
|
54
|
+
backgroundColor?: string;
|
|
55
|
+
logo?: string;
|
|
56
|
+
logoSize?: number;
|
|
57
|
+
logoPadding?: number;
|
|
58
|
+
logoShape?: QRLogoShape;
|
|
59
|
+
logoBackgroundColor?: string;
|
|
60
|
+
onLogoSizeClamped?: (clampedSizePx: number, requestedSizePx: number) => void;
|
|
61
|
+
quietZone?: number;
|
|
62
|
+
borderRadius?: number;
|
|
63
|
+
className?: string;
|
|
64
|
+
style?: React.CSSProperties;
|
|
65
|
+
}
|
|
66
|
+
declare const QRCode: React.ForwardRefExoticComponent<QRCodeProps & React.RefAttributes<SVGSVGElement>>;
|
|
67
|
+
interface DownloadQRCodeOptions {
|
|
68
|
+
format?: 'svg' | 'png';
|
|
69
|
+
fileName?: string;
|
|
70
|
+
scale?: number;
|
|
71
|
+
pngBackgroundColor?: string;
|
|
72
|
+
}
|
|
73
|
+
declare function downloadQRCode(svgElement: SVGSVGElement | null | undefined, options?: DownloadQRCodeOptions): Promise<void>;
|
|
74
|
+
|
|
75
|
+
export { type DownloadQRCodeOptions, type ErrorCorrectionLevel, QRCode, type QRCodeProps, type QRCornerDotShape, type QRCornerSquareShape, type QRCornersDotOptions, type QRCornersSquareOptions, type QRDotShape, type QRDotsOptions, type QRLogoShape, type QrEncodeOptions, type QrEncodeResult, type QrSvgOptions, downloadQRCode, encodeQRCode, qrCodeToSVG };
|