@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.
- package/dist/control/index.d.mts +134 -0
- package/dist/control/index.d.ts +134 -0
- package/dist/control/index.js +924 -0
- package/dist/control/index.js.map +1 -0
- package/dist/control/index.mjs +919 -0
- package/dist/control/index.mjs.map +1 -0
- package/dist/core/index.d.mts +52 -0
- package/dist/core/index.d.ts +52 -0
- package/dist/core/index.js +1424 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/index.mjs +1409 -0
- package/dist/core/index.mjs.map +1 -0
- package/dist/debug/index.d.mts +93 -0
- package/dist/debug/index.d.ts +93 -0
- package/dist/debug/index.js +673 -0
- package/dist/debug/index.js.map +1 -0
- package/dist/debug/index.mjs +664 -0
- package/dist/debug/index.mjs.map +1 -0
- package/dist/index.d.mts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +4719 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +4665 -0
- package/dist/index.mjs.map +1 -0
- package/dist/metrics-BCG7z7Aq.d.mts +147 -0
- package/dist/metrics-QCnK0EFw.d.ts +147 -0
- package/dist/react/index.d.mts +786 -0
- package/dist/react/index.d.ts +786 -0
- package/dist/react/index.js +4312 -0
- package/dist/react/index.js.map +1 -0
- package/dist/react/index.mjs +4290 -0
- package/dist/react/index.mjs.map +1 -0
- package/dist/registry-CT6BVVKr.d.mts +253 -0
- package/dist/registry-D4mQ01B3.d.ts +253 -0
- package/dist/render-log/index.d.mts +340 -0
- package/dist/render-log/index.d.ts +340 -0
- package/dist/render-log/index.js +702 -0
- package/dist/render-log/index.js.map +1 -0
- package/dist/render-log/index.mjs +695 -0
- package/dist/render-log/index.mjs.map +1 -0
- package/dist/types-BDkXy5si.d.ts +354 -0
- package/dist/types-BpvpStn3.d.mts +802 -0
- package/dist/types-BpvpStn3.d.ts +802 -0
- package/dist/types-DdJD9yw5.d.mts +354 -0
- package/dist/websocket-client-B2LC9CYc.d.mts +124 -0
- package/dist/websocket-client-DupH0X7B.d.ts +124 -0
- package/package.json +83 -0
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { d as BridgeEventListener, e as BridgeEventType, i as ElementType, S as StandardAction, g as CustomAction, l as RegisteredElement, R as RegisteredComponent, a1 as Workflow, o as UIState, p as UIStateGroup, q as UITransition, T as TransitionResult, P as PathResult, N as NavigationResult, m as StateSnapshot, f as BridgeSnapshot } from './types-BpvpStn3.mjs';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Element and Component Registry
|
|
5
|
+
*
|
|
6
|
+
* Central registry for all UI elements and components registered with UI Bridge.
|
|
7
|
+
* Provides methods for registration, lookup, and lifecycle management.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Registry options
|
|
12
|
+
*/
|
|
13
|
+
interface RegistryOptions {
|
|
14
|
+
/** Enable verbose logging */
|
|
15
|
+
verbose?: boolean;
|
|
16
|
+
/** Callback when an event occurs */
|
|
17
|
+
onEvent?: BridgeEventListener;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* UI Bridge Registry
|
|
21
|
+
*
|
|
22
|
+
* Central registry for managing elements, components, and workflows.
|
|
23
|
+
*/
|
|
24
|
+
declare class UIBridgeRegistry {
|
|
25
|
+
private elements;
|
|
26
|
+
private components;
|
|
27
|
+
private workflows;
|
|
28
|
+
private eventListeners;
|
|
29
|
+
private options;
|
|
30
|
+
private states;
|
|
31
|
+
private stateGroups;
|
|
32
|
+
private transitions;
|
|
33
|
+
private activeStates;
|
|
34
|
+
constructor(options?: RegistryOptions);
|
|
35
|
+
/**
|
|
36
|
+
* Emit an event
|
|
37
|
+
*/
|
|
38
|
+
private emit;
|
|
39
|
+
/**
|
|
40
|
+
* Register an event listener
|
|
41
|
+
*/
|
|
42
|
+
on<T = unknown>(type: BridgeEventType, listener: BridgeEventListener<T>): () => void;
|
|
43
|
+
/**
|
|
44
|
+
* Remove an event listener
|
|
45
|
+
*/
|
|
46
|
+
off<T = unknown>(type: BridgeEventType, listener: BridgeEventListener<T>): void;
|
|
47
|
+
/**
|
|
48
|
+
* Register an element
|
|
49
|
+
*/
|
|
50
|
+
registerElement(id: string, element: HTMLElement, options?: {
|
|
51
|
+
type?: ElementType;
|
|
52
|
+
label?: string;
|
|
53
|
+
actions?: StandardAction[];
|
|
54
|
+
customActions?: Record<string, CustomAction>;
|
|
55
|
+
}): RegisteredElement;
|
|
56
|
+
/**
|
|
57
|
+
* Unregister an element
|
|
58
|
+
*/
|
|
59
|
+
unregisterElement(id: string): boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Get a registered element
|
|
62
|
+
*/
|
|
63
|
+
getElement(id: string): RegisteredElement | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Get all registered elements
|
|
66
|
+
*/
|
|
67
|
+
getAllElements(): RegisteredElement[];
|
|
68
|
+
/**
|
|
69
|
+
* Find element by DOM element reference
|
|
70
|
+
*/
|
|
71
|
+
findByDOMElement(element: HTMLElement): RegisteredElement | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Register a component
|
|
74
|
+
*/
|
|
75
|
+
registerComponent(id: string, options: {
|
|
76
|
+
name: string;
|
|
77
|
+
description?: string;
|
|
78
|
+
actions?: Array<{
|
|
79
|
+
id: string;
|
|
80
|
+
label?: string;
|
|
81
|
+
description?: string;
|
|
82
|
+
handler: (params?: unknown) => unknown | Promise<unknown>;
|
|
83
|
+
}>;
|
|
84
|
+
elementIds?: string[];
|
|
85
|
+
}): RegisteredComponent;
|
|
86
|
+
/**
|
|
87
|
+
* Unregister a component
|
|
88
|
+
*/
|
|
89
|
+
unregisterComponent(id: string): boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Get a registered component
|
|
92
|
+
*/
|
|
93
|
+
getComponent(id: string): RegisteredComponent | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Get all registered components
|
|
96
|
+
*/
|
|
97
|
+
getAllComponents(): RegisteredComponent[];
|
|
98
|
+
/**
|
|
99
|
+
* Register a workflow
|
|
100
|
+
*/
|
|
101
|
+
registerWorkflow(workflow: Workflow): Workflow;
|
|
102
|
+
/**
|
|
103
|
+
* Unregister a workflow
|
|
104
|
+
*/
|
|
105
|
+
unregisterWorkflow(id: string): boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Get a workflow
|
|
108
|
+
*/
|
|
109
|
+
getWorkflow(id: string): Workflow | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* Get all workflows
|
|
112
|
+
*/
|
|
113
|
+
getAllWorkflows(): Workflow[];
|
|
114
|
+
/**
|
|
115
|
+
* Register a state
|
|
116
|
+
*/
|
|
117
|
+
registerState(state: UIState): UIState;
|
|
118
|
+
/**
|
|
119
|
+
* Unregister a state
|
|
120
|
+
*/
|
|
121
|
+
unregisterState(id: string): boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Get a registered state
|
|
124
|
+
*/
|
|
125
|
+
getState(id: string): UIState | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* Get all registered states
|
|
128
|
+
*/
|
|
129
|
+
getAllStates(): UIState[];
|
|
130
|
+
/**
|
|
131
|
+
* Register a state group
|
|
132
|
+
*/
|
|
133
|
+
registerStateGroup(group: UIStateGroup): UIStateGroup;
|
|
134
|
+
/**
|
|
135
|
+
* Unregister a state group
|
|
136
|
+
*/
|
|
137
|
+
unregisterStateGroup(id: string): boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Get a state group
|
|
140
|
+
*/
|
|
141
|
+
getStateGroup(id: string): UIStateGroup | undefined;
|
|
142
|
+
/**
|
|
143
|
+
* Get all state groups
|
|
144
|
+
*/
|
|
145
|
+
getAllStateGroups(): UIStateGroup[];
|
|
146
|
+
/**
|
|
147
|
+
* Register a transition
|
|
148
|
+
*/
|
|
149
|
+
registerTransition(transition: UITransition): UITransition;
|
|
150
|
+
/**
|
|
151
|
+
* Unregister a transition
|
|
152
|
+
*/
|
|
153
|
+
unregisterTransition(id: string): boolean;
|
|
154
|
+
/**
|
|
155
|
+
* Get a transition
|
|
156
|
+
*/
|
|
157
|
+
getTransition(id: string): UITransition | undefined;
|
|
158
|
+
/**
|
|
159
|
+
* Get all transitions
|
|
160
|
+
*/
|
|
161
|
+
getAllTransitions(): UITransition[];
|
|
162
|
+
/**
|
|
163
|
+
* Get currently active states
|
|
164
|
+
*/
|
|
165
|
+
getActiveStates(): string[];
|
|
166
|
+
/**
|
|
167
|
+
* Check if a state is active
|
|
168
|
+
*/
|
|
169
|
+
isStateActive(id: string): boolean;
|
|
170
|
+
/**
|
|
171
|
+
* Activate a state
|
|
172
|
+
*/
|
|
173
|
+
activateState(id: string): boolean;
|
|
174
|
+
/**
|
|
175
|
+
* Deactivate a state
|
|
176
|
+
*/
|
|
177
|
+
deactivateState(id: string): boolean;
|
|
178
|
+
/**
|
|
179
|
+
* Activate multiple states
|
|
180
|
+
*/
|
|
181
|
+
activateStates(ids: string[]): string[];
|
|
182
|
+
/**
|
|
183
|
+
* Deactivate multiple states
|
|
184
|
+
*/
|
|
185
|
+
deactivateStates(ids: string[]): string[];
|
|
186
|
+
/**
|
|
187
|
+
* Activate a state group (all states in the group)
|
|
188
|
+
*/
|
|
189
|
+
activateStateGroup(groupId: string): string[];
|
|
190
|
+
/**
|
|
191
|
+
* Deactivate a state group (all states in the group)
|
|
192
|
+
*/
|
|
193
|
+
deactivateStateGroup(groupId: string): string[];
|
|
194
|
+
/**
|
|
195
|
+
* Check if a transition can be executed from current state
|
|
196
|
+
*/
|
|
197
|
+
canExecuteTransition(transitionId: string): boolean;
|
|
198
|
+
/**
|
|
199
|
+
* Execute a transition
|
|
200
|
+
*/
|
|
201
|
+
executeTransition(transitionId: string): Promise<TransitionResult>;
|
|
202
|
+
/**
|
|
203
|
+
* Find a path from current state to target states
|
|
204
|
+
*
|
|
205
|
+
* Uses a simple BFS algorithm for pathfinding.
|
|
206
|
+
* For more advanced pathfinding (Dijkstra, A*), use the Python state manager service.
|
|
207
|
+
*/
|
|
208
|
+
findPath(targetStates: string[]): PathResult;
|
|
209
|
+
/**
|
|
210
|
+
* Navigate to target states using pathfinding
|
|
211
|
+
*/
|
|
212
|
+
navigateTo(targetStates: string[]): Promise<NavigationResult>;
|
|
213
|
+
/**
|
|
214
|
+
* Create a state snapshot
|
|
215
|
+
*/
|
|
216
|
+
createStateSnapshot(): StateSnapshot;
|
|
217
|
+
/**
|
|
218
|
+
* Create a snapshot of the current state
|
|
219
|
+
*/
|
|
220
|
+
createSnapshot(): BridgeSnapshot;
|
|
221
|
+
/**
|
|
222
|
+
* Clear all registrations
|
|
223
|
+
*/
|
|
224
|
+
clear(): void;
|
|
225
|
+
/**
|
|
226
|
+
* Get registry statistics
|
|
227
|
+
*/
|
|
228
|
+
getStats(): {
|
|
229
|
+
elementCount: number;
|
|
230
|
+
componentCount: number;
|
|
231
|
+
workflowCount: number;
|
|
232
|
+
mountedElementCount: number;
|
|
233
|
+
mountedComponentCount: number;
|
|
234
|
+
stateCount: number;
|
|
235
|
+
stateGroupCount: number;
|
|
236
|
+
transitionCount: number;
|
|
237
|
+
activeStateCount: number;
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Get or create the global registry
|
|
242
|
+
*/
|
|
243
|
+
declare function getGlobalRegistry(): UIBridgeRegistry;
|
|
244
|
+
/**
|
|
245
|
+
* Set the global registry
|
|
246
|
+
*/
|
|
247
|
+
declare function setGlobalRegistry(registry: UIBridgeRegistry): void;
|
|
248
|
+
/**
|
|
249
|
+
* Reset the global registry
|
|
250
|
+
*/
|
|
251
|
+
declare function resetGlobalRegistry(): void;
|
|
252
|
+
|
|
253
|
+
export { type RegistryOptions as R, UIBridgeRegistry as U, getGlobalRegistry as g, resetGlobalRegistry as r, setGlobalRegistry as s };
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
import { d as BridgeEventListener, e as BridgeEventType, i as ElementType, S as StandardAction, g as CustomAction, l as RegisteredElement, R as RegisteredComponent, a1 as Workflow, o as UIState, p as UIStateGroup, q as UITransition, T as TransitionResult, P as PathResult, N as NavigationResult, m as StateSnapshot, f as BridgeSnapshot } from './types-BpvpStn3.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Element and Component Registry
|
|
5
|
+
*
|
|
6
|
+
* Central registry for all UI elements and components registered with UI Bridge.
|
|
7
|
+
* Provides methods for registration, lookup, and lifecycle management.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Registry options
|
|
12
|
+
*/
|
|
13
|
+
interface RegistryOptions {
|
|
14
|
+
/** Enable verbose logging */
|
|
15
|
+
verbose?: boolean;
|
|
16
|
+
/** Callback when an event occurs */
|
|
17
|
+
onEvent?: BridgeEventListener;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* UI Bridge Registry
|
|
21
|
+
*
|
|
22
|
+
* Central registry for managing elements, components, and workflows.
|
|
23
|
+
*/
|
|
24
|
+
declare class UIBridgeRegistry {
|
|
25
|
+
private elements;
|
|
26
|
+
private components;
|
|
27
|
+
private workflows;
|
|
28
|
+
private eventListeners;
|
|
29
|
+
private options;
|
|
30
|
+
private states;
|
|
31
|
+
private stateGroups;
|
|
32
|
+
private transitions;
|
|
33
|
+
private activeStates;
|
|
34
|
+
constructor(options?: RegistryOptions);
|
|
35
|
+
/**
|
|
36
|
+
* Emit an event
|
|
37
|
+
*/
|
|
38
|
+
private emit;
|
|
39
|
+
/**
|
|
40
|
+
* Register an event listener
|
|
41
|
+
*/
|
|
42
|
+
on<T = unknown>(type: BridgeEventType, listener: BridgeEventListener<T>): () => void;
|
|
43
|
+
/**
|
|
44
|
+
* Remove an event listener
|
|
45
|
+
*/
|
|
46
|
+
off<T = unknown>(type: BridgeEventType, listener: BridgeEventListener<T>): void;
|
|
47
|
+
/**
|
|
48
|
+
* Register an element
|
|
49
|
+
*/
|
|
50
|
+
registerElement(id: string, element: HTMLElement, options?: {
|
|
51
|
+
type?: ElementType;
|
|
52
|
+
label?: string;
|
|
53
|
+
actions?: StandardAction[];
|
|
54
|
+
customActions?: Record<string, CustomAction>;
|
|
55
|
+
}): RegisteredElement;
|
|
56
|
+
/**
|
|
57
|
+
* Unregister an element
|
|
58
|
+
*/
|
|
59
|
+
unregisterElement(id: string): boolean;
|
|
60
|
+
/**
|
|
61
|
+
* Get a registered element
|
|
62
|
+
*/
|
|
63
|
+
getElement(id: string): RegisteredElement | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Get all registered elements
|
|
66
|
+
*/
|
|
67
|
+
getAllElements(): RegisteredElement[];
|
|
68
|
+
/**
|
|
69
|
+
* Find element by DOM element reference
|
|
70
|
+
*/
|
|
71
|
+
findByDOMElement(element: HTMLElement): RegisteredElement | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Register a component
|
|
74
|
+
*/
|
|
75
|
+
registerComponent(id: string, options: {
|
|
76
|
+
name: string;
|
|
77
|
+
description?: string;
|
|
78
|
+
actions?: Array<{
|
|
79
|
+
id: string;
|
|
80
|
+
label?: string;
|
|
81
|
+
description?: string;
|
|
82
|
+
handler: (params?: unknown) => unknown | Promise<unknown>;
|
|
83
|
+
}>;
|
|
84
|
+
elementIds?: string[];
|
|
85
|
+
}): RegisteredComponent;
|
|
86
|
+
/**
|
|
87
|
+
* Unregister a component
|
|
88
|
+
*/
|
|
89
|
+
unregisterComponent(id: string): boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Get a registered component
|
|
92
|
+
*/
|
|
93
|
+
getComponent(id: string): RegisteredComponent | undefined;
|
|
94
|
+
/**
|
|
95
|
+
* Get all registered components
|
|
96
|
+
*/
|
|
97
|
+
getAllComponents(): RegisteredComponent[];
|
|
98
|
+
/**
|
|
99
|
+
* Register a workflow
|
|
100
|
+
*/
|
|
101
|
+
registerWorkflow(workflow: Workflow): Workflow;
|
|
102
|
+
/**
|
|
103
|
+
* Unregister a workflow
|
|
104
|
+
*/
|
|
105
|
+
unregisterWorkflow(id: string): boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Get a workflow
|
|
108
|
+
*/
|
|
109
|
+
getWorkflow(id: string): Workflow | undefined;
|
|
110
|
+
/**
|
|
111
|
+
* Get all workflows
|
|
112
|
+
*/
|
|
113
|
+
getAllWorkflows(): Workflow[];
|
|
114
|
+
/**
|
|
115
|
+
* Register a state
|
|
116
|
+
*/
|
|
117
|
+
registerState(state: UIState): UIState;
|
|
118
|
+
/**
|
|
119
|
+
* Unregister a state
|
|
120
|
+
*/
|
|
121
|
+
unregisterState(id: string): boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Get a registered state
|
|
124
|
+
*/
|
|
125
|
+
getState(id: string): UIState | undefined;
|
|
126
|
+
/**
|
|
127
|
+
* Get all registered states
|
|
128
|
+
*/
|
|
129
|
+
getAllStates(): UIState[];
|
|
130
|
+
/**
|
|
131
|
+
* Register a state group
|
|
132
|
+
*/
|
|
133
|
+
registerStateGroup(group: UIStateGroup): UIStateGroup;
|
|
134
|
+
/**
|
|
135
|
+
* Unregister a state group
|
|
136
|
+
*/
|
|
137
|
+
unregisterStateGroup(id: string): boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Get a state group
|
|
140
|
+
*/
|
|
141
|
+
getStateGroup(id: string): UIStateGroup | undefined;
|
|
142
|
+
/**
|
|
143
|
+
* Get all state groups
|
|
144
|
+
*/
|
|
145
|
+
getAllStateGroups(): UIStateGroup[];
|
|
146
|
+
/**
|
|
147
|
+
* Register a transition
|
|
148
|
+
*/
|
|
149
|
+
registerTransition(transition: UITransition): UITransition;
|
|
150
|
+
/**
|
|
151
|
+
* Unregister a transition
|
|
152
|
+
*/
|
|
153
|
+
unregisterTransition(id: string): boolean;
|
|
154
|
+
/**
|
|
155
|
+
* Get a transition
|
|
156
|
+
*/
|
|
157
|
+
getTransition(id: string): UITransition | undefined;
|
|
158
|
+
/**
|
|
159
|
+
* Get all transitions
|
|
160
|
+
*/
|
|
161
|
+
getAllTransitions(): UITransition[];
|
|
162
|
+
/**
|
|
163
|
+
* Get currently active states
|
|
164
|
+
*/
|
|
165
|
+
getActiveStates(): string[];
|
|
166
|
+
/**
|
|
167
|
+
* Check if a state is active
|
|
168
|
+
*/
|
|
169
|
+
isStateActive(id: string): boolean;
|
|
170
|
+
/**
|
|
171
|
+
* Activate a state
|
|
172
|
+
*/
|
|
173
|
+
activateState(id: string): boolean;
|
|
174
|
+
/**
|
|
175
|
+
* Deactivate a state
|
|
176
|
+
*/
|
|
177
|
+
deactivateState(id: string): boolean;
|
|
178
|
+
/**
|
|
179
|
+
* Activate multiple states
|
|
180
|
+
*/
|
|
181
|
+
activateStates(ids: string[]): string[];
|
|
182
|
+
/**
|
|
183
|
+
* Deactivate multiple states
|
|
184
|
+
*/
|
|
185
|
+
deactivateStates(ids: string[]): string[];
|
|
186
|
+
/**
|
|
187
|
+
* Activate a state group (all states in the group)
|
|
188
|
+
*/
|
|
189
|
+
activateStateGroup(groupId: string): string[];
|
|
190
|
+
/**
|
|
191
|
+
* Deactivate a state group (all states in the group)
|
|
192
|
+
*/
|
|
193
|
+
deactivateStateGroup(groupId: string): string[];
|
|
194
|
+
/**
|
|
195
|
+
* Check if a transition can be executed from current state
|
|
196
|
+
*/
|
|
197
|
+
canExecuteTransition(transitionId: string): boolean;
|
|
198
|
+
/**
|
|
199
|
+
* Execute a transition
|
|
200
|
+
*/
|
|
201
|
+
executeTransition(transitionId: string): Promise<TransitionResult>;
|
|
202
|
+
/**
|
|
203
|
+
* Find a path from current state to target states
|
|
204
|
+
*
|
|
205
|
+
* Uses a simple BFS algorithm for pathfinding.
|
|
206
|
+
* For more advanced pathfinding (Dijkstra, A*), use the Python state manager service.
|
|
207
|
+
*/
|
|
208
|
+
findPath(targetStates: string[]): PathResult;
|
|
209
|
+
/**
|
|
210
|
+
* Navigate to target states using pathfinding
|
|
211
|
+
*/
|
|
212
|
+
navigateTo(targetStates: string[]): Promise<NavigationResult>;
|
|
213
|
+
/**
|
|
214
|
+
* Create a state snapshot
|
|
215
|
+
*/
|
|
216
|
+
createStateSnapshot(): StateSnapshot;
|
|
217
|
+
/**
|
|
218
|
+
* Create a snapshot of the current state
|
|
219
|
+
*/
|
|
220
|
+
createSnapshot(): BridgeSnapshot;
|
|
221
|
+
/**
|
|
222
|
+
* Clear all registrations
|
|
223
|
+
*/
|
|
224
|
+
clear(): void;
|
|
225
|
+
/**
|
|
226
|
+
* Get registry statistics
|
|
227
|
+
*/
|
|
228
|
+
getStats(): {
|
|
229
|
+
elementCount: number;
|
|
230
|
+
componentCount: number;
|
|
231
|
+
workflowCount: number;
|
|
232
|
+
mountedElementCount: number;
|
|
233
|
+
mountedComponentCount: number;
|
|
234
|
+
stateCount: number;
|
|
235
|
+
stateGroupCount: number;
|
|
236
|
+
transitionCount: number;
|
|
237
|
+
activeStateCount: number;
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Get or create the global registry
|
|
242
|
+
*/
|
|
243
|
+
declare function getGlobalRegistry(): UIBridgeRegistry;
|
|
244
|
+
/**
|
|
245
|
+
* Set the global registry
|
|
246
|
+
*/
|
|
247
|
+
declare function setGlobalRegistry(registry: UIBridgeRegistry): void;
|
|
248
|
+
/**
|
|
249
|
+
* Reset the global registry
|
|
250
|
+
*/
|
|
251
|
+
declare function resetGlobalRegistry(): void;
|
|
252
|
+
|
|
253
|
+
export { type RegistryOptions as R, UIBridgeRegistry as U, getGlobalRegistry as g, resetGlobalRegistry as r, setGlobalRegistry as s };
|