@nice2dev/ui 1.0.6 → 1.0.8
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/NiceAPIFlow.doc-DnQLPUie.js +30 -0
- package/dist/NiceAPIFlow.doc-Dx4qw1lm.cjs +6 -0
- package/dist/NiceBranchManager.doc-BXjiENlD.cjs +6 -0
- package/dist/NiceBranchManager.doc-xLB82YwU.js +30 -0
- package/dist/NiceButton-CDiS45Ya.cjs +1 -0
- package/dist/NiceButton-D9l39Rs7.js +595 -0
- package/dist/NiceCodeTemplate.doc-BWxTE4C_.cjs +6 -0
- package/dist/NiceCodeTemplate.doc-CA2U5F-v.js +30 -0
- package/dist/NiceDataBranchGraph.doc-CkitupWc.js +29 -0
- package/dist/NiceDataBranchGraph.doc-DDUgipqH.cjs +5 -0
- package/dist/NiceDataBranchManager.doc-B0ODKOs4.js +30 -0
- package/dist/NiceDataBranchManager.doc-CC5o8ihs.cjs +6 -0
- package/dist/NiceDataConflictResolver.doc-CdzScNie.cjs +5 -0
- package/dist/NiceDataConflictResolver.doc-V8vxYAeo.js +29 -0
- package/dist/NiceDataDiffViewer.doc-CR14Bq3A.cjs +6 -0
- package/dist/NiceDataDiffViewer.doc-w2I2QjhX.js +30 -0
- package/dist/NiceDataMapper.doc-C7jSyHRM.js +30 -0
- package/dist/NiceDataMapper.doc-DXjQHz87.cjs +6 -0
- package/dist/NiceDataMergeBuilder.doc-CV32WC_w.cjs +6 -0
- package/dist/NiceDataMergeBuilder.doc-DtuYb3nx.js +30 -0
- package/dist/NiceDataSnapshot.doc-CFLkY3ry.js +30 -0
- package/dist/NiceDataSnapshot.doc-CpZyQ17u.cjs +6 -0
- package/dist/NiceErrorBoundary-BAeqfoSc.cjs +1 -0
- package/dist/NiceErrorBoundary-niMx1aSJ.js +837 -0
- package/dist/NiceEventOrchestrator.doc-C4SJfIDV.js +30 -0
- package/dist/NiceEventOrchestrator.doc-CxjsLxBG.cjs +6 -0
- package/dist/NiceGitBlame.doc-BG3_K9_0.cjs +6 -0
- package/dist/NiceGitBlame.doc-DrJABEat.js +30 -0
- package/dist/NiceGitConflictResolver.doc-BK7hAfz6.js +30 -0
- package/dist/NiceGitConflictResolver.doc-CgroGM9_.cjs +6 -0
- package/dist/NiceGitDiffViewer.doc-BAwgcY_3.cjs +6 -0
- package/dist/NiceGitDiffViewer.doc-BXKJeP-E.js +30 -0
- package/dist/NiceGitGraph.doc-B-WtGuzn.cjs +5 -0
- package/dist/NiceGitGraph.doc-DxnDPCgC.js +29 -0
- package/dist/NiceGitHooks.doc-BrEizvMp.js +29 -0
- package/dist/NiceGitHooks.doc-C4EdV5zj.cjs +5 -0
- package/dist/NiceMergeRequestBuilder.doc-C5p8mYuh.cjs +6 -0
- package/dist/NiceMergeRequestBuilder.doc-Ct9RCmU8.js +30 -0
- package/dist/NiceModuleLifecyclePanel-Brg1RLwi.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-I_TXRiiY.js +5053 -0
- package/dist/NicePinCodeInput-CrMfdxxc.js +15287 -0
- package/dist/NicePinCodeInput-D0aF9MK8.cjs +692 -0
- package/dist/NicePipelineEditor.doc-0eGt8zbX.cjs +5 -0
- package/dist/NicePipelineEditor.doc-DTmaOebn.js +29 -0
- package/dist/NicePipelineMonitor.doc-67CmsRcf.cjs +5 -0
- package/dist/NicePipelineMonitor.doc-mSMdhuG8.js +29 -0
- package/dist/NiceSavedQueryPanel-BZNvqSQW.cjs +596 -0
- package/dist/NiceSavedQueryPanel-CUAsdOjJ.js +6190 -0
- package/dist/NiceStateDesigner.doc-B36u0hNU.js +29 -0
- package/dist/NiceStateDesigner.doc-MPmvNHSx.cjs +5 -0
- package/dist/NiceTestBuilder.doc-BFInj8GJ.js +30 -0
- package/dist/NiceTestBuilder.doc-CB03U_uR.cjs +6 -0
- package/dist/NiceToggle-CaY1u82g.js +277 -0
- package/dist/NiceToggle-DFJFQv_Z.cjs +1 -0
- package/dist/NiceWindow-IdHAcP70.cjs +1 -0
- package/dist/NiceWindow-SiCaREbq.js +1408 -0
- package/dist/charts-Bx_kNBsE.js +4280 -0
- package/dist/charts-DECVsCHX.cjs +754 -0
- package/dist/charts.cjs +1 -1
- package/dist/charts.css +1 -0
- package/dist/charts.d.ts +3 -3
- package/dist/charts.mjs +1 -1
- package/dist/core-BZBTsGWN.cjs +96 -0
- package/dist/core-BpghV7Ls.js +17555 -0
- package/dist/data-branching-De4ExX-S.cjs +1 -0
- package/dist/data-branching-DiRfob1f.js +6071 -0
- package/dist/data-branching.cjs +1 -0
- package/dist/data-branching.d.ts +401 -0
- package/dist/data-branching.mjs +9 -0
- package/dist/data.cjs +1 -1
- package/dist/data.mjs +1 -1
- package/dist/devops-BnYinjkT.cjs +17 -0
- package/dist/devops-Ckh57eti.js +7198 -0
- package/dist/devops.cjs +1 -0
- package/dist/devops.d.ts +758 -0
- package/dist/devops.mjs +12 -0
- package/dist/editors.cjs +1 -1
- package/dist/editors.mjs +3 -3
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.mjs +1 -1
- package/dist/index-CBIZ6mTQ.cjs +5734 -0
- package/dist/index-CIl98Vbm.js +72951 -0
- package/dist/index.cjs +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +3643 -93
- package/dist/index.mjs +1001 -952
- package/dist/lazy.cjs +1 -0
- package/dist/lazy.d.ts +1880 -0
- package/dist/lazy.mjs +98 -0
- package/dist/navigation.cjs +1 -1
- package/dist/navigation.mjs +69 -12
- package/dist/no-code-BCuadkm4.cjs +332 -0
- package/dist/no-code-TL7PyulA.js +7005 -0
- package/dist/no-code.cjs +1 -0
- package/dist/no-code.d.ts +870 -0
- package/dist/no-code.mjs +13 -0
- package/dist/overlays.cjs +1 -1
- package/dist/overlays.mjs +480 -24
- package/package.json +21 -1
|
@@ -0,0 +1,870 @@
|
|
|
1
|
+
import { default as default_2 } from 'react';
|
|
2
|
+
|
|
3
|
+
declare interface ActionParam {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
type: FieldType;
|
|
7
|
+
required?: boolean;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare interface APIEndpoint {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
method: HTTPMethod;
|
|
15
|
+
path: string;
|
|
16
|
+
tags?: string[];
|
|
17
|
+
pathParams?: ParamDefinition[];
|
|
18
|
+
queryParams?: ParamDefinition[];
|
|
19
|
+
headers?: ParamDefinition[];
|
|
20
|
+
body?: BodyDefinition;
|
|
21
|
+
responses: ResponseDefinition[];
|
|
22
|
+
retry?: RetryConfig;
|
|
23
|
+
cache?: EndpointCacheConfig;
|
|
24
|
+
timeout?: number;
|
|
25
|
+
mock?: MockResponse;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
declare interface APIFlowDefinition {
|
|
29
|
+
id: string;
|
|
30
|
+
name: string;
|
|
31
|
+
description?: string;
|
|
32
|
+
baseUrl: string;
|
|
33
|
+
version?: string;
|
|
34
|
+
endpoints: APIEndpoint[];
|
|
35
|
+
auth?: AuthConfig;
|
|
36
|
+
globalHeaders?: Record<string, string>;
|
|
37
|
+
errorHandling?: ErrorHandlingConfig;
|
|
38
|
+
cacheConfig?: CacheConfig;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
declare interface Assertion {
|
|
42
|
+
matcher: AssertionMatcher;
|
|
43
|
+
expected?: unknown;
|
|
44
|
+
not?: boolean;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
declare type AssertionMatcher = 'toEqual' | 'toBe' | 'toBeTruthy' | 'toBeFalsy' | 'toBeNull' | 'toBeUndefined' | 'toContain' | 'toHaveLength' | 'toBeInTheDocument' | 'toHaveTextContent' | 'toHaveAttribute' | 'toHaveClass' | 'toHaveStyle' | 'toHaveBeenCalled' | 'toHaveBeenCalledWith' | 'toHaveBeenCalledTimes' | 'toThrow' | 'toMatchSnapshot';
|
|
48
|
+
|
|
49
|
+
declare interface AuthConfig {
|
|
50
|
+
type: 'none' | 'bearer' | 'basic' | 'api-key' | 'oauth2';
|
|
51
|
+
tokenSource?: string;
|
|
52
|
+
headerName?: string;
|
|
53
|
+
prefix?: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
declare interface BodyDefinition {
|
|
57
|
+
contentType: 'application/json' | 'multipart/form-data' | 'application/x-www-form-urlencoded' | 'text/plain';
|
|
58
|
+
schema?: SchemaDefinition;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
declare interface CacheConfig {
|
|
62
|
+
enabled: boolean;
|
|
63
|
+
storage: 'memory' | 'localStorage' | 'sessionStorage';
|
|
64
|
+
defaultTTL: number;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
declare interface CodeTemplate {
|
|
68
|
+
id: string;
|
|
69
|
+
name: string;
|
|
70
|
+
description: string;
|
|
71
|
+
category: string;
|
|
72
|
+
icon?: string;
|
|
73
|
+
engine: TemplateEngine;
|
|
74
|
+
variables: TemplateVariable[];
|
|
75
|
+
files: TemplateFile[];
|
|
76
|
+
hooks?: {
|
|
77
|
+
beforeGenerate?: string;
|
|
78
|
+
afterGenerate?: string;
|
|
79
|
+
};
|
|
80
|
+
metadata?: {
|
|
81
|
+
author?: string;
|
|
82
|
+
version?: string;
|
|
83
|
+
tags?: string[];
|
|
84
|
+
framework?: string;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
declare interface ComponentDefinition {
|
|
89
|
+
id: string;
|
|
90
|
+
name: string;
|
|
91
|
+
category: string;
|
|
92
|
+
icon?: string;
|
|
93
|
+
defaultProps?: Record<string, unknown>;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
declare interface ComponentInstance {
|
|
97
|
+
id: string;
|
|
98
|
+
type: string;
|
|
99
|
+
props: Record<string, unknown>;
|
|
100
|
+
children?: ComponentInstance[];
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
declare interface ComponentSchema {
|
|
104
|
+
name: string;
|
|
105
|
+
displayName?: string;
|
|
106
|
+
description?: string;
|
|
107
|
+
props: PropDefinition[];
|
|
108
|
+
state?: StateDefinition[];
|
|
109
|
+
hooks?: string[];
|
|
110
|
+
children?: 'none' | 'single' | 'multiple';
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
declare interface ComputedField {
|
|
114
|
+
id: string;
|
|
115
|
+
name: string;
|
|
116
|
+
expression: string;
|
|
117
|
+
dependencies: string[];
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
declare interface ConfigField {
|
|
121
|
+
name: string;
|
|
122
|
+
label: string;
|
|
123
|
+
type: 'string' | 'number' | 'boolean' | 'select' | 'code' | 'json';
|
|
124
|
+
options?: {
|
|
125
|
+
value: string;
|
|
126
|
+
label: string;
|
|
127
|
+
}[];
|
|
128
|
+
required?: boolean;
|
|
129
|
+
default?: unknown;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
declare interface ConfigField_2 {
|
|
133
|
+
name: string;
|
|
134
|
+
label: string;
|
|
135
|
+
type: 'string' | 'number' | 'boolean' | 'select' | 'code' | 'json';
|
|
136
|
+
options?: {
|
|
137
|
+
value: string;
|
|
138
|
+
label: string;
|
|
139
|
+
}[];
|
|
140
|
+
required?: boolean;
|
|
141
|
+
default?: unknown;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
declare interface DataSource {
|
|
145
|
+
id: string;
|
|
146
|
+
name: string;
|
|
147
|
+
type: 'state' | 'prop' | 'context' | 'constant';
|
|
148
|
+
path: string;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
declare type DataType = 'string' | 'number' | 'boolean' | 'date' | 'array' | 'object' | 'any';
|
|
152
|
+
|
|
153
|
+
declare interface DesignState {
|
|
154
|
+
components: ComponentInstance[];
|
|
155
|
+
layout: LayoutConfig;
|
|
156
|
+
styles: Record<string, unknown>;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
declare interface DevToolsConfig {
|
|
160
|
+
enabled: boolean;
|
|
161
|
+
name?: string;
|
|
162
|
+
anonymousActionType?: string;
|
|
163
|
+
trace?: boolean;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
declare interface DraggableComponent {
|
|
167
|
+
id: string;
|
|
168
|
+
name: string;
|
|
169
|
+
icon?: string;
|
|
170
|
+
category: string;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
declare interface EndpointCacheConfig {
|
|
174
|
+
enabled: boolean;
|
|
175
|
+
ttl: number;
|
|
176
|
+
strategy: 'cache-first' | 'network-first' | 'stale-while-revalidate';
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
declare interface ErrorHandlingConfig {
|
|
180
|
+
globalErrorHandler?: boolean;
|
|
181
|
+
retryOnNetworkError?: boolean;
|
|
182
|
+
transformError?: boolean;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
declare interface EventCondition {
|
|
186
|
+
field: string;
|
|
187
|
+
operator: 'eq' | 'neq' | 'gt' | 'lt' | 'gte' | 'lte' | 'contains' | 'exists';
|
|
188
|
+
value: unknown;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
declare interface EventFilter {
|
|
192
|
+
field?: string;
|
|
193
|
+
value?: unknown;
|
|
194
|
+
expression?: string;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
declare interface EventFlow {
|
|
198
|
+
id: string;
|
|
199
|
+
name: string;
|
|
200
|
+
description?: string;
|
|
201
|
+
enabled: boolean;
|
|
202
|
+
source: EventSource_2;
|
|
203
|
+
handlers: EventHandler[];
|
|
204
|
+
errorHandler?: EventHandler;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
declare interface EventHandler {
|
|
208
|
+
id: string;
|
|
209
|
+
type: EventHandlerType;
|
|
210
|
+
config: Record<string, unknown>;
|
|
211
|
+
modifiers?: EventModifier[];
|
|
212
|
+
condition?: EventCondition;
|
|
213
|
+
next?: string;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
declare interface EventHandlerDefinition {
|
|
217
|
+
type: EventHandlerType;
|
|
218
|
+
label: string;
|
|
219
|
+
icon: string;
|
|
220
|
+
color: string;
|
|
221
|
+
configSchema: ConfigField[];
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
declare type EventHandlerType = 'action' | 'transform' | 'dispatch' | 'api-call' | 'state-update' | 'notification' | 'log' | 'delay' | 'branch';
|
|
225
|
+
|
|
226
|
+
declare interface EventModifier {
|
|
227
|
+
type: 'debounce' | 'throttle' | 'delay' | 'retry' | 'once';
|
|
228
|
+
value: number;
|
|
229
|
+
unit?: 'ms' | 's';
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
declare interface EventSource_2 {
|
|
233
|
+
id: string;
|
|
234
|
+
type: EventSourceType;
|
|
235
|
+
config: Record<string, unknown>;
|
|
236
|
+
filter?: EventFilter;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
declare interface EventSourceDefinition {
|
|
240
|
+
type: EventSourceType;
|
|
241
|
+
label: string;
|
|
242
|
+
icon: string;
|
|
243
|
+
color: string;
|
|
244
|
+
configSchema: ConfigField[];
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
declare type EventSourceType = 'ui-event' | 'api-response' | 'websocket' | 'timer' | 'custom' | 'state-change' | 'broadcast';
|
|
248
|
+
|
|
249
|
+
declare interface ExpectedResult {
|
|
250
|
+
type: 'value' | 'element' | 'state' | 'call' | 'error' | 'snapshot';
|
|
251
|
+
assertion: Assertion;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
declare type ExportFormat = 'zustand' | 'redux-toolkit' | 'jotai' | 'recoil' | 'mobx';
|
|
255
|
+
|
|
256
|
+
declare interface FieldDefinition {
|
|
257
|
+
id: string;
|
|
258
|
+
name: string;
|
|
259
|
+
path: string;
|
|
260
|
+
type: DataType;
|
|
261
|
+
nullable?: boolean;
|
|
262
|
+
children?: FieldDefinition[];
|
|
263
|
+
description?: string;
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
declare interface FieldMapping {
|
|
267
|
+
id: string;
|
|
268
|
+
sourceField: string;
|
|
269
|
+
targetField: string;
|
|
270
|
+
transform?: string;
|
|
271
|
+
condition?: string;
|
|
272
|
+
defaultValue?: unknown;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
declare type FieldType = 'string' | 'number' | 'boolean' | 'array' | 'object' | 'date' | 'enum' | 'custom';
|
|
276
|
+
|
|
277
|
+
declare interface FrameworkPreset {
|
|
278
|
+
id: string;
|
|
279
|
+
name: string;
|
|
280
|
+
icon: string;
|
|
281
|
+
description: string;
|
|
282
|
+
templates: CodeTemplate[];
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
declare interface GeneratedFile {
|
|
286
|
+
path: string;
|
|
287
|
+
content: string;
|
|
288
|
+
language?: string;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
declare interface GridSettings {
|
|
292
|
+
columns: number;
|
|
293
|
+
gap: number;
|
|
294
|
+
padding: number;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
declare type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD' | 'OPTIONS';
|
|
298
|
+
|
|
299
|
+
declare interface LayoutColumn {
|
|
300
|
+
id: string;
|
|
301
|
+
width: number;
|
|
302
|
+
components: PlacedComponent[];
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
declare interface LayoutConfig {
|
|
306
|
+
type: 'flex' | 'grid' | 'absolute';
|
|
307
|
+
direction?: 'row' | 'column';
|
|
308
|
+
gap?: number;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
declare interface LayoutRow {
|
|
312
|
+
id: string;
|
|
313
|
+
columns: LayoutColumn[];
|
|
314
|
+
height?: string;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
declare interface MappingDefinition {
|
|
318
|
+
id: string;
|
|
319
|
+
name: string;
|
|
320
|
+
description?: string;
|
|
321
|
+
sourceSchema: SchemaDefinition_2;
|
|
322
|
+
targetSchema: SchemaDefinition_2;
|
|
323
|
+
fieldMappings: FieldMapping[];
|
|
324
|
+
transformations: Transformation[];
|
|
325
|
+
validationRules: ValidationRule_2[];
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
declare interface MiddlewareConfig {
|
|
329
|
+
type: 'logger' | 'persist' | 'devtools' | 'immer' | 'custom';
|
|
330
|
+
enabled: boolean;
|
|
331
|
+
options?: Record<string, unknown>;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
declare interface MockConfig {
|
|
335
|
+
name: string;
|
|
336
|
+
type: MockType;
|
|
337
|
+
implementation?: string;
|
|
338
|
+
returnValue?: unknown;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
declare interface MockDefinition {
|
|
342
|
+
name: string;
|
|
343
|
+
type: MockType;
|
|
344
|
+
description?: string;
|
|
345
|
+
configSchema?: ConfigField_2[];
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
declare interface MockResponse {
|
|
349
|
+
enabled: boolean;
|
|
350
|
+
delay?: number;
|
|
351
|
+
status?: number;
|
|
352
|
+
body?: unknown;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
declare type MockType = 'function' | 'module' | 'api' | 'timer' | 'storage';
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* Per-component visibility & interaction level used by the access control system.
|
|
359
|
+
* - `'full'` — fully interactive (default)
|
|
360
|
+
* - `'readOnly'` — renders but cannot be edited
|
|
361
|
+
* - `'disabled'` — renders greyed-out
|
|
362
|
+
* - `'hidden'` — not rendered at all
|
|
363
|
+
*/
|
|
364
|
+
declare type NiceAccessMode = 'full' | 'readOnly' | 'disabled' | 'hidden';
|
|
365
|
+
|
|
366
|
+
export declare const NiceAPIFlow: default_2.FC<NiceAPIFlowProps>;
|
|
367
|
+
|
|
368
|
+
export declare interface NiceAPIFlowProps extends NiceBaseProps {
|
|
369
|
+
/** API flow definition */
|
|
370
|
+
flow?: APIFlowDefinition;
|
|
371
|
+
/** Available data sources */
|
|
372
|
+
dataSources?: DataSource[];
|
|
373
|
+
onFlowChange?: (flow: APIFlowDefinition) => void;
|
|
374
|
+
onExport?: (code: string) => void;
|
|
375
|
+
onTest?: (endpointId: string) => void;
|
|
376
|
+
onSave?: (flow: APIFlowDefinition) => void;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
/** Base props inherited by every NiceToDev component. */
|
|
380
|
+
declare interface NiceBaseProps {
|
|
381
|
+
/** Additional CSS class name(s). */
|
|
382
|
+
className?: string;
|
|
383
|
+
/** Inline style object. */
|
|
384
|
+
style?: React.CSSProperties;
|
|
385
|
+
/** HTML `id` attribute. When omitted a stable auto-generated id is used. */
|
|
386
|
+
id?: string;
|
|
387
|
+
/** Tooltip text shown on hover. */
|
|
388
|
+
title?: string;
|
|
389
|
+
/** Test identifier for integration / e2e test selectors. */
|
|
390
|
+
'data-testid'?: string;
|
|
391
|
+
/** Controls component visibility and interaction — see {@link NiceAccessMode}. */
|
|
392
|
+
accessMode?: NiceAccessMode;
|
|
393
|
+
/**
|
|
394
|
+
* Visual presentation style override.
|
|
395
|
+
* When set, overrides the global `displayStyle` from `NiceThemeProvider`.
|
|
396
|
+
* @see NiceDisplayStyle
|
|
397
|
+
*/
|
|
398
|
+
displayStyle?: NiceDisplayStyle;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* NiceCodePreview - Live code preview with syntax highlighting and diff
|
|
403
|
+
*
|
|
404
|
+
* Features:
|
|
405
|
+
* - Syntax highlighting for multiple languages
|
|
406
|
+
* - Line numbers
|
|
407
|
+
* - Live preview for React/HTML
|
|
408
|
+
* - Side-by-side diff view
|
|
409
|
+
* - Copy to clipboard
|
|
410
|
+
*/
|
|
411
|
+
export declare const NiceCodePreview: default_2.FC<NiceCodePreviewProps>;
|
|
412
|
+
|
|
413
|
+
export declare interface NiceCodePreviewProps {
|
|
414
|
+
/** Code to display */
|
|
415
|
+
code: string;
|
|
416
|
+
/** Programming language */
|
|
417
|
+
language?: string;
|
|
418
|
+
/** Show line numbers */
|
|
419
|
+
lineNumbers?: boolean;
|
|
420
|
+
/** Enable live preview (for React/HTML) */
|
|
421
|
+
livePreview?: boolean;
|
|
422
|
+
/** Show diff view */
|
|
423
|
+
showDiff?: boolean;
|
|
424
|
+
/** Previous code for diff comparison */
|
|
425
|
+
previousCode?: string;
|
|
426
|
+
/** Theme */
|
|
427
|
+
theme?: 'light' | 'dark';
|
|
428
|
+
/** Copy to clipboard enabled */
|
|
429
|
+
copyable?: boolean;
|
|
430
|
+
/** Called when code is copied */
|
|
431
|
+
onCopy?: () => void;
|
|
432
|
+
/** Additional class name */
|
|
433
|
+
className?: string;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
export declare const NiceCodeTemplate: default_2.FC<NiceCodeTemplateProps>;
|
|
437
|
+
|
|
438
|
+
export declare interface NiceCodeTemplateProps extends NiceBaseProps {
|
|
439
|
+
/** Available templates */
|
|
440
|
+
templates: CodeTemplate[];
|
|
441
|
+
/** Framework presets */
|
|
442
|
+
presets?: FrameworkPreset[];
|
|
443
|
+
/** Currently selected template */
|
|
444
|
+
selectedTemplate?: string;
|
|
445
|
+
/** Template engine */
|
|
446
|
+
defaultEngine?: TemplateEngine;
|
|
447
|
+
/** Show template library */
|
|
448
|
+
showLibrary?: boolean;
|
|
449
|
+
onTemplateSelect?: (template: CodeTemplate) => void;
|
|
450
|
+
onTemplateCreate?: (template: CodeTemplate) => void;
|
|
451
|
+
onTemplateUpdate?: (template: CodeTemplate) => void;
|
|
452
|
+
onTemplateDelete?: (templateId: string) => void;
|
|
453
|
+
onGenerate?: (files: GeneratedFile[], variables: Record<string, unknown>) => void;
|
|
454
|
+
onExport?: (template: CodeTemplate, format: 'json' | 'zip') => void;
|
|
455
|
+
onImport?: (template: CodeTemplate) => void;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* NiceComponentDesigner - Visual React component designer
|
|
460
|
+
*
|
|
461
|
+
* Features:
|
|
462
|
+
* - Define props with types and defaults
|
|
463
|
+
* - Configure component state
|
|
464
|
+
* - Add React hooks
|
|
465
|
+
* - Set children behavior
|
|
466
|
+
*/
|
|
467
|
+
export declare const NiceComponentDesigner: default_2.FC<NiceComponentDesignerProps>;
|
|
468
|
+
|
|
469
|
+
export declare interface NiceComponentDesignerProps {
|
|
470
|
+
/** Component being edited */
|
|
471
|
+
component?: ComponentSchema;
|
|
472
|
+
/** Available props types */
|
|
473
|
+
propTypes?: PropTypeDefinition[];
|
|
474
|
+
/** Called when component changes */
|
|
475
|
+
onChange?: (component: ComponentSchema) => void;
|
|
476
|
+
/** Theme */
|
|
477
|
+
theme?: 'light' | 'dark';
|
|
478
|
+
/** Additional class name */
|
|
479
|
+
className?: string;
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
export declare const NiceDataMapper: default_2.FC<NiceDataMapperProps>;
|
|
483
|
+
|
|
484
|
+
export declare interface NiceDataMapperProps extends NiceBaseProps {
|
|
485
|
+
/** Mapping definition */
|
|
486
|
+
mapping?: MappingDefinition;
|
|
487
|
+
/** Available source schemas */
|
|
488
|
+
sourceSchemas?: SchemaInfo[];
|
|
489
|
+
/** Available target schemas */
|
|
490
|
+
targetSchemas?: SchemaInfo[];
|
|
491
|
+
onMappingChange?: (mapping: MappingDefinition) => void;
|
|
492
|
+
onExport?: (code: string) => void;
|
|
493
|
+
onTest?: (input: unknown) => void;
|
|
494
|
+
onSave?: (mapping: MappingDefinition) => void;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
/**
|
|
498
|
+
* Cross-component visual presentation style.
|
|
499
|
+
* Each style maps 1:1 to a ThemeVariantConfig preset controlling
|
|
500
|
+
* buttons, inputs, cards, badges, tabs, toggles, tooltips, tables, etc.
|
|
501
|
+
*/
|
|
502
|
+
declare type NiceDisplayStyle = 'default' | 'minimal' | 'rounded' | 'sharp' | 'glass' | 'neumorphic' | 'playful' | 'enterprise' | 'modern3d' | 'brutalist' | 'luxe' | 'pill' | 'flat' | 'editorial' | 'dashboard' | 'softCloud' | 'cosmic' | 'corporate' | 'bank' | 'government' | 'military' | 'legal' | 'medical' | 'swiss' | 'scandinavian' | 'bauhaus' | 'notebook' | 'origami' | 'watercolor' | 'monochrome' | 'paper' | 'zen' | 'terminal' | 'hacker' | 'retro8bit' | 'synthwave' | 'cyberpunk' | 'steampunk' | 'vapor' | 'neon' | 'windows95' | 'material' | 'fluent' | 'cupertino' | 'ant' | 'bootstrap' | 'chakra' | 'notion' | 'linear' | 'vercel' | 'candy' | 'bubblegum' | 'cartoon' | 'kawaii' | 'circus' | 'gaming' | 'kiddo' | 'disco' | 'clown';
|
|
503
|
+
|
|
504
|
+
export declare const NiceEventOrchestrator: default_2.FC<NiceEventOrchestratorProps>;
|
|
505
|
+
|
|
506
|
+
export declare interface NiceEventOrchestratorProps extends NiceBaseProps {
|
|
507
|
+
/** Initial event flows */
|
|
508
|
+
flows?: EventFlow[];
|
|
509
|
+
/** Available event sources */
|
|
510
|
+
eventSources?: EventSourceDefinition[];
|
|
511
|
+
/** Available event handlers */
|
|
512
|
+
eventHandlers?: EventHandlerDefinition[];
|
|
513
|
+
onFlowsChange?: (flows: EventFlow[]) => void;
|
|
514
|
+
onExport?: (code: string) => void;
|
|
515
|
+
onTest?: (flowId: string) => void;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
* NiceLowCodeStudio - Visual no-code development environment
|
|
520
|
+
*
|
|
521
|
+
* Central hub integrating all no-code tools:
|
|
522
|
+
* - Component Designer
|
|
523
|
+
* - Page Builder
|
|
524
|
+
* - State Designer
|
|
525
|
+
* - API Flow
|
|
526
|
+
* - Event Orchestrator
|
|
527
|
+
*/
|
|
528
|
+
export declare const NiceLowCodeStudio: default_2.FC<NiceLowCodeStudioProps>;
|
|
529
|
+
|
|
530
|
+
export declare interface NiceLowCodeStudioProps {
|
|
531
|
+
/** Current project identifier */
|
|
532
|
+
projectId?: string;
|
|
533
|
+
/** Available components palette */
|
|
534
|
+
components?: ComponentDefinition[];
|
|
535
|
+
/** Theme configuration */
|
|
536
|
+
theme?: 'light' | 'dark';
|
|
537
|
+
/** Called when design changes */
|
|
538
|
+
onChange?: (design: DesignState) => void;
|
|
539
|
+
/** Called when save is requested */
|
|
540
|
+
onSave?: (design: DesignState) => void;
|
|
541
|
+
/** Additional class name */
|
|
542
|
+
className?: string;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
* NicePageBuilder - Drag-drop page builder with responsive layouts
|
|
547
|
+
*
|
|
548
|
+
* Features:
|
|
549
|
+
* - Drag-drop component placement
|
|
550
|
+
* - Responsive 12-column grid
|
|
551
|
+
* - Desktop/tablet/mobile preview
|
|
552
|
+
* - Component property editing
|
|
553
|
+
*/
|
|
554
|
+
export declare const NicePageBuilder: default_2.FC<NicePageBuilderProps>;
|
|
555
|
+
|
|
556
|
+
export declare interface NicePageBuilderProps {
|
|
557
|
+
/** Initial page layout */
|
|
558
|
+
initialLayout?: PageLayout;
|
|
559
|
+
/** Available components for drag-drop */
|
|
560
|
+
components?: DraggableComponent[];
|
|
561
|
+
/** Grid settings */
|
|
562
|
+
grid?: GridSettings;
|
|
563
|
+
/** Called when layout changes */
|
|
564
|
+
onChange?: (layout: PageLayout) => void;
|
|
565
|
+
/** Called on save */
|
|
566
|
+
onSave?: (layout: PageLayout) => void;
|
|
567
|
+
/** Theme */
|
|
568
|
+
theme?: 'light' | 'dark';
|
|
569
|
+
/** Responsive preview mode */
|
|
570
|
+
previewMode?: 'desktop' | 'tablet' | 'mobile';
|
|
571
|
+
/** Additional class name */
|
|
572
|
+
className?: string;
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
export declare const NiceStateDesigner: default_2.FC<NiceStateDesignerProps>;
|
|
576
|
+
|
|
577
|
+
export declare interface NiceStateDesignerProps extends NiceBaseProps {
|
|
578
|
+
/** Initial store definition */
|
|
579
|
+
store?: StoreDefinition;
|
|
580
|
+
/** Available state templates */
|
|
581
|
+
templates?: StoreTemplate[];
|
|
582
|
+
onStoreChange?: (store: StoreDefinition) => void;
|
|
583
|
+
onExport?: (code: string, format: ExportFormat) => void;
|
|
584
|
+
onSave?: (store: StoreDefinition) => void;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
export declare const NiceTestBuilder: default_2.FC<NiceTestBuilderProps>;
|
|
588
|
+
|
|
589
|
+
export declare interface NiceTestBuilderProps extends NiceBaseProps {
|
|
590
|
+
/** Target component name */
|
|
591
|
+
componentName?: string;
|
|
592
|
+
/** Test suites */
|
|
593
|
+
testSuites?: TestSuite[];
|
|
594
|
+
/** Available mock definitions */
|
|
595
|
+
availableMocks?: MockDefinition[];
|
|
596
|
+
onSuitesChange?: (suites: TestSuite[]) => void;
|
|
597
|
+
onExport?: (code: string) => void;
|
|
598
|
+
onRun?: (suiteId: string) => void;
|
|
599
|
+
onRunAll?: () => void;
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
declare interface PageLayout {
|
|
603
|
+
id: string;
|
|
604
|
+
name: string;
|
|
605
|
+
rows: LayoutRow[];
|
|
606
|
+
styles?: Record<string, string>;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
declare interface ParamDefinition {
|
|
610
|
+
id: string;
|
|
611
|
+
name: string;
|
|
612
|
+
type: 'string' | 'number' | 'boolean' | 'array' | 'object';
|
|
613
|
+
required?: boolean;
|
|
614
|
+
defaultValue?: unknown;
|
|
615
|
+
description?: string;
|
|
616
|
+
validation?: ValidationRule[];
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
declare interface PersistConfig {
|
|
620
|
+
enabled: boolean;
|
|
621
|
+
key: string;
|
|
622
|
+
storage: 'localStorage' | 'sessionStorage' | 'indexedDB' | 'custom';
|
|
623
|
+
whitelist?: string[];
|
|
624
|
+
blacklist?: string[];
|
|
625
|
+
version?: number;
|
|
626
|
+
migrate?: boolean;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
declare interface PlacedComponent {
|
|
630
|
+
id: string;
|
|
631
|
+
type: string;
|
|
632
|
+
props: Record<string, unknown>;
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
declare interface PropDefinition {
|
|
636
|
+
name: string;
|
|
637
|
+
type: string;
|
|
638
|
+
required?: boolean;
|
|
639
|
+
defaultValue?: unknown;
|
|
640
|
+
description?: string;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
declare interface PropTypeDefinition {
|
|
644
|
+
name: string;
|
|
645
|
+
type: 'string' | 'number' | 'boolean' | 'object' | 'array' | 'function';
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
declare interface ProviderConfig {
|
|
649
|
+
name: string;
|
|
650
|
+
props?: Record<string, unknown>;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
declare interface ReducerStep {
|
|
654
|
+
id: string;
|
|
655
|
+
type: 'set' | 'update' | 'push' | 'remove' | 'reset' | 'custom';
|
|
656
|
+
field: string;
|
|
657
|
+
value?: string;
|
|
658
|
+
condition?: string;
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
declare interface ResponseDefinition {
|
|
662
|
+
status: number;
|
|
663
|
+
description?: string;
|
|
664
|
+
schema?: SchemaDefinition;
|
|
665
|
+
headers?: Record<string, string>;
|
|
666
|
+
}
|
|
667
|
+
|
|
668
|
+
declare interface RetryConfig {
|
|
669
|
+
enabled: boolean;
|
|
670
|
+
maxAttempts: number;
|
|
671
|
+
backoff: 'linear' | 'exponential';
|
|
672
|
+
retryOn?: number[];
|
|
673
|
+
}
|
|
674
|
+
|
|
675
|
+
declare interface SchemaDefinition {
|
|
676
|
+
type: 'object' | 'array' | 'string' | 'number' | 'boolean';
|
|
677
|
+
properties?: Record<string, SchemaDefinition>;
|
|
678
|
+
items?: SchemaDefinition;
|
|
679
|
+
required?: string[];
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
declare interface SchemaDefinition_2 {
|
|
683
|
+
name: string;
|
|
684
|
+
type: 'object' | 'array';
|
|
685
|
+
fields: FieldDefinition[];
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
declare interface SchemaInfo {
|
|
689
|
+
id: string;
|
|
690
|
+
name: string;
|
|
691
|
+
schema: SchemaDefinition_2;
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
declare interface StateAction {
|
|
695
|
+
id: string;
|
|
696
|
+
name: string;
|
|
697
|
+
description?: string;
|
|
698
|
+
params: ActionParam[];
|
|
699
|
+
reducerSteps: ReducerStep[];
|
|
700
|
+
async?: boolean;
|
|
701
|
+
errorHandling?: 'throw' | 'catch' | 'ignore';
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
declare interface StateDefinition {
|
|
705
|
+
name: string;
|
|
706
|
+
type: string;
|
|
707
|
+
initialValue?: unknown;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
declare interface StateField {
|
|
711
|
+
id: string;
|
|
712
|
+
name: string;
|
|
713
|
+
type: FieldType;
|
|
714
|
+
defaultValue?: unknown;
|
|
715
|
+
nullable?: boolean;
|
|
716
|
+
description?: string;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
declare interface StateSelector {
|
|
720
|
+
id: string;
|
|
721
|
+
name: string;
|
|
722
|
+
description?: string;
|
|
723
|
+
dependencies: string[];
|
|
724
|
+
expression: string;
|
|
725
|
+
memoized?: boolean;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
declare interface StateSlice {
|
|
729
|
+
id: string;
|
|
730
|
+
name: string;
|
|
731
|
+
description?: string;
|
|
732
|
+
state: StateField[];
|
|
733
|
+
actions: StateAction[];
|
|
734
|
+
selectors: StateSelector[];
|
|
735
|
+
computed?: ComputedField[];
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
declare interface StoreDefinition {
|
|
739
|
+
id: string;
|
|
740
|
+
name: string;
|
|
741
|
+
description?: string;
|
|
742
|
+
slices: StateSlice[];
|
|
743
|
+
middleware?: MiddlewareConfig[];
|
|
744
|
+
persist?: PersistConfig;
|
|
745
|
+
devtools?: DevToolsConfig;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
declare interface StoreTemplate {
|
|
749
|
+
id: string;
|
|
750
|
+
name: string;
|
|
751
|
+
description: string;
|
|
752
|
+
icon: string;
|
|
753
|
+
store: Partial<StoreDefinition>;
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
declare type TemplateEngine = 'handlebars' | 'ejs' | 'mustache' | 'simple';
|
|
757
|
+
|
|
758
|
+
declare interface TemplateFile {
|
|
759
|
+
id: string;
|
|
760
|
+
name: string;
|
|
761
|
+
path: string;
|
|
762
|
+
content: string;
|
|
763
|
+
language?: string;
|
|
764
|
+
condition?: string;
|
|
765
|
+
}
|
|
766
|
+
|
|
767
|
+
declare interface TemplateVariable {
|
|
768
|
+
id: string;
|
|
769
|
+
name: string;
|
|
770
|
+
type: 'string' | 'number' | 'boolean' | 'array' | 'object' | 'select';
|
|
771
|
+
defaultValue?: unknown;
|
|
772
|
+
description?: string;
|
|
773
|
+
required?: boolean;
|
|
774
|
+
options?: string[];
|
|
775
|
+
validation?: {
|
|
776
|
+
pattern?: string;
|
|
777
|
+
minLength?: number;
|
|
778
|
+
maxLength?: number;
|
|
779
|
+
min?: number;
|
|
780
|
+
max?: number;
|
|
781
|
+
};
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
declare type TestAction = 'render' | 'click' | 'type' | 'select' | 'hover' | 'focus' | 'blur' | 'submit' | 'keypress' | 'wait' | 'scroll' | 'drag' | 'assert' | 'snapshot' | 'a11y-check';
|
|
785
|
+
|
|
786
|
+
declare interface TestCase {
|
|
787
|
+
id: string;
|
|
788
|
+
name: string;
|
|
789
|
+
description?: string;
|
|
790
|
+
type: TestType;
|
|
791
|
+
steps: TestStep[];
|
|
792
|
+
expectedResult?: ExpectedResult;
|
|
793
|
+
timeout?: number;
|
|
794
|
+
skip?: boolean;
|
|
795
|
+
only?: boolean;
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
declare interface TestSetup {
|
|
799
|
+
mocks: MockConfig[];
|
|
800
|
+
providers?: ProviderConfig[];
|
|
801
|
+
props?: Record<string, unknown>;
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
declare interface TestStep {
|
|
805
|
+
id: string;
|
|
806
|
+
action: TestAction;
|
|
807
|
+
target?: string;
|
|
808
|
+
value?: unknown;
|
|
809
|
+
waitFor?: WaitCondition;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
declare interface TestSuite {
|
|
813
|
+
id: string;
|
|
814
|
+
name: string;
|
|
815
|
+
description?: string;
|
|
816
|
+
componentName: string;
|
|
817
|
+
setup?: TestSetup;
|
|
818
|
+
tests: TestCase[];
|
|
819
|
+
teardown?: TestTeardown;
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
declare interface TestTeardown {
|
|
823
|
+
cleanup?: string[];
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
declare type TestType = 'unit' | 'integration' | 'e2e' | 'snapshot' | 'accessibility';
|
|
827
|
+
|
|
828
|
+
declare interface Transformation {
|
|
829
|
+
id: string;
|
|
830
|
+
name: string;
|
|
831
|
+
type: TransformType;
|
|
832
|
+
config: TransformConfig;
|
|
833
|
+
}
|
|
834
|
+
|
|
835
|
+
declare interface TransformConfig {
|
|
836
|
+
expression?: string;
|
|
837
|
+
format?: string;
|
|
838
|
+
convertTo?: DataType;
|
|
839
|
+
separator?: string;
|
|
840
|
+
lookupTable?: Record<string, unknown>;
|
|
841
|
+
condition?: string;
|
|
842
|
+
thenValue?: unknown;
|
|
843
|
+
elseValue?: unknown;
|
|
844
|
+
}
|
|
845
|
+
|
|
846
|
+
declare type TransformType = 'direct' | 'format' | 'convert' | 'concat' | 'split' | 'calculate' | 'lookup' | 'conditional' | 'custom';
|
|
847
|
+
|
|
848
|
+
declare interface ValidationRule {
|
|
849
|
+
type: 'required' | 'min' | 'max' | 'pattern' | 'enum';
|
|
850
|
+
value?: unknown;
|
|
851
|
+
message?: string;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
declare interface ValidationRule_2 {
|
|
855
|
+
id: string;
|
|
856
|
+
field: string;
|
|
857
|
+
type: ValidationType;
|
|
858
|
+
value?: unknown;
|
|
859
|
+
message?: string;
|
|
860
|
+
}
|
|
861
|
+
|
|
862
|
+
declare type ValidationType = 'required' | 'type' | 'min' | 'max' | 'pattern' | 'enum' | 'custom';
|
|
863
|
+
|
|
864
|
+
declare interface WaitCondition {
|
|
865
|
+
type: 'timeout' | 'element' | 'text' | 'api' | 'state';
|
|
866
|
+
value: unknown;
|
|
867
|
+
timeout?: number;
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
export { }
|