@qontinui/ui-bridge 0.1.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.
Files changed (47) hide show
  1. package/dist/control/index.d.mts +134 -0
  2. package/dist/control/index.d.ts +134 -0
  3. package/dist/control/index.js +924 -0
  4. package/dist/control/index.js.map +1 -0
  5. package/dist/control/index.mjs +919 -0
  6. package/dist/control/index.mjs.map +1 -0
  7. package/dist/core/index.d.mts +52 -0
  8. package/dist/core/index.d.ts +52 -0
  9. package/dist/core/index.js +1424 -0
  10. package/dist/core/index.js.map +1 -0
  11. package/dist/core/index.mjs +1409 -0
  12. package/dist/core/index.mjs.map +1 -0
  13. package/dist/debug/index.d.mts +93 -0
  14. package/dist/debug/index.d.ts +93 -0
  15. package/dist/debug/index.js +673 -0
  16. package/dist/debug/index.js.map +1 -0
  17. package/dist/debug/index.mjs +664 -0
  18. package/dist/debug/index.mjs.map +1 -0
  19. package/dist/index.d.mts +12 -0
  20. package/dist/index.d.ts +12 -0
  21. package/dist/index.js +4719 -0
  22. package/dist/index.js.map +1 -0
  23. package/dist/index.mjs +4665 -0
  24. package/dist/index.mjs.map +1 -0
  25. package/dist/metrics-BCG7z7Aq.d.mts +147 -0
  26. package/dist/metrics-QCnK0EFw.d.ts +147 -0
  27. package/dist/react/index.d.mts +786 -0
  28. package/dist/react/index.d.ts +786 -0
  29. package/dist/react/index.js +4312 -0
  30. package/dist/react/index.js.map +1 -0
  31. package/dist/react/index.mjs +4290 -0
  32. package/dist/react/index.mjs.map +1 -0
  33. package/dist/registry-CT6BVVKr.d.mts +253 -0
  34. package/dist/registry-D4mQ01B3.d.ts +253 -0
  35. package/dist/render-log/index.d.mts +340 -0
  36. package/dist/render-log/index.d.ts +340 -0
  37. package/dist/render-log/index.js +702 -0
  38. package/dist/render-log/index.js.map +1 -0
  39. package/dist/render-log/index.mjs +695 -0
  40. package/dist/render-log/index.mjs.map +1 -0
  41. package/dist/types-BDkXy5si.d.ts +354 -0
  42. package/dist/types-BpvpStn3.d.mts +802 -0
  43. package/dist/types-BpvpStn3.d.ts +802 -0
  44. package/dist/types-DdJD9yw5.d.mts +354 -0
  45. package/dist/websocket-client-B2LC9CYc.d.mts +124 -0
  46. package/dist/websocket-client-DupH0X7B.d.ts +124 -0
  47. package/package.json +83 -0
