@teactjs/react 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 +208 -0
- package/dist/index.js +1283 -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/package.json +32 -0
- package/src/index.ts +111 -0
package/src/index.ts
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
export {
|
|
2
|
+
useState,
|
|
3
|
+
useEffect,
|
|
4
|
+
useReducer,
|
|
5
|
+
useMemo,
|
|
6
|
+
useCallback,
|
|
7
|
+
useRef,
|
|
8
|
+
useContext,
|
|
9
|
+
useId,
|
|
10
|
+
use,
|
|
11
|
+
createContext,
|
|
12
|
+
memo,
|
|
13
|
+
Fragment,
|
|
14
|
+
createElement,
|
|
15
|
+
Suspense,
|
|
16
|
+
} from 'react';
|
|
17
|
+
|
|
18
|
+
export {
|
|
19
|
+
Message,
|
|
20
|
+
Button,
|
|
21
|
+
ButtonRow,
|
|
22
|
+
InlineKeyboard,
|
|
23
|
+
Photo,
|
|
24
|
+
Document,
|
|
25
|
+
Bold,
|
|
26
|
+
Italic,
|
|
27
|
+
Code,
|
|
28
|
+
Alert,
|
|
29
|
+
List,
|
|
30
|
+
ListItem,
|
|
31
|
+
Divider,
|
|
32
|
+
SuspenseFallback,
|
|
33
|
+
Video,
|
|
34
|
+
Animation,
|
|
35
|
+
Voice,
|
|
36
|
+
Audio,
|
|
37
|
+
VideoNote,
|
|
38
|
+
Sticker,
|
|
39
|
+
Contact,
|
|
40
|
+
Location,
|
|
41
|
+
LiveLocation,
|
|
42
|
+
Venue,
|
|
43
|
+
MediaGroup,
|
|
44
|
+
MediaPhoto,
|
|
45
|
+
MediaVideo,
|
|
46
|
+
ReplyKeyboard,
|
|
47
|
+
ReplyRow,
|
|
48
|
+
ReplyButton,
|
|
49
|
+
RequestContactButton,
|
|
50
|
+
RequestLocationButton,
|
|
51
|
+
ReplyKeyboardRemove,
|
|
52
|
+
Notification,
|
|
53
|
+
WebAppButton,
|
|
54
|
+
Poll,
|
|
55
|
+
} from './components';
|
|
56
|
+
|
|
57
|
+
export type {
|
|
58
|
+
MessageProps,
|
|
59
|
+
ButtonProps,
|
|
60
|
+
ButtonVariant,
|
|
61
|
+
ButtonRowProps,
|
|
62
|
+
InlineKeyboardProps,
|
|
63
|
+
PhotoProps,
|
|
64
|
+
DocumentProps,
|
|
65
|
+
BoldProps,
|
|
66
|
+
ItalicProps,
|
|
67
|
+
CodeProps,
|
|
68
|
+
AlertProps,
|
|
69
|
+
AlertVariant,
|
|
70
|
+
ListProps,
|
|
71
|
+
ListItemProps,
|
|
72
|
+
DividerProps,
|
|
73
|
+
SuspenseFallbackProps,
|
|
74
|
+
VideoProps,
|
|
75
|
+
AnimationProps,
|
|
76
|
+
VoiceProps,
|
|
77
|
+
AudioProps,
|
|
78
|
+
VideoNoteProps,
|
|
79
|
+
StickerProps,
|
|
80
|
+
ContactProps,
|
|
81
|
+
LocationProps,
|
|
82
|
+
LiveLocationProps,
|
|
83
|
+
VenueProps,
|
|
84
|
+
MediaGroupProps,
|
|
85
|
+
MediaPhotoProps,
|
|
86
|
+
MediaVideoProps,
|
|
87
|
+
ReplyKeyboardProps,
|
|
88
|
+
ReplyRowProps,
|
|
89
|
+
ReplyButtonProps,
|
|
90
|
+
RequestContactButtonProps,
|
|
91
|
+
RequestLocationButtonProps,
|
|
92
|
+
NotificationProps,
|
|
93
|
+
WebAppButtonProps,
|
|
94
|
+
PollProps,
|
|
95
|
+
} from './components';
|
|
96
|
+
|
|
97
|
+
export { ErrorBoundary } from './error-boundary';
|
|
98
|
+
export type { ErrorBoundaryProps } from './error-boundary';
|
|
99
|
+
|
|
100
|
+
export { useQuery, useMutation } from './hooks';
|
|
101
|
+
export type {
|
|
102
|
+
UseQueryOptions,
|
|
103
|
+
UseQueryResult,
|
|
104
|
+
UseMutationOptions,
|
|
105
|
+
UseMutationResult,
|
|
106
|
+
} from './hooks';
|
|
107
|
+
|
|
108
|
+
export { CallbackRegistryCtx } from './callback-registry';
|
|
109
|
+
export type { CallbackHandler, CallbackMap } from './callback-registry';
|
|
110
|
+
|
|
111
|
+
export type { OutputNode, BotContext, User, SessionData } from '@teactjs/renderer';
|