@piedata/pieui 1.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.
Files changed (153) hide show
  1. package/dist/cli.d.ts +3 -0
  2. package/dist/cli.d.ts.map +1 -0
  3. package/dist/cli.js +361697 -0
  4. package/dist/components/Buttons/AjaxButtonCard/index.d.ts +2 -0
  5. package/dist/components/Buttons/AjaxButtonCard/index.d.ts.map +1 -0
  6. package/dist/components/Buttons/AjaxButtonCard/types/index.d.ts +15 -0
  7. package/dist/components/Buttons/AjaxButtonCard/types/index.d.ts.map +1 -0
  8. package/dist/components/Buttons/AjaxButtonCard/ui/AjaxButtonCard.d.ts +4 -0
  9. package/dist/components/Buttons/AjaxButtonCard/ui/AjaxButtonCard.d.ts.map +1 -0
  10. package/dist/components/Chats/ChatCard/index.d.ts +2 -0
  11. package/dist/components/Chats/ChatCard/index.d.ts.map +1 -0
  12. package/dist/components/Chats/ChatCard/types/index.d.ts +43 -0
  13. package/dist/components/Chats/ChatCard/types/index.d.ts.map +1 -0
  14. package/dist/components/Chats/ChatCard/ui/ChatCard.d.ts +4 -0
  15. package/dist/components/Chats/ChatCard/ui/ChatCard.d.ts.map +1 -0
  16. package/dist/components/Chats/ChatCard/ui/components/AttachFileButton.d.ts +11 -0
  17. package/dist/components/Chats/ChatCard/ui/components/AttachFileButton.d.ts.map +1 -0
  18. package/dist/components/Chats/ChatCard/ui/components/AttachedFileView.d.ts +7 -0
  19. package/dist/components/Chats/ChatCard/ui/components/AttachedFileView.d.ts.map +1 -0
  20. package/dist/components/Chats/ChatCard/ui/components/ChatCardInput.d.ts +22 -0
  21. package/dist/components/Chats/ChatCard/ui/components/ChatCardInput.d.ts.map +1 -0
  22. package/dist/components/Chats/ChatCard/ui/components/ChatOption.d.ts +7 -0
  23. package/dist/components/Chats/ChatCard/ui/components/ChatOption.d.ts.map +1 -0
  24. package/dist/components/Chats/ChatCard/ui/components/Markdown.d.ts +6 -0
  25. package/dist/components/Chats/ChatCard/ui/components/Markdown.d.ts.map +1 -0
  26. package/dist/components/Chats/ChatCard/ui/components/MessageAvatar.d.ts +6 -0
  27. package/dist/components/Chats/ChatCard/ui/components/MessageAvatar.d.ts.map +1 -0
  28. package/dist/components/Chats/ChatCard/ui/components/MessageCard.d.ts +9 -0
  29. package/dist/components/Chats/ChatCard/ui/components/MessageCard.d.ts.map +1 -0
  30. package/dist/components/Chats/ChatCard/ui/components/MessageContent.d.ts +7 -0
  31. package/dist/components/Chats/ChatCard/ui/components/MessageContent.d.ts.map +1 -0
  32. package/dist/components/Chats/ChatCard/ui/components/MessagesBoard.d.ts +17 -0
  33. package/dist/components/Chats/ChatCard/ui/components/MessagesBoard.d.ts.map +1 -0
  34. package/dist/components/Chats/ChatCard/ui/components/Options.d.ts +7 -0
  35. package/dist/components/Chats/ChatCard/ui/components/Options.d.ts.map +1 -0
  36. package/dist/components/Chats/ChatCard/ui/components/ResizableTextarea.d.ts +3 -0
  37. package/dist/components/Chats/ChatCard/ui/components/ResizableTextarea.d.ts.map +1 -0
  38. package/dist/components/Chats/ChatCard/ui/components/SendButton.d.ts +4 -0
  39. package/dist/components/Chats/ChatCard/ui/components/SendButton.d.ts.map +1 -0
  40. package/dist/components/Chats/ChatCard/ui/components/VoiceListeningButton.d.ts +8 -0
  41. package/dist/components/Chats/ChatCard/ui/components/VoiceListeningButton.d.ts.map +1 -0
  42. package/dist/components/Chats/ChatCard/ui/components/icons/AttachFileIcon.d.ts +3 -0
  43. package/dist/components/Chats/ChatCard/ui/components/icons/AttachFileIcon.d.ts.map +1 -0
  44. package/dist/components/Chats/ChatCard/ui/components/icons/AttachedFileIcon.d.ts +3 -0
  45. package/dist/components/Chats/ChatCard/ui/components/icons/AttachedFileIcon.d.ts.map +1 -0
  46. package/dist/components/Chats/ChatCard/ui/components/icons/CancelFileIcon.d.ts +3 -0
  47. package/dist/components/Chats/ChatCard/ui/components/icons/CancelFileIcon.d.ts.map +1 -0
  48. package/dist/components/Chats/ChatCard/ui/components/icons/DefaultAvatar.d.ts +3 -0
  49. package/dist/components/Chats/ChatCard/ui/components/icons/DefaultAvatar.d.ts.map +1 -0
  50. package/dist/components/Chats/ChatCard/ui/components/icons/SendIcon.d.ts +3 -0
  51. package/dist/components/Chats/ChatCard/ui/components/icons/SendIcon.d.ts.map +1 -0
  52. package/dist/components/Chats/ChatCard/ui/components/icons/VoiceRecordIcon.d.ts +3 -0
  53. package/dist/components/Chats/ChatCard/ui/components/icons/VoiceRecordIcon.d.ts.map +1 -0
  54. package/dist/components/Containers/AjaxGroupCard/index.d.ts +2 -0
  55. package/dist/components/Containers/AjaxGroupCard/index.d.ts.map +1 -0
  56. package/dist/components/Containers/AjaxGroupCard/types/index.d.ts +14 -0
  57. package/dist/components/Containers/AjaxGroupCard/types/index.d.ts.map +1 -0
  58. package/dist/components/Containers/AjaxGroupCard/ui/AjaxGroupCard.d.ts +5 -0
  59. package/dist/components/Containers/AjaxGroupCard/ui/AjaxGroupCard.d.ts.map +1 -0
  60. package/dist/components/Containers/SequenceCard/index.d.ts +2 -0
  61. package/dist/components/Containers/SequenceCard/index.d.ts.map +1 -0
  62. package/dist/components/Containers/SequenceCard/types/index.d.ts +9 -0
  63. package/dist/components/Containers/SequenceCard/types/index.d.ts.map +1 -0
  64. package/dist/components/Containers/SequenceCard/ui/SequenceCard.d.ts +4 -0
  65. package/dist/components/Containers/SequenceCard/ui/SequenceCard.d.ts.map +1 -0
  66. package/dist/components/Containers/UnionCard/index.d.ts +2 -0
  67. package/dist/components/Containers/UnionCard/index.d.ts.map +1 -0
  68. package/dist/components/Containers/UnionCard/types/index.d.ts +7 -0
  69. package/dist/components/Containers/UnionCard/types/index.d.ts.map +1 -0
  70. package/dist/components/Containers/UnionCard/ui/UnionCard.d.ts +4 -0
  71. package/dist/components/Containers/UnionCard/ui/UnionCard.d.ts.map +1 -0
  72. package/dist/components/PieBaseRoot/index.d.ts +5 -0
  73. package/dist/components/PieBaseRoot/index.d.ts.map +1 -0
  74. package/dist/components/PieBaseRoot/types/index.d.ts +6 -0
  75. package/dist/components/PieBaseRoot/types/index.d.ts.map +1 -0
  76. package/dist/components/PieCard/index.d.ts +4 -0
  77. package/dist/components/PieCard/index.d.ts.map +1 -0
  78. package/dist/components/PieCard/types/index.d.ts +16 -0
  79. package/dist/components/PieCard/types/index.d.ts.map +1 -0
  80. package/dist/components/PieRoot/index.d.ts +5 -0
  81. package/dist/components/PieRoot/index.d.ts.map +1 -0
  82. package/dist/components/PieRoot/types/index.d.ts +10 -0
  83. package/dist/components/PieRoot/types/index.d.ts.map +1 -0
  84. package/dist/components/PieStaticRoot/index.d.ts +5 -0
  85. package/dist/components/PieStaticRoot/index.d.ts.map +1 -0
  86. package/dist/components/PieStaticRoot/types/index.d.ts +7 -0
  87. package/dist/components/PieStaticRoot/types/index.d.ts.map +1 -0
  88. package/dist/components/PieTelegramRoot/index.d.ts +5 -0
  89. package/dist/components/PieTelegramRoot/index.d.ts.map +1 -0
  90. package/dist/components/UI/index.d.ts +8 -0
  91. package/dist/components/UI/index.d.ts.map +1 -0
  92. package/dist/components/index.d.ts +7 -0
  93. package/dist/components/index.d.ts.map +1 -0
  94. package/dist/components/index.esm.js +35 -0
  95. package/dist/components/index.js +48 -0
  96. package/dist/config/constant.d.ts +10 -0
  97. package/dist/config/constant.d.ts.map +1 -0
  98. package/dist/index.d.ts +10 -0
  99. package/dist/index.d.ts.map +1 -0
  100. package/dist/index.esm.js +40 -0
  101. package/dist/index.js +65 -0
  102. package/dist/pieui.components.json +364 -0
  103. package/dist/providers/CentrifugeIOInitProvider.d.ts +6 -0
  104. package/dist/providers/CentrifugeIOInitProvider.d.ts.map +1 -0
  105. package/dist/providers/SocketIOInitProvider.d.ts +6 -0
  106. package/dist/providers/SocketIOInitProvider.d.ts.map +1 -0
  107. package/dist/types/index.d.ts +103 -0
  108. package/dist/types/index.d.ts.map +1 -0
  109. package/dist/util/ajaxCommonUtils.d.ts +4 -0
  110. package/dist/util/ajaxCommonUtils.d.ts.map +1 -0
  111. package/dist/util/axiosWithCache.d.ts +3 -0
  112. package/dist/util/axiosWithCache.d.ts.map +1 -0
  113. package/dist/util/centrifuge.d.ts +5 -0
  114. package/dist/util/centrifuge.d.ts.map +1 -0
  115. package/dist/util/fallback.d.ts +4 -0
  116. package/dist/util/fallback.d.ts.map +1 -0
  117. package/dist/util/globalForm.d.ts +3 -0
  118. package/dist/util/globalForm.d.ts.map +1 -0
  119. package/dist/util/initializeComponents.d.ts +18 -0
  120. package/dist/util/initializeComponents.d.ts.map +1 -0
  121. package/dist/util/lazy.d.ts +6 -0
  122. package/dist/util/lazy.d.ts.map +1 -0
  123. package/dist/util/mitt.d.ts +7 -0
  124. package/dist/util/mitt.d.ts.map +1 -0
  125. package/dist/util/queryClient.d.ts +3 -0
  126. package/dist/util/queryClient.d.ts.map +1 -0
  127. package/dist/util/registry.d.ts +11 -0
  128. package/dist/util/registry.d.ts.map +1 -0
  129. package/dist/util/socket.d.ts +5 -0
  130. package/dist/util/socket.d.ts.map +1 -0
  131. package/dist/util/sx2radium.d.ts +3 -0
  132. package/dist/util/sx2radium.d.ts.map +1 -0
  133. package/dist/util/tailwindCommonUtils.d.ts +3 -0
  134. package/dist/util/tailwindCommonUtils.d.ts.map +1 -0
  135. package/dist/util/useBodyStyles.d.ts +5 -0
  136. package/dist/util/useBodyStyles.d.ts.map +1 -0
  137. package/dist/util/useImage.d.ts +5 -0
  138. package/dist/util/useImage.d.ts.map +1 -0
  139. package/dist/util/useIsSupported.d.ts +2 -0
  140. package/dist/util/useIsSupported.d.ts.map +1 -0
  141. package/dist/util/useOpenAIWebRTC.d.ts +14 -0
  142. package/dist/util/useOpenAIWebRTC.d.ts.map +1 -0
  143. package/dist/util/useScreenSize.d.ts +6 -0
  144. package/dist/util/useScreenSize.d.ts.map +1 -0
  145. package/dist/util/useTitle.d.ts +2 -0
  146. package/dist/util/useTitle.d.ts.map +1 -0
  147. package/dist/util/useWebApp.d.ts +4 -0
  148. package/dist/util/useWebApp.d.ts.map +1 -0
  149. package/dist/util/waitForSidAvailable.d.ts +3 -0
  150. package/dist/util/waitForSidAvailable.d.ts.map +1 -0
  151. package/dist/util/webrtcClient.d.ts +32 -0
  152. package/dist/util/webrtcClient.d.ts.map +1 -0
  153. package/package.json +95 -0
