@qontinui/ui-bridge-native 0.3.2 → 0.5.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/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 +60 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +61 -5
- 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 +163 -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 +60 -4
- package/dist/react/index.js.map +1 -1
- package/dist/react/index.mjs +61 -5
- 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 +269 -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/index.js +51 -1
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +51 -1
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/observability.d.ts +55 -0
- package/dist/server/observability.d.ts.map +1 -0
- package/dist/server/types.d.ts +377 -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
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
import { W as WaitOptions, N as NativeActionRequest, d as NativeActionResponse, m as NativeFindRequest, n as NativeFindResponse, k as NativeElementState } from './types-CGVut7mc.mjs';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* UI Bridge Native Control Types
|
|
5
|
-
*
|
|
6
|
-
* Types for action execution and control operations.
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Extended action request with control-specific options
|
|
11
|
-
*/
|
|
12
|
-
interface ControlActionRequest extends NativeActionRequest {
|
|
13
|
-
/** Request ID for correlation */
|
|
14
|
-
requestId?: string;
|
|
15
|
-
/** Capture snapshot after action */
|
|
16
|
-
captureAfter?: boolean;
|
|
17
|
-
/** Retry options */
|
|
18
|
-
retryOptions?: {
|
|
19
|
-
maxRetries?: number;
|
|
20
|
-
retryDelay?: number;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Extended action response with control-specific data
|
|
25
|
-
*/
|
|
26
|
-
interface ControlActionResponse extends NativeActionResponse {
|
|
27
|
-
/** Request ID for correlation */
|
|
28
|
-
requestId?: string;
|
|
29
|
-
/** Retry count */
|
|
30
|
-
retryCount?: number;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Component action request
|
|
34
|
-
*/
|
|
35
|
-
interface ComponentActionRequest {
|
|
36
|
-
/** Action to execute */
|
|
37
|
-
action: string;
|
|
38
|
-
/** Action parameters */
|
|
39
|
-
params?: Record<string, unknown>;
|
|
40
|
-
/** Request ID for correlation */
|
|
41
|
-
requestId?: string;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Component action response
|
|
45
|
-
*/
|
|
46
|
-
interface ComponentActionResponse {
|
|
47
|
-
/** Whether the action succeeded */
|
|
48
|
-
success: boolean;
|
|
49
|
-
/** Result of the action */
|
|
50
|
-
result?: unknown;
|
|
51
|
-
/** Error message if failed */
|
|
52
|
-
error?: string;
|
|
53
|
-
/** Stack trace if failed */
|
|
54
|
-
stack?: string;
|
|
55
|
-
/** Duration in milliseconds */
|
|
56
|
-
durationMs: number;
|
|
57
|
-
/** Timestamp */
|
|
58
|
-
timestamp: number;
|
|
59
|
-
/** Request ID for correlation */
|
|
60
|
-
requestId?: string;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Wait result
|
|
64
|
-
*/
|
|
65
|
-
interface WaitResult {
|
|
66
|
-
/** Whether conditions were met */
|
|
67
|
-
met: boolean;
|
|
68
|
-
/** Time spent waiting in milliseconds */
|
|
69
|
-
waitedMs: number;
|
|
70
|
-
/** Final element state */
|
|
71
|
-
state?: NativeElementState;
|
|
72
|
-
/** Error message if failed */
|
|
73
|
-
error?: string;
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Action event emitted after executeAction completes (success or failure).
|
|
77
|
-
*/
|
|
78
|
-
interface NativeActionEvent {
|
|
79
|
-
elementId: string;
|
|
80
|
-
action: string;
|
|
81
|
-
params?: unknown;
|
|
82
|
-
success: boolean;
|
|
83
|
-
error?: string;
|
|
84
|
-
/** ms since epoch when the executor finished the action */
|
|
85
|
-
timestamp: number;
|
|
86
|
-
/** request id propagated from ControlActionRequest, if any */
|
|
87
|
-
requestId?: string;
|
|
88
|
-
durationMs: number;
|
|
89
|
-
}
|
|
90
|
-
type NativeActionListener = (event: NativeActionEvent) => void;
|
|
91
|
-
/**
|
|
92
|
-
* Native action executor interface
|
|
93
|
-
*/
|
|
94
|
-
interface NativeActionExecutor {
|
|
95
|
-
/**
|
|
96
|
-
* Execute an action on an element
|
|
97
|
-
*/
|
|
98
|
-
executeAction(elementId: string, request: ControlActionRequest): Promise<ControlActionResponse>;
|
|
99
|
-
/**
|
|
100
|
-
* Execute a component action
|
|
101
|
-
*/
|
|
102
|
-
executeComponentAction(componentId: string, request: ComponentActionRequest): Promise<ComponentActionResponse>;
|
|
103
|
-
/**
|
|
104
|
-
* Find elements
|
|
105
|
-
*/
|
|
106
|
-
find(request: NativeFindRequest): Promise<NativeFindResponse>;
|
|
107
|
-
/**
|
|
108
|
-
* Wait for element conditions
|
|
109
|
-
*/
|
|
110
|
-
waitForElement(elementId: string, options: WaitOptions): Promise<WaitResult>;
|
|
111
|
-
/** Subscribe to action events. Returns an unsubscribe function. */
|
|
112
|
-
onActionExecuted(listener: NativeActionListener): () => void;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Page navigation request
|
|
116
|
-
*/
|
|
117
|
-
interface PageNavigateRequest {
|
|
118
|
-
/** URL to navigate to */
|
|
119
|
-
url: string;
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* Page navigation response
|
|
123
|
-
*/
|
|
124
|
-
interface PageNavigationResponse {
|
|
125
|
-
/** Whether the navigation succeeded */
|
|
126
|
-
success: boolean;
|
|
127
|
-
/** Current URL after navigation */
|
|
128
|
-
url?: string;
|
|
129
|
-
/** Timestamp */
|
|
130
|
-
timestamp: number;
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Action execution options
|
|
134
|
-
*/
|
|
135
|
-
interface ActionExecutionOptions {
|
|
136
|
-
/** Timeout in milliseconds */
|
|
137
|
-
timeout?: number;
|
|
138
|
-
/** Whether to wait for element to be ready */
|
|
139
|
-
waitForReady?: boolean;
|
|
140
|
-
/** Custom wait conditions */
|
|
141
|
-
waitOptions?: WaitOptions;
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* Type action params
|
|
145
|
-
*/
|
|
146
|
-
interface TypeActionParams {
|
|
147
|
-
/** Text to type */
|
|
148
|
-
text: string;
|
|
149
|
-
/** Typing delay between characters (ms) */
|
|
150
|
-
delay?: number;
|
|
151
|
-
/** Clear existing text first */
|
|
152
|
-
clearFirst?: boolean;
|
|
153
|
-
/** Alias for `clearFirst` matching the runner UI Bridge convention. */
|
|
154
|
-
clear?: boolean;
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* Scroll action params
|
|
158
|
-
*/
|
|
159
|
-
interface ScrollActionParams {
|
|
160
|
-
/** Scroll offset */
|
|
161
|
-
offset?: {
|
|
162
|
-
x: number;
|
|
163
|
-
y: number;
|
|
164
|
-
};
|
|
165
|
-
/** Scroll to specific position */
|
|
166
|
-
position?: {
|
|
167
|
-
x: number;
|
|
168
|
-
y: number;
|
|
169
|
-
};
|
|
170
|
-
/** Animate the scroll */
|
|
171
|
-
animated?: boolean;
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* Swipe action params
|
|
175
|
-
*/
|
|
176
|
-
interface SwipeActionParams {
|
|
177
|
-
/** Swipe direction */
|
|
178
|
-
direction: 'up' | 'down' | 'left' | 'right';
|
|
179
|
-
/** Swipe distance (in points) */
|
|
180
|
-
distance?: number;
|
|
181
|
-
/** Swipe duration (ms) */
|
|
182
|
-
duration?: number;
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* Press action params
|
|
186
|
-
*/
|
|
187
|
-
interface PressActionParams {
|
|
188
|
-
/** Position relative to element */
|
|
189
|
-
position?: {
|
|
190
|
-
x: number;
|
|
191
|
-
y: number;
|
|
192
|
-
};
|
|
193
|
-
/** Press duration (ms) for long press */
|
|
194
|
-
duration?: number;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
export type { ActionExecutionOptions as A, ControlActionRequest as C, NativeActionExecutor as N, PressActionParams as P, ScrollActionParams as S, TypeActionParams as T, WaitResult as W, ControlActionResponse as a, ComponentActionRequest as b, ComponentActionResponse as c, SwipeActionParams as d, PageNavigationResponse as e, NativeActionListener as f, NativeActionEvent as g, PageNavigateRequest as h };
|