@qontinui/ui-bridge-native 0.3.1 → 0.4.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/dist/control/{index.d.mts → action-executor.d.ts} +6 -10
- package/dist/control/action-executor.d.ts.map +1 -0
- package/dist/control/index.d.ts +5 -95
- package/dist/control/index.d.ts.map +1 -0
- package/dist/{types-CjEKTDYT.d.ts → control/types.d.ts} +17 -20
- package/dist/control/types.d.ts.map +1 -0
- package/dist/core/element-identifier.d.ts +41 -0
- package/dist/core/element-identifier.d.ts.map +1 -0
- package/dist/core/index.d.ts +6 -43
- package/dist/core/index.d.ts.map +1 -0
- package/dist/{registry-pAUpQq2O.d.ts → core/registry.d.ts} +10 -13
- package/dist/core/registry.d.ts.map +1 -0
- package/dist/{types-CGVut7mc.d.mts → core/types.d.ts} +41 -41
- package/dist/core/types.d.ts.map +1 -0
- package/dist/debug/index.d.ts +4 -44
- package/dist/debug/index.d.ts.map +1 -0
- package/dist/debug/index.js +1 -1
- package/dist/debug/index.js.map +1 -1
- package/dist/debug/index.mjs +2 -2
- package/dist/debug/index.mjs.map +1 -1
- package/dist/debug/{index.d.mts → inspector.d.ts} +3 -6
- package/dist/debug/inspector.d.ts.map +1 -0
- package/dist/design/{index.d.mts → design-inspector-native.d.ts} +7 -11
- package/dist/design/design-inspector-native.d.ts.map +1 -0
- package/dist/{design-types-BHr6Q1FX.d.mts → design/design-types.d.ts} +10 -11
- package/dist/design/design-types.d.ts.map +1 -0
- package/dist/design/index.d.ts +5 -60
- package/dist/design/index.d.ts.map +1 -0
- package/dist/index.d.ts +37 -86
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/dist/modal/index.d.ts +2 -0
- package/dist/modal/index.d.ts.map +1 -0
- package/dist/modal/modal-detector.d.ts +29 -0
- package/dist/modal/modal-detector.d.ts.map +1 -0
- package/dist/react/StateAnnotation.d.ts +30 -0
- package/dist/react/StateAnnotation.d.ts.map +1 -0
- package/dist/react/UIBridgeNativeProvider.d.ts +156 -0
- package/dist/react/UIBridgeNativeProvider.d.ts.map +1 -0
- package/dist/react/index.d.ts +14 -69
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +3 -3
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +4 -4
- package/dist/react/index.mjs.map +1 -1
- package/dist/react/{index.d.mts → useAutoRegister.d.ts} +7 -15
- package/dist/react/useAutoRegister.d.ts.map +1 -0
- package/dist/react/useUIBridge.d.ts +103 -0
- package/dist/react/useUIBridge.d.ts.map +1 -0
- package/dist/react/useUIBridgeModal.d.ts +14 -0
- package/dist/react/useUIBridgeModal.d.ts.map +1 -0
- package/dist/react/useUIBridgeToast.d.ts +25 -0
- package/dist/react/useUIBridgeToast.d.ts.map +1 -0
- package/dist/react/useUIComponent.d.ts +112 -0
- package/dist/react/useUIComponent.d.ts.map +1 -0
- package/dist/react/useUIElement.d.ts +162 -0
- package/dist/react/useUIElement.d.ts.map +1 -0
- package/dist/server/design-handlers.d.ts +47 -0
- package/dist/server/design-handlers.d.ts.map +1 -0
- package/dist/server/handlers.d.ts +25 -0
- package/dist/server/handlers.d.ts.map +1 -0
- package/dist/server/http-server.d.ts +262 -0
- package/dist/server/http-server.d.ts.map +1 -0
- package/dist/server/index.d.ts +14 -176
- package/dist/server/index.d.ts.map +1 -0
- package/dist/server/observability.d.ts +55 -0
- package/dist/server/observability.d.ts.map +1 -0
- package/dist/server/types.d.ts +368 -0
- package/dist/server/types.d.ts.map +1 -0
- package/dist/server/ws-connection.d.ts +48 -0
- package/dist/server/ws-connection.d.ts.map +1 -0
- package/dist/server/ws-event-bridge.d.ts +113 -0
- package/dist/server/ws-event-bridge.d.ts.map +1 -0
- package/dist/server/ws-protocol.d.ts +48 -0
- package/dist/server/ws-protocol.d.ts.map +1 -0
- package/dist/server/ws-types.d.ts +65 -0
- package/dist/server/ws-types.d.ts.map +1 -0
- package/dist/toast/index.d.ts +2 -0
- package/dist/toast/index.d.ts.map +1 -0
- package/dist/toast/toast-capture.d.ts +27 -0
- package/dist/toast/toast-capture.d.ts.map +1 -0
- package/dist/transport/CloudRelayClient.d.ts +51 -0
- package/dist/transport/CloudRelayClient.d.ts.map +1 -0
- package/dist/transport/DeviceAnnouncer.d.ts +75 -0
- package/dist/transport/DeviceAnnouncer.d.ts.map +1 -0
- package/dist/transport/index.d.ts +3 -0
- package/dist/transport/index.d.ts.map +1 -0
- package/dist/transport/logger.d.ts +23 -0
- package/dist/transport/logger.d.ts.map +1 -0
- package/dist/undo/index.d.ts +3 -0
- package/dist/undo/index.d.ts.map +1 -0
- package/dist/undo/undo-tracker.d.ts +59 -0
- package/dist/undo/undo-tracker.d.ts.map +1 -0
- package/package.json +3 -3
- package/dist/StateAnnotation--zm0Jfqj.d.ts +0 -755
- package/dist/StateAnnotation-BgFoVWFy.d.mts +0 -755
- package/dist/core/index.d.mts +0 -46
- package/dist/design-types-BHr6Q1FX.d.ts +0 -205
- package/dist/http-server--550eD1F.d.mts +0 -805
- package/dist/http-server-C9NaNBEP.d.ts +0 -805
- package/dist/index.d.mts +0 -89
- package/dist/registry-B5JadBN9.d.mts +0 -300
- package/dist/server/index.d.mts +0 -178
- package/dist/types-B0XA4vOF.d.mts +0 -197
- package/dist/types-CGVut7mc.d.ts +0 -567
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Adapted from ui-bridge for React Native environments.
|
|
6
6
|
*/
|
|
7
7
|
type AnyNativeElement = any;
|
|
8
|
-
interface WaitOptions {
|
|
8
|
+
export interface WaitOptions {
|
|
9
9
|
/** Wait for element to be visible */
|
|
10
10
|
visible?: boolean;
|
|
11
11
|
/** Wait for element to be enabled */
|
|
@@ -19,22 +19,22 @@ interface WaitOptions {
|
|
|
19
19
|
/** Polling interval in milliseconds */
|
|
20
20
|
interval?: number;
|
|
21
21
|
}
|
|
22
|
-
type ActionHandler<TParams = unknown, TResult = unknown> = (params?: TParams) => TResult | Promise<TResult>;
|
|
23
|
-
interface CustomAction<TParams = unknown, TResult = unknown> {
|
|
22
|
+
export type ActionHandler<TParams = unknown, TResult = unknown> = (params?: TParams) => TResult | Promise<TResult>;
|
|
23
|
+
export interface CustomAction<TParams = unknown, TResult = unknown> {
|
|
24
24
|
id: string;
|
|
25
25
|
label?: string;
|
|
26
26
|
description?: string;
|
|
27
27
|
handler: ActionHandler<TParams, TResult>;
|
|
28
28
|
}
|
|
29
|
-
interface ComponentAction<TParams = unknown, TResult = unknown> {
|
|
29
|
+
export interface ComponentAction<TParams = unknown, TResult = unknown> {
|
|
30
30
|
id: string;
|
|
31
31
|
label?: string;
|
|
32
32
|
description?: string;
|
|
33
33
|
paramSchema?: Record<string, unknown>;
|
|
34
34
|
handler: ActionHandler<TParams, TResult>;
|
|
35
35
|
}
|
|
36
|
-
type WorkflowStepType = 'element-action' | 'component-action' | 'wait' | 'assert' | 'navigate' | 'branch' | 'loop' | 'extract' | 'log' | 'custom';
|
|
37
|
-
interface WorkflowStep {
|
|
36
|
+
export type WorkflowStepType = 'element-action' | 'component-action' | 'wait' | 'assert' | 'navigate' | 'branch' | 'loop' | 'extract' | 'log' | 'custom';
|
|
37
|
+
export interface WorkflowStep {
|
|
38
38
|
id: string;
|
|
39
39
|
type: WorkflowStepType;
|
|
40
40
|
target?: string;
|
|
@@ -43,29 +43,29 @@ interface WorkflowStep {
|
|
|
43
43
|
waitOptions?: WaitOptions;
|
|
44
44
|
handler?: () => unknown | Promise<unknown>;
|
|
45
45
|
}
|
|
46
|
-
interface Workflow {
|
|
46
|
+
export interface Workflow {
|
|
47
47
|
id: string;
|
|
48
48
|
name: string;
|
|
49
49
|
description?: string;
|
|
50
50
|
steps: WorkflowStep[];
|
|
51
51
|
defaultParams?: Record<string, unknown>;
|
|
52
52
|
}
|
|
53
|
-
type BridgeEventType = 'element:registered' | 'element:unregistered' | 'element:stateChanged' | 'component:registered' | 'component:unregistered' | 'action:started' | 'action:completed' | 'action:failed' | 'workflow:started' | 'workflow:stepCompleted' | 'workflow:completed' | 'workflow:failed' | 'render:snapshot' | 'error';
|
|
54
|
-
interface BridgeEvent<T = unknown> {
|
|
53
|
+
export type BridgeEventType = 'element:registered' | 'element:unregistered' | 'element:stateChanged' | 'component:registered' | 'component:unregistered' | 'action:started' | 'action:completed' | 'action:failed' | 'workflow:started' | 'workflow:stepCompleted' | 'workflow:completed' | 'workflow:failed' | 'render:snapshot' | 'error';
|
|
54
|
+
export interface BridgeEvent<T = unknown> {
|
|
55
55
|
type: BridgeEventType;
|
|
56
56
|
timestamp: number;
|
|
57
57
|
data: T;
|
|
58
58
|
}
|
|
59
|
-
type BridgeEventListener<T = unknown> = (event: BridgeEvent<T>) => void;
|
|
59
|
+
export type BridgeEventListener<T = unknown> = (event: BridgeEvent<T>) => void;
|
|
60
60
|
/**
|
|
61
61
|
* React Native element reference type.
|
|
62
62
|
* Uses a generic type to avoid conflicts between different react-native versions.
|
|
63
63
|
*/
|
|
64
|
-
type NativeElementRef = AnyNativeElement | null;
|
|
64
|
+
export type NativeElementRef = AnyNativeElement | null;
|
|
65
65
|
/**
|
|
66
66
|
* Element identification for React Native (replaces XPath/CSS selectors)
|
|
67
67
|
*/
|
|
68
|
-
interface NativeElementIdentifier {
|
|
68
|
+
export interface NativeElementIdentifier {
|
|
69
69
|
/** Explicit UI Bridge identifier */
|
|
70
70
|
uiId?: string;
|
|
71
71
|
/** React Native testID prop */
|
|
@@ -82,7 +82,7 @@ interface NativeElementIdentifier {
|
|
|
82
82
|
/**
|
|
83
83
|
* Layout information from onLayout callback
|
|
84
84
|
*/
|
|
85
|
-
interface NativeLayout {
|
|
85
|
+
export interface NativeLayout {
|
|
86
86
|
/** X position relative to parent */
|
|
87
87
|
x: number;
|
|
88
88
|
/** Y position relative to parent */
|
|
@@ -99,7 +99,7 @@ interface NativeLayout {
|
|
|
99
99
|
/**
|
|
100
100
|
* Current state of a native UI element
|
|
101
101
|
*/
|
|
102
|
-
interface NativeElementState {
|
|
102
|
+
export interface NativeElementState {
|
|
103
103
|
/** Whether the element is mounted in the tree */
|
|
104
104
|
mounted: boolean;
|
|
105
105
|
/** Whether the element is visible on screen */
|
|
@@ -130,15 +130,15 @@ interface NativeElementState {
|
|
|
130
130
|
/**
|
|
131
131
|
* Types of native UI elements that can be registered
|
|
132
132
|
*/
|
|
133
|
-
type NativeElementType = 'button' | 'input' | 'text' | 'view' | 'scroll' | 'list' | 'listItem' | 'switch' | 'checkbox' | 'radio' | 'image' | 'touchable' | 'pressable' | 'modal' | 'custom';
|
|
133
|
+
export type NativeElementType = 'button' | 'input' | 'text' | 'view' | 'scroll' | 'list' | 'listItem' | 'switch' | 'checkbox' | 'radio' | 'image' | 'touchable' | 'pressable' | 'modal' | 'custom';
|
|
134
134
|
/**
|
|
135
135
|
* Standard actions available on native elements
|
|
136
136
|
*/
|
|
137
|
-
type NativeStandardAction = 'press' | 'click' | 'longPress' | 'doubleTap' | 'type' | 'clear' | 'focus' | 'blur' | 'scroll' | 'swipe' | 'toggle';
|
|
137
|
+
export type NativeStandardAction = 'press' | 'click' | 'longPress' | 'doubleTap' | 'type' | 'clear' | 'focus' | 'blur' | 'scroll' | 'swipe' | 'toggle';
|
|
138
138
|
/**
|
|
139
139
|
* Custom action definition for native elements
|
|
140
140
|
*/
|
|
141
|
-
interface NativeCustomAction<TParams = unknown, TResult = unknown> {
|
|
141
|
+
export interface NativeCustomAction<TParams = unknown, TResult = unknown> {
|
|
142
142
|
/** Action identifier */
|
|
143
143
|
id: string;
|
|
144
144
|
/** Human-readable label */
|
|
@@ -151,7 +151,7 @@ interface NativeCustomAction<TParams = unknown, TResult = unknown> {
|
|
|
151
151
|
/**
|
|
152
152
|
* A native UI element registered with the bridge
|
|
153
153
|
*/
|
|
154
|
-
interface RegisteredNativeElement {
|
|
154
|
+
export interface RegisteredNativeElement {
|
|
155
155
|
/** Unique identifier for this element */
|
|
156
156
|
id: string;
|
|
157
157
|
/** Reference to the native element */
|
|
@@ -188,7 +188,7 @@ interface RegisteredNativeElement {
|
|
|
188
188
|
/**
|
|
189
189
|
* Component action definition for native components
|
|
190
190
|
*/
|
|
191
|
-
interface NativeComponentAction<TParams = unknown, TResult = unknown> {
|
|
191
|
+
export interface NativeComponentAction<TParams = unknown, TResult = unknown> {
|
|
192
192
|
/** Action identifier */
|
|
193
193
|
id: string;
|
|
194
194
|
/** Human-readable label */
|
|
@@ -203,7 +203,7 @@ interface NativeComponentAction<TParams = unknown, TResult = unknown> {
|
|
|
203
203
|
/**
|
|
204
204
|
* A native component registered with the bridge (higher-level than elements)
|
|
205
205
|
*/
|
|
206
|
-
interface RegisteredNativeComponent {
|
|
206
|
+
export interface RegisteredNativeComponent {
|
|
207
207
|
/** Unique identifier for this component */
|
|
208
208
|
id: string;
|
|
209
209
|
/** Human-readable name */
|
|
@@ -222,7 +222,7 @@ interface RegisteredNativeComponent {
|
|
|
222
222
|
/**
|
|
223
223
|
* Action request for native elements
|
|
224
224
|
*/
|
|
225
|
-
interface NativeActionRequest {
|
|
225
|
+
export interface NativeActionRequest {
|
|
226
226
|
/** Action to execute */
|
|
227
227
|
action: NativeStandardAction | string;
|
|
228
228
|
/** Action parameters */
|
|
@@ -247,7 +247,7 @@ interface NativeActionRequest {
|
|
|
247
247
|
/**
|
|
248
248
|
* Response from a native action execution
|
|
249
249
|
*/
|
|
250
|
-
interface NativeActionResponse {
|
|
250
|
+
export interface NativeActionResponse {
|
|
251
251
|
/** Whether the action succeeded */
|
|
252
252
|
success: boolean;
|
|
253
253
|
/** Element state after the action */
|
|
@@ -280,7 +280,7 @@ interface NativeActionResponse {
|
|
|
280
280
|
* `registrationRoute`. Elements registered without a route are bucketed
|
|
281
281
|
* under `'?'`, which is itself a useful diagnostic signal.
|
|
282
282
|
*/
|
|
283
|
-
interface NativeRegistrationCoverage {
|
|
283
|
+
export interface NativeRegistrationCoverage {
|
|
284
284
|
totalRegistered: number;
|
|
285
285
|
everHadRegistrations: boolean;
|
|
286
286
|
byRoute: Record<string, number>;
|
|
@@ -291,7 +291,7 @@ interface NativeRegistrationCoverage {
|
|
|
291
291
|
* Re-export of the `appInfo` shape used in `NativeUIBridgeConfig` so
|
|
292
292
|
* snapshot consumers can type-narrow without importing the config.
|
|
293
293
|
*/
|
|
294
|
-
interface NativeAppInfo {
|
|
294
|
+
export interface NativeAppInfo {
|
|
295
295
|
appId: string;
|
|
296
296
|
appName: string;
|
|
297
297
|
appType: 'web' | 'desktop' | 'mobile' | 'other';
|
|
@@ -300,7 +300,7 @@ interface NativeAppInfo {
|
|
|
300
300
|
/**
|
|
301
301
|
* Snapshot of the entire native UI bridge state
|
|
302
302
|
*/
|
|
303
|
-
interface NativeBridgeSnapshot {
|
|
303
|
+
export interface NativeBridgeSnapshot {
|
|
304
304
|
/** Timestamp of the snapshot */
|
|
305
305
|
timestamp: number;
|
|
306
306
|
/** All registered elements */
|
|
@@ -361,7 +361,7 @@ interface NativeBridgeSnapshot {
|
|
|
361
361
|
appInfo?: NativeAppInfo;
|
|
362
362
|
}
|
|
363
363
|
/** A single detected modal-like surface (modal, sheet, drawer, popover, alert) */
|
|
364
|
-
interface NativeModalInfo {
|
|
364
|
+
export interface NativeModalInfo {
|
|
365
365
|
id: string;
|
|
366
366
|
title?: string;
|
|
367
367
|
type: 'modal' | 'sheet' | 'drawer' | 'popover' | 'alertdialog' | 'dialog';
|
|
@@ -376,14 +376,14 @@ interface NativeModalInfo {
|
|
|
376
376
|
* `SnapshotModalContext` so external agents can write transport-agnostic checks
|
|
377
377
|
* like `snapshot.modalStack?.hasBlockingModal`.
|
|
378
378
|
*/
|
|
379
|
-
interface NativeSnapshotModalContext {
|
|
379
|
+
export interface NativeSnapshotModalContext {
|
|
380
380
|
modals: NativeModalInfo[];
|
|
381
381
|
topModal?: NativeModalInfo;
|
|
382
382
|
hasBlockingModal: boolean;
|
|
383
383
|
count: number;
|
|
384
384
|
}
|
|
385
385
|
/** A captured toast/snackbar */
|
|
386
|
-
interface NativeCapturedToast {
|
|
386
|
+
export interface NativeCapturedToast {
|
|
387
387
|
id: string;
|
|
388
388
|
message: string;
|
|
389
389
|
level: 'info' | 'success' | 'warning' | 'error' | 'loading' | 'unknown';
|
|
@@ -394,7 +394,7 @@ interface NativeCapturedToast {
|
|
|
394
394
|
durationMs: number;
|
|
395
395
|
}
|
|
396
396
|
/** Toast context attached to a snapshot */
|
|
397
|
-
interface NativeSnapshotToastContext {
|
|
397
|
+
export interface NativeSnapshotToastContext {
|
|
398
398
|
/** Toasts currently on screen */
|
|
399
399
|
active: NativeCapturedToast[];
|
|
400
400
|
/** Recently-dismissed toasts retained by the capture buffer (most recent first) */
|
|
@@ -407,7 +407,7 @@ interface NativeSnapshotToastContext {
|
|
|
407
407
|
* `SnapshotUndoContext` minus DOM-only fields — RN has no `document.execCommand`
|
|
408
408
|
* or selectors, so the native variant relies entirely on developer declaration.
|
|
409
409
|
*/
|
|
410
|
-
interface NativeSnapshotUndoContext {
|
|
410
|
+
export interface NativeSnapshotUndoContext {
|
|
411
411
|
/** Whether undo appears to be available */
|
|
412
412
|
canUndo: boolean;
|
|
413
413
|
/** Whether redo appears to be available */
|
|
@@ -430,7 +430,7 @@ interface NativeSnapshotUndoContext {
|
|
|
430
430
|
* implementation that satisfies this shape can fill the slot — production
|
|
431
431
|
* uses the `ModalDetector` class.
|
|
432
432
|
*/
|
|
433
|
-
interface NativeModalDetectorLike {
|
|
433
|
+
export interface NativeModalDetectorLike {
|
|
434
434
|
getSnapshotModalContext(): NativeSnapshotModalContext;
|
|
435
435
|
pushModal(modal: {
|
|
436
436
|
id: string;
|
|
@@ -447,7 +447,7 @@ interface NativeModalDetectorLike {
|
|
|
447
447
|
* that the registry calls during `createSnapshot`. NavigationTracker is intentionally
|
|
448
448
|
* NOT here — route info already flows through `currentRoute` / `segments`.
|
|
449
449
|
*/
|
|
450
|
-
interface NativeSnapshotEnrichers {
|
|
450
|
+
export interface NativeSnapshotEnrichers {
|
|
451
451
|
modalDetector?: NativeModalDetectorLike;
|
|
452
452
|
toastCapture?: {
|
|
453
453
|
getSnapshotToastContext(): NativeSnapshotToastContext;
|
|
@@ -461,7 +461,7 @@ interface NativeSnapshotEnrichers {
|
|
|
461
461
|
* that get `Object.assign`ed onto the snapshot. Used for ad-hoc/custom trackers
|
|
462
462
|
* (e.g. runner sidebar tabs) without growing the canonical enricher set.
|
|
463
463
|
*/
|
|
464
|
-
type NativeSnapshotEnricher = (ctx: {
|
|
464
|
+
export type NativeSnapshotEnricher = (ctx: {
|
|
465
465
|
elements: RegisteredNativeElement[];
|
|
466
466
|
currentRoute: string | null;
|
|
467
467
|
}) => Record<string, unknown>;
|
|
@@ -479,14 +479,14 @@ type NativeSnapshotEnricher = (ctx: {
|
|
|
479
479
|
* `NativeUIBridgeServer` instance and therefore couldn't read the route
|
|
480
480
|
* before this hook existed.
|
|
481
481
|
*/
|
|
482
|
-
interface NativeRouteProviderLike {
|
|
482
|
+
export interface NativeRouteProviderLike {
|
|
483
483
|
getCurrentRoute: () => string | null;
|
|
484
484
|
getSegments?: () => string[];
|
|
485
485
|
}
|
|
486
486
|
/**
|
|
487
487
|
* UI Bridge Native feature flags
|
|
488
488
|
*/
|
|
489
|
-
interface NativeUIBridgeFeatures {
|
|
489
|
+
export interface NativeUIBridgeFeatures {
|
|
490
490
|
/** Enable HTTP control server */
|
|
491
491
|
server?: boolean;
|
|
492
492
|
/** Enable debug tools (inspector overlay) */
|
|
@@ -503,7 +503,7 @@ interface NativeUIBridgeFeatures {
|
|
|
503
503
|
/**
|
|
504
504
|
* UI Bridge Native configuration
|
|
505
505
|
*/
|
|
506
|
-
interface NativeUIBridgeConfig {
|
|
506
|
+
export interface NativeUIBridgeConfig {
|
|
507
507
|
/** Port for HTTP server */
|
|
508
508
|
serverPort?: number;
|
|
509
509
|
/** Enable verbose logging */
|
|
@@ -521,7 +521,7 @@ interface NativeUIBridgeConfig {
|
|
|
521
521
|
/**
|
|
522
522
|
* Find request for discovering native elements
|
|
523
523
|
*/
|
|
524
|
-
interface NativeFindRequest {
|
|
524
|
+
export interface NativeFindRequest {
|
|
525
525
|
/** Filter by element type */
|
|
526
526
|
types?: NativeElementType[];
|
|
527
527
|
/** Filter by testID pattern (supports wildcards) */
|
|
@@ -536,7 +536,7 @@ interface NativeFindRequest {
|
|
|
536
536
|
/**
|
|
537
537
|
* Discovered native element
|
|
538
538
|
*/
|
|
539
|
-
interface DiscoveredNativeElement {
|
|
539
|
+
export interface DiscoveredNativeElement {
|
|
540
540
|
/** Element ID */
|
|
541
541
|
id: string;
|
|
542
542
|
/** Element type */
|
|
@@ -553,7 +553,7 @@ interface DiscoveredNativeElement {
|
|
|
553
553
|
/**
|
|
554
554
|
* Find response
|
|
555
555
|
*/
|
|
556
|
-
interface NativeFindResponse {
|
|
556
|
+
export interface NativeFindResponse {
|
|
557
557
|
/** Discovered elements */
|
|
558
558
|
elements: DiscoveredNativeElement[];
|
|
559
559
|
/** Total count */
|
|
@@ -563,5 +563,5 @@ interface NativeFindResponse {
|
|
|
563
563
|
/** Timestamp */
|
|
564
564
|
timestamp: number;
|
|
565
565
|
}
|
|
566
|
-
|
|
567
|
-
|
|
566
|
+
export {};
|
|
567
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/core/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,KAAK,gBAAgB,GAAG,GAAG,CAAC;AAK5B,MAAM,WAAW,WAAW;IAC1B,qCAAqC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,qCAAqC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,qCAAqC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,8BAA8B;IAC9B,OAAO,CAAC,EAAE,MAAM,CA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yB;IACzB,UAAU,EAAE,uBAAuB,CAAC;IACpC,oBAAoB;IACpB,KAAK,EAAE,kBAAkB,CAAC;IAC1B,wBAAwB;IACxB,OAAO,EAAE,oBAAoB,EAAE,CAAC;IAChC,YAAY;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,0BAA0B;IAC1B,QAAQ,EAAE,uBAAuB,EAAE,CAAC;IACpC,kBAAkB;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,+BAA+B;IAC/B,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
package/dist/debug/index.d.ts
CHANGED
|
@@ -1,47 +1,7 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
1
|
/**
|
|
4
|
-
* UI Bridge Native Debug
|
|
2
|
+
* UI Bridge Native - Debug
|
|
5
3
|
*
|
|
6
|
-
*
|
|
7
|
-
* inspection of the UI Bridge state.
|
|
4
|
+
* Debug tools for React Native development.
|
|
8
5
|
*/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
*/
|
|
12
|
-
interface UIBridgeInspectorProps {
|
|
13
|
-
/** Whether to show the inspector */
|
|
14
|
-
visible?: boolean;
|
|
15
|
-
/** Callback when inspector is closed */
|
|
16
|
-
onClose?: () => void;
|
|
17
|
-
/** Position of the inspector toggle button */
|
|
18
|
-
togglePosition?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* UI Bridge Inspector component
|
|
22
|
-
*
|
|
23
|
-
* Shows an overlay with information about registered elements.
|
|
24
|
-
* Useful for debugging and development.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```tsx
|
|
28
|
-
* function App() {
|
|
29
|
-
* const [showInspector, setShowInspector] = useState(false);
|
|
30
|
-
*
|
|
31
|
-
* return (
|
|
32
|
-
* <UIBridgeNativeProvider features={{ debug: __DEV__ }}>
|
|
33
|
-
* <MainContent />
|
|
34
|
-
* {__DEV__ && (
|
|
35
|
-
* <UIBridgeInspector
|
|
36
|
-
* visible={showInspector}
|
|
37
|
-
* onClose={() => setShowInspector(false)}
|
|
38
|
-
* />
|
|
39
|
-
* )}
|
|
40
|
-
* </UIBridgeNativeProvider>
|
|
41
|
-
* );
|
|
42
|
-
* }
|
|
43
|
-
* ```
|
|
44
|
-
*/
|
|
45
|
-
declare function UIBridgeInspector({ visible, onClose, togglePosition, }: UIBridgeInspectorProps): react_jsx_runtime.JSX.Element | null;
|
|
46
|
-
|
|
47
|
-
export { UIBridgeInspector, type UIBridgeInspectorProps };
|
|
6
|
+
export * from './inspector';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/debug/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,aAAa,CAAC"}
|
package/dist/debug/index.js
CHANGED