@teactjs/ui 0.1.0-alpha.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/README.md +40 -0
- package/dist/index.js +1253 -0
- package/dist/react/src/callback-registry.d.ts +11 -0
- package/dist/react/src/callback-registry.d.ts.map +1 -0
- package/dist/react/src/components.d.ts +396 -0
- package/dist/react/src/components.d.ts.map +1 -0
- package/dist/react/src/error-boundary.d.ts +19 -0
- package/dist/react/src/error-boundary.d.ts.map +1 -0
- package/dist/react/src/hooks.d.ts +37 -0
- package/dist/react/src/hooks.d.ts.map +1 -0
- package/dist/react/src/index.d.ts +11 -0
- package/dist/react/src/index.d.ts.map +1 -0
- package/dist/renderer/src/index.d.ts +5 -0
- package/dist/renderer/src/index.d.ts.map +1 -0
- package/dist/renderer/src/nodes.d.ts +23 -0
- package/dist/renderer/src/nodes.d.ts.map +1 -0
- package/dist/renderer/src/renderer.d.ts +9 -0
- package/dist/renderer/src/renderer.d.ts.map +1 -0
- package/dist/renderer/src/types.d.ts +36 -0
- package/dist/renderer/src/types.d.ts.map +1 -0
- package/dist/ui/src/index.d.ts +5 -0
- package/dist/ui/src/index.d.ts.map +1 -0
- package/package.json +32 -0
- package/src/index.ts +88 -0
package/package.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@teactjs/ui",
|
|
3
|
+
"version": "0.1.0-alpha.1",
|
|
4
|
+
"description": "Telegram UI components for Teact — Message, Button, InlineKeyboard, Photo, and more",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "src/index.ts",
|
|
7
|
+
"types": "src/index.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": "./src/index.ts"
|
|
10
|
+
},
|
|
11
|
+
"publishConfig": {
|
|
12
|
+
"main": "dist/index.js",
|
|
13
|
+
"types": "dist/index.d.ts",
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": "./dist/index.js",
|
|
17
|
+
"types": "./dist/index.d.ts"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"files": ["dist", "README.md"],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "bun build ./src/index.ts --outdir ./dist --format esm --target bun && tsc --emitDeclarationOnly --outDir dist --declaration --project tsconfig.build.json"
|
|
24
|
+
},
|
|
25
|
+
"dependencies": {
|
|
26
|
+
"@teactjs/react": "workspace:*"
|
|
27
|
+
},
|
|
28
|
+
"peerDependencies": {
|
|
29
|
+
"react": "^18.0.0 || ^19.0.0"
|
|
30
|
+
},
|
|
31
|
+
"license": "MIT"
|
|
32
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
export {
|
|
2
|
+
Message,
|
|
3
|
+
Button,
|
|
4
|
+
ButtonRow,
|
|
5
|
+
InlineKeyboard,
|
|
6
|
+
Photo,
|
|
7
|
+
Document,
|
|
8
|
+
Bold,
|
|
9
|
+
Italic,
|
|
10
|
+
Code,
|
|
11
|
+
Alert,
|
|
12
|
+
List,
|
|
13
|
+
ListItem,
|
|
14
|
+
Divider,
|
|
15
|
+
SuspenseFallback,
|
|
16
|
+
ErrorBoundary,
|
|
17
|
+
Video,
|
|
18
|
+
Animation,
|
|
19
|
+
Voice,
|
|
20
|
+
Audio,
|
|
21
|
+
VideoNote,
|
|
22
|
+
Sticker,
|
|
23
|
+
Contact,
|
|
24
|
+
Location,
|
|
25
|
+
LiveLocation,
|
|
26
|
+
Venue,
|
|
27
|
+
MediaGroup,
|
|
28
|
+
MediaPhoto,
|
|
29
|
+
MediaVideo,
|
|
30
|
+
ReplyKeyboard,
|
|
31
|
+
ReplyRow,
|
|
32
|
+
ReplyButton,
|
|
33
|
+
RequestContactButton,
|
|
34
|
+
RequestLocationButton,
|
|
35
|
+
ReplyKeyboardRemove,
|
|
36
|
+
Notification,
|
|
37
|
+
WebAppButton,
|
|
38
|
+
Poll,
|
|
39
|
+
} from '@teactjs/react';
|
|
40
|
+
|
|
41
|
+
export type {
|
|
42
|
+
MessageProps,
|
|
43
|
+
ButtonProps,
|
|
44
|
+
ButtonVariant,
|
|
45
|
+
ButtonRowProps,
|
|
46
|
+
InlineKeyboardProps,
|
|
47
|
+
PhotoProps,
|
|
48
|
+
DocumentProps,
|
|
49
|
+
BoldProps,
|
|
50
|
+
ItalicProps,
|
|
51
|
+
CodeProps,
|
|
52
|
+
AlertProps,
|
|
53
|
+
AlertVariant,
|
|
54
|
+
ListProps,
|
|
55
|
+
ListItemProps,
|
|
56
|
+
DividerProps,
|
|
57
|
+
SuspenseFallbackProps,
|
|
58
|
+
ErrorBoundaryProps,
|
|
59
|
+
VideoProps,
|
|
60
|
+
AnimationProps,
|
|
61
|
+
VoiceProps,
|
|
62
|
+
AudioProps,
|
|
63
|
+
VideoNoteProps,
|
|
64
|
+
StickerProps,
|
|
65
|
+
ContactProps,
|
|
66
|
+
LocationProps,
|
|
67
|
+
LiveLocationProps,
|
|
68
|
+
VenueProps,
|
|
69
|
+
MediaGroupProps,
|
|
70
|
+
MediaPhotoProps,
|
|
71
|
+
MediaVideoProps,
|
|
72
|
+
ReplyKeyboardProps,
|
|
73
|
+
ReplyRowProps,
|
|
74
|
+
ReplyButtonProps,
|
|
75
|
+
RequestContactButtonProps,
|
|
76
|
+
RequestLocationButtonProps,
|
|
77
|
+
NotificationProps,
|
|
78
|
+
WebAppButtonProps,
|
|
79
|
+
PollProps,
|
|
80
|
+
} from '@teactjs/react';
|
|
81
|
+
|
|
82
|
+
export { useQuery, useMutation } from '@teactjs/react';
|
|
83
|
+
export type {
|
|
84
|
+
UseQueryOptions,
|
|
85
|
+
UseQueryResult,
|
|
86
|
+
UseMutationOptions,
|
|
87
|
+
UseMutationResult,
|
|
88
|
+
} from '@teactjs/react';
|