@qontinui/ui-bridge-native 0.1.5 → 0.1.6

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 (92) 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 -91
  4. package/dist/control/index.d.ts.map +1 -0
  5. package/dist/control/index.js +1 -1
  6. package/dist/control/index.js.map +1 -1
  7. package/dist/control/index.mjs +1 -1
  8. package/dist/control/index.mjs.map +1 -1
  9. package/dist/{types-BCYWwyVy.d.ts → control/types.d.ts} +17 -18
  10. package/dist/control/types.d.ts.map +1 -0
  11. package/dist/core/element-identifier.d.ts +41 -0
  12. package/dist/core/element-identifier.d.ts.map +1 -0
  13. package/dist/core/index.d.ts +6 -43
  14. package/dist/core/index.d.ts.map +1 -0
  15. package/dist/{registry-B8A_EoxS.d.ts → core/registry.d.ts} +10 -13
  16. package/dist/core/registry.d.ts.map +1 -0
  17. package/dist/{types-BPNuYxDx.d.ts → core/types.d.ts} +30 -30
  18. package/dist/core/types.d.ts.map +1 -0
  19. package/dist/debug/index.d.ts +4 -44
  20. package/dist/debug/index.d.ts.map +1 -0
  21. package/dist/debug/index.js.map +1 -1
  22. package/dist/debug/index.mjs.map +1 -1
  23. package/dist/debug/{index.d.mts → inspector.d.ts} +3 -6
  24. package/dist/debug/inspector.d.ts.map +1 -0
  25. package/dist/design/{index.d.mts → design-inspector-native.d.ts} +7 -11
  26. package/dist/design/design-inspector-native.d.ts.map +1 -0
  27. package/dist/{design-types-BHr6Q1FX.d.ts → design/design-types.d.ts} +10 -11
  28. package/dist/design/design-types.d.ts.map +1 -0
  29. package/dist/design/index.d.ts +5 -60
  30. package/dist/design/index.d.ts.map +1 -0
  31. package/dist/index.d.ts +28 -86
  32. package/dist/index.d.ts.map +1 -0
  33. package/dist/index.js +107 -4
  34. package/dist/index.js.map +1 -1
  35. package/dist/index.mjs +107 -4
  36. package/dist/index.mjs.map +1 -1
  37. package/dist/react/UIBridgeNativeProvider.d.ts +147 -0
  38. package/dist/react/UIBridgeNativeProvider.d.ts.map +1 -0
  39. package/dist/react/index.d.ts +8 -69
  40. package/dist/react/index.d.ts.map +1 -0
  41. package/dist/react/index.js +116 -4
  42. package/dist/react/index.js.map +1 -1
  43. package/dist/react/index.mjs +116 -4
  44. package/dist/react/index.mjs.map +1 -1
  45. package/dist/react/{index.d.mts → useAutoRegister.d.ts} +7 -15
  46. package/dist/react/useAutoRegister.d.ts.map +1 -0
  47. package/dist/react/useUIBridge.d.ts +103 -0
  48. package/dist/react/useUIBridge.d.ts.map +1 -0
  49. package/dist/react/useUIComponent.d.ts +112 -0
  50. package/dist/react/useUIComponent.d.ts.map +1 -0
  51. package/dist/react/useUIElement.d.ts +162 -0
  52. package/dist/react/useUIElement.d.ts.map +1 -0
  53. package/dist/server/design-handlers.d.ts +47 -0
  54. package/dist/server/design-handlers.d.ts.map +1 -0
  55. package/dist/server/handlers.d.ts +20 -0
  56. package/dist/server/handlers.d.ts.map +1 -0
  57. package/dist/server/http-server.d.ts +247 -0
  58. package/dist/server/http-server.d.ts.map +1 -0
  59. package/dist/server/index.d.ts +13 -117
  60. package/dist/server/index.d.ts.map +1 -0
  61. package/dist/server/index.js +102 -1
  62. package/dist/server/index.js.map +1 -1
  63. package/dist/server/index.mjs +102 -1
  64. package/dist/server/index.mjs.map +1 -1
  65. package/dist/server/types.d.ts +200 -0
  66. package/dist/server/types.d.ts.map +1 -0
  67. package/dist/server/ws-connection.d.ts +48 -0
  68. package/dist/server/ws-connection.d.ts.map +1 -0
  69. package/dist/server/ws-event-bridge.d.ts +113 -0
  70. package/dist/server/ws-event-bridge.d.ts.map +1 -0
  71. package/dist/server/ws-protocol.d.ts +48 -0
  72. package/dist/server/ws-protocol.d.ts.map +1 -0
  73. package/dist/server/ws-types.d.ts +65 -0
  74. package/dist/server/ws-types.d.ts.map +1 -0
  75. package/dist/transport/CloudRelayClient.d.ts +51 -0
  76. package/dist/transport/CloudRelayClient.d.ts.map +1 -0
  77. package/dist/transport/DeviceAnnouncer.d.ts +75 -0
  78. package/dist/transport/DeviceAnnouncer.d.ts.map +1 -0
  79. package/dist/transport/index.d.ts +3 -0
  80. package/dist/transport/index.d.ts.map +1 -0
  81. package/package.json +1 -1
  82. package/dist/core/index.d.mts +0 -46
  83. package/dist/design-types-BHr6Q1FX.d.mts +0 -205
  84. package/dist/http-server-B7KudcYJ.d.ts +0 -622
  85. package/dist/http-server-D7uVANBU.d.mts +0 -622
  86. package/dist/index.d.mts +0 -89
  87. package/dist/registry-DhbGbl9c.d.mts +0 -215
  88. package/dist/server/index.d.mts +0 -119
  89. package/dist/types-BPNuYxDx.d.mts +0 -383
  90. package/dist/types-Bcj7ji97.d.mts +0 -177
  91. package/dist/useUIBridge-CDZbWxII.d.ts +0 -571
  92. package/dist/useUIBridge-DfIEq9EQ.d.mts +0 -571
