@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
package/dist/core/index.d.mts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { i as NativeElementIdentifier, z as RegisteredNativeElement } from '../types-CGVut7mc.mjs';
|
|
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, H as NativeAppInfo, e as NativeBridgeSnapshot, f as NativeCapturedToast, g as NativeComponentAction, h as NativeCustomAction, j as NativeElementRef, k as NativeElementState, l as NativeElementType, m as NativeFindRequest, n as NativeFindResponse, o as NativeLayout, J as NativeModalDetectorLike, p as NativeModalInfo, q as NativeRegistrationCoverage, I as NativeRouteProviderLike, r as NativeSnapshotEnricher, s as NativeSnapshotEnrichers, t as NativeSnapshotModalContext, u as NativeSnapshotToastContext, v as NativeSnapshotUndoContext, w as NativeStandardAction, x as NativeUIBridgeConfig, y as NativeUIBridgeFeatures, R as RegisteredNativeComponent, W as WaitOptions, E as Workflow, F as WorkflowStep, G as WorkflowStepType } from '../types-CGVut7mc.mjs';
|
|
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-B5JadBN9.mjs';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Native Element Identifier
|
|
7
|
-
*
|
|
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.
|
|
11
|
-
*/
|
|
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 };
|
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Native Design Review Types
|
|
3
|
-
*
|
|
4
|
-
* Types for React Native style capture and design review.
|
|
5
|
-
* Maps RN style properties to the web SDK's ExtendedComputedStyles format.
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Extended computed styles (~40 design-relevant CSS properties).
|
|
9
|
-
* This is the canonical format shared with the web SDK.
|
|
10
|
-
*/
|
|
11
|
-
interface ExtendedComputedStyles {
|
|
12
|
-
display: string;
|
|
13
|
-
position: string;
|
|
14
|
-
boxSizing: string;
|
|
15
|
-
width: string;
|
|
16
|
-
height: string;
|
|
17
|
-
minWidth: string;
|
|
18
|
-
maxWidth: string;
|
|
19
|
-
minHeight: string;
|
|
20
|
-
maxHeight: string;
|
|
21
|
-
margin: string;
|
|
22
|
-
marginTop: string;
|
|
23
|
-
marginRight: string;
|
|
24
|
-
marginBottom: string;
|
|
25
|
-
marginLeft: string;
|
|
26
|
-
padding: string;
|
|
27
|
-
paddingTop: string;
|
|
28
|
-
paddingRight: string;
|
|
29
|
-
paddingBottom: string;
|
|
30
|
-
paddingLeft: string;
|
|
31
|
-
overflow: string;
|
|
32
|
-
overflowX: string;
|
|
33
|
-
overflowY: string;
|
|
34
|
-
flexDirection: string;
|
|
35
|
-
flexWrap: string;
|
|
36
|
-
justifyContent: string;
|
|
37
|
-
alignItems: string;
|
|
38
|
-
alignSelf: string;
|
|
39
|
-
gap: string;
|
|
40
|
-
gridTemplateColumns: string;
|
|
41
|
-
gridTemplateRows: string;
|
|
42
|
-
fontFamily: string;
|
|
43
|
-
fontSize: string;
|
|
44
|
-
fontWeight: string;
|
|
45
|
-
lineHeight: string;
|
|
46
|
-
letterSpacing: string;
|
|
47
|
-
textAlign: string;
|
|
48
|
-
textTransform: string;
|
|
49
|
-
textDecoration: string;
|
|
50
|
-
color: string;
|
|
51
|
-
backgroundColor: string;
|
|
52
|
-
backgroundImage: string;
|
|
53
|
-
border: string;
|
|
54
|
-
borderRadius: string;
|
|
55
|
-
boxShadow: string;
|
|
56
|
-
opacity: string;
|
|
57
|
-
outline: string;
|
|
58
|
-
transform: string;
|
|
59
|
-
transition: string;
|
|
60
|
-
cursor: string;
|
|
61
|
-
zIndex: string;
|
|
62
|
-
visibility: string;
|
|
63
|
-
pointerEvents: string;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Style diff entry: a property that changed from default state
|
|
67
|
-
*/
|
|
68
|
-
interface StyleDiff {
|
|
69
|
-
property: string;
|
|
70
|
-
defaultValue: string;
|
|
71
|
-
stateValue: string;
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Styles captured in a specific interaction state
|
|
75
|
-
*/
|
|
76
|
-
interface StateStyles {
|
|
77
|
-
state: NativeInteractionStateName;
|
|
78
|
-
styles: ExtendedComputedStyles;
|
|
79
|
-
diffFromDefault: StyleDiff[];
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Full design data for a single element
|
|
83
|
-
*/
|
|
84
|
-
interface ElementDesignData {
|
|
85
|
-
elementId: string;
|
|
86
|
-
label?: string;
|
|
87
|
-
type: string;
|
|
88
|
-
styles: ExtendedComputedStyles;
|
|
89
|
-
stateVariations?: StateStyles[];
|
|
90
|
-
pseudoElements?: PseudoElementStyles[];
|
|
91
|
-
rect: {
|
|
92
|
-
x: number;
|
|
93
|
-
y: number;
|
|
94
|
-
width: number;
|
|
95
|
-
height: number;
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Pseudo-element styles (always empty on RN — no ::before/::after)
|
|
100
|
-
*/
|
|
101
|
-
interface PseudoElementStyles {
|
|
102
|
-
selector: '::before' | '::after';
|
|
103
|
-
content: string;
|
|
104
|
-
styles: Partial<ExtendedComputedStyles>;
|
|
105
|
-
}
|
|
106
|
-
/**
|
|
107
|
-
* Design snapshot at a specific viewport/screen size
|
|
108
|
-
*/
|
|
109
|
-
interface ResponsiveSnapshot {
|
|
110
|
-
viewportWidth: number;
|
|
111
|
-
viewportLabel?: string;
|
|
112
|
-
elements: ElementDesignData[];
|
|
113
|
-
timestamp: number;
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Flattened React Native style — explicit RN style properties.
|
|
117
|
-
* Not tied to any specific RN version. All properties optional.
|
|
118
|
-
*/
|
|
119
|
-
interface FlattenedNativeStyle {
|
|
120
|
-
display?: 'flex' | 'none';
|
|
121
|
-
position?: 'absolute' | 'relative';
|
|
122
|
-
width?: number | string;
|
|
123
|
-
height?: number | string;
|
|
124
|
-
minWidth?: number | string;
|
|
125
|
-
maxWidth?: number | string;
|
|
126
|
-
minHeight?: number | string;
|
|
127
|
-
maxHeight?: number | string;
|
|
128
|
-
margin?: number | string;
|
|
129
|
-
marginTop?: number | string;
|
|
130
|
-
marginRight?: number | string;
|
|
131
|
-
marginBottom?: number | string;
|
|
132
|
-
marginLeft?: number | string;
|
|
133
|
-
marginHorizontal?: number | string;
|
|
134
|
-
marginVertical?: number | string;
|
|
135
|
-
padding?: number | string;
|
|
136
|
-
paddingTop?: number | string;
|
|
137
|
-
paddingRight?: number | string;
|
|
138
|
-
paddingBottom?: number | string;
|
|
139
|
-
paddingLeft?: number | string;
|
|
140
|
-
paddingHorizontal?: number | string;
|
|
141
|
-
paddingVertical?: number | string;
|
|
142
|
-
overflow?: 'visible' | 'hidden' | 'scroll';
|
|
143
|
-
flexDirection?: 'row' | 'column' | 'row-reverse' | 'column-reverse';
|
|
144
|
-
flexWrap?: 'wrap' | 'nowrap' | 'wrap-reverse';
|
|
145
|
-
justifyContent?: string;
|
|
146
|
-
alignItems?: string;
|
|
147
|
-
alignSelf?: string;
|
|
148
|
-
gap?: number;
|
|
149
|
-
rowGap?: number;
|
|
150
|
-
columnGap?: number;
|
|
151
|
-
fontFamily?: string;
|
|
152
|
-
fontSize?: number;
|
|
153
|
-
fontWeight?: 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900';
|
|
154
|
-
lineHeight?: number;
|
|
155
|
-
letterSpacing?: number;
|
|
156
|
-
textAlign?: 'auto' | 'left' | 'right' | 'center' | 'justify';
|
|
157
|
-
textTransform?: 'none' | 'capitalize' | 'uppercase' | 'lowercase';
|
|
158
|
-
textDecorationLine?: 'none' | 'underline' | 'line-through' | 'underline line-through';
|
|
159
|
-
color?: string;
|
|
160
|
-
backgroundColor?: string;
|
|
161
|
-
borderWidth?: number;
|
|
162
|
-
borderTopWidth?: number;
|
|
163
|
-
borderRightWidth?: number;
|
|
164
|
-
borderBottomWidth?: number;
|
|
165
|
-
borderLeftWidth?: number;
|
|
166
|
-
borderColor?: string;
|
|
167
|
-
borderTopColor?: string;
|
|
168
|
-
borderRightColor?: string;
|
|
169
|
-
borderBottomColor?: string;
|
|
170
|
-
borderLeftColor?: string;
|
|
171
|
-
borderRadius?: number;
|
|
172
|
-
borderTopLeftRadius?: number;
|
|
173
|
-
borderTopRightRadius?: number;
|
|
174
|
-
borderBottomLeftRadius?: number;
|
|
175
|
-
borderBottomRightRadius?: number;
|
|
176
|
-
opacity?: number;
|
|
177
|
-
transform?: Array<Record<string, number>>;
|
|
178
|
-
shadowColor?: string;
|
|
179
|
-
shadowOffset?: {
|
|
180
|
-
width: number;
|
|
181
|
-
height: number;
|
|
182
|
-
};
|
|
183
|
-
shadowOpacity?: number;
|
|
184
|
-
shadowRadius?: number;
|
|
185
|
-
elevation?: number;
|
|
186
|
-
zIndex?: number;
|
|
187
|
-
pointerEvents?: 'auto' | 'none' | 'box-none' | 'box-only';
|
|
188
|
-
/** Catch-all for additional/custom style properties */
|
|
189
|
-
[key: string]: unknown;
|
|
190
|
-
}
|
|
191
|
-
/**
|
|
192
|
-
* State-specific style overrides for RN (maps to Pressable states)
|
|
193
|
-
*/
|
|
194
|
-
interface NativeStateStyles {
|
|
195
|
-
pressed?: FlattenedNativeStyle;
|
|
196
|
-
focused?: FlattenedNativeStyle;
|
|
197
|
-
disabled?: FlattenedNativeStyle;
|
|
198
|
-
}
|
|
199
|
-
/**
|
|
200
|
-
* Native interaction state names.
|
|
201
|
-
* RN doesn't have hover/active — uses pressed, focused, disabled instead.
|
|
202
|
-
*/
|
|
203
|
-
type NativeInteractionStateName = 'default' | 'pressed' | 'focused' | 'disabled';
|
|
204
|
-
|
|
205
|
-
export type { ElementDesignData as E, FlattenedNativeStyle as F, NativeInteractionStateName as N, PseudoElementStyles as P, ResponsiveSnapshot as R, StateStyles as S, ExtendedComputedStyles as a, NativeStateStyles as b, StyleDiff as c };
|