@@ -0,0 +1,364 @@
1
+ [
2
+ {
3
+ "card": "SequenceCard",
4
+ "data": {
5
+ "type": "object",
6
+ "properties": {
7
+ "name": {
8
+ "type": "string"
9
+ },
10
+ "sx": {
11
+ "type": "object",
12
+ "additionalProperties": {}
13
+ }
14
+ },
15
+ "additionalProperties": false,
16
+ "required": [
17
+ "name",
18
+ "sx"
19
+ ],
20
+ "$schema": "http://json-schema.org/draft-07/schema#"
21
+ }
22
+ },
23
+ {
24
+ "card": "UnionCard",
25
+ "data": {
26
+ "type": "object",
27
+ "properties": {
28
+ "name": {
29
+ "type": "string"
30
+ }
31
+ },
32
+ "additionalProperties": false,
33
+ "required": [
34
+ "name"
35
+ ],
36
+ "$schema": "http://json-schema.org/draft-07/schema#"
37
+ }
38
+ },
39
+ {
40
+ "card": "AjaxGroupCard",
41
+ "data": {
42
+ "type": "object",
43
+ "properties": {
44
+ "name": {
45
+ "type": "string"
46
+ },
47
+ "noReturn": {
48
+ "type": "boolean"
49
+ },
50
+ "returnType": {
51
+ "enum": [
52
+ "content",
53
+ "events"
54
+ ],
55
+ "type": "string"
56
+ },
57
+ "useLoader": {
58
+ "type": "boolean"
59
+ },
60
+ "useSocketioSupport": {
61
+ "type": "boolean"
62
+ },
63
+ "useCentrifugeSupport": {
64
+ "type": "boolean"
65
+ },
66
+ "useMittSupport": {
67
+ "type": "boolean"
68
+ },
69
+ "centrifugeChannel": {
70
+ "type": "string"
71
+ }
72
+ },
73
+ "additionalProperties": false,
74
+ "required": [
75
+ "name",
76
+ "noReturn",
77
+ "returnType",
78
+ "useLoader"
79
+ ],
80
+ "$schema": "http://json-schema.org/draft-07/schema#"
81
+ }
82
+ },
83
+ {
84
+ "card": "AjaxButtonCard",
85
+ "data": {
86
+ "type": "object",
87
+ "properties": {
88
+ "name": {
89
+ "type": "string"
90
+ },
91
+ "title": {
92
+ "type": "string"
93
+ },
94
+ "pathname": {
95
+ "type": "string"
96
+ },
97
+ "depsNames": {
98
+ "type": "array",
99
+ "items": {
100
+ "type": "string"
101
+ }
102
+ },
103
+ "kwargs": {
104
+ "type": "object",
105
+ "additionalProperties": false
106
+ },
107
+ "iconUrl": {
108
+ "type": "string"
109
+ },
110
+ "iconPosition": {
111
+ "enum": [
112
+ "end",
113
+ "start"
114
+ ],
115
+ "type": "string"
116
+ },
117
+ "sx": {
118
+ "type": "object",
119
+ "additionalProperties": {}
120
+ }
121
+ },
122
+ "additionalProperties": false,
123
+ "required": [
124
+ "name",
125
+ "title"
126
+ ],
127
+ "$schema": "http://json-schema.org/draft-07/schema#"
128
+ }
129
+ },
130
+ {
131
+ "card": "ChatCard",
132
+ "data": {
133
+ "type": "object",
134
+ "properties": {
135
+ "name": {
136
+ "type": "string"
137
+ },
138
+ "defaultValue": {
139
+ "type": "string"
140
+ },
141
+ "defaultMessages": {
142
+ "type": "array",
143
+ "items": {
144
+ "type": "object",
145
+ "properties": {
146
+ "id": {
147
+ "type": "string"
148
+ },
149
+ "username": {
150
+ "type": "string"
151
+ },
152
+ "avatar": {
153
+ "type": "string"
154
+ },
155
+ "content": {
156
+ "anyOf": [
157
+ {
158
+ "$ref": "#/definitions/UIConfigType"
159
+ },
160
+ {
161
+ "type": "string"
162
+ }
163
+ ]
164
+ },
165
+ "options": {
166
+ "type": "array",
167
+ "items": {
168
+ "type": "object",
169
+ "properties": {
170
+ "title": {
171
+ "type": "string"
172
+ },
173
+ "iconUrl": {
174
+ "type": "string"
175
+ },
176
+ "iconPosition": {
177
+ "enum": [
178
+ "end",
179
+ "start"
180
+ ],
181
+ "type": "string"
182
+ },
183
+ "sx": {
184
+ "type": "object",
185
+ "additionalProperties": {}
186
+ }
187
+ },
188
+ "additionalProperties": false,
189
+ "required": [
190
+ "iconPosition",
191
+ "iconUrl",
192
+ "sx",
193
+ "title"
194
+ ]
195
+ }
196
+ },
197
+ "parseMode": {
198
+ "enum": [
199
+ "HTML",
200
+ "Markdown",
201
+ "Pie",
202
+ "Text"
203
+ ],
204
+ "type": "string"
205
+ },
206
+ "align": {
207
+ "enum": [
208
+ "center",
209
+ "left",
210
+ "right"
211
+ ],
212
+ "type": "string"
213
+ }
214
+ },
215
+ "additionalProperties": false,
216
+ "required": [
217
+ "align",
218
+ "avatar",
219
+ "content",
220
+ "id",
221
+ "options",
222
+ "parseMode",
223
+ "username"
224
+ ]
225
+ }
226
+ },
227
+ "defaultOptions": {
228
+ "type": "array",
229
+ "items": {
230
+ "type": "object",
231
+ "properties": {
232
+ "title": {
233
+ "type": "string"
234
+ },
235
+ "iconUrl": {
236
+ "type": "string"
237
+ },
238
+ "iconPosition": {
239
+ "enum": [
240
+ "end",
241
+ "start"
242
+ ],
243
+ "type": "string"
244
+ },
245
+ "sx": {
246
+ "type": "object",
247
+ "additionalProperties": {}
248
+ }
249
+ },
250
+ "additionalProperties": false,
251
+ "required": [
252
+ "iconPosition",
253
+ "iconUrl",
254
+ "sx",
255
+ "title"
256
+ ]
257
+ }
258
+ },
259
+ "isArea": {
260
+ "type": "boolean"
261
+ },
262
+ "placeholder": {
263
+ "type": "string"
264
+ },
265
+ "fileAccept": {
266
+ "type": "string"
267
+ },
268
+ "icons": {
269
+ "type": "object",
270
+ "properties": {
271
+ "voiceRecordingIcon": {
272
+ "type": "string"
273
+ },
274
+ "sendIcon": {
275
+ "type": "string"
276
+ },
277
+ "cancelIcon": {
278
+ "type": "string"
279
+ },
280
+ "attachFileIcon": {
281
+ "type": "string"
282
+ }
283
+ },
284
+ "additionalProperties": false,
285
+ "required": [
286
+ "attachFileIcon",
287
+ "cancelIcon",
288
+ "sendIcon",
289
+ "voiceRecordingIcon"
290
+ ]
291
+ },
292
+ "optionsPosition": {
293
+ "enum": [
294
+ "bottom",
295
+ "top"
296
+ ],
297
+ "type": "string"
298
+ },
299
+ "sxMap": {
300
+ "type": "object",
301
+ "properties": {
302
+ "container": {
303
+ "type": "object",
304
+ "additionalProperties": {}
305
+ },
306
+ "chatInput": {
307
+ "type": "object",
308
+ "additionalProperties": {}
309
+ },
310
+ "messages": {
311
+ "type": "object",
312
+ "additionalProperties": {}
313
+ }
314
+ },
315
+ "additionalProperties": false,
316
+ "required": [
317
+ "chatInput",
318
+ "container",
319
+ "messages"
320
+ ]
321
+ },
322
+ "pathname": {
323
+ "type": "string"
324
+ },
325
+ "depsNames": {
326
+ "type": "array",
327
+ "items": {
328
+ "type": "string"
329
+ }
330
+ },
331
+ "kwargs": {
332
+ "type": "object",
333
+ "additionalProperties": false
334
+ },
335
+ "useSocketioSupport": {
336
+ "type": "boolean"
337
+ },
338
+ "useCentrifugeSupport": {
339
+ "type": "boolean"
340
+ },
341
+ "useMittSupport": {
342
+ "type": "boolean"
343
+ },
344
+ "centrifugeChannel": {
345
+ "type": "string"
346
+ }
347
+ },
348
+ "additionalProperties": false,
349
+ "required": [
350
+ "defaultMessages",
351
+ "defaultOptions",
352
+ "defaultValue",
353
+ "fileAccept",
354
+ "icons",
355
+ "isArea",
356
+ "name",
357
+ "optionsPosition",
358
+ "placeholder",
359
+ "sxMap"
360
+ ],
361
+ "$schema": "http://json-schema.org/draft-07/schema#"
362
+ }
363
+ }
364
+ ]
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ declare const CentrifugeIOInitProvider: ({ children }: {
3
+ children: ReactNode;
4
+ }) => ReactNode;
5
+ export default CentrifugeIOInitProvider;
6
+ //# sourceMappingURL=CentrifugeIOInitProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CentrifugeIOInitProvider.d.ts","sourceRoot":"","sources":["../../src/providers/CentrifugeIOInitProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAyB,MAAM,OAAO,CAAA;AAKxD,QAAA,MAAM,wBAAwB,GAAI,cAAc;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,cA+BtE,CAAA;AAED,eAAe,wBAAwB,CAAA"}
@@ -0,0 +1,6 @@
1
+ import { ReactNode } from 'react';
2
+ declare const SocketIOInitProvider: ({ children }: {
3
+ children: ReactNode;
4
+ }) => ReactNode;
5
+ export default SocketIOInitProvider;
6
+ //# sourceMappingURL=SocketIOInitProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SocketIOInitProvider.d.ts","sourceRoot":"","sources":["../../src/providers/SocketIOInitProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAyB,MAAM,OAAO,CAAA;AAMxD,QAAA,MAAM,oBAAoB,GAAI,cAAc;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,cAuClE,CAAA;AAED,eAAe,oBAAoB,CAAA"}
@@ -0,0 +1,103 @@
1
+ import { ComponentType, ReactNode } from "react";
2
+ export type WebAppUser = {
3
+ id: string;
4
+ username: string;
5
+ photo_url: string;
6
+ };
7
+ export type MainButtonType = {
8
+ show: () => void;
9
+ onClick: (callback: () => void) => void;
10
+ offClick: (callback: () => void) => void;
11
+ setText: (text: string) => void;
12
+ hide: () => void;
13
+ };
14
+ export type BackButtonType = {
15
+ show: () => void;
16
+ onClick: (callback: () => void) => void;
17
+ hide: () => void;
18
+ };
19
+ export type WebAppInitData = {
20
+ user: WebAppUser;
21
+ start_param?: string;
22
+ chat_type?: 'sender' | 'private' | 'group' | 'supergroup' | 'channel';
23
+ chat_instance?: string;
24
+ auth_date: number;
25
+ hash: string;
26
+ };
27
+ export type WebApp = {
28
+ sendData: (data: string) => void;
29
+ showAlert: (message: string) => void;
30
+ MainButton: MainButtonType;
31
+ BackButton: BackButtonType;
32
+ initDataUnsafe: WebAppInitData;
33
+ initData: string;
34
+ close: () => void;
35
+ openLink: (link: string, option: string) => void;
36
+ platform: 'ios' | 'android' | 'web';
37
+ expand: () => void;
38
+ };
39
+ export type Telegram = {
40
+ WebApp: WebApp;
41
+ };
42
+ export type InitDataUnsafe = {
43
+ user?: WebAppUser;
44
+ };
45
+ export type InitData = string;
46
+ export interface UIConfigType {
47
+ card: string;
48
+ data: any;
49
+ content: UIConfigType | Array<UIConfigType>;
50
+ }
51
+ export interface UIEventType {
52
+ name: string;
53
+ data: Record<any, any>;
54
+ }
55
+ export type SetUiAjaxConfigurationType = ((content: UIConfigType | null) => void) | ((events: Array<UIEventType> | null) => void);
56
+ export interface PieEvent {
57
+ cardName: string;
58
+ name: string;
59
+ eventName: string;
60
+ data: any;
61
+ }
62
+ export type PieEventEmitter = (event: PieEvent) => void;
63
+ declare global {
64
+ interface Window {
65
+ sid: string;
66
+ Telegram: Telegram;
67
+ }
68
+ }
69
+ export interface ComponentMetadata {
70
+ author?: string;
71
+ version?: string;
72
+ description?: string;
73
+ tags?: string[];
74
+ }
75
+ export interface PieComplexContainerComponentProps<TData = unknown> {
76
+ data: TData;
77
+ content: Array<UIConfigType>;
78
+ setUiAjaxConfiguration?: SetUiAjaxConfigurationType;
79
+ }
80
+ export interface PieContainerComponentProps<TData = unknown> {
81
+ data: TData;
82
+ content: UIConfigType;
83
+ setUiAjaxConfiguration?: SetUiAjaxConfigurationType;
84
+ }
85
+ export interface PieComplexComponentProps<TData = unknown> {
86
+ data: TData;
87
+ setUiAjaxConfiguration?: SetUiAjaxConfigurationType;
88
+ }
89
+ export interface PieSimpleComponentProps<TData = unknown> {
90
+ data: TData;
91
+ }
92
+ export type PieComponentProps<TData = unknown> = PieSimpleComponentProps<TData> | PieContainerComponentProps<TData> | PieComplexContainerComponentProps<TData>;
93
+ export interface ComponentRegistration<TProps> {
94
+ name: string;
95
+ component?: ComponentType<TProps>;
96
+ fallback?: ReactNode;
97
+ loader?: () => Promise<{
98
+ default: ComponentType<TProps>;
99
+ }>;
100
+ metadata?: ComponentMetadata;
101
+ isLazy?: boolean;
102
+ }
103
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d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AAA;IAC5B,MAAM,CAAC,EAAE,OAAO,CAAA;CACnB"}
@@ -0,0 +1,4 @@
1
+ import '../types';
2
+ import { SetUiAjaxConfigurationType } from '../types';
3
+ export declare const getAjaxSubmit: (setUiAjaxConfiguration?: SetUiAjaxConfigurationType, kwargs?: Record<string, any>, depsNames?: Array<string>, pathname?: string) => (() => void) | ((extraKwargs?: Record<string, any>) => Promise<any>);
4
+ //# sourceMappingURL=ajaxCommonUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ajaxCommonUtils.d.ts","sourceRoot":"","sources":["../../src/util/ajaxCommonUtils.ts"],"names":[],"mappings":"AAEA,OAAO,UAAU,CAAA;AACjB,OAAO,EAAE,0BAA0B,EAAe,MAAM,UAAU,CAAA;AAIlE,eAAO,MAAM,aAAa,GACtB,yBAAyB,0BAA0B,EACnD,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EAChC,YAAW,KAAK,CAAC,MAAM,CAAM,EAC7B,WAAW,MAAM,oCAaU,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,kBAwGjD,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const axios: import("axios-cache-interceptor").AxiosCacheInstance;
2
+ export declare function prefetchLinks(prefetch: Array<string> | null): void;
3
+ //# sourceMappingURL=axiosWithCache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"axiosWithCache.d.ts","sourceRoot":"","sources":["../../src/util/axiosWithCache.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,sDAAoB,CAAA;AAEtC,wBAAgB,aAAa,CAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,QAQ3D"}
@@ -0,0 +1,5 @@
1
+ import { Centrifuge } from 'centrifuge';
2
+ export declare const getCentrifuge: () => Centrifuge | null;
3
+ declare const CentrifugeIOContext: import("react").Context<Centrifuge | null>;
4
+ export default CentrifugeIOContext;
5
+ //# sourceMappingURL=centrifuge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"centrifuge.d.ts","sourceRoot":"","sources":["../../src/util/centrifuge.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAevC,eAAO,MAAM,aAAa,yBAIV,CAAA;AAQhB,QAAA,MAAM,mBAAmB,4CAAyC,CAAA;AAClE,eAAe,mBAAmB,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { ReactNode } from "react";
2
+ declare const FallbackContext: import("react").Context<ReactNode>;
3
+ export default FallbackContext;
4
+ //# sourceMappingURL=fallback.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fallback.d.ts","sourceRoot":"","sources":["../../src/util/fallback.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgB,SAAS,EAAC,MAAM,OAAO,CAAC;AAG/C,QAAA,MAAM,eAAe,oCAAkC,CAAA;AAEvD,eAAe,eAAe,CAAA"}
@@ -0,0 +1,3 @@
1
+ export declare const submitGlobalForm: () => void;
2
+ export declare const addInputToGlobalForm: (input: HTMLInputElement) => void;
3
+ //# sourceMappingURL=globalForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"globalForm.d.ts","sourceRoot":"","sources":["../../src/util/globalForm.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,YAG5B,CAAA;AAED,eAAO,MAAM,oBAAoB,GAAI,OAAO,gBAAgB,SAG3D,CAAA"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Initialize all PieUI components by registering them in the component registry.
3
+ * This function should be called once before using PieRoot or any dynamic components.
4
+ *
5
+ * @example
6
+ * ```typescript
7
+ * import { initializePieComponents } from 'pieui'
8
+ *
9
+ * // Call this once in your app initialization
10
+ * initializePieComponents()
11
+ * ```
12
+ */
13
+ export declare function initializePieComponents(): void;
14
+ /**
15
+ * Check if PieUI components have been initialized
16
+ */
17
+ export declare function isPieComponentsInitialized(): boolean;
18
+ //# sourceMappingURL=initializeComponents.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"initializeComponents.d.ts","sourceRoot":"","sources":["../../src/util/initializeComponents.ts"],"names":[],"mappings":"AAcA;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,IAAI,IAAI,CA8D9C;AAED;;GAEG;AACH,wBAAgB,0BAA0B,IAAI,OAAO,CAEpD"}
@@ -0,0 +1,6 @@
1
+ import { ComponentType, LazyExoticComponent } from 'react';
2
+ export declare function trackLazy<T extends ComponentType<any>>(loader: () => Promise<{
3
+ default: T;
4
+ }>, name: string): LazyExoticComponent<T>;
5
+ export declare const preloadComponent: (name: string, loader?: () => Promise<any>) => Promise<any>;
6
+ //# sourceMappingURL=lazy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lazy.d.ts","sourceRoot":"","sources":["../../src/util/lazy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAA;AAIhE,wBAAgB,SAAS,CAAC,CAAC,SAAS,aAAa,CAAC,GAAG,CAAC,EAClD,MAAM,EAAE,MAAM,OAAO,CAAC;IAAE,OAAO,EAAE,CAAC,CAAA;CAAE,CAAC,EACrC,IAAI,EAAE,MAAM,GACb,mBAAmB,CAAC,CAAC,CAAC,CASxB;AAED,eAAO,MAAM,gBAAgB,GAAU,MAAM,MAAM,EAAE,SAAS,MAAM,OAAO,CAAC,GAAG,CAAC,iBAM/E,CAAA"}
@@ -0,0 +1,7 @@
1
+ export declare const emitter: import("mitt").Emitter<Record<import("mitt").EventType, unknown>>;
2
+ export type MittEvents = {
3
+ [key: string]: any;
4
+ };
5
+ declare const MittContext: import("react").Context<import("mitt").Emitter<Record<import("mitt").EventType, unknown>>>;
6
+ export default MittContext;
7
+ //# sourceMappingURL=mitt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mitt.d.ts","sourceRoot":"","sources":["../../src/util/mitt.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,mEAAS,CAAA;AAC7B,MAAM,MAAM,UAAU,GAAG;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CACrB,CAAA;AAED,QAAA,MAAM,WAAW,4FAAyB,CAAA;AAE1C,eAAe,WAAW,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { QueryClient } from "@tanstack/react-query";
2
+ export declare const queryClient: QueryClient;
3
+ //# sourceMappingURL=queryClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queryClient.d.ts","sourceRoot":"","sources":["../../src/util/queryClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAElD,eAAO,MAAM,WAAW,aAAoB,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { ComponentMetadata, ComponentRegistration } from '../types';
2
+ import { ComponentType } from 'react';
3
+ export declare function registerPieComponent<TProps>(registration: ComponentRegistration<TProps>): ComponentType<TProps> | undefined;
4
+ export declare const registerMultipleComponents: (components: ComponentRegistration<any>[]) => void;
5
+ export declare const unregisterComponent: (name: string) => void;
6
+ export declare const hasComponent: (name: string) => boolean;
7
+ export declare const getComponentMeta: (name: string) => ComponentMetadata | undefined;
8
+ export declare const getRegistryEntry: (name: string) => ComponentRegistration<any> | undefined;
9
+ export declare const getAllRegisteredComponents: () => string[];
10
+ export declare const getRegistrySize: () => number;
11
+ //# sourceMappingURL=registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/util/registry.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAqB,MAAM,UAAU,CAAA;AAEtF,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAwCrC,wBAAgB,oBAAoB,CAAC,MAAM,EACvC,YAAY,EAAE,qBAAqB,CAAC,MAAM,CAAC,GAC5C,aAAa,CAAC,MAAM,CAAC,GAAG,SAAS,CAanC;AAGD,eAAO,MAAM,0BAA0B,GACnC,YAAY,qBAAqB,CAAC,GAAG,CAAC,EAAE,SAG3C,CAAA;AAED,eAAO,MAAM,mBAAmB,GAAI,MAAM,MAAM,SAE/C,CAAA;AAED,eAAO,MAAM,YAAY,GAAI,MAAM,MAAM,YAExC,CAAA;AAED,eAAO,MAAM,gBAAgB,GAAI,MAAM,MAAM,KAAG,iBAAiB,GAAG,SAEnE,CAAA;AAGD,eAAO,MAAM,gBAAgB,GACzB,MAAM,MAAM,KACb,qBAAqB,CAAC,GAAG,CAAC,GAAG,SAa/B,CAAA;AAED,eAAO,MAAM,0BAA0B,QAAO,MAAM,EAEnD,CAAA;AAED,eAAO,MAAM,eAAe,QAAO,MAElC,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { Socket } from 'socket.io-client';
2
+ export declare const getSocket: () => Socket<import("@socket.io/component-emitter").DefaultEventsMap, import("@socket.io/component-emitter").DefaultEventsMap>;
3
+ declare const SocketIOContext: import("react").Context<Socket<import("@socket.io/component-emitter").DefaultEventsMap, import("@socket.io/component-emitter").DefaultEventsMap> | null>;
4
+ export default SocketIOContext;
5
+ //# sourceMappingURL=socket.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"socket.d.ts","sourceRoot":"","sources":["../../src/util/socket.ts"],"names":[],"mappings":"AAAA,OAAO,EAAK,MAAM,EAAC,MAAM,kBAAkB,CAAA;AAS3C,eAAO,MAAM,SAAS,gIAGpB,CAAA;AAUF,QAAA,MAAM,eAAe,0JAAqC,CAAA;AAE1D,eAAe,eAAe,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { CSSProperties } from 'react';
2
+ export declare function sx2radium(sx: Record<string, any> | CSSProperties | undefined): CSSProperties;
3
+ //# sourceMappingURL=sx2radium.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sx2radium.d.ts","sourceRoot":"","sources":["../../src/util/sx2radium.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAGrC,wBAAgB,SAAS,CAAC,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,aAAa,GAAG,SAAS,GAAG,aAAa,CAW5F"}
@@ -0,0 +1,3 @@
1
+ import { type ClassValue } from 'clsx';
2
+ export declare function cn(...inputs: ClassValue[]): string;
3
+ //# sourceMappingURL=tailwindCommonUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tailwindCommonUtils.d.ts","sourceRoot":"","sources":["../../src/util/tailwindCommonUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,KAAK,UAAU,EAAE,MAAM,MAAM,CAAA;AAG5C,wBAAgB,EAAE,CAAC,GAAG,MAAM,EAAE,UAAU,EAAE,UAEzC"}
@@ -0,0 +1,5 @@
1
+ type CSSStyleDeclarationKey = keyof CSSStyleDeclaration;
2
+ type StyleValue = string | null;
3
+ export declare function useBodyStyles(styles: Partial<Record<CSSStyleDeclarationKey, StyleValue>>): void;
4
+ export {};
5
+ //# sourceMappingURL=useBodyStyles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useBodyStyles.d.ts","sourceRoot":"","sources":["../../src/util/useBodyStyles.ts"],"names":[],"mappings":"AAEA,KAAK,sBAAsB,GAAG,MAAM,mBAAmB,CAAC;AACxD,KAAK,UAAU,GAAG,MAAM,GAAG,IAAI,CAAC;AAEhC,wBAAgB,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,sBAAsB,EAAE,UAAU,CAAC,CAAC,QAwBxF"}
@@ -0,0 +1,5 @@
1
+ export declare function useImage(url: string, crossOrigin?: string, referrerPolicy?: string): {
2
+ image: HTMLImageElement | undefined;
3
+ status: "loading" | "loaded" | "failed";
4
+ };
5
+ //# sourceMappingURL=useImage.d.ts.map