@nice2dev/ui 1.0.6 → 1.0.10

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