@nice2dev/ui 1.0.5 → 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/README.md +253 -207
- 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-B5RXLDwI.cjs +1 -0
- package/dist/NiceButton-CDiS45Ya.cjs +1 -0
- package/dist/NiceButton-D9l39Rs7.js +595 -0
- package/dist/NiceButton-DmTHNHet.js +450 -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-D1hh5GGe.js +732 -0
- package/dist/NiceErrorBoundary-Dta4TGee.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-BapdidD6.js +4776 -0
- package/dist/NiceModuleLifecyclePanel-Brg1RLwi.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-CsFsm534.cjs +1 -0
- package/dist/NiceModuleLifecyclePanel-I_TXRiiY.js +5053 -0
- package/dist/NicePinCodeInput-4q8yULuo.js +13359 -0
- package/dist/NicePinCodeInput-CrMfdxxc.js +15287 -0
- package/dist/NicePinCodeInput-D0aF9MK8.cjs +692 -0
- package/dist/NicePinCodeInput-eD2q8nGa.cjs +692 -0
- package/dist/NicePinCodeInput.css +1 -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/NiceSavedQueryPanel-DUw8plYP.js +5666 -0
- package/dist/NiceSavedQueryPanel-xpk09zy1.cjs +596 -0
- package/dist/NiceSavedQueryPanel.css +1 -0
- package/dist/NiceStateDesigner.doc-B36u0hNU.js +29 -0
- package/dist/NiceStateDesigner.doc-MPmvNHSx.cjs +5 -0
- package/dist/NiceStockChart-CHlOnWzN.cjs +287 -0
- package/dist/NiceStockChart-Cpmv9_Cc.js +2341 -0
- package/dist/NiceStockChart.css +1 -0
- package/dist/NiceTestBuilder.doc-BFInj8GJ.js +30 -0
- package/dist/NiceTestBuilder.doc-CB03U_uR.cjs +6 -0
- package/dist/NiceToggle-C1UKGXmJ.js +209 -0
- package/dist/NiceToggle-CaY1u82g.js +277 -0
- package/dist/NiceToggle-DFJFQv_Z.cjs +1 -0
- package/dist/NiceToggle-lVi-ETi0.cjs +1 -0
- package/dist/NiceWindow-D1awkyFl.js +1636 -0
- package/dist/NiceWindow-IdHAcP70.cjs +1 -0
- package/dist/NiceWindow-SiCaREbq.js +1408 -0
- package/dist/NiceWindow-yARTUJsg.cjs +1 -0
- package/dist/charts-Bx_kNBsE.js +4280 -0
- package/dist/charts-DECVsCHX.cjs +754 -0
- package/dist/charts.cjs +1 -0
- package/dist/charts.css +1 -0
- package/dist/charts.d.ts +1043 -0
- package/dist/charts.mjs +23 -0
- package/dist/core-BZBTsGWN.cjs +96 -0
- package/dist/core-BpghV7Ls.js +17555 -0
- package/dist/core-CfXsl755.js +16305 -0
- package/dist/core-DGJSUW64.cjs +96 -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 -0
- package/dist/data.d.ts +2003 -0
- package/dist/data.mjs +21 -0
- 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 -0
- package/dist/editors.d.ts +2728 -0
- package/dist/editors.mjs +66 -0
- package/dist/feedback.cjs +1 -0
- package/dist/feedback.d.ts +339 -0
- package/dist/feedback.mjs +16 -0
- package/dist/index-C853adw1.cjs +6199 -0
- package/dist/index-CBIZ6mTQ.cjs +5734 -0
- package/dist/index-CIl98Vbm.js +72951 -0
- package/dist/index-CNwVELPJ.js +62857 -0
- package/dist/index-CUx_-gKK.cjs +1 -0
- package/dist/index-x8mRM4Jc.js +17 -0
- package/dist/index.cjs +1 -7866
- package/dist/index.css +1 -0
- package/dist/index.d.ts +4888 -180
- package/dist/index.mjs +1021 -105889
- package/dist/lazy.cjs +1 -0
- package/dist/lazy.d.ts +1880 -0
- package/dist/lazy.mjs +98 -0
- package/dist/navigation.cjs +1 -0
- package/dist/navigation.d.ts +1862 -0
- package/dist/navigation.mjs +576 -0
- 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 -0
- package/dist/overlays.d.ts +706 -0
- package/dist/overlays.mjs +482 -0
- package/package.json +51 -1
package/dist/devops.d.ts
ADDED
|
@@ -0,0 +1,758 @@
|
|
|
1
|
+
import { default as default_2 } from 'react';
|
|
2
|
+
|
|
3
|
+
declare interface BlameAuthor {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
email: string;
|
|
7
|
+
avatar?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
declare interface BlameCommit {
|
|
11
|
+
id: string;
|
|
12
|
+
shortId: string;
|
|
13
|
+
message: string;
|
|
14
|
+
author: BlameAuthor;
|
|
15
|
+
timestamp: Date;
|
|
16
|
+
parents?: string[];
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare interface BlameFile {
|
|
20
|
+
path: string;
|
|
21
|
+
revision: string;
|
|
22
|
+
hunks: BlameHunk[];
|
|
23
|
+
language?: string;
|
|
24
|
+
totalLines: number;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
declare interface BlameHunk {
|
|
28
|
+
startLine: number;
|
|
29
|
+
endLine: number;
|
|
30
|
+
commit: BlameCommit;
|
|
31
|
+
lines: BlameLine[];
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
declare interface BlameLine {
|
|
35
|
+
lineNumber: number;
|
|
36
|
+
content: string;
|
|
37
|
+
commit: BlameCommit;
|
|
38
|
+
originalLineNumber?: number;
|
|
39
|
+
originalFilename?: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
declare type BlameViewMode = 'inline' | 'gutter' | 'tooltip';
|
|
43
|
+
|
|
44
|
+
declare interface BranchProtectionRule {
|
|
45
|
+
pattern: string;
|
|
46
|
+
requirePullRequest?: boolean;
|
|
47
|
+
requiredReviewers?: number;
|
|
48
|
+
requireStatusChecks?: string[];
|
|
49
|
+
requireSignedCommits?: boolean;
|
|
50
|
+
allowForcePush?: boolean;
|
|
51
|
+
allowDeletion?: boolean;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
declare interface ConflictFile {
|
|
55
|
+
path: string;
|
|
56
|
+
language?: string;
|
|
57
|
+
baseRef: string;
|
|
58
|
+
oursRef: string;
|
|
59
|
+
theirsRef: string;
|
|
60
|
+
content: string;
|
|
61
|
+
conflicts: ConflictRegion[];
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
declare interface ConflictRegion {
|
|
65
|
+
id: string;
|
|
66
|
+
startLine: number;
|
|
67
|
+
endLine: number;
|
|
68
|
+
baseContent: string[];
|
|
69
|
+
oursContent: string[];
|
|
70
|
+
theirsContent: string[];
|
|
71
|
+
resolved: boolean;
|
|
72
|
+
resolution?: 'ours' | 'theirs' | 'both' | 'custom';
|
|
73
|
+
customContent?: string[];
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
declare type ConflictViewMode = 'inline' | 'split' | 'three-way';
|
|
77
|
+
|
|
78
|
+
declare interface DiffChunk {
|
|
79
|
+
oldStart: number;
|
|
80
|
+
oldLines: number;
|
|
81
|
+
newStart: number;
|
|
82
|
+
newLines: number;
|
|
83
|
+
lines: DiffLine[];
|
|
84
|
+
header?: string;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
declare interface DiffComment {
|
|
88
|
+
id: string;
|
|
89
|
+
filePath: string;
|
|
90
|
+
line: number;
|
|
91
|
+
side: 'old' | 'new';
|
|
92
|
+
author: {
|
|
93
|
+
name: string;
|
|
94
|
+
avatar?: string;
|
|
95
|
+
};
|
|
96
|
+
body: string;
|
|
97
|
+
createdAt: Date;
|
|
98
|
+
resolved?: boolean;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
declare interface DiffFile {
|
|
102
|
+
path: string;
|
|
103
|
+
oldPath?: string;
|
|
104
|
+
status: 'added' | 'modified' | 'deleted' | 'renamed' | 'copied';
|
|
105
|
+
binary?: boolean;
|
|
106
|
+
additions: number;
|
|
107
|
+
deletions: number;
|
|
108
|
+
chunks: DiffChunk[];
|
|
109
|
+
language?: string;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
declare interface DiffLine {
|
|
113
|
+
lineNumberOld?: number;
|
|
114
|
+
lineNumberNew?: number;
|
|
115
|
+
content: string;
|
|
116
|
+
type: 'context' | 'addition' | 'deletion' | 'header';
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
declare type DiffViewMode = 'split' | 'unified';
|
|
120
|
+
|
|
121
|
+
declare interface GitBranch {
|
|
122
|
+
name: string;
|
|
123
|
+
isRemote: boolean;
|
|
124
|
+
isHead: boolean;
|
|
125
|
+
upstream?: string;
|
|
126
|
+
ahead?: number;
|
|
127
|
+
behind?: number;
|
|
128
|
+
lastCommit?: string;
|
|
129
|
+
protected?: boolean;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
declare interface GitBranch_2 {
|
|
133
|
+
name: string;
|
|
134
|
+
isRemote: boolean;
|
|
135
|
+
isHead: boolean;
|
|
136
|
+
upstream?: string;
|
|
137
|
+
ahead?: number;
|
|
138
|
+
behind?: number;
|
|
139
|
+
lastCommit?: {
|
|
140
|
+
hash: string;
|
|
141
|
+
message: string;
|
|
142
|
+
author: string;
|
|
143
|
+
date: Date;
|
|
144
|
+
};
|
|
145
|
+
protected?: boolean;
|
|
146
|
+
description?: string;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
declare interface GitCommit {
|
|
150
|
+
hash: string;
|
|
151
|
+
shortHash: string;
|
|
152
|
+
message: string;
|
|
153
|
+
body?: string;
|
|
154
|
+
author: {
|
|
155
|
+
name: string;
|
|
156
|
+
email: string;
|
|
157
|
+
avatar?: string;
|
|
158
|
+
};
|
|
159
|
+
date: Date;
|
|
160
|
+
parents: string[];
|
|
161
|
+
/** Branch heads pointing at this commit */
|
|
162
|
+
branches?: string[];
|
|
163
|
+
/** Tags pointing at this commit */
|
|
164
|
+
tags?: string[];
|
|
165
|
+
/** Is this a merge commit */
|
|
166
|
+
isMerge?: boolean;
|
|
167
|
+
/** Files changed (summary) */
|
|
168
|
+
stats?: {
|
|
169
|
+
additions: number;
|
|
170
|
+
deletions: number;
|
|
171
|
+
filesChanged: number;
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
declare interface GitHook {
|
|
176
|
+
type: GitHookType;
|
|
177
|
+
enabled: boolean;
|
|
178
|
+
actions: HookAction[];
|
|
179
|
+
parallel?: boolean;
|
|
180
|
+
timeout?: number;
|
|
181
|
+
verbose?: boolean;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
declare type GitHookType = 'pre-commit' | 'prepare-commit-msg' | 'commit-msg' | 'post-commit' | 'pre-push' | 'pre-rebase' | 'post-merge' | 'post-checkout' | 'pre-auto-gc';
|
|
185
|
+
|
|
186
|
+
declare interface GitTag {
|
|
187
|
+
name: string;
|
|
188
|
+
commit: string;
|
|
189
|
+
message?: string;
|
|
190
|
+
tagger?: string;
|
|
191
|
+
date?: Date;
|
|
192
|
+
isAnnotated?: boolean;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
declare interface HookAction {
|
|
196
|
+
id: string;
|
|
197
|
+
type: 'lint' | 'test' | 'format' | 'typecheck' | 'build' | 'custom';
|
|
198
|
+
name: string;
|
|
199
|
+
command: string;
|
|
200
|
+
description?: string;
|
|
201
|
+
icon?: string;
|
|
202
|
+
runOn?: 'staged' | 'all' | 'changed';
|
|
203
|
+
filePatterns?: string[];
|
|
204
|
+
condition?: HookCondition;
|
|
205
|
+
order: number;
|
|
206
|
+
enabled: boolean;
|
|
207
|
+
failOnError: boolean;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
declare interface HookCondition {
|
|
211
|
+
type: 'branch' | 'files' | 'env' | 'custom';
|
|
212
|
+
operator: 'equals' | 'contains' | 'matches' | 'exists' | 'not';
|
|
213
|
+
value: string;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
declare interface HookTemplate {
|
|
217
|
+
id: string;
|
|
218
|
+
name: string;
|
|
219
|
+
description: string;
|
|
220
|
+
icon: string;
|
|
221
|
+
category: 'lint' | 'test' | 'security' | 'quality' | 'ci';
|
|
222
|
+
hook: GitHookType;
|
|
223
|
+
actions: Omit<HookAction, 'id' | 'order'>[];
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
declare type JobStatus = 'pending' | 'running' | 'success' | 'failure' | 'cancelled' | 'skipped' | 'waiting';
|
|
227
|
+
|
|
228
|
+
declare interface MergeContext {
|
|
229
|
+
baseCommit: {
|
|
230
|
+
id: string;
|
|
231
|
+
shortId: string;
|
|
232
|
+
message: string;
|
|
233
|
+
author: string;
|
|
234
|
+
};
|
|
235
|
+
oursCommit: {
|
|
236
|
+
id: string;
|
|
237
|
+
shortId: string;
|
|
238
|
+
message: string;
|
|
239
|
+
author: string;
|
|
240
|
+
branch: string;
|
|
241
|
+
};
|
|
242
|
+
theirsCommit: {
|
|
243
|
+
id: string;
|
|
244
|
+
shortId: string;
|
|
245
|
+
message: string;
|
|
246
|
+
author: string;
|
|
247
|
+
branch: string;
|
|
248
|
+
};
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
declare interface MergeRequestData {
|
|
252
|
+
title: string;
|
|
253
|
+
description: string;
|
|
254
|
+
sourceBranch: string;
|
|
255
|
+
targetBranch: string;
|
|
256
|
+
isDraft: boolean;
|
|
257
|
+
labels: string[];
|
|
258
|
+
reviewers: string[];
|
|
259
|
+
assignees: string[];
|
|
260
|
+
linkedIssues: string[];
|
|
261
|
+
squashCommits: boolean;
|
|
262
|
+
deleteSourceBranch: boolean;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
declare interface MergeRequestDiff {
|
|
266
|
+
additions: number;
|
|
267
|
+
deletions: number;
|
|
268
|
+
changedFiles: number;
|
|
269
|
+
files: Array<{
|
|
270
|
+
path: string;
|
|
271
|
+
status: 'added' | 'modified' | 'deleted' | 'renamed';
|
|
272
|
+
additions: number;
|
|
273
|
+
deletions: number;
|
|
274
|
+
}>;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
declare interface MergeRequestIssue {
|
|
278
|
+
id: string;
|
|
279
|
+
number: number;
|
|
280
|
+
title: string;
|
|
281
|
+
state: 'open' | 'closed';
|
|
282
|
+
labels?: MergeRequestLabel[];
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
declare interface MergeRequestLabel {
|
|
286
|
+
id: string;
|
|
287
|
+
name: string;
|
|
288
|
+
color: string;
|
|
289
|
+
description?: string;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
declare interface MergeRequestTemplate {
|
|
293
|
+
id: string;
|
|
294
|
+
name: string;
|
|
295
|
+
description: string;
|
|
296
|
+
content: string;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
declare interface MergeRequestUser {
|
|
300
|
+
id: string;
|
|
301
|
+
name: string;
|
|
302
|
+
email: string;
|
|
303
|
+
avatar?: string;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
/**
|
|
307
|
+
* Per-component visibility & interaction level used by the access control system.
|
|
308
|
+
* - `'full'` — fully interactive (default)
|
|
309
|
+
* - `'readOnly'` — renders but cannot be edited
|
|
310
|
+
* - `'disabled'` — renders greyed-out
|
|
311
|
+
* - `'hidden'` — not rendered at all
|
|
312
|
+
*/
|
|
313
|
+
declare type NiceAccessMode = 'full' | 'readOnly' | 'disabled' | 'hidden';
|
|
314
|
+
|
|
315
|
+
/** Base props inherited by every NiceToDev component. */
|
|
316
|
+
declare interface NiceBaseProps {
|
|
317
|
+
/** Additional CSS class name(s). */
|
|
318
|
+
className?: string;
|
|
319
|
+
/** Inline style object. */
|
|
320
|
+
style?: React.CSSProperties;
|
|
321
|
+
/** HTML `id` attribute. When omitted a stable auto-generated id is used. */
|
|
322
|
+
id?: string;
|
|
323
|
+
/** Tooltip text shown on hover. */
|
|
324
|
+
title?: string;
|
|
325
|
+
/** Test identifier for integration / e2e test selectors. */
|
|
326
|
+
'data-testid'?: string;
|
|
327
|
+
/** Controls component visibility and interaction — see {@link NiceAccessMode}. */
|
|
328
|
+
accessMode?: NiceAccessMode;
|
|
329
|
+
/**
|
|
330
|
+
* Visual presentation style override.
|
|
331
|
+
* When set, overrides the global `displayStyle` from `NiceThemeProvider`.
|
|
332
|
+
* @see NiceDisplayStyle
|
|
333
|
+
*/
|
|
334
|
+
displayStyle?: NiceDisplayStyle;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export declare const NiceBranchManager: default_2.FC<NiceBranchManagerProps>;
|
|
338
|
+
|
|
339
|
+
export declare interface NiceBranchManagerProps extends NiceBaseProps {
|
|
340
|
+
/** All branches */
|
|
341
|
+
branches: GitBranch_2[];
|
|
342
|
+
/** Current HEAD branch */
|
|
343
|
+
currentBranch?: string;
|
|
344
|
+
/** Default branch */
|
|
345
|
+
defaultBranch?: string;
|
|
346
|
+
/** Protection rules */
|
|
347
|
+
protectionRules?: BranchProtectionRule[];
|
|
348
|
+
/** Show remote branches */
|
|
349
|
+
showRemotes?: boolean;
|
|
350
|
+
/** Selected branch */
|
|
351
|
+
selectedBranch?: string;
|
|
352
|
+
onBranchSelect?: (branch: string) => void;
|
|
353
|
+
onCheckout?: (branch: string) => void;
|
|
354
|
+
onCreateBranch?: (name: string, fromBranch?: string) => void;
|
|
355
|
+
onDeleteBranch?: (branch: string, force?: boolean) => void;
|
|
356
|
+
onRenameBranch?: (oldName: string, newName: string) => void;
|
|
357
|
+
onMerge?: (source: string, target: string) => void;
|
|
358
|
+
onRebase?: (branch: string, onto: string) => void;
|
|
359
|
+
onSetUpstream?: (branch: string, upstream: string) => void;
|
|
360
|
+
onPush?: (branch: string, force?: boolean) => void;
|
|
361
|
+
onPull?: (branch: string) => void;
|
|
362
|
+
onCompare?: (branch1: string, branch2: string) => void;
|
|
363
|
+
onProtectionChange?: (branch: string, rule: BranchProtectionRule | null) => void;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* Cross-component visual presentation style.
|
|
368
|
+
* Each style maps 1:1 to a ThemeVariantConfig preset controlling
|
|
369
|
+
* buttons, inputs, cards, badges, tabs, toggles, tooltips, tables, etc.
|
|
370
|
+
*/
|
|
371
|
+
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';
|
|
372
|
+
|
|
373
|
+
export declare const NiceGitBlame: default_2.FC<NiceGitBlameProps>;
|
|
374
|
+
|
|
375
|
+
export declare interface NiceGitBlameProps extends NiceBaseProps {
|
|
376
|
+
/** Blame data for the file */
|
|
377
|
+
file: BlameFile;
|
|
378
|
+
/** How to display blame info */
|
|
379
|
+
viewMode?: BlameViewMode;
|
|
380
|
+
/** Show commit ages as colors */
|
|
381
|
+
showAgeHeatmap?: boolean;
|
|
382
|
+
/** Show author avatars */
|
|
383
|
+
showAvatars?: boolean;
|
|
384
|
+
/** Group consecutive lines from same commit */
|
|
385
|
+
groupHunks?: boolean;
|
|
386
|
+
/** Highlight commit on hover */
|
|
387
|
+
highlightOnHover?: boolean;
|
|
388
|
+
/** Time zone for date formatting */
|
|
389
|
+
timeZone?: string;
|
|
390
|
+
/** Filter by date range */
|
|
391
|
+
dateRange?: {
|
|
392
|
+
from?: Date;
|
|
393
|
+
to?: Date;
|
|
394
|
+
};
|
|
395
|
+
/** Filter by authors */
|
|
396
|
+
authorFilter?: string[];
|
|
397
|
+
/** Selected line */
|
|
398
|
+
selectedLine?: number;
|
|
399
|
+
/** Syntax highlighting theme */
|
|
400
|
+
syntaxTheme?: 'dark' | 'light';
|
|
401
|
+
onLineClick?: (line: BlameLine) => void;
|
|
402
|
+
onCommitClick?: (commit: BlameCommit) => void;
|
|
403
|
+
onAuthorClick?: (author: BlameAuthor) => void;
|
|
404
|
+
onBlameParent?: (commit: BlameCommit) => void;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
export declare const NiceGitConflictResolver: default_2.FC<NiceGitConflictResolverProps>;
|
|
408
|
+
|
|
409
|
+
export declare interface NiceGitConflictResolverProps extends NiceBaseProps {
|
|
410
|
+
/** File with conflicts */
|
|
411
|
+
file: ConflictFile;
|
|
412
|
+
/** Merge context information */
|
|
413
|
+
context?: MergeContext;
|
|
414
|
+
/** View mode */
|
|
415
|
+
viewMode?: ConflictViewMode;
|
|
416
|
+
/** Show line numbers */
|
|
417
|
+
showLineNumbers?: boolean;
|
|
418
|
+
/** Show base (ancestor) version */
|
|
419
|
+
showBase?: boolean;
|
|
420
|
+
/** Current focused conflict index */
|
|
421
|
+
currentConflictIndex?: number;
|
|
422
|
+
/** Syntax highlighting theme */
|
|
423
|
+
syntaxTheme?: 'dark' | 'light';
|
|
424
|
+
onResolve?: (conflictId: string, resolution: ConflictRegion['resolution'], content?: string[]) => void;
|
|
425
|
+
onResolveAll?: (resolution: 'ours' | 'theirs') => void;
|
|
426
|
+
onNavigateConflict?: (index: number) => void;
|
|
427
|
+
onSave?: (content: string) => void;
|
|
428
|
+
onCancel?: () => void;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
export declare const NiceGitDiffViewer: default_2.FC<NiceGitDiffViewerProps>;
|
|
432
|
+
|
|
433
|
+
export declare interface NiceGitDiffViewerProps extends NiceBaseProps {
|
|
434
|
+
/** Diff files */
|
|
435
|
+
files: DiffFile[];
|
|
436
|
+
/** View mode */
|
|
437
|
+
viewMode?: DiffViewMode;
|
|
438
|
+
/** Show whitespace changes */
|
|
439
|
+
showWhitespace?: boolean;
|
|
440
|
+
/** Comments on the diff */
|
|
441
|
+
comments?: DiffComment[];
|
|
442
|
+
/** Selected file */
|
|
443
|
+
selectedFile?: string;
|
|
444
|
+
/** Show file tree */
|
|
445
|
+
showFileTree?: boolean;
|
|
446
|
+
/** Context lines around changes */
|
|
447
|
+
contextLines?: number;
|
|
448
|
+
/** Base commit/branch for comparison */
|
|
449
|
+
baseRef?: string;
|
|
450
|
+
/** Head commit/branch for comparison */
|
|
451
|
+
headRef?: string;
|
|
452
|
+
onFileSelect?: (path: string) => void;
|
|
453
|
+
onViewModeChange?: (mode: DiffViewMode) => void;
|
|
454
|
+
onAddComment?: (filePath: string, line: number, side: 'old' | 'new', body: string) => void;
|
|
455
|
+
onResolveComment?: (commentId: string) => void;
|
|
456
|
+
onExpandChunk?: (filePath: string, chunkIndex: number) => void;
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
export declare const NiceGitGraph: default_2.FC<NiceGitGraphProps>;
|
|
460
|
+
|
|
461
|
+
export declare interface NiceGitGraphProps extends NiceBaseProps {
|
|
462
|
+
/** Commits to display (newest first) */
|
|
463
|
+
commits: GitCommit[];
|
|
464
|
+
/** All branches */
|
|
465
|
+
branches: GitBranch[];
|
|
466
|
+
/** All tags */
|
|
467
|
+
tags: GitTag[];
|
|
468
|
+
/** Currently checked out branch/commit */
|
|
469
|
+
head?: string;
|
|
470
|
+
/** Selected commit hash */
|
|
471
|
+
selectedCommit?: string;
|
|
472
|
+
/** Branch filter */
|
|
473
|
+
branchFilter?: string[];
|
|
474
|
+
/** Author filter */
|
|
475
|
+
authorFilter?: string[];
|
|
476
|
+
/** Date range filter */
|
|
477
|
+
dateRange?: {
|
|
478
|
+
from?: Date;
|
|
479
|
+
to?: Date;
|
|
480
|
+
};
|
|
481
|
+
/** Search query */
|
|
482
|
+
searchQuery?: string;
|
|
483
|
+
/** Max commits to show */
|
|
484
|
+
maxCommits?: number;
|
|
485
|
+
/** Show remote branches */
|
|
486
|
+
showRemotes?: boolean;
|
|
487
|
+
/** Show tags */
|
|
488
|
+
showTags?: boolean;
|
|
489
|
+
/** Compact mode */
|
|
490
|
+
compact?: boolean;
|
|
491
|
+
onCommitSelect?: (commit: GitCommit) => void;
|
|
492
|
+
onCommitDoubleClick?: (commit: GitCommit) => void;
|
|
493
|
+
onBranchCheckout?: (branch: string) => void;
|
|
494
|
+
onBranchCreate?: (fromCommit: string) => void;
|
|
495
|
+
onTagCreate?: (commit: string) => void;
|
|
496
|
+
onCherryPick?: (commit: string) => void;
|
|
497
|
+
onRevert?: (commit: string) => void;
|
|
498
|
+
onReset?: (commit: string, mode: 'soft' | 'mixed' | 'hard') => void;
|
|
499
|
+
onCompare?: (commit1: string, commit2: string) => void;
|
|
500
|
+
onViewDiff?: (commit: string) => void;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
export declare const NiceGitHooks: default_2.FC<NiceGitHooksProps>;
|
|
504
|
+
|
|
505
|
+
export declare interface NiceGitHooksProps extends NiceBaseProps {
|
|
506
|
+
/** Current hooks configuration */
|
|
507
|
+
hooks: GitHook[];
|
|
508
|
+
/** Available templates */
|
|
509
|
+
templates?: HookTemplate[];
|
|
510
|
+
/** Hook manager type */
|
|
511
|
+
manager?: 'native' | 'husky' | 'lefthook' | 'simple-git-hooks';
|
|
512
|
+
/** Repository path */
|
|
513
|
+
repoPath?: string;
|
|
514
|
+
/** Currently editing hook */
|
|
515
|
+
selectedHook?: GitHookType;
|
|
516
|
+
onHookChange?: (hook: GitHook) => void;
|
|
517
|
+
onHookToggle?: (hookType: GitHookType, enabled: boolean) => void;
|
|
518
|
+
onActionAdd?: (hookType: GitHookType, action: HookAction) => void;
|
|
519
|
+
onActionRemove?: (hookType: GitHookType, actionId: string) => void;
|
|
520
|
+
onActionUpdate?: (hookType: GitHookType, action: HookAction) => void;
|
|
521
|
+
onInstall?: (hookType: GitHookType) => void;
|
|
522
|
+
onUninstall?: (hookType: GitHookType) => void;
|
|
523
|
+
onExport?: (hooks: GitHook[], format: 'shell' | 'husky' | 'lefthook') => void;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
export declare const NiceMergeRequestBuilder: default_2.FC<NiceMergeRequestBuilderProps>;
|
|
527
|
+
|
|
528
|
+
export declare interface NiceMergeRequestBuilderProps extends NiceBaseProps {
|
|
529
|
+
/** Available branches */
|
|
530
|
+
branches: Array<{
|
|
531
|
+
name: string;
|
|
532
|
+
isRemote?: boolean;
|
|
533
|
+
}>;
|
|
534
|
+
/** Available users for assignment */
|
|
535
|
+
users?: MergeRequestUser[];
|
|
536
|
+
/** Available labels */
|
|
537
|
+
labels?: MergeRequestLabel[];
|
|
538
|
+
/** Open issues */
|
|
539
|
+
issues?: MergeRequestIssue[];
|
|
540
|
+
/** Description templates */
|
|
541
|
+
templates?: MergeRequestTemplate[];
|
|
542
|
+
/** Diff summary */
|
|
543
|
+
diff?: MergeRequestDiff;
|
|
544
|
+
/** Current branch */
|
|
545
|
+
currentBranch?: string;
|
|
546
|
+
/** Default target branch */
|
|
547
|
+
defaultTargetBranch?: string;
|
|
548
|
+
/** Initial source branch */
|
|
549
|
+
initialSourceBranch?: string;
|
|
550
|
+
/** Platform type */
|
|
551
|
+
platform?: 'github' | 'gitlab' | 'bitbucket' | 'azure';
|
|
552
|
+
onSubmit?: (data: MergeRequestData) => void;
|
|
553
|
+
onCancel?: () => void;
|
|
554
|
+
onBranchChange?: (source: string, target: string) => void;
|
|
555
|
+
onPreview?: (data: MergeRequestData) => void;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
export declare const NicePipelineEditor: default_2.FC<NicePipelineEditorProps>;
|
|
559
|
+
|
|
560
|
+
export declare interface NicePipelineEditorProps extends NiceBaseProps {
|
|
561
|
+
pipeline: Pipeline;
|
|
562
|
+
templates: PipelineTemplate[];
|
|
563
|
+
runners: Array<{
|
|
564
|
+
id: string;
|
|
565
|
+
name: string;
|
|
566
|
+
os: string;
|
|
567
|
+
available: boolean;
|
|
568
|
+
}>;
|
|
569
|
+
environments: Array<{
|
|
570
|
+
id: string;
|
|
571
|
+
name: string;
|
|
572
|
+
protection: boolean;
|
|
573
|
+
}>;
|
|
574
|
+
onPipelineChange: (pipeline: Pipeline) => void;
|
|
575
|
+
onStageAdd: () => void;
|
|
576
|
+
onStageRemove: (stageId: string) => void;
|
|
577
|
+
onStageMove: (stageId: string, direction: 'up' | 'down') => void;
|
|
578
|
+
onJobAdd: (stageId: string) => void;
|
|
579
|
+
onJobRemove: (stageId: string, jobId: string) => void;
|
|
580
|
+
onStepAdd: (stageId: string, jobId: string) => void;
|
|
581
|
+
onStepRemove: (stageId: string, jobId: string, stepId: string) => void;
|
|
582
|
+
onVariableAdd: () => void;
|
|
583
|
+
onVariableRemove: (name: string) => void;
|
|
584
|
+
onSecretAdd: () => void;
|
|
585
|
+
onSecretRemove: (name: string) => void;
|
|
586
|
+
onTemplateApply: (template: PipelineTemplate) => void;
|
|
587
|
+
onSave: () => void;
|
|
588
|
+
onRun: () => void;
|
|
589
|
+
onValidate: () => void;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
export declare const NicePipelineMonitor: default_2.FC<NicePipelineMonitorProps>;
|
|
593
|
+
|
|
594
|
+
export declare interface NicePipelineMonitorProps extends NiceBaseProps {
|
|
595
|
+
runs: PipelineRun[];
|
|
596
|
+
stats?: PipelineStats;
|
|
597
|
+
selectedRunId?: string;
|
|
598
|
+
onRunSelect: (runId: string) => void;
|
|
599
|
+
onCancel: (runId: string) => void;
|
|
600
|
+
onRerun: (runId: string) => void;
|
|
601
|
+
onRerunFromStage: (runId: string, stageId: string) => void;
|
|
602
|
+
onDownloadArtifact: (artifact: PipelineArtifact) => void;
|
|
603
|
+
onDownloadLogs: (runId: string) => void;
|
|
604
|
+
onApprove?: (runId: string, stageId: string) => void;
|
|
605
|
+
onReject?: (runId: string, stageId: string) => void;
|
|
606
|
+
refreshInterval?: number;
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
declare interface Pipeline {
|
|
610
|
+
id: string;
|
|
611
|
+
name: string;
|
|
612
|
+
description?: string;
|
|
613
|
+
repository: string;
|
|
614
|
+
branch?: string;
|
|
615
|
+
triggers: PipelineTrigger[];
|
|
616
|
+
stages: PipelineStage[];
|
|
617
|
+
variables: PipelineVariable[];
|
|
618
|
+
secrets: PipelineSecret[];
|
|
619
|
+
isEnabled: boolean;
|
|
620
|
+
createdAt: Date;
|
|
621
|
+
updatedAt: Date;
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
declare interface PipelineArtifact {
|
|
625
|
+
id: string;
|
|
626
|
+
name: string;
|
|
627
|
+
size: number;
|
|
628
|
+
jobId: string;
|
|
629
|
+
downloadUrl: string;
|
|
630
|
+
expiresAt?: Date;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
declare interface PipelineJob {
|
|
634
|
+
id: string;
|
|
635
|
+
name: string;
|
|
636
|
+
runner?: string;
|
|
637
|
+
environment?: string;
|
|
638
|
+
steps: PipelineStep[];
|
|
639
|
+
timeout?: number;
|
|
640
|
+
condition?: string;
|
|
641
|
+
services?: string[];
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
declare interface PipelineRun {
|
|
645
|
+
id: string;
|
|
646
|
+
pipelineId: string;
|
|
647
|
+
pipelineName: string;
|
|
648
|
+
runNumber: number;
|
|
649
|
+
status: RunStatus;
|
|
650
|
+
branch: string;
|
|
651
|
+
commit: {
|
|
652
|
+
sha: string;
|
|
653
|
+
message: string;
|
|
654
|
+
author: string;
|
|
655
|
+
authorAvatar?: string;
|
|
656
|
+
};
|
|
657
|
+
trigger: 'push' | 'pull_request' | 'schedule' | 'manual' | 'api';
|
|
658
|
+
startedAt?: Date;
|
|
659
|
+
completedAt?: Date;
|
|
660
|
+
duration?: number;
|
|
661
|
+
stages: PipelineRunStage[];
|
|
662
|
+
artifacts: PipelineArtifact[];
|
|
663
|
+
environment?: string;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
declare interface PipelineRunJob {
|
|
667
|
+
id: string;
|
|
668
|
+
name: string;
|
|
669
|
+
status: JobStatus;
|
|
670
|
+
runner?: string;
|
|
671
|
+
startedAt?: Date;
|
|
672
|
+
completedAt?: Date;
|
|
673
|
+
duration?: number;
|
|
674
|
+
steps: PipelineRunStep[];
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
declare interface PipelineRunStage {
|
|
678
|
+
id: string;
|
|
679
|
+
name: string;
|
|
680
|
+
status: JobStatus;
|
|
681
|
+
startedAt?: Date;
|
|
682
|
+
completedAt?: Date;
|
|
683
|
+
duration?: number;
|
|
684
|
+
jobs: PipelineRunJob[];
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
declare interface PipelineRunStep {
|
|
688
|
+
id: string;
|
|
689
|
+
name: string;
|
|
690
|
+
status: JobStatus;
|
|
691
|
+
startedAt?: Date;
|
|
692
|
+
completedAt?: Date;
|
|
693
|
+
duration?: number;
|
|
694
|
+
logs?: string[];
|
|
695
|
+
errorMessage?: string;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
declare interface PipelineSecret {
|
|
699
|
+
name: string;
|
|
700
|
+
source: 'vault' | 'environment' | 'repository';
|
|
701
|
+
key: string;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
declare interface PipelineStage {
|
|
705
|
+
id: string;
|
|
706
|
+
name: string;
|
|
707
|
+
jobs: PipelineJob[];
|
|
708
|
+
condition?: string;
|
|
709
|
+
dependsOn?: string[];
|
|
710
|
+
parallel: boolean;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
declare interface PipelineStats {
|
|
714
|
+
totalRuns: number;
|
|
715
|
+
successRate: number;
|
|
716
|
+
avgDuration: number;
|
|
717
|
+
failedRuns: number;
|
|
718
|
+
runsByDay: {
|
|
719
|
+
date: string;
|
|
720
|
+
success: number;
|
|
721
|
+
failed: number;
|
|
722
|
+
}[];
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
declare interface PipelineStep {
|
|
726
|
+
id: string;
|
|
727
|
+
name: string;
|
|
728
|
+
type: 'script' | 'action' | 'checkout' | 'upload_artifact' | 'download_artifact' | 'docker' | 'deploy';
|
|
729
|
+
script?: string;
|
|
730
|
+
action?: string;
|
|
731
|
+
actionVersion?: string;
|
|
732
|
+
with?: Record<string, string>;
|
|
733
|
+
env?: Record<string, string>;
|
|
734
|
+
condition?: string;
|
|
735
|
+
continueOnError?: boolean;
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
declare interface PipelineTemplate {
|
|
739
|
+
id: string;
|
|
740
|
+
name: string;
|
|
741
|
+
description: string;
|
|
742
|
+
category: string;
|
|
743
|
+
icon: string;
|
|
744
|
+
pipeline: Partial<Pipeline>;
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
declare type PipelineTrigger = 'push' | 'pull_request' | 'schedule' | 'manual' | 'tag' | 'workflow_dispatch';
|
|
748
|
+
|
|
749
|
+
declare interface PipelineVariable {
|
|
750
|
+
name: string;
|
|
751
|
+
value: string;
|
|
752
|
+
isSecret: boolean;
|
|
753
|
+
scope: 'pipeline' | 'stage' | 'job';
|
|
754
|
+
}
|
|
755
|
+
|
|
756
|
+
declare type RunStatus = 'queued' | 'in_progress' | 'completed' | 'failed' | 'cancelled' | 'waiting' | 'skipped';
|
|
757
|
+
|
|
758
|
+
export { }
|