@qontinui/ui-bridge-native 0.1.6 → 0.2.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 (98) hide show
  1. package/dist/control/{action-executor.d.ts → index.d.mts} +14 -6
  2. package/dist/control/index.d.ts +95 -5
  3. package/dist/control/index.js +74 -11
  4. package/dist/control/index.js.map +1 -1
  5. package/dist/control/index.mjs +74 -11
  6. package/dist/control/index.mjs.map +1 -1
  7. package/dist/core/index.d.mts +46 -0
  8. package/dist/core/index.d.ts +43 -6
  9. package/dist/core/index.js +108 -2
  10. package/dist/core/index.js.map +1 -1
  11. package/dist/core/index.mjs +108 -2
  12. package/dist/core/index.mjs.map +1 -1
  13. package/dist/debug/{inspector.d.ts → index.d.mts} +6 -3
  14. package/dist/debug/index.d.ts +44 -4
  15. package/dist/debug/index.js +2 -2
  16. package/dist/debug/index.js.map +1 -1
  17. package/dist/debug/index.mjs +2 -2
  18. package/dist/debug/index.mjs.map +1 -1
  19. package/dist/design/{design-inspector-native.d.ts → index.d.mts} +11 -7
  20. package/dist/design/index.d.ts +60 -5
  21. package/dist/{design/design-types.d.ts → design-types-BHr6Q1FX.d.mts} +11 -10
  22. package/dist/design-types-BHr6Q1FX.d.ts +205 -0
  23. package/dist/http-server-D2U1k48d.d.mts +703 -0
  24. package/dist/http-server-ck8clUsZ.d.ts +703 -0
  25. package/dist/index.d.mts +89 -0
  26. package/dist/index.d.ts +86 -28
  27. package/dist/index.js +754 -50
  28. package/dist/index.js.map +1 -1
  29. package/dist/index.mjs +749 -51
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/react/{useAutoRegister.d.ts → index.d.mts} +15 -7
  32. package/dist/react/index.d.ts +69 -8
  33. package/dist/react/index.js +733 -50
  34. package/dist/react/index.js.map +1 -1
  35. package/dist/react/index.mjs +731 -51
  36. package/dist/react/index.mjs.map +1 -1
  37. package/dist/{core/registry.d.ts → registry-BxXaxmsT.d.ts} +51 -10
  38. package/dist/registry-KdUW_koV.d.mts +253 -0
  39. package/dist/server/index.d.mts +119 -0
  40. package/dist/server/index.d.ts +117 -13
  41. package/dist/server/index.js +272 -16
  42. package/dist/server/index.js.map +1 -1
  43. package/dist/server/index.mjs +272 -16
  44. package/dist/server/index.mjs.map +1 -1
  45. package/dist/{core/types.d.ts → types-BwdPNpII.d.mts} +172 -30
  46. package/dist/types-BwdPNpII.d.ts +525 -0
  47. package/dist/{control/types.d.ts → types-DCEv5qb6.d.ts} +36 -15
  48. package/dist/types-DjB0zJJH.d.mts +197 -0
  49. package/dist/useUIBridgeToast-BPIEbsEc.d.mts +726 -0
  50. package/dist/useUIBridgeToast-DD13oF3k.d.ts +726 -0
  51. package/package.json +2 -2
  52. package/dist/control/action-executor.d.ts.map +0 -1
  53. package/dist/control/index.d.ts.map +0 -1
  54. package/dist/control/types.d.ts.map +0 -1
  55. package/dist/core/element-identifier.d.ts +0 -41
  56. package/dist/core/element-identifier.d.ts.map +0 -1
  57. package/dist/core/index.d.ts.map +0 -1
  58. package/dist/core/registry.d.ts.map +0 -1
  59. package/dist/core/types.d.ts.map +0 -1
  60. package/dist/debug/index.d.ts.map +0 -1
  61. package/dist/debug/inspector.d.ts.map +0 -1
  62. package/dist/design/design-inspector-native.d.ts.map +0 -1
  63. package/dist/design/design-types.d.ts.map +0 -1
  64. package/dist/design/index.d.ts.map +0 -1
  65. package/dist/index.d.ts.map +0 -1
  66. package/dist/react/UIBridgeNativeProvider.d.ts +0 -147
  67. package/dist/react/UIBridgeNativeProvider.d.ts.map +0 -1
  68. package/dist/react/index.d.ts.map +0 -1
  69. package/dist/react/useAutoRegister.d.ts.map +0 -1
  70. package/dist/react/useUIBridge.d.ts +0 -103
  71. package/dist/react/useUIBridge.d.ts.map +0 -1
  72. package/dist/react/useUIComponent.d.ts +0 -112
  73. package/dist/react/useUIComponent.d.ts.map +0 -1
  74. package/dist/react/useUIElement.d.ts +0 -162
  75. package/dist/react/useUIElement.d.ts.map +0 -1
  76. package/dist/server/design-handlers.d.ts +0 -47
  77. package/dist/server/design-handlers.d.ts.map +0 -1
  78. package/dist/server/handlers.d.ts +0 -20
  79. package/dist/server/handlers.d.ts.map +0 -1
  80. package/dist/server/http-server.d.ts +0 -247
  81. package/dist/server/http-server.d.ts.map +0 -1
  82. package/dist/server/index.d.ts.map +0 -1
  83. package/dist/server/types.d.ts +0 -200
  84. package/dist/server/types.d.ts.map +0 -1
  85. package/dist/server/ws-connection.d.ts +0 -48
  86. package/dist/server/ws-connection.d.ts.map +0 -1
  87. package/dist/server/ws-event-bridge.d.ts +0 -113
  88. package/dist/server/ws-event-bridge.d.ts.map +0 -1
  89. package/dist/server/ws-protocol.d.ts +0 -48
  90. package/dist/server/ws-protocol.d.ts.map +0 -1
  91. package/dist/server/ws-types.d.ts +0 -65
  92. package/dist/server/ws-types.d.ts.map +0 -1
  93. package/dist/transport/CloudRelayClient.d.ts +0 -51
  94. package/dist/transport/CloudRelayClient.d.ts.map +0 -1
  95. package/dist/transport/DeviceAnnouncer.d.ts +0 -75
  96. package/dist/transport/DeviceAnnouncer.d.ts.map +0 -1
  97. package/dist/transport/index.d.ts +0 -3
  98. package/dist/transport/index.d.ts.map +0 -1
@@ -0,0 +1,205 @@
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 };