@@ -0,0 +1,134 @@
1
+ import { A as ActionExecutor, b as ControlActionRequest, c as ControlActionResponse, C as ComponentActionRequest, a as ComponentActionResponse, W as WaitResult, F as FindRequest, g as FindResponse, d as ControlSnapshot, i as WorkflowEngine, j as WorkflowRunRequest, k as WorkflowRunResponse } from '../types-DdJD9yw5.mjs';
2
+ export { D as DiscoveredElement, e as DiscoveryRequest, f as DiscoveryResponse, K as KeyboardAction, M as MouseAction, S as ScrollAction, h as SelectAction, T as TypeAction, l as WorkflowRunStatus, m as WorkflowStepResult } from '../types-DdJD9yw5.mjs';
3
+ import { U as UIBridgeRegistry } from '../registry-CT6BVVKr.mjs';
4
+ import { a0 as WaitOptions } from '../types-BpvpStn3.mjs';
5
+
6
+ /**
7
+ * Action Executor
8
+ *
9
+ * Executes actions on registered elements and components.
10
+ */
11
+
12
+ /**
13
+ * Default action executor implementation
14
+ */
15
+ declare class DefaultActionExecutor implements ActionExecutor {
16
+ private registry;
17
+ constructor(registry: UIBridgeRegistry);
18
+ /**
19
+ * Execute an action on an element
20
+ */
21
+ executeAction(elementId: string, request: ControlActionRequest): Promise<ControlActionResponse>;
22
+ /**
23
+ * Execute an action on a component
24
+ */
25
+ executeComponentAction(componentId: string, request: ComponentActionRequest): Promise<ComponentActionResponse>;
26
+ /**
27
+ * Wait for a condition on an element
28
+ */
29
+ waitFor(elementId: string, options: WaitOptions): Promise<WaitResult>;
30
+ /**
31
+ * Find controllable elements
32
+ */
33
+ find(options?: FindRequest): Promise<FindResponse>;
34
+ /**
35
+ * Discover controllable elements
36
+ * @deprecated Use find() instead
37
+ */
38
+ discover(options?: FindRequest): Promise<FindResponse>;
39
+ /**
40
+ * Get control snapshot
41
+ */
42
+ getSnapshot(): Promise<ControlSnapshot>;
43
+ /**
44
+ * Wait for element conditions
45
+ */
46
+ private waitForElement;
47
+ /**
48
+ * Perform an action on an element
49
+ */
50
+ private performAction;
51
+ private performClick;
52
+ private performDoubleClick;
53
+ private performRightClick;
54
+ private performType;
55
+ private performClear;
56
+ private performSelect;
57
+ private performFocus;
58
+ private performBlur;
59
+ private performHover;
60
+ private performScroll;
61
+ private performCheck;
62
+ private performToggle;
63
+ private getElementId;
64
+ private getElementLabel;
65
+ private getAccessibleName;
66
+ private inferElementType;
67
+ private inferActions;
68
+ }
69
+ /**
70
+ * Create an action executor
71
+ */
72
+ declare function createActionExecutor(registry: UIBridgeRegistry): ActionExecutor;
73
+
74
+ /**
75
+ * Workflow Engine
76
+ *
77
+ * Executes multi-step workflows with error handling and state tracking.
78
+ */
79
+
80
+ /**
81
+ * Default workflow engine implementation
82
+ */
83
+ declare class DefaultWorkflowEngine implements WorkflowEngine {
84
+ private registry;
85
+ private executor;
86
+ private activeRuns;
87
+ constructor(registry: UIBridgeRegistry, executor: ActionExecutor);
88
+ /**
89
+ * Run a workflow
90
+ */
91
+ run(workflowId: string, request?: WorkflowRunRequest): Promise<WorkflowRunResponse>;
92
+ /**
93
+ * Get workflow run status
94
+ */
95
+ getRunStatus(runId: string): Promise<WorkflowRunResponse | null>;
96
+ /**
97
+ * Cancel a running workflow
98
+ */
99
+ cancel(runId: string): Promise<boolean>;
100
+ /**
101
+ * List active runs
102
+ */
103
+ listActiveRuns(): Promise<WorkflowRunResponse[]>;
104
+ /**
105
+ * Execute a workflow
106
+ */
107
+ private executeWorkflow;
108
+ /**
109
+ * Execute a single step
110
+ */
111
+ private executeStep;
112
+ /**
113
+ * Execute step internal logic
114
+ */
115
+ private executeStepInternal;
116
+ /**
117
+ * Perform state assertion
118
+ */
119
+ private performAssertion;
120
+ /**
121
+ * Interpolate parameters with {{param}} syntax
122
+ */
123
+ private interpolateParams;
124
+ /**
125
+ * Build response from state
126
+ */
127
+ private buildResponse;
128
+ }
129
+ /**
130
+ * Create a workflow engine
131
+ */
132
+ declare function createWorkflowEngine(registry: UIBridgeRegistry, executor: ActionExecutor): WorkflowEngine;
133
+
134
+ export { ActionExecutor, ComponentActionRequest, ComponentActionResponse, ControlActionRequest, ControlActionResponse, ControlSnapshot, DefaultActionExecutor, DefaultWorkflowEngine, FindRequest, FindResponse, WaitResult, WorkflowEngine, WorkflowRunRequest, WorkflowRunResponse, createActionExecutor, createWorkflowEngine };
@@ -0,0 +1,134 @@
1
+ import { A as ActionExecutor, b as ControlActionRequest, c as ControlActionResponse, C as ComponentActionRequest, a as ComponentActionResponse, W as WaitResult, F as FindRequest, g as FindResponse, d as ControlSnapshot, i as WorkflowEngine, j as WorkflowRunRequest, k as WorkflowRunResponse } from '../types-BDkXy5si.js';
2
+ export { D as DiscoveredElement, e as DiscoveryRequest, f as DiscoveryResponse, K as KeyboardAction, M as MouseAction, S as ScrollAction, h as SelectAction, T as TypeAction, l as WorkflowRunStatus, m as WorkflowStepResult } from '../types-BDkXy5si.js';
3
+ import { U as UIBridgeRegistry } from '../registry-D4mQ01B3.js';
4
+ import { a0 as WaitOptions } from '../types-BpvpStn3.js';
5
+
6
+ /**
7
+ * Action Executor
8
+ *
9
+ * Executes actions on registered elements and components.
10
+ */
11
+
12
+ /**
13
+ * Default action executor implementation
14
+ */
15
+ declare class DefaultActionExecutor implements ActionExecutor {
16
+ private registry;
17
+ constructor(registry: UIBridgeRegistry);
18
+ /**
19
+ * Execute an action on an element
20
+ */
21
+ executeAction(elementId: string, request: ControlActionRequest): Promise<ControlActionResponse>;
22
+ /**
23
+ * Execute an action on a component
24
+ */
25
+ executeComponentAction(componentId: string, request: ComponentActionRequest): Promise<ComponentActionResponse>;
26
+ /**
27
+ * Wait for a condition on an element
28
+ */
29
+ waitFor(elementId: string, options: WaitOptions): Promise<WaitResult>;
30
+ /**
31
+ * Find controllable elements
32
+ */
33
+ find(options?: FindRequest): Promise<FindResponse>;
34
+ /**
35
+ * Discover controllable elements
36
+ * @deprecated Use find() instead
37
+ */
38
+ discover(options?: FindRequest): Promise<FindResponse>;
39
+ /**
40
+ * Get control snapshot
41
+ */
42
+ getSnapshot(): Promise<ControlSnapshot>;
43
+ /**
44
+ * Wait for element conditions
45
+ */
46
+ private waitForElement;
47
+ /**
48
+ * Perform an action on an element
49
+ */
50
+ private performAction;
51
+ private performClick;
52
+ private performDoubleClick;
53
+ private performRightClick;
54
+ private performType;
55
+ private performClear;
56
+ private performSelect;
57
+ private performFocus;
58
+ private performBlur;
59
+ private performHover;
60
+ private performScroll;
61
+ private performCheck;
62
+ private performToggle;
63
+ private getElementId;
64
+ private getElementLabel;
65
+ private getAccessibleName;
66
+ private inferElementType;
67
+ private inferActions;
68
+ }
69
+ /**
70
+ * Create an action executor
71
+ */
72
+ declare function createActionExecutor(registry: UIBridgeRegistry): ActionExecutor;
73
+
74
+ /**
75
+ * Workflow Engine
76
+ *
77
+ * Executes multi-step workflows with error handling and state tracking.
78
+ */
79
+
80
+ /**
81
+ * Default workflow engine implementation
82
+ */
83
+ declare class DefaultWorkflowEngine implements WorkflowEngine {
84
+ private registry;
85
+ private executor;
86
+ private activeRuns;
87
+ constructor(registry: UIBridgeRegistry, executor: ActionExecutor);
88
+ /**
89
+ * Run a workflow
90
+ */
91
+ run(workflowId: string, request?: WorkflowRunRequest): Promise<WorkflowRunResponse>;
92
+ /**
93
+ * Get workflow run status
94
+ */
95
+ getRunStatus(runId: string): Promise<WorkflowRunResponse | null>;
96
+ /**
97
+ * Cancel a running workflow
98
+ */
99
+ cancel(runId: string): Promise<boolean>;
100
+ /**
101
+ * List active runs
102
+ */
103
+ listActiveRuns(): Promise<WorkflowRunResponse[]>;
104
+ /**
105
+ * Execute a workflow
106
+ */
107
+ private executeWorkflow;
108
+ /**
109
+ * Execute a single step
110
+ */
111
+ private executeStep;
112
+ /**
113
+ * Execute step internal logic
114
+ */
115
+ private executeStepInternal;
116
+ /**
117
+ * Perform state assertion
118
+ */
119
+ private performAssertion;
120
+ /**
121
+ * Interpolate parameters with {{param}} syntax
122
+ */
123
+ private interpolateParams;
124
+ /**
125
+ * Build response from state
126
+ */
127
+ private buildResponse;
128
+ }
129
+ /**
130
+ * Create a workflow engine
131
+ */
132
+ declare function createWorkflowEngine(registry: UIBridgeRegistry, executor: ActionExecutor): WorkflowEngine;
133
+
134
+ export { ActionExecutor, ComponentActionRequest, ComponentActionResponse, ControlActionRequest, ControlActionResponse, ControlSnapshot, DefaultActionExecutor, DefaultWorkflowEngine, FindRequest, FindResponse, WaitResult, WorkflowEngine, WorkflowRunRequest, WorkflowRunResponse, createActionExecutor, createWorkflowEngine };