@unbound-app/api 0.9.0 → 0.11.0
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/package.json +4 -2
- package/src/_internal.d.ts +3463 -447
- package/src/commands.d.ts +255 -0
- package/src/dialogs.d.ts +69 -0
- package/src/fs.d.ts +3 -4
- package/src/global.d.ts +341 -20
- package/src/index.d.ts +2 -0
- package/src/metro/api.d.ts +2 -0
- package/src/metro/components.d.ts +91 -16
- package/src/metro/index.d.ts +32 -13
- package/src/native.d.ts +51 -3
- package/src/settings.d.ts +1 -1
- package/src/storage.d.ts +4 -3
package/src/global.d.ts
CHANGED
|
@@ -2,44 +2,212 @@
|
|
|
2
2
|
|
|
3
3
|
export type {
|
|
4
4
|
ADDON_TYPES,
|
|
5
|
+
AIGlyphTextProps,
|
|
6
|
+
AILoaderComponent,
|
|
7
|
+
AILoaderProps,
|
|
8
|
+
AIShimmerComponent,
|
|
9
|
+
AIShimmerInnerProps,
|
|
10
|
+
AIShimmerProps,
|
|
11
|
+
AccessibilityAnnouncerLiveRegionComponent,
|
|
12
|
+
AccessibilityAnnouncerLiveRegionProps,
|
|
13
|
+
AccessibilityViewComponent,
|
|
14
|
+
AccessibilityViewProps,
|
|
15
|
+
ActionSheetCloseButtonComponent,
|
|
16
|
+
ActionSheetCloseButtonProps,
|
|
17
|
+
ActionSheetComponent,
|
|
18
|
+
ActionSheetHeaderBarComponent,
|
|
19
|
+
ActionSheetHeaderBarProps,
|
|
20
|
+
ActionSheetHeaderPressableTextComponent,
|
|
21
|
+
ActionSheetHeaderPressableTextProps,
|
|
22
|
+
ActionSheetIconHeaderComponent,
|
|
23
|
+
ActionSheetIconHeaderProps,
|
|
24
|
+
ActionSheetPresenterComponent,
|
|
25
|
+
ActionSheetPresenterProps,
|
|
5
26
|
ActionSheetProps,
|
|
27
|
+
ActionSheetRowComponent,
|
|
28
|
+
ActionSheetRowGroupComponent,
|
|
29
|
+
ActionSheetRowGroupProps,
|
|
30
|
+
ActionSheetRowIconComponent,
|
|
31
|
+
ActionSheetRowIconProps,
|
|
6
32
|
ActionSheetRowProps,
|
|
33
|
+
ActionSheetRowStatics,
|
|
34
|
+
ActionSheetSwitchRowComponent,
|
|
35
|
+
ActionSheetSwitchRowProps,
|
|
7
36
|
Addon,
|
|
8
37
|
AddonAuthor,
|
|
9
38
|
AddonManifest,
|
|
10
39
|
AddonResolveable,
|
|
40
|
+
AddonTrust,
|
|
11
41
|
AddonType,
|
|
42
|
+
AlertActionButtonComponent,
|
|
12
43
|
AlertActionButtonProps,
|
|
44
|
+
AlertActionsProps,
|
|
45
|
+
AlertModalComponent,
|
|
46
|
+
AlertModalContainerComponent,
|
|
47
|
+
AlertModalContainerProps,
|
|
13
48
|
AlertModalProps,
|
|
14
49
|
AssetsModule,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
50
|
+
AvatarDuoPileComponent,
|
|
51
|
+
AvatarDuoPileProps,
|
|
52
|
+
AvatarPileComponent,
|
|
53
|
+
AvatarPileProps,
|
|
54
|
+
BackdropComponent,
|
|
55
|
+
BackdropProps,
|
|
56
|
+
BackgroundBlurFillProps,
|
|
57
|
+
BackgroundBlurFillWithPressProps,
|
|
58
|
+
BackgroundBlurViewComponentComponent,
|
|
59
|
+
BackgroundBlurViewComponentProps,
|
|
60
|
+
BaseIconButtonProps,
|
|
61
|
+
BaseNavigationContainerProps,
|
|
62
|
+
BaseTextButtonComponent,
|
|
63
|
+
BaseTextButtonIconProps,
|
|
64
|
+
BaseTextButtonProps,
|
|
65
|
+
BaseTextButtonStatics,
|
|
66
|
+
BaseTextFieldProps,
|
|
67
|
+
BottomSheetBackdropComponentProps,
|
|
68
|
+
BottomSheetTextInputComponent,
|
|
69
|
+
BottomSheetTextInputProps,
|
|
70
|
+
BottomSheetTitleHeaderComponent,
|
|
71
|
+
BottomSheetTitleHeaderProps,
|
|
72
|
+
ButtonBaseButtonProps,
|
|
73
|
+
ButtonEllipsisComponent,
|
|
74
|
+
ButtonEllipsisProps,
|
|
75
|
+
ButtonGroupComponent,
|
|
76
|
+
ButtonGroupProps,
|
|
77
|
+
ButtonIconButtonComponent,
|
|
78
|
+
ButtonIconButtonProps,
|
|
79
|
+
ButtonPillProps,
|
|
80
|
+
ButtonShineProps,
|
|
81
|
+
CameraLottieComponent,
|
|
82
|
+
CameraLottieProps,
|
|
83
|
+
CoachmarkComponent,
|
|
84
|
+
CoachmarkProps,
|
|
85
|
+
CollapsingTextProps,
|
|
86
|
+
ContextMenuComponent,
|
|
87
|
+
ContextMenuContainerComponent,
|
|
88
|
+
ContextMenuContainerProps,
|
|
22
89
|
ContextMenuProps,
|
|
23
90
|
CreateStyles,
|
|
91
|
+
DESIGN_COMPONENTS,
|
|
92
|
+
DesignActivityIndicatorComponent,
|
|
93
|
+
DesignActivityIndicatorProps,
|
|
94
|
+
DesignBarrelComponents,
|
|
95
|
+
DesignCardComponent,
|
|
96
|
+
DesignCardProps,
|
|
97
|
+
DesignCheckboxComponent,
|
|
98
|
+
DesignCheckboxProps,
|
|
99
|
+
DesignComponentName,
|
|
100
|
+
DesignComponents,
|
|
101
|
+
DesignHelpers,
|
|
102
|
+
DesignModalComponent,
|
|
103
|
+
DesignModalProps,
|
|
24
104
|
DesignModule,
|
|
105
|
+
DesignRowGroupComponent,
|
|
106
|
+
DesignRowGroupProps,
|
|
107
|
+
DesignTextComponent,
|
|
108
|
+
DesignTextInputComponent,
|
|
109
|
+
DesignTextInputProps,
|
|
110
|
+
DesignTextProps,
|
|
111
|
+
DialogComponent,
|
|
112
|
+
DialogProps,
|
|
113
|
+
DisableCustomThemeComponent,
|
|
114
|
+
DisableCustomThemeProps,
|
|
25
115
|
DiscordAsset,
|
|
26
116
|
DiscordFunction,
|
|
117
|
+
EllipsisCircleProps,
|
|
27
118
|
EnumLike,
|
|
119
|
+
ErrorTextProps,
|
|
120
|
+
ExpressiveGradientComponent,
|
|
121
|
+
ExpressiveGradientProps,
|
|
122
|
+
FauxHeaderComponent,
|
|
123
|
+
FauxHeaderProps,
|
|
124
|
+
FloatingActionButtonComponent,
|
|
28
125
|
FloatingActionButtonProps,
|
|
29
126
|
FontDescriptor,
|
|
30
127
|
FontEntity,
|
|
128
|
+
FormLabelProps,
|
|
129
|
+
FormRowProps,
|
|
130
|
+
FormSubLabelProps,
|
|
131
|
+
FormsFormCheckboxComponent,
|
|
132
|
+
FormsFormCheckboxProps,
|
|
133
|
+
FormsFormRadioComponent,
|
|
134
|
+
FormsFormRadioProps,
|
|
135
|
+
FormsFormSwitchComponent,
|
|
136
|
+
FormsFormSwitchProps,
|
|
137
|
+
GhostInputComponent,
|
|
31
138
|
GhostInputProps,
|
|
32
|
-
|
|
139
|
+
GlyphBandProps,
|
|
140
|
+
GuildIconPileComponent,
|
|
141
|
+
GuildIconPileProps,
|
|
142
|
+
HeaderActionButtonComponent,
|
|
143
|
+
HeaderActionButtonProps,
|
|
144
|
+
HeaderBackImageComponent,
|
|
145
|
+
HeaderBackImageProps,
|
|
146
|
+
HeaderSubmittingIndicatorComponent,
|
|
147
|
+
HeaderSubmittingIndicatorProps,
|
|
33
148
|
IconPack,
|
|
34
149
|
IconPackManifest,
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
150
|
+
ImageButtonComponent,
|
|
151
|
+
ImageButtonProps,
|
|
152
|
+
InlineNoticeComponent,
|
|
153
|
+
InlineNoticeProps,
|
|
154
|
+
InputComponent,
|
|
155
|
+
InputFieldContainerComponent,
|
|
156
|
+
InputFieldContainerProps,
|
|
157
|
+
InputProps,
|
|
158
|
+
InputTextInputProps,
|
|
38
159
|
InternalToastOptions,
|
|
160
|
+
LayerScopeComponent,
|
|
161
|
+
LayerScopeProps,
|
|
162
|
+
LoadingButtonPillProps,
|
|
163
|
+
LottieIconProps,
|
|
164
|
+
ManaContextProviderComponent,
|
|
165
|
+
ManaContextProviderProps,
|
|
166
|
+
MenuComponent,
|
|
167
|
+
MenuGroupComponent,
|
|
168
|
+
MenuGroupProps,
|
|
169
|
+
MenuItemComponent,
|
|
170
|
+
MenuItemProps,
|
|
171
|
+
MenuPopoutComponent,
|
|
172
|
+
MenuPopoutProps,
|
|
173
|
+
MenuProps,
|
|
174
|
+
MessageRequestLottieComponent,
|
|
175
|
+
MessageRequestLottieProps,
|
|
176
|
+
MessagesTabLottieComponent,
|
|
177
|
+
MessagesTabLottieProps,
|
|
178
|
+
MicrophoneLottieComponent,
|
|
179
|
+
MicrophoneLottieProps,
|
|
180
|
+
ModalActionButtonComponent,
|
|
181
|
+
ModalActionButtonProps,
|
|
182
|
+
ModalContentComponent,
|
|
183
|
+
ModalContentProps,
|
|
184
|
+
ModalDisclaimerComponent,
|
|
185
|
+
ModalDisclaimerProps,
|
|
186
|
+
ModalFloatingActionComponent,
|
|
187
|
+
ModalFloatingActionProps,
|
|
188
|
+
ModalFloatingActionSpacerComponent,
|
|
189
|
+
ModalFloatingActionSpacerProps,
|
|
190
|
+
ModalFooterComponent,
|
|
191
|
+
ModalFooterProps,
|
|
192
|
+
ModalScreenComponent,
|
|
193
|
+
ModalScreenProps,
|
|
194
|
+
ModalStepIndicatorComponent,
|
|
195
|
+
ModalStepIndicatorProps,
|
|
39
196
|
NATIVE_PLUGIN_CAPABILITIES,
|
|
197
|
+
NATIVE_PLUGIN_PLATFORM_CAPABILITIES,
|
|
198
|
+
NativeAddonVerification,
|
|
40
199
|
NativeAssociationKey,
|
|
200
|
+
NativeBatchReference,
|
|
201
|
+
NativeBatchStep,
|
|
41
202
|
NativeCallOptions,
|
|
203
|
+
NativeCancelablePromise,
|
|
42
204
|
NativeClassHandle,
|
|
205
|
+
NativeCompiledPlugin,
|
|
206
|
+
NativeCrashPhase,
|
|
207
|
+
NativeCrashedAddon,
|
|
208
|
+
NativeDebugBridge,
|
|
209
|
+
NativeDebugEnvironment,
|
|
210
|
+
NativeDebugEvaluation,
|
|
43
211
|
NativeFFIBridge,
|
|
44
212
|
NativeFFISignature,
|
|
45
213
|
NativeFFIType,
|
|
@@ -48,79 +216,230 @@ export type {
|
|
|
48
216
|
NativeFabricFrame,
|
|
49
217
|
NativeFabricSize,
|
|
50
218
|
NativeFabricSurface,
|
|
219
|
+
NativeFontEntry,
|
|
220
|
+
NativeFontSource,
|
|
51
221
|
NativeHandle,
|
|
52
222
|
NativeHookContext,
|
|
53
223
|
NativeHookHandlers,
|
|
54
224
|
NativeHookOptions,
|
|
55
225
|
NativeHookToken,
|
|
226
|
+
NativeJavaArgument,
|
|
227
|
+
NativeJavaAssociationKey,
|
|
228
|
+
NativeJavaBatchOperation,
|
|
229
|
+
NativeJavaBridge,
|
|
230
|
+
NativeJavaClassDescription,
|
|
231
|
+
NativeJavaFieldDescription,
|
|
232
|
+
NativeJavaHandle,
|
|
233
|
+
NativeJavaHandleValue,
|
|
234
|
+
NativeJavaHookEvent,
|
|
235
|
+
NativeJavaHookOptions,
|
|
236
|
+
NativeJavaHookToken,
|
|
237
|
+
NativeJavaHooksBridge,
|
|
238
|
+
NativeJavaMethodDescription,
|
|
239
|
+
NativeJavaReference,
|
|
240
|
+
NativeJavaValue,
|
|
56
241
|
NativeObjCBridge,
|
|
57
242
|
NativeObjectHandle,
|
|
243
|
+
NativePlatformAddons,
|
|
58
244
|
NativePlatformApp,
|
|
59
245
|
NativePlatformBridge,
|
|
246
|
+
NativePlatformCrashGuard,
|
|
60
247
|
NativePlatformDevice,
|
|
248
|
+
NativePlatformFiles,
|
|
249
|
+
NativePlatformFonts,
|
|
250
|
+
NativePlatformIOSBridge,
|
|
251
|
+
NativePlatformSettings,
|
|
61
252
|
NativePluginBridge,
|
|
62
253
|
NativePluginCapability,
|
|
63
254
|
NativePluginError,
|
|
64
255
|
NativePluginErrorCode,
|
|
256
|
+
NativePluginPlatform,
|
|
257
|
+
NativePluginRuntimeBridge,
|
|
65
258
|
NativePointer,
|
|
259
|
+
NativeResourceCounts,
|
|
260
|
+
NativeRuntimeBridge,
|
|
261
|
+
NativeRuntimeEventName,
|
|
262
|
+
NativeRuntimeEventToken,
|
|
66
263
|
NativeSerializable,
|
|
67
264
|
NativeSerializableObject,
|
|
265
|
+
NativeSettingsChange,
|
|
68
266
|
NativeStruct,
|
|
69
267
|
NativeStructField,
|
|
70
268
|
NativeStructFields,
|
|
71
269
|
NativeThreadPolicy,
|
|
270
|
+
NativeViewSearchOptions,
|
|
271
|
+
NativeViewSnapshotNode,
|
|
272
|
+
NativeViewSnapshotOptions,
|
|
273
|
+
NavScrimComponent,
|
|
274
|
+
NavScrimProps,
|
|
72
275
|
Navigation,
|
|
276
|
+
NavigationContainerInnerProps,
|
|
73
277
|
NavigationOptions,
|
|
278
|
+
NavigationStackProps,
|
|
279
|
+
NavigatorComponent,
|
|
280
|
+
NavigatorHeaderComponent,
|
|
281
|
+
NavigatorHeaderProps,
|
|
282
|
+
NavigatorProps,
|
|
283
|
+
NavigatorScreenComponent,
|
|
284
|
+
NavigatorScreenProps,
|
|
285
|
+
NewInlineNoticeProps,
|
|
286
|
+
NitroGem12LottieComponent,
|
|
287
|
+
NitroGem12LottieProps,
|
|
288
|
+
NitroGem15LottieComponent,
|
|
289
|
+
NitroGem15LottieProps,
|
|
290
|
+
NitroGem18LottieComponent,
|
|
291
|
+
NitroGem18LottieProps,
|
|
292
|
+
NitroGem1LottieComponent,
|
|
293
|
+
NitroGem1LottieProps,
|
|
294
|
+
NitroGem24LottieComponent,
|
|
295
|
+
NitroGem24LottieProps,
|
|
296
|
+
NitroGem2LottieComponent,
|
|
297
|
+
NitroGem2LottieProps,
|
|
298
|
+
NitroGem3LottieComponent,
|
|
299
|
+
NitroGem3LottieProps,
|
|
300
|
+
NitroGem6LottieComponent,
|
|
301
|
+
NitroGem6LottieProps,
|
|
302
|
+
NitroGem9LottieComponent,
|
|
303
|
+
NitroGem9LottieProps,
|
|
304
|
+
NotificationsTabLottieComponent,
|
|
305
|
+
NotificationsTabLottieProps,
|
|
306
|
+
PileComponent,
|
|
307
|
+
PileOverflowComponent,
|
|
308
|
+
PileOverflowProps,
|
|
309
|
+
PileProps,
|
|
310
|
+
PillWrapperProps,
|
|
311
|
+
PlainTextExperimentProviderComponent,
|
|
312
|
+
PlainTextExperimentProviderProps,
|
|
74
313
|
Plugin,
|
|
75
314
|
PluginContext,
|
|
76
315
|
PluginEntity,
|
|
316
|
+
PostponeRenderProps,
|
|
317
|
+
PressableBaseProps,
|
|
318
|
+
PressableHighlightProps,
|
|
319
|
+
PressableOpacityProps,
|
|
320
|
+
PromoSheetComponent,
|
|
321
|
+
PromoSheetProps,
|
|
322
|
+
RedesignBottomSheetTitleHeaderBaseProps,
|
|
323
|
+
RedesignCompatComponent,
|
|
324
|
+
RedesignCompatProps,
|
|
77
325
|
ResolvedStyles,
|
|
326
|
+
RowButtonComponent,
|
|
78
327
|
RowButtonProps,
|
|
328
|
+
RowButtonStatics,
|
|
329
|
+
RowButtonWrapperProps,
|
|
330
|
+
SceneLoadingIndicatorComponent,
|
|
331
|
+
SceneLoadingIndicatorProps,
|
|
332
|
+
SearchFieldComponent,
|
|
333
|
+
SearchFieldProps,
|
|
334
|
+
SegmentedControlComponent,
|
|
79
335
|
SegmentedControlItem,
|
|
336
|
+
SegmentedControlItemProps,
|
|
337
|
+
SegmentedControlPagesComponent,
|
|
80
338
|
SegmentedControlPagesProps,
|
|
81
339
|
SegmentedControlProps,
|
|
82
340
|
SegmentedControlState,
|
|
83
341
|
SegmentedControlStateOptions,
|
|
342
|
+
SemanticColorToken,
|
|
343
|
+
ServerTabLottieComponent,
|
|
344
|
+
ServerTabLottieProps,
|
|
84
345
|
SettingsEntry,
|
|
85
346
|
SettingsObject,
|
|
86
347
|
SettingsScreen,
|
|
87
348
|
SettingsValue,
|
|
349
|
+
SheetBottomSheetComponent,
|
|
350
|
+
SheetBottomSheetProps,
|
|
351
|
+
ShimmerLayersProps,
|
|
352
|
+
ShimmerTextSlotProps,
|
|
353
|
+
SimpleActionSheetComponent,
|
|
354
|
+
SimpleActionSheetProps,
|
|
355
|
+
SliderComponent,
|
|
88
356
|
SliderProps,
|
|
357
|
+
SlotProps,
|
|
358
|
+
SplitTextFieldProps,
|
|
359
|
+
SplitTextInputComponent,
|
|
89
360
|
SplitTextInputProps,
|
|
361
|
+
StackComponent,
|
|
90
362
|
StackProps,
|
|
363
|
+
StepModalComponent,
|
|
364
|
+
StepModalProps,
|
|
365
|
+
StepPillProps,
|
|
366
|
+
StickyWrapperComponent,
|
|
367
|
+
StickyWrapperProps,
|
|
91
368
|
StyleSheetSpec,
|
|
92
369
|
StyleSheetSpecOrFactory,
|
|
93
|
-
|
|
370
|
+
SubtitleProps,
|
|
371
|
+
TabItemCountProps,
|
|
372
|
+
TabItemProps,
|
|
373
|
+
TableCheckboxRowComponent,
|
|
94
374
|
TableCheckboxRowProps,
|
|
375
|
+
TableRadioGroupComponent,
|
|
95
376
|
TableRadioGroupProps,
|
|
377
|
+
TableRadioRowComponent,
|
|
96
378
|
TableRadioRowProps,
|
|
379
|
+
TableRowArrowComponent,
|
|
380
|
+
TableRowArrowProps,
|
|
97
381
|
TableRowComponent,
|
|
382
|
+
TableRowDividerProps,
|
|
383
|
+
TableRowGroupComponent,
|
|
98
384
|
TableRowGroupProps,
|
|
385
|
+
TableRowGroupTitleComponent,
|
|
99
386
|
TableRowGroupTitleProps,
|
|
387
|
+
TableRowIconComponent,
|
|
100
388
|
TableRowIconProps,
|
|
389
|
+
TableRowInnerProps,
|
|
101
390
|
TableRowProps,
|
|
391
|
+
TableRowStatics,
|
|
392
|
+
TableRowTrailingTextComponent,
|
|
393
|
+
TableRowTrailingTextProps,
|
|
394
|
+
TableSwitchRowComponent,
|
|
102
395
|
TableSwitchRowProps,
|
|
396
|
+
TabsComponent,
|
|
397
|
+
TabsProps,
|
|
398
|
+
TagGroupComponent,
|
|
399
|
+
TagGroupProps,
|
|
400
|
+
TextAreaComponent,
|
|
401
|
+
TextAreaFieldComponent,
|
|
402
|
+
TextAreaFieldProps,
|
|
103
403
|
TextAreaProps,
|
|
404
|
+
TextButtonIconComponent,
|
|
405
|
+
TextButtonIconProps,
|
|
406
|
+
TextFieldComponent,
|
|
104
407
|
TextFieldProps,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
TextProps,
|
|
408
|
+
TextHeadingComponent,
|
|
409
|
+
TextHeadingProps,
|
|
108
410
|
TextVariant,
|
|
109
411
|
TextWeight,
|
|
110
412
|
Theme,
|
|
413
|
+
ThemeContextProviderRootThemeContextProviderComponent,
|
|
414
|
+
ThemeContextProviderRootThemeContextProviderProps,
|
|
111
415
|
ThemeEntity,
|
|
416
|
+
ThemeProviderProps,
|
|
112
417
|
ThemeSemanticColor,
|
|
418
|
+
TitleProps,
|
|
113
419
|
ToastButton,
|
|
420
|
+
ToastComponent,
|
|
421
|
+
ToastContainerComponent,
|
|
422
|
+
ToastContainerProps,
|
|
423
|
+
ToastEntityContentProps,
|
|
424
|
+
ToastEntityProps,
|
|
114
425
|
ToastHandle,
|
|
115
426
|
ToastOptions,
|
|
427
|
+
ToastProps,
|
|
116
428
|
ToastStoreState,
|
|
117
|
-
|
|
429
|
+
ToggleIconButtonComponent,
|
|
430
|
+
ToggleIconButtonProps,
|
|
118
431
|
TransitionState,
|
|
119
432
|
UnboundAsset,
|
|
433
|
+
VisualEffectViewProps,
|
|
434
|
+
VoidIconProps,
|
|
435
|
+
VoidTextInputProps,
|
|
436
|
+
WrappedNavigationStackProps,
|
|
437
|
+
YouTabLottieComponent,
|
|
438
|
+
YouTabLottieProps,
|
|
120
439
|
} from './_internal';
|
|
121
440
|
import type { NativePlatformBridge } from './_internal';
|
|
122
|
-
import * as
|
|
123
|
-
import * as
|
|
441
|
+
import * as React$1 from 'react';
|
|
442
|
+
import * as RN from 'react-native';
|
|
124
443
|
|
|
125
444
|
declare global {
|
|
126
445
|
/**
|
|
@@ -129,12 +448,14 @@ declare global {
|
|
|
129
448
|
*/
|
|
130
449
|
var $$DEV$$: boolean;
|
|
131
450
|
var NativePlatform: NativePlatformBridge | undefined;
|
|
132
|
-
var React: typeof
|
|
133
|
-
var ReactNative: typeof
|
|
451
|
+
var React: typeof React$1;
|
|
452
|
+
var ReactNative: typeof RN;
|
|
134
453
|
}
|
|
135
454
|
|
|
136
455
|
export interface UnboundGlobal {
|
|
137
456
|
assets: typeof import('./assets.d.ts');
|
|
457
|
+
commands: typeof import('./commands.d.ts');
|
|
458
|
+
dialogs: typeof import('./dialogs.d.ts');
|
|
138
459
|
fs: typeof import('./fs.d.ts');
|
|
139
460
|
i18n: typeof import('./i18n.d.ts');
|
|
140
461
|
metro: typeof import('./metro/index.d.ts');
|
package/src/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
// Auto-generated by generate-plugin-sdk.ts - DO NOT EDIT
|
|
2
2
|
|
|
3
3
|
export * as assets from './assets';
|
|
4
|
+
export * as commands from './commands';
|
|
5
|
+
export * as dialogs from './dialogs';
|
|
4
6
|
export * as fs from './fs';
|
|
5
7
|
export * as i18n from './i18n';
|
|
6
8
|
export * as metro from './metro/index';
|
package/src/metro/api.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
// Auto-generated by generate-plugin-sdk.ts - DO NOT EDIT
|
|
2
2
|
|
|
3
|
+
export declare const ActionSheets: any;
|
|
3
4
|
export declare const AsyncUsers: any;
|
|
4
5
|
export declare const Invites: any;
|
|
5
6
|
export declare const Linking: any;
|
|
6
7
|
export declare const Messages: any;
|
|
7
8
|
export declare const OAuth2: any;
|
|
8
9
|
export declare const Profiles: any;
|
|
10
|
+
export declare const UserProfiles: any;
|
|
9
11
|
|
|
10
12
|
export {};
|
|
@@ -1,26 +1,101 @@
|
|
|
1
1
|
// Auto-generated by generate-plugin-sdk.ts - DO NOT EDIT
|
|
2
2
|
|
|
3
|
-
export type {
|
|
4
|
-
import type { DesignModule,
|
|
5
|
-
import * as
|
|
6
|
-
import { ComponentType, ReactNode } from 'react';
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
3
|
+
export type { DESIGN_COMPONENTS, DesignComponentName, DesignModule } from '../_internal';
|
|
4
|
+
import type { DesignComponentName, DesignModule, FormsFormSwitchProps } from '../_internal';
|
|
5
|
+
import * as React$1 from 'react';
|
|
6
|
+
import { ComponentProps, ComponentType, ElementType, ReactNode } from 'react';
|
|
7
|
+
import * as RN from 'react-native';
|
|
8
|
+
import { ColorValue, ImageStyle, TextStyle, ViewStyle } from 'react-native';
|
|
9
|
+
|
|
10
|
+
declare const HelpMessageTypes$1: any;
|
|
11
|
+
declare const HelpMessageTypes: {
|
|
12
|
+
readonly 0: 'WARNING';
|
|
13
|
+
readonly 1: 'INFO';
|
|
14
|
+
readonly 2: 'ERROR';
|
|
15
|
+
readonly 3: 'SUCCESS';
|
|
16
|
+
readonly WARNING: 0;
|
|
17
|
+
readonly INFO: 1;
|
|
18
|
+
readonly ERROR: 2;
|
|
19
|
+
readonly SUCCESS: 3;
|
|
20
|
+
};
|
|
21
|
+
export declare const AvatarPiles: any;
|
|
22
|
+
export declare const Avatars: any;
|
|
17
23
|
export declare const BackdropFilters: any;
|
|
24
|
+
export declare const BottomSheets: any;
|
|
25
|
+
export declare const DefaultAvatars: any;
|
|
26
|
+
/** Discord's design module, with Unbound's fallbacks standing in for components a build lacks. */
|
|
18
27
|
export declare const Discord: DesignModule;
|
|
19
28
|
export declare const FlashList: any;
|
|
20
29
|
export declare const Forms: any;
|
|
21
|
-
export declare const HelpMessage: any;
|
|
22
30
|
export declare const Media: any;
|
|
23
31
|
export declare const Portal: any;
|
|
24
32
|
export declare const SafeArea: any;
|
|
25
|
-
|
|
33
|
+
/**
|
|
34
|
+
* @description Discord's help message, or Unbound's own on Discord builds that no longer ship one, picked on first render.
|
|
35
|
+
* @param props The message, its type, text styling, corner radius and an optional trailing button.
|
|
36
|
+
* @returns The help message element.
|
|
37
|
+
*/
|
|
38
|
+
export declare function HelpMessage(
|
|
39
|
+
props: HelpMessageProps,
|
|
40
|
+
): import('react').ReactElement<
|
|
41
|
+
HelpMessageProps,
|
|
42
|
+
string | import('react').JSXElementConstructor<any>
|
|
43
|
+
>;
|
|
44
|
+
/**
|
|
45
|
+
* @description Discord's switch, or its form switch, or React Native's, picked on first render.
|
|
46
|
+
* @param props The switch props.
|
|
47
|
+
* @returns The switch element.
|
|
48
|
+
*/
|
|
49
|
+
export declare function Switch(
|
|
50
|
+
props: SwitchProps,
|
|
51
|
+
): import('react').ReactElement<
|
|
52
|
+
FormsFormSwitchProps,
|
|
53
|
+
string | import('react').JSXElementConstructor<any>
|
|
54
|
+
>;
|
|
55
|
+
/**
|
|
56
|
+
* @description Checks every design component the SDK exposes against the running Discord build.
|
|
57
|
+
* @returns The components Discord renders itself, the ones a fallback stands in for, and the ones nothing renders.
|
|
58
|
+
*/
|
|
59
|
+
export declare function auditDesignComponents(): DesignComponentAudit;
|
|
60
|
+
/**
|
|
61
|
+
* @description Tells whether a value can be rendered as a React element type: a function or class
|
|
62
|
+
* component, or a `memo`/`forwardRef`/`lazy` object.
|
|
63
|
+
* @param value The value to check.
|
|
64
|
+
* @returns Whether React can render it.
|
|
65
|
+
*/
|
|
66
|
+
export declare function isRenderable(
|
|
67
|
+
value:
|
|
68
|
+
| DesignModule[keyof DesignModule]
|
|
69
|
+
| React$1.ElementType
|
|
70
|
+
| Record<string, React$1.ComponentType<never>>
|
|
71
|
+
| undefined,
|
|
72
|
+
): value is React$1.ElementType;
|
|
73
|
+
/**
|
|
74
|
+
* @description Registers the component the design module returns when a Discord build lacks the
|
|
75
|
+
* named one or ships something React can't render.
|
|
76
|
+
* @param name The design component to stand in for.
|
|
77
|
+
* @param component The fallback.
|
|
78
|
+
*/
|
|
79
|
+
export declare function registerDesignFallback<K extends DesignComponentName>(
|
|
80
|
+
name: K,
|
|
81
|
+
component: DesignModule[K],
|
|
82
|
+
): void;
|
|
83
|
+
/** How each design component resolves on the running Discord build. */
|
|
84
|
+
export type DesignComponentAudit = {
|
|
85
|
+
native: DesignComponentName[];
|
|
86
|
+
fallback: DesignComponentName[];
|
|
87
|
+
missing: DesignComponentName[];
|
|
88
|
+
};
|
|
89
|
+
export type HelpMessageProps = {
|
|
90
|
+
children?: React$1.ReactNode;
|
|
91
|
+
messageType?: HelpMessageType;
|
|
92
|
+
textVariant?: string;
|
|
93
|
+
textColor?: ColorValue;
|
|
94
|
+
borderRadius?: number;
|
|
95
|
+
button?: React$1.ReactNode;
|
|
96
|
+
};
|
|
97
|
+
export type HelpMessageType = (typeof HelpMessageTypes)[keyof typeof HelpMessageTypes & string];
|
|
98
|
+
export type SwitchProps = React$1.ComponentProps<DesignModule['FormSwitch']>;
|
|
99
|
+
export { HelpMessageTypes$1 as HelpMessageTypes };
|
|
100
|
+
|
|
26
101
|
export {};
|
package/src/metro/index.d.ts
CHANGED
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
// Auto-generated by generate-plugin-sdk.ts - DO NOT EDIT
|
|
2
2
|
|
|
3
3
|
export type { DiscordFunction } from '../_internal';
|
|
4
|
-
import type { DiscordFunction } from '../_internal';
|
|
4
|
+
import type { DesignComponentName, DesignModule, DiscordFunction } from '../_internal';
|
|
5
5
|
import type { PredicateResult } from '../utils';
|
|
6
|
-
import * as
|
|
7
|
-
import { ComponentType, ReactNode } from 'react';
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
import * as React$1 from 'react';
|
|
7
|
+
import { ComponentProps, ComponentType, ElementType, ReactNode } from 'react';
|
|
8
|
+
import * as RN from 'react-native';
|
|
9
|
+
import { ColorValue, ImageStyle, TextStyle, ViewStyle } from 'react-native';
|
|
10
|
+
declare const HelpMessageTypes: {
|
|
11
|
+
readonly 0: 'WARNING';
|
|
12
|
+
readonly 1: 'INFO';
|
|
13
|
+
readonly 2: 'ERROR';
|
|
14
|
+
readonly 3: 'SUCCESS';
|
|
15
|
+
readonly WARNING: 0;
|
|
16
|
+
readonly INFO: 1;
|
|
17
|
+
readonly ERROR: 2;
|
|
18
|
+
readonly SUCCESS: 3;
|
|
19
|
+
};
|
|
20
|
+
declare const React$1: typeof import('react');
|
|
18
21
|
/** @internal */
|
|
19
22
|
declare const CACHE_KEY: unique symbol;
|
|
20
23
|
export declare const off: typeof removeListener;
|
|
@@ -115,6 +118,21 @@ export declare function initializeModule(id: number): boolean;
|
|
|
115
118
|
export declare function removeListener(listener: (mdl: any, id: number) => void): void;
|
|
116
119
|
/** An object of shape `T` widened with an arbitrary property index. */
|
|
117
120
|
export type AnyProps<T = unknown> = T & Record<PropertyKey, MetroExport>;
|
|
121
|
+
/** How each design component resolves on the running Discord build. */
|
|
122
|
+
export type DesignComponentAudit = {
|
|
123
|
+
native: DesignComponentName[];
|
|
124
|
+
fallback: DesignComponentName[];
|
|
125
|
+
missing: DesignComponentName[];
|
|
126
|
+
};
|
|
127
|
+
export type HelpMessageProps = {
|
|
128
|
+
children?: React$1.ReactNode;
|
|
129
|
+
messageType?: HelpMessageType;
|
|
130
|
+
textVariant?: string;
|
|
131
|
+
textColor?: ColorValue;
|
|
132
|
+
borderRadius?: number;
|
|
133
|
+
button?: React$1.ReactNode;
|
|
134
|
+
};
|
|
135
|
+
export type HelpMessageType = (typeof HelpMessageTypes)[keyof typeof HelpMessageTypes & string];
|
|
118
136
|
/** Widens a single result to an array when the search was made with `all: true`. */
|
|
119
137
|
export type MetroAllValues<T extends MetroSearchOptions, U> = T extends {
|
|
120
138
|
all: true;
|
|
@@ -228,6 +246,7 @@ export type MetroStringFindWithOptions<T extends string, Options = MetroSearchOp
|
|
|
228
246
|
...T[],
|
|
229
247
|
Options,
|
|
230
248
|
];
|
|
249
|
+
export type SwitchProps = React$1.ComponentProps<DesignModule['FormSwitch']>;
|
|
231
250
|
export * as api from './api';
|
|
232
251
|
export * as common from './common';
|
|
233
252
|
export * as components from './components';
|