@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.
Files changed (108) hide show
  1. package/dist/control/{index.d.mts → action-executor.d.ts} +6 -10
  2. package/dist/control/action-executor.d.ts.map +1 -0
  3. package/dist/control/index.d.ts +5 -95
  4. package/dist/control/index.d.ts.map +1 -0
  5. package/dist/{types-CjEKTDYT.d.ts → control/types.d.ts} +17 -20
  6. package/dist/control/types.d.ts.map +1 -0
  7. package/dist/core/element-identifier.d.ts +41 -0
  8. package/dist/core/element-identifier.d.ts.map +1 -0
  9. package/dist/core/index.d.ts +6 -43
  10. package/dist/core/index.d.ts.map +1 -0
  11. package/dist/{registry-pAUpQq2O.d.ts → core/registry.d.ts} +10 -13
  12. package/dist/core/registry.d.ts.map +1 -0
  13. package/dist/{types-CGVut7mc.d.mts → core/types.d.ts} +41 -41
  14. package/dist/core/types.d.ts.map +1 -0
  15. package/dist/debug/index.d.ts +4 -44
  16. package/dist/debug/index.d.ts.map +1 -0
  17. package/dist/debug/index.js +1 -1
  18. package/dist/debug/index.js.map +1 -1
  19. package/dist/debug/index.mjs +2 -2
  20. package/dist/debug/index.mjs.map +1 -1
  21. package/dist/debug/{index.d.mts → inspector.d.ts} +3 -6
  22. package/dist/debug/inspector.d.ts.map +1 -0
  23. package/dist/design/{index.d.mts → design-inspector-native.d.ts} +7 -11
  24. package/dist/design/design-inspector-native.d.ts.map +1 -0
  25. package/dist/{design-types-BHr6Q1FX.d.mts → design/design-types.d.ts} +10 -11
  26. package/dist/design/design-types.d.ts.map +1 -0
  27. package/dist/design/index.d.ts +5 -60
  28. package/dist/design/index.d.ts.map +1 -0
  29. package/dist/index.d.ts +37 -86
  30. package/dist/index.d.ts.map +1 -0
  31. package/dist/index.js +3 -3
  32. package/dist/index.js.map +1 -1
  33. package/dist/index.mjs +4 -4
  34. package/dist/index.mjs.map +1 -1
  35. package/dist/modal/index.d.ts +2 -0
  36. package/dist/modal/index.d.ts.map +1 -0
  37. package/dist/modal/modal-detector.d.ts +29 -0
  38. package/dist/modal/modal-detector.d.ts.map +1 -0
  39. package/dist/react/StateAnnotation.d.ts +30 -0
  40. package/dist/react/StateAnnotation.d.ts.map +1 -0
  41. package/dist/react/UIBridgeNativeProvider.d.ts +156 -0
  42. package/dist/react/UIBridgeNativeProvider.d.ts.map +1 -0
  43. package/dist/react/index.d.ts +14 -69
  44. package/dist/react/index.d.ts.map +1 -0
  45. package/dist/react/index.js +3 -3
  46. package/dist/react/index.js.map +1 -1
  47. package/dist/react/index.mjs +4 -4
  48. package/dist/react/index.mjs.map +1 -1
  49. package/dist/react/{index.d.mts → useAutoRegister.d.ts} +7 -15
  50. package/dist/react/useAutoRegister.d.ts.map +1 -0
  51. package/dist/react/useUIBridge.d.ts +103 -0
  52. package/dist/react/useUIBridge.d.ts.map +1 -0
  53. package/dist/react/useUIBridgeModal.d.ts +14 -0
  54. package/dist/react/useUIBridgeModal.d.ts.map +1 -0
  55. package/dist/react/useUIBridgeToast.d.ts +25 -0
  56. package/dist/react/useUIBridgeToast.d.ts.map +1 -0
  57. package/dist/react/useUIComponent.d.ts +112 -0
  58. package/dist/react/useUIComponent.d.ts.map +1 -0
  59. package/dist/react/useUIElement.d.ts +162 -0
  60. package/dist/react/useUIElement.d.ts.map +1 -0
  61. package/dist/server/design-handlers.d.ts +47 -0
  62. package/dist/server/design-handlers.d.ts.map +1 -0
  63. package/dist/server/handlers.d.ts +25 -0
  64. package/dist/server/handlers.d.ts.map +1 -0
  65. package/dist/server/http-server.d.ts +262 -0
  66. package/dist/server/http-server.d.ts.map +1 -0
  67. package/dist/server/index.d.ts +14 -176
  68. package/dist/server/index.d.ts.map +1 -0
  69. package/dist/server/observability.d.ts +55 -0
  70. package/dist/server/observability.d.ts.map +1 -0
  71. package/dist/server/types.d.ts +368 -0
  72. package/dist/server/types.d.ts.map +1 -0
  73. package/dist/server/ws-connection.d.ts +48 -0
  74. package/dist/server/ws-connection.d.ts.map +1 -0
  75. package/dist/server/ws-event-bridge.d.ts +113 -0
  76. package/dist/server/ws-event-bridge.d.ts.map +1 -0
  77. package/dist/server/ws-protocol.d.ts +48 -0
  78. package/dist/server/ws-protocol.d.ts.map +1 -0
  79. package/dist/server/ws-types.d.ts +65 -0
  80. package/dist/server/ws-types.d.ts.map +1 -0
  81. package/dist/toast/index.d.ts +2 -0
  82. package/dist/toast/index.d.ts.map +1 -0
  83. package/dist/toast/toast-capture.d.ts +27 -0
  84. package/dist/toast/toast-capture.d.ts.map +1 -0
  85. package/dist/transport/CloudRelayClient.d.ts +51 -0
  86. package/dist/transport/CloudRelayClient.d.ts.map +1 -0
  87. package/dist/transport/DeviceAnnouncer.d.ts +75 -0
  88. package/dist/transport/DeviceAnnouncer.d.ts.map +1 -0
  89. package/dist/transport/index.d.ts +3 -0
  90. package/dist/transport/index.d.ts.map +1 -0
  91. package/dist/transport/logger.d.ts +23 -0
  92. package/dist/transport/logger.d.ts.map +1 -0
  93. package/dist/undo/index.d.ts +3 -0
  94. package/dist/undo/index.d.ts.map +1 -0
  95. package/dist/undo/undo-tracker.d.ts +59 -0
  96. package/dist/undo/undo-tracker.d.ts.map +1 -0
  97. package/package.json +3 -3
  98. package/dist/StateAnnotation--zm0Jfqj.d.ts +0 -755
  99. package/dist/StateAnnotation-BgFoVWFy.d.mts +0 -755
  100. package/dist/core/index.d.mts +0 -46
  101. package/dist/design-types-BHr6Q1FX.d.ts +0 -205
  102. package/dist/http-server--550eD1F.d.mts +0 -805
  103. package/dist/http-server-C9NaNBEP.d.ts +0 -805
  104. package/dist/index.d.mts +0 -89
  105. package/dist/registry-B5JadBN9.d.mts +0 -300
  106. package/dist/server/index.d.mts +0 -178
  107. package/dist/types-B0XA4vOF.d.mts +0 -197
  108. 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 };