@@ -1,15 +1,13 @@
1
- import { W as WaitOptions, N as NativeActionRequest, d as NativeActionResponse, l as NativeFindRequest, m as NativeFindResponse, j as NativeElementState } from './types-BPNuYxDx.js';
2
-
3
1
  /**
4
2
  * UI Bridge Native Control Types
5
3
  *
6
4
  * Types for action execution and control operations.
7
5
  */
8
-
6
+ import type { NativeActionRequest, NativeActionResponse, NativeFindRequest, NativeFindResponse, NativeElementState, WaitOptions } from '../core/types';
9
7
  /**
10
8
  * Extended action request with control-specific options
11
9
  */
12
- interface ControlActionRequest extends NativeActionRequest {
10
+ export interface ControlActionRequest extends NativeActionRequest {
13
11
  /** Request ID for correlation */
14
12
  requestId?: string;
15
13
  /** Capture snapshot after action */
@@ -23,7 +21,7 @@ interface ControlActionRequest extends NativeActionRequest {
23
21
  /**
24
22
  * Extended action response with control-specific data
25
23
  */
26
- interface ControlActionResponse extends NativeActionResponse {
24
+ export interface ControlActionResponse extends NativeActionResponse {
27
25
  /** Request ID for correlation */
28
26
  requestId?: string;
29
27
  /** Retry count */
@@ -32,7 +30,7 @@ interface ControlActionResponse extends NativeActionResponse {
32
30
  /**
33
31
  * Component action request
34
32
  */
35
- interface ComponentActionRequest {
33
+ export interface ComponentActionRequest {
36
34
  /** Action to execute */
37
35
  action: string;
38
36
  /** Action parameters */
@@ -43,7 +41,7 @@ interface ComponentActionRequest {
43
41
  /**
44
42
  * Component action response
45
43
  */
46
- interface ComponentActionResponse {
44
+ export interface ComponentActionResponse {
47
45
  /** Whether the action succeeded */
48
46
  success: boolean;
49
47
  /** Result of the action */
@@ -62,7 +60,7 @@ interface ComponentActionResponse {
62
60
  /**
63
61
  * Wait result
64
62
  */
65
- interface WaitResult {
63
+ export interface WaitResult {
66
64
  /** Whether conditions were met */
67
65
  met: boolean;
68
66
  /** Time spent waiting in milliseconds */
@@ -75,7 +73,7 @@ interface WaitResult {
75
73
  /**
76
74
  * Native action executor interface
77
75
  */
78
- interface NativeActionExecutor {
76
+ export interface NativeActionExecutor {
79
77
  /**
80
78
  * Execute an action on an element
81
79
  */
@@ -96,14 +94,14 @@ interface NativeActionExecutor {
96
94
  /**
97
95
  * Page navigation request
98
96
  */
99
- interface PageNavigateRequest {
97
+ export interface PageNavigateRequest {
100
98
  /** URL to navigate to */
101
99
  url: string;
102
100
  }
103
101
  /**
104
102
  * Page navigation response
105
103
  */
106
- interface PageNavigationResponse {
104
+ export interface PageNavigationResponse {
107
105
  /** Whether the navigation succeeded */
108
106
  success: boolean;
109
107
  /** Current URL after navigation */
@@ -114,7 +112,7 @@ interface PageNavigationResponse {
114
112
  /**
115
113
  * Action execution options
116
114
  */
117
- interface ActionExecutionOptions {
115
+ export interface ActionExecutionOptions {
118
116
  /** Timeout in milliseconds */
119
117
  timeout?: number;
120
118
  /** Whether to wait for element to be ready */
@@ -125,18 +123,20 @@ interface ActionExecutionOptions {
125
123
  /**
126
124
  * Type action params
127
125
  */
128
- interface TypeActionParams {
126
+ export interface TypeActionParams {
129
127
  /** Text to type */
130
128
  text: string;
131
129
  /** Typing delay between characters (ms) */
132
130
  delay?: number;
133
131
  /** Clear existing text first */
134
132
  clearFirst?: boolean;
133
+ /** Alias for `clearFirst` matching the runner UI Bridge convention. */
134
+ clear?: boolean;
135
135
  }
136
136
  /**
137
137
  * Scroll action params
138
138
  */
139
- interface ScrollActionParams {
139
+ export interface ScrollActionParams {
140
140
  /** Scroll offset */
141
141
  offset?: {
142
142
  x: number;
@@ -153,7 +153,7 @@ interface ScrollActionParams {
153
153
  /**
154
154
  * Swipe action params
155
155
  */
156
- interface SwipeActionParams {
156
+ export interface SwipeActionParams {
157
157
  /** Swipe direction */
158
158
  direction: 'up' | 'down' | 'left' | 'right';
159
159
  /** Swipe distance (in points) */
@@ -164,7 +164,7 @@ interface SwipeActionParams {
164
164
  /**
165
165
  * Press action params
166
166
  */
167
- interface PressActionParams {
167
+ export interface PressActionParams {
168
168
  /** Position relative to element */
169
169
  position?: {
170
170
  x: number;
@@ -173,5 +173,4 @@ interface PressActionParams {
173
173
  /** Press duration (ms) for long press */
174
174
  duration?: number;
175
175
  }
176
-
177
- 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, PageNavigateRequest as f };
176
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/control/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EACV,mBAAmB,EACnB,oBAAoB,EACpB,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,WAAW,EACZ,MAAM,eAAe,CAAC;AAEvB;;GAEG;AACH,MAAM,WAAW,oBAAqB,SAAQ,mBAAmB;IAC/D,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oCAAoC;IACpC,YAAY,CAAC,EAAE,OAAO,CAAC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AkC;IAClC,QAAQ,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACpC,yBAAyB;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,sBAAsB;IACtB,SAAS,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAC5C,iCAAiC;IACjC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,0BAA0B;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,mCAAmC;IACnC,QAAQ,CAAC,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IACpC,yCAAyC;IACzC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Native Element Identifier
3
+ *
4
+ * Utilities for identifying and finding native elements.
5
+ * In React Native, we use testID, accessibilityLabel, and tree paths
6
+ * instead of XPath/CSS selectors.
7
+ */
8
+ import type { NativeElementIdentifier, RegisteredNativeElement } from './types';
9
+ /**
10
+ * Create an element identifier for a native element
11
+ */
12
+ export declare function createNativeElementIdentifier(id: string, options?: {
13
+ testId?: string;
14
+ accessibilityLabel?: string;
15
+ accessibilityHint?: string;
16
+ treePath?: string;
17
+ }): NativeElementIdentifier;
18
+ /**
19
+ * Find an element by its identifier in the global registry
20
+ */
21
+ export declare function findElementByIdentifier(identifier: string | NativeElementIdentifier): RegisteredNativeElement | null;
22
+ /**
23
+ * Find all elements matching a pattern
24
+ */
25
+ export declare function findAllByPattern(pattern: string): RegisteredNativeElement[];
26
+ /**
27
+ * Build a tree path for an element based on its position in the component tree
28
+ */
29
+ export declare function buildTreePath(componentPath: string[], elementIndex?: number): string;
30
+ /**
31
+ * Parse a tree path into its components
32
+ */
33
+ export declare function parseTreePath(treePath: string): {
34
+ components: string[];
35
+ index?: number;
36
+ };
37
+ /**
38
+ * Check if an identifier matches criteria
39
+ */
40
+ export declare function matchesIdentifier(identifier: NativeElementIdentifier, criteria: Partial<NativeElementIdentifier>): boolean;
41
+ //# sourceMappingURL=element-identifier.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"element-identifier.d.ts","sourceRoot":"","sources":["../../src/core/element-identifier.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAGhF;;GAEG;AACH,wBAAgB,6BAA6B,CAC3C,EAAE,EAAE,MAAM,EACV,OAAO,GAAE;IACP,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACd,GACL,uBAAuB,CAQzB;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,UAAU,EAAE,MAAM,GAAG,uBAAuB,GAC3C,uBAAuB,GAAG,IAAI,CA8BhC;AA8CD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,uBAAuB,EAAE,CA2B3E;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,aAAa,EAAE,MAAM,EAAE,EAAE,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAMpF;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG;IAAE,UAAU,EAAE,MAAM,EAAE,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAOxF;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,UAAU,EAAE,uBAAuB,EACnC,QAAQ,EAAE,OAAO,CAAC,uBAAuB,CAAC,GACzC,OAAO,CAiBT"}
@@ -1,46 +1,9 @@
1
- import { h as NativeElementIdentifier, r as RegisteredNativeElement } from '../types-BPNuYxDx.js';
2
- export { A as ActionHandler, B as BridgeEvent, a as BridgeEventListener, b as BridgeEventType, C as ComponentAction, c as CustomAction, D as DiscoveredNativeElement, N as NativeActionRequest, d as NativeActionResponse, e as NativeBridgeSnapshot, f as NativeComponentAction, g as NativeCustomAction, i as NativeElementRef, j as NativeElementState, k as NativeElementType, l as NativeFindRequest, m as NativeFindResponse, n as NativeLayout, o as NativeStandardAction, p as NativeUIBridgeConfig, q as NativeUIBridgeFeatures, R as RegisteredNativeComponent, W as WaitOptions, s as Workflow, t as WorkflowStep, u as WorkflowStepType } from '../types-BPNuYxDx.js';
3
- export { N as NativeRegistryConfig, a as NativeUIBridgeRegistry, R as RegisterComponentOptions, b as RegisterElementOptions, e as extractHandlerNames, g as getGlobalRegistry, r as resetGlobalRegistry, s as setGlobalRegistry } from '../registry-B8A_EoxS.js';
4
-
5
1
  /**
6
- * Native Element Identifier
2
+ * UI Bridge Native - Core
7
3
  *
8
- * Utilities for identifying and finding native elements.
9
- * In React Native, we use testID, accessibilityLabel, and tree paths
10
- * instead of XPath/CSS selectors.
4
+ * Core types and registry for React Native.
11
5
  */
12
-
13
- /**
14
- * Create an element identifier for a native element
15
- */
16
- declare function createNativeElementIdentifier(id: string, options?: {
17
- testId?: string;
18
- accessibilityLabel?: string;
19
- accessibilityHint?: string;
20
- treePath?: string;
21
- }): NativeElementIdentifier;
22
- /**
23
- * Find an element by its identifier in the global registry
24
- */
25
- declare function findElementByIdentifier(identifier: string | NativeElementIdentifier): RegisteredNativeElement | null;
26
- /**
27
- * Find all elements matching a pattern
28
- */
29
- declare function findAllByPattern(pattern: string): RegisteredNativeElement[];
30
- /**
31
- * Build a tree path for an element based on its position in the component tree
32
- */
33
- declare function buildTreePath(componentPath: string[], elementIndex?: number): string;
34
- /**
35
- * Parse a tree path into its components
36
- */
37
- declare function parseTreePath(treePath: string): {
38
- components: string[];
39
- index?: number;
40
- };
41
- /**
42
- * Check if an identifier matches criteria
43
- */
44
- declare function matchesIdentifier(identifier: NativeElementIdentifier, criteria: Partial<NativeElementIdentifier>): boolean;
45
-
46
- export { NativeElementIdentifier, RegisteredNativeElement, buildTreePath, createNativeElementIdentifier, findAllByPattern, findElementByIdentifier, matchesIdentifier, parseTreePath };
6
+ export * from './types';
7
+ export * from './registry';
8
+ export * from './element-identifier';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC"}
@@ -1,16 +1,14 @@
1
- import { a as BridgeEventListener, i as NativeElementRef, k as NativeElementType, o as NativeStandardAction, g as NativeCustomAction, r as RegisteredNativeElement, j as NativeElementState, R as RegisteredNativeComponent, s as Workflow, b as BridgeEventType, e as NativeBridgeSnapshot } from './types-BPNuYxDx.js';
2
-
3
1
  /**
4
2
  * Native Element and Component Registry
5
3
  *
6
4
  * Central registry for all UI elements and components registered with UI Bridge Native.
7
5
  * Adapted from ui-bridge for React Native environments.
8
6
  */
9
-
7
+ import type { RegisteredNativeElement, RegisteredNativeComponent, NativeElementState, NativeElementType, NativeStandardAction, NativeCustomAction, NativeBridgeSnapshot, NativeElementRef, Workflow, BridgeEventType, BridgeEventListener } from './types';
10
8
  /**
11
9
  * Options for registering an element
12
10
  */
13
- interface RegisterElementOptions {
11
+ export interface RegisterElementOptions {
14
12
  type?: NativeElementType;
15
13
  label?: string;
16
14
  actions?: NativeStandardAction[];
@@ -33,7 +31,7 @@ interface RegisterElementOptions {
33
31
  /**
34
32
  * Options for registering a component
35
33
  */
36
- interface RegisterComponentOptions {
34
+ export interface RegisterComponentOptions {
37
35
  name: string;
38
36
  description?: string;
39
37
  actions?: Array<{
@@ -47,7 +45,7 @@ interface RegisterComponentOptions {
47
45
  /**
48
46
  * Registry configuration
49
47
  */
50
- interface NativeRegistryConfig {
48
+ export interface NativeRegistryConfig {
51
49
  verbose?: boolean;
52
50
  onEvent?: BridgeEventListener;
53
51
  }
@@ -55,13 +53,13 @@ interface NativeRegistryConfig {
55
53
  * Extract handler function names from an element's props.
56
54
  * Returns names of props whose values are functions (e.g. ['onPress', 'onChangeText']).
57
55
  */
58
- declare function extractHandlerNames(props?: Record<string, unknown>): string[];
56
+ export declare function extractHandlerNames(props?: Record<string, unknown>): string[];
59
57
  /**
60
58
  * Native UI Bridge Registry
61
59
  *
62
60
  * Manages registration and lookup of native UI elements and components.
63
61
  */
64
- declare class NativeUIBridgeRegistry {
62
+ export declare class NativeUIBridgeRegistry {
65
63
  private elements;
66
64
  private components;
67
65
  private workflows;
@@ -202,14 +200,13 @@ declare class NativeUIBridgeRegistry {
202
200
  /**
203
201
  * Set the global registry
204
202
  */
205
- declare function setGlobalRegistry(registry: NativeUIBridgeRegistry): void;
203
+ export declare function setGlobalRegistry(registry: NativeUIBridgeRegistry): void;
206
204
  /**
207
205
  * Get the global registry
208
206
  */
209
- declare function getGlobalRegistry(): NativeUIBridgeRegistry | null;
207
+ export declare function getGlobalRegistry(): NativeUIBridgeRegistry | null;
210
208
  /**
211
209
  * Reset the global registry
212
210
  */
213
- declare function resetGlobalRegistry(): void;
214
-
215
- export { type NativeRegistryConfig as N, type RegisterComponentOptions as R, NativeUIBridgeRegistry as a, type RegisterElementOptions as b, extractHandlerNames as e, getGlobalRegistry as g, resetGlobalRegistry as r, setGlobalRegistry as s };
211
+ export declare function resetGlobalRegistry(): void;
212
+ //# sourceMappingURL=registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/core/registry.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,uBAAuB,EACvB,yBAAyB,EACzB,kBAAkB,EAClB,iBAAiB,EACjB,oBAAoB,EAC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C,GAAG,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI;IAUpF;;OAEG;IACH,GAAG,CAAC,CAAC,GAAG,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,QAAQ,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAAG,IAAI;IAI/E;;OAEG;IACH,IAAI,CAAC,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,OAAO,GAAG,IAAI;IAiChD;;OAEG;IACH,cAAc,CACZ,SAAS,CAAC,EAAE;QACV,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAC7B,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;KACrB,EACD,OAAO,CAAC,EAAE;QAAE,WAAW,CAAC,EAAE,OAAO,CAAC;QAAC,gBAAgB,CAAC,EAAE,OAAO,CAAA;KAAE,GAC9D,oBAAoB;IA2CvB;;OAEG;IACH,QAAQ,IAAI;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE;IAQvE;;OAEG;IACH,KAAK,IAAI,IAAI;CASd;AAQD;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,sBAAsB,GAAG,IAAI,CAExE;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,sBAAsB,GAAG,IAAI,CAEjE;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAG1C"}
@@ -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 */
@@ -270,7 +270,7 @@ interface NativeActionResponse {
270
270
  /**
271
271
  * Snapshot of the entire native UI bridge state
272
272
  */
273
- interface NativeBridgeSnapshot {
273
+ export interface NativeBridgeSnapshot {
274
274
  /** Timestamp of the snapshot */
275
275
  timestamp: number;
276
276
  /** All registered elements */
@@ -310,7 +310,7 @@ interface NativeBridgeSnapshot {
310
310
  /**
311
311
  * UI Bridge Native feature flags
312
312
  */
313
- interface NativeUIBridgeFeatures {
313
+ export interface NativeUIBridgeFeatures {
314
314
  /** Enable HTTP control server */
315
315
  server?: boolean;
316
316
  /** Enable debug tools (inspector overlay) */
@@ -319,7 +319,7 @@ interface NativeUIBridgeFeatures {
319
319
  /**
320
320
  * UI Bridge Native configuration
321
321
  */
322
- interface NativeUIBridgeConfig {
322
+ export interface NativeUIBridgeConfig {
323
323
  /** Port for HTTP server */
324
324
  serverPort?: number;
325
325
  /** Enable verbose logging */
@@ -337,7 +337,7 @@ interface NativeUIBridgeConfig {
337
337
  /**
338
338
  * Find request for discovering native elements
339
339
  */
340
- interface NativeFindRequest {
340
+ export interface NativeFindRequest {
341
341
  /** Filter by element type */
342
342
  types?: NativeElementType[];
343
343
  /** Filter by testID pattern (supports wildcards) */
@@ -352,7 +352,7 @@ interface NativeFindRequest {
352
352
  /**
353
353
  * Discovered native element
354
354
  */
355
- interface DiscoveredNativeElement {
355
+ export interface DiscoveredNativeElement {
356
356
  /** Element ID */
357
357
  id: string;
358
358
  /** Element type */
@@ -369,7 +369,7 @@ interface DiscoveredNativeElement {
369
369
  /**
370
370
  * Find response
371
371
  */
372
- interface NativeFindResponse {
372
+ export interface NativeFindResponse {
373
373
  /** Discovered elements */
374
374
  elements: DiscoveredNativeElement[];
375
375
  /** Total count */
@@ -379,5 +379,5 @@ interface NativeFindResponse {
379
379
  /** Timestamp */
380
380
  timestamp: number;
381
381
  }
382
-
383
- export type { ActionHandler as A, BridgeEvent as B, ComponentAction as C, DiscoveredNativeElement as D, NativeActionRequest as N, RegisteredNativeComponent as R, WaitOptions as W, BridgeEventListener as a, BridgeEventType as b, CustomAction as c, NativeActionResponse as d, NativeBridgeSnapshot as e, NativeComponentAction as f, NativeCustomAction as g, NativeElementIdentifier as h, NativeElementRef as i, NativeElementState as j, NativeElementType as k, NativeFindRequest as l, NativeFindResponse as m, NativeLayout as n, NativeStandardAction as o, NativeUIBridgeConfig as p, NativeUIBridgeFeatures as q, RegisteredNativeElement as r, Workflow as s, WorkflowStep as t, WorkflowStepType as u };
382
+ export {};
383
+ //# 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,CAAC;IACjB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAGD,MAAM,MAAM,aAAa,CAAC,OAAO,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO,IAAI,CAChE,MAAM,CAAC,EAAE,OAAO,KACb,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAEhC,MAAM,WAAW,YAAY,CAAC,OAAO,GAAG,OAAO,EAAE,OAAO,GAAG,OAAO;IAChE,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,aAAa,CAA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MAAM,WAAW,uBAAuB;IACtC,iBAAiB;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,mBAAmB;IACnB,IAAI,EAAE,iBAAiB,CAAC;IACxB,yBAAyB;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"}
@@ -1,47 +1,7 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
-
3
1
  /**
4
- * UI Bridge Native Debug Inspector
2
+ * UI Bridge Native - Debug
5
3
  *
6
- * An overlay component that shows registered elements and allows
7
- * inspection of the UI Bridge state.
4
+ * Debug tools for React Native development.
8
5
  */
9
- /**
10
- * Inspector props
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"}