@teambit/lanes 1.0.225 → 1.0.227
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/artifacts/__bit_junit.xml +14 -14
- package/artifacts/preview/teambit_lanes_lanes-preview.js +1 -1
- package/artifacts/schema.json +192 -890
- package/dist/lanes.main.runtime.js +1 -0
- package/dist/lanes.main.runtime.js.map +1 -1
- package/dist/{preview-1712546198033.js → preview-1712719054377.js} +2 -2
- package/package.json +25 -25
- package/tsconfig.json +52 -1
- package/dist/create-lane.d.ts +0 -8
- package/dist/index.d.ts +0 -7
- package/dist/lane.cmd.d.ts +0 -300
- package/dist/lanes.aspect.d.ts +0 -3
- package/dist/lanes.composition.d.ts +0 -1
- package/dist/lanes.create.route.d.ts +0 -13
- package/dist/lanes.delete.route.d.ts +0 -13
- package/dist/lanes.graphql.d.ts +0 -3
- package/dist/lanes.main.runtime.d.ts +0 -225
- package/dist/lanes.restore.route.d.ts +0 -13
- package/dist/lanes.spec.d.ts +0 -1
- package/dist/lanes.ui.runtime.d.ts +0 -103
- package/dist/switch-lanes.d.ts +0 -35
- package/dist/switch.cmd.d.ts +0 -28
package/tsconfig.json
CHANGED
@@ -20,7 +20,8 @@
|
|
20
20
|
"emitDeclarationOnly": true,
|
21
21
|
"strict": true,
|
22
22
|
"strictPropertyInitialization": false,
|
23
|
-
"noImplicitAny": false
|
23
|
+
"noImplicitAny": false,
|
24
|
+
"composite": true
|
24
25
|
},
|
25
26
|
"exclude": [
|
26
27
|
"artifacts",
|
@@ -35,5 +36,55 @@
|
|
35
36
|
"include": [
|
36
37
|
"**/*",
|
37
38
|
"**/*.json"
|
39
|
+
],
|
40
|
+
"references": [
|
41
|
+
{
|
42
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.scope_scope@1.0.227"
|
43
|
+
},
|
44
|
+
{
|
45
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@1.0.227"
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_checkout@1.0.227"
|
49
|
+
},
|
50
|
+
{
|
51
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_cli@0.0.860"
|
52
|
+
},
|
53
|
+
{
|
54
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.scope_importer@1.0.227"
|
55
|
+
},
|
56
|
+
{
|
57
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_express@0.0.959"
|
58
|
+
},
|
59
|
+
{
|
60
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_logger@0.0.953"
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.harmony_graphql@1.0.227"
|
64
|
+
},
|
65
|
+
{
|
66
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-compare@1.0.227"
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component-writer@1.0.227"
|
70
|
+
},
|
71
|
+
{
|
72
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_component@1.0.227"
|
73
|
+
},
|
74
|
+
{
|
75
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.scope_export@1.0.227"
|
76
|
+
},
|
77
|
+
{
|
78
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_merging@1.0.227"
|
79
|
+
},
|
80
|
+
{
|
81
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_remove@1.0.227"
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.ui-foundation_ui@1.0.227"
|
85
|
+
},
|
86
|
+
{
|
87
|
+
"path": "/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.component_snapping@1.0.227"
|
88
|
+
}
|
38
89
|
]
|
39
90
|
}
|
package/dist/create-lane.d.ts
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
import { Consumer } from '@teambit/legacy/dist/consumer';
|
2
|
-
import { ScopeMain } from '@teambit/scope';
|
3
|
-
import Lane from '@teambit/legacy/dist/scope/models/lane';
|
4
|
-
import { Workspace } from '@teambit/workspace';
|
5
|
-
export declare function createLane(workspace: Workspace, laneName: string, scopeName: string, remoteLane?: Lane): Promise<Lane>;
|
6
|
-
export declare function createLaneInScope(laneName: string, scope: ScopeMain): Promise<Lane>;
|
7
|
-
export declare function throwForInvalidLaneName(laneName: string): void;
|
8
|
-
export declare function throwForStagedComponents(consumer: Consumer): Promise<void>;
|
package/dist/index.d.ts
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
import { LanesAspect } from './lanes.aspect';
|
2
|
-
export type { CreateLaneResult, LanesMain, Lane } from './lanes.main.runtime';
|
3
|
-
export type { LanesQuery } from '@teambit/lanes.ui.models.lanes-model';
|
4
|
-
export { LanesModel } from '@teambit/lanes.ui.models.lanes-model';
|
5
|
-
export type { LanesUI, LaneCompareProps, LaneProviderIgnoreSlot } from './lanes.ui.runtime';
|
6
|
-
export default LanesAspect;
|
7
|
-
export { LanesAspect };
|
package/dist/lane.cmd.d.ts
DELETED
@@ -1,300 +0,0 @@
|
|
1
|
-
import { ScopeMain } from '@teambit/scope';
|
2
|
-
import { LaneId } from '@teambit/lane-id';
|
3
|
-
import { Workspace } from '@teambit/workspace';
|
4
|
-
import { Command, CommandOptions } from '@teambit/cli';
|
5
|
-
import { CreateLaneOptions, LanesMain } from './lanes.main.runtime';
|
6
|
-
import { SwitchCmd } from './switch.cmd';
|
7
|
-
import { FetchCmd } from '@teambit/importer';
|
8
|
-
type LaneOptions = {
|
9
|
-
details?: boolean;
|
10
|
-
remote?: string;
|
11
|
-
merged?: boolean;
|
12
|
-
notMerged?: boolean;
|
13
|
-
json?: boolean;
|
14
|
-
};
|
15
|
-
export declare class LaneListCmd implements Command {
|
16
|
-
private lanes;
|
17
|
-
private workspace;
|
18
|
-
private scope;
|
19
|
-
name: string;
|
20
|
-
description: string;
|
21
|
-
alias: string;
|
22
|
-
options: CommandOptions;
|
23
|
-
loader: boolean;
|
24
|
-
remoteOp: boolean;
|
25
|
-
skipWorkspace: boolean;
|
26
|
-
constructor(lanes: LanesMain, workspace: Workspace, scope: ScopeMain);
|
27
|
-
report(args: any, laneOptions: LaneOptions): Promise<string>;
|
28
|
-
json(args: any, laneOptions: LaneOptions): Promise<{
|
29
|
-
lanes: {
|
30
|
-
components: {
|
31
|
-
id: string;
|
32
|
-
head: string;
|
33
|
-
}[];
|
34
|
-
readmeComponent: {
|
35
|
-
id: string;
|
36
|
-
head: string | undefined;
|
37
|
-
} | undefined;
|
38
|
-
name: string;
|
39
|
-
remote: string | null;
|
40
|
-
id: LaneId;
|
41
|
-
alias?: string | null | undefined;
|
42
|
-
isMerged: boolean | null;
|
43
|
-
log?: import("@teambit/legacy/dist/scope/models/lane").Log | undefined;
|
44
|
-
hash: string;
|
45
|
-
}[];
|
46
|
-
currentLane: string | null;
|
47
|
-
}>;
|
48
|
-
}
|
49
|
-
export declare class LaneShowCmd implements Command {
|
50
|
-
private lanes;
|
51
|
-
private workspace;
|
52
|
-
private scope;
|
53
|
-
name: string;
|
54
|
-
description: string;
|
55
|
-
alias: string;
|
56
|
-
options: CommandOptions;
|
57
|
-
loader: boolean;
|
58
|
-
remoteOp: boolean;
|
59
|
-
skipWorkspace: boolean;
|
60
|
-
constructor(lanes: LanesMain, workspace: Workspace, scope: ScopeMain);
|
61
|
-
report([name]: [string], laneOptions: LaneOptions): Promise<string>;
|
62
|
-
json([name]: [string], laneOptions: LaneOptions): Promise<{
|
63
|
-
components: {
|
64
|
-
id: string;
|
65
|
-
head: string;
|
66
|
-
}[];
|
67
|
-
readmeComponent: {
|
68
|
-
id: string;
|
69
|
-
head: string | undefined;
|
70
|
-
} | undefined;
|
71
|
-
name: string;
|
72
|
-
remote: string | null;
|
73
|
-
id: LaneId;
|
74
|
-
alias?: string | null | undefined;
|
75
|
-
isMerged: boolean | null;
|
76
|
-
log?: import("@teambit/legacy/dist/scope/models/lane").Log | undefined;
|
77
|
-
hash: string;
|
78
|
-
}>;
|
79
|
-
}
|
80
|
-
export declare class LaneCreateCmd implements Command {
|
81
|
-
private lanes;
|
82
|
-
name: string;
|
83
|
-
arguments: {
|
84
|
-
name: string;
|
85
|
-
description: string;
|
86
|
-
}[];
|
87
|
-
description: string;
|
88
|
-
extendedDescription: string;
|
89
|
-
alias: string;
|
90
|
-
options: CommandOptions;
|
91
|
-
loader: boolean;
|
92
|
-
constructor(lanes: LanesMain);
|
93
|
-
report([name]: [string], createLaneOptions: CreateLaneOptions & {
|
94
|
-
remoteScope?: string;
|
95
|
-
}): Promise<string>;
|
96
|
-
}
|
97
|
-
export declare class LaneAliasCmd implements Command {
|
98
|
-
private lanes;
|
99
|
-
name: string;
|
100
|
-
description: string;
|
101
|
-
extendedDescription: string;
|
102
|
-
alias: string;
|
103
|
-
options: CommandOptions;
|
104
|
-
loader: boolean;
|
105
|
-
constructor(lanes: LanesMain);
|
106
|
-
report([laneName, alias]: [string, string, string]): Promise<string>;
|
107
|
-
}
|
108
|
-
export declare class CatLaneHistoryCmd implements Command {
|
109
|
-
private lanes;
|
110
|
-
name: string;
|
111
|
-
description: string;
|
112
|
-
private: boolean;
|
113
|
-
alias: string;
|
114
|
-
options: CommandOptions;
|
115
|
-
loader: boolean;
|
116
|
-
constructor(lanes: LanesMain);
|
117
|
-
report([laneName]: [string]): Promise<string>;
|
118
|
-
}
|
119
|
-
export type LaneCheckoutOpts = {
|
120
|
-
skipDependencyInstallation?: boolean;
|
121
|
-
};
|
122
|
-
export declare class LaneCheckoutCmd implements Command {
|
123
|
-
private lanes;
|
124
|
-
name: string;
|
125
|
-
description: string;
|
126
|
-
arguments: {
|
127
|
-
name: string;
|
128
|
-
description: string;
|
129
|
-
}[];
|
130
|
-
alias: string;
|
131
|
-
options: CommandOptions;
|
132
|
-
loader: boolean;
|
133
|
-
constructor(lanes: LanesMain);
|
134
|
-
report([historyId]: [string], opts: LaneCheckoutOpts): Promise<string>;
|
135
|
-
}
|
136
|
-
export declare class LaneRevertCmd implements Command {
|
137
|
-
private lanes;
|
138
|
-
name: string;
|
139
|
-
description: string;
|
140
|
-
extendedDescription: string;
|
141
|
-
arguments: {
|
142
|
-
name: string;
|
143
|
-
description: string;
|
144
|
-
}[];
|
145
|
-
alias: string;
|
146
|
-
options: CommandOptions;
|
147
|
-
loader: boolean;
|
148
|
-
constructor(lanes: LanesMain);
|
149
|
-
report([historyId]: [string], opts: LaneCheckoutOpts): Promise<string>;
|
150
|
-
}
|
151
|
-
export declare class LaneHistoryCmd implements Command {
|
152
|
-
private lanes;
|
153
|
-
name: string;
|
154
|
-
description: string;
|
155
|
-
alias: string;
|
156
|
-
options: CommandOptions;
|
157
|
-
loader: boolean;
|
158
|
-
constructor(lanes: LanesMain);
|
159
|
-
report([laneName]: [string], { id }: {
|
160
|
-
id?: string;
|
161
|
-
}): Promise<string>;
|
162
|
-
}
|
163
|
-
export declare class LaneChangeScopeCmd implements Command {
|
164
|
-
private lanes;
|
165
|
-
name: string;
|
166
|
-
description: string;
|
167
|
-
extendedDescription: string;
|
168
|
-
alias: string;
|
169
|
-
options: CommandOptions;
|
170
|
-
loader: boolean;
|
171
|
-
constructor(lanes: LanesMain);
|
172
|
-
report([remoteScope]: [string], { laneName }: {
|
173
|
-
laneName?: string;
|
174
|
-
}): Promise<string>;
|
175
|
-
}
|
176
|
-
export declare class LaneRenameCmd implements Command {
|
177
|
-
private lanes;
|
178
|
-
name: string;
|
179
|
-
description: string;
|
180
|
-
extendedDescription: string;
|
181
|
-
alias: string;
|
182
|
-
options: CommandOptions;
|
183
|
-
loader: boolean;
|
184
|
-
constructor(lanes: LanesMain);
|
185
|
-
report([newName]: [string], { laneName }: {
|
186
|
-
laneName?: string;
|
187
|
-
}): Promise<string>;
|
188
|
-
}
|
189
|
-
export declare class LaneRemoveCmd implements Command {
|
190
|
-
private lanes;
|
191
|
-
name: string;
|
192
|
-
arguments: {
|
193
|
-
name: string;
|
194
|
-
description: string;
|
195
|
-
}[];
|
196
|
-
description: string;
|
197
|
-
group: string;
|
198
|
-
alias: string;
|
199
|
-
options: CommandOptions;
|
200
|
-
loader: boolean;
|
201
|
-
constructor(lanes: LanesMain);
|
202
|
-
report([names]: [string[]], { remote, force, silent, }: {
|
203
|
-
remote: boolean;
|
204
|
-
force: boolean;
|
205
|
-
silent: boolean;
|
206
|
-
}): Promise<string>;
|
207
|
-
}
|
208
|
-
export type RemoveCompsOpts = {
|
209
|
-
workspaceOnly?: boolean;
|
210
|
-
updateMain?: boolean;
|
211
|
-
};
|
212
|
-
export declare class LaneRemoveCompCmd implements Command {
|
213
|
-
private workspace;
|
214
|
-
private lanes;
|
215
|
-
name: string;
|
216
|
-
arguments: {
|
217
|
-
name: string;
|
218
|
-
description: string;
|
219
|
-
}[];
|
220
|
-
description: string;
|
221
|
-
group: string;
|
222
|
-
alias: string;
|
223
|
-
options: CommandOptions;
|
224
|
-
loader: boolean;
|
225
|
-
constructor(workspace: Workspace, lanes: LanesMain);
|
226
|
-
report(): Promise<string>;
|
227
|
-
}
|
228
|
-
export declare class LaneImportCmd implements Command {
|
229
|
-
private switchCmd;
|
230
|
-
name: string;
|
231
|
-
description: string;
|
232
|
-
arguments: {
|
233
|
-
name: string;
|
234
|
-
description: string;
|
235
|
-
}[];
|
236
|
-
alias: string;
|
237
|
-
options: CommandOptions;
|
238
|
-
loader: boolean;
|
239
|
-
constructor(switchCmd: SwitchCmd);
|
240
|
-
report([lane]: [string], { skipDependencyInstallation, pattern }: {
|
241
|
-
skipDependencyInstallation: boolean;
|
242
|
-
pattern?: string;
|
243
|
-
}): Promise<string>;
|
244
|
-
}
|
245
|
-
export declare class LaneFetchCmd implements Command {
|
246
|
-
private fetchCmd;
|
247
|
-
private lanes;
|
248
|
-
name: string;
|
249
|
-
description: string;
|
250
|
-
extendedDescription: string;
|
251
|
-
alias: string;
|
252
|
-
options: CommandOptions;
|
253
|
-
loader: boolean;
|
254
|
-
constructor(fetchCmd: FetchCmd, lanes: LanesMain);
|
255
|
-
report([laneId]: [string], { all }: {
|
256
|
-
all?: boolean;
|
257
|
-
}): Promise<string>;
|
258
|
-
}
|
259
|
-
export declare class LaneCmd implements Command {
|
260
|
-
private lanes;
|
261
|
-
private workspace;
|
262
|
-
private scope;
|
263
|
-
name: string;
|
264
|
-
description: string;
|
265
|
-
alias: string;
|
266
|
-
options: CommandOptions;
|
267
|
-
loader: boolean;
|
268
|
-
group: string;
|
269
|
-
remoteOp: boolean;
|
270
|
-
skipWorkspace: boolean;
|
271
|
-
helpUrl: string;
|
272
|
-
commands: Command[];
|
273
|
-
constructor(lanes: LanesMain, workspace: Workspace, scope: ScopeMain);
|
274
|
-
report([name]: [string], laneOptions: LaneOptions): Promise<string>;
|
275
|
-
}
|
276
|
-
export declare class LaneRemoveReadmeCmd implements Command {
|
277
|
-
private lanes;
|
278
|
-
name: string;
|
279
|
-
description: string;
|
280
|
-
options: CommandOptions;
|
281
|
-
loader: boolean;
|
282
|
-
skipWorkspace: boolean;
|
283
|
-
constructor(lanes: LanesMain);
|
284
|
-
report([laneName]: [string]): Promise<string>;
|
285
|
-
}
|
286
|
-
export declare class LaneAddReadmeCmd implements Command {
|
287
|
-
private lanes;
|
288
|
-
name: string;
|
289
|
-
description: string;
|
290
|
-
arguments: {
|
291
|
-
name: string;
|
292
|
-
description: string;
|
293
|
-
}[];
|
294
|
-
options: CommandOptions;
|
295
|
-
loader: boolean;
|
296
|
-
skipWorkspace: boolean;
|
297
|
-
constructor(lanes: LanesMain);
|
298
|
-
report([componentId, laneName]: [string, string]): Promise<string>;
|
299
|
-
}
|
300
|
-
export {};
|
package/dist/lanes.aspect.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export declare const Logo: () => import("react/jsx-runtime").JSX.Element;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
/// <reference types="express" />
|
2
|
-
import { Route, Verb, Request, Response } from '@teambit/express';
|
3
|
-
import { Logger } from '@teambit/logger';
|
4
|
-
import { LanesMain } from './lanes.main.runtime';
|
5
|
-
export declare class LanesCreateRoute implements Route {
|
6
|
-
private lanes;
|
7
|
-
private logger;
|
8
|
-
constructor(lanes: LanesMain, logger: Logger);
|
9
|
-
method: string;
|
10
|
-
route: string;
|
11
|
-
verb: Verb;
|
12
|
-
middlewares: ((req: Request, res: Response) => Promise<import("express").Response<any, Record<string, any>>>)[];
|
13
|
-
}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
/// <reference types="express" />
|
2
|
-
import { Route, Verb, Request, Response } from '@teambit/express';
|
3
|
-
import { Logger } from '@teambit/logger';
|
4
|
-
import { LanesMain } from './lanes.main.runtime';
|
5
|
-
export declare class LanesDeleteRoute implements Route {
|
6
|
-
private lanes;
|
7
|
-
private logger;
|
8
|
-
constructor(lanes: LanesMain, logger: Logger);
|
9
|
-
method: string;
|
10
|
-
route: string;
|
11
|
-
verb: Verb;
|
12
|
-
middlewares: ((req: Request, res: Response) => Promise<import("express").Response<any, Record<string, any>>>)[];
|
13
|
-
}
|
package/dist/lanes.graphql.d.ts
DELETED
@@ -1,225 +0,0 @@
|
|
1
|
-
import { CLIMain } from '@teambit/cli';
|
2
|
-
import { ScopeMain } from '@teambit/scope';
|
3
|
-
import { GraphqlMain } from '@teambit/graphql';
|
4
|
-
import { ExpressMain } from '@teambit/express';
|
5
|
-
import { Workspace } from '@teambit/workspace';
|
6
|
-
import { LaneDiffResults } from '@teambit/lanes.modules.diff';
|
7
|
-
import { LaneData } from '@teambit/legacy/dist/scope/lanes/lanes';
|
8
|
-
import { LaneId } from '@teambit/lane-id';
|
9
|
-
import { Logger, LoggerMain } from '@teambit/logger';
|
10
|
-
import { DiffOptions } from '@teambit/legacy/dist/consumer/component-ops/components-diff';
|
11
|
-
import { MergeStrategy } from '@teambit/legacy/dist/consumer/versions-ops/merge-version';
|
12
|
-
import { TrackLane } from '@teambit/legacy/dist/scope/scope-json';
|
13
|
-
import { ImporterMain } from '@teambit/importer';
|
14
|
-
import { ComponentID } from '@teambit/component-id';
|
15
|
-
import { Component, ComponentMain } from '@teambit/component';
|
16
|
-
import { Lane, LaneHistory } from '@teambit/legacy/dist/scope/models';
|
17
|
-
import { ExportMain } from '@teambit/export';
|
18
|
-
import { ComponentCompareMain } from '@teambit/component-compare';
|
19
|
-
import { ComponentWriterMain } from '@teambit/component-writer';
|
20
|
-
import { RemoveMain } from '@teambit/remove';
|
21
|
-
import { MergingMain } from '@teambit/merging';
|
22
|
-
import { CheckoutMain } from '@teambit/checkout';
|
23
|
-
import { ChangeType } from '@teambit/lanes.entities.lane-diff';
|
24
|
-
import ComponentsList, { DivergeDataPerId } from '@teambit/legacy/dist/consumer/component/components-list';
|
25
|
-
import { LaneCheckoutOpts } from './lane.cmd';
|
26
|
-
export { Lane };
|
27
|
-
export type SnapsDistanceObj = {
|
28
|
-
onSource: string[];
|
29
|
-
onTarget: string[];
|
30
|
-
common?: string;
|
31
|
-
};
|
32
|
-
export type LaneResults = {
|
33
|
-
lanes: LaneData[];
|
34
|
-
currentLane?: string | null;
|
35
|
-
};
|
36
|
-
export type CreateLaneOptions = {
|
37
|
-
scope?: string;
|
38
|
-
alias?: string;
|
39
|
-
forkLaneNewScope?: boolean;
|
40
|
-
};
|
41
|
-
export type SwitchLaneOptions = {
|
42
|
-
alias?: string;
|
43
|
-
merge?: MergeStrategy;
|
44
|
-
workspaceOnly?: boolean;
|
45
|
-
pattern?: string;
|
46
|
-
skipDependencyInstallation?: boolean;
|
47
|
-
verbose?: boolean;
|
48
|
-
override?: boolean;
|
49
|
-
};
|
50
|
-
export type LaneComponentDiffStatus = {
|
51
|
-
componentId: ComponentID;
|
52
|
-
sourceHead: string;
|
53
|
-
targetHead?: string;
|
54
|
-
/**
|
55
|
-
* @deprecated
|
56
|
-
* use changes to get list of all the changes
|
57
|
-
*/
|
58
|
-
changeType?: ChangeType;
|
59
|
-
changes?: ChangeType[];
|
60
|
-
upToDate?: boolean;
|
61
|
-
snapsDistance?: SnapsDistanceObj;
|
62
|
-
unrelated?: boolean;
|
63
|
-
};
|
64
|
-
export type LaneDiffStatusOptions = {
|
65
|
-
skipChanges?: boolean;
|
66
|
-
};
|
67
|
-
export type LaneDiffStatus = {
|
68
|
-
source: LaneId;
|
69
|
-
target: LaneId;
|
70
|
-
componentsStatus: LaneComponentDiffStatus[];
|
71
|
-
};
|
72
|
-
export type MarkRemoveOnLaneResult = {
|
73
|
-
removedFromWs: ComponentID[];
|
74
|
-
markedRemoved: ComponentID[];
|
75
|
-
};
|
76
|
-
export type CreateLaneResult = {
|
77
|
-
laneId: LaneId;
|
78
|
-
hash: string;
|
79
|
-
alias?: string;
|
80
|
-
};
|
81
|
-
export declare class LanesMain {
|
82
|
-
readonly workspace: Workspace | undefined;
|
83
|
-
private scope;
|
84
|
-
private merging;
|
85
|
-
private componentAspect;
|
86
|
-
logger: Logger;
|
87
|
-
readonly importer: ImporterMain;
|
88
|
-
private exporter;
|
89
|
-
private componentCompare;
|
90
|
-
readonly componentWriter: ComponentWriterMain;
|
91
|
-
private remove;
|
92
|
-
readonly checkout: CheckoutMain;
|
93
|
-
constructor(workspace: Workspace | undefined, scope: ScopeMain, merging: MergingMain, componentAspect: ComponentMain, logger: Logger, importer: ImporterMain, exporter: ExportMain, componentCompare: ComponentCompareMain, componentWriter: ComponentWriterMain, remove: RemoveMain, checkout: CheckoutMain);
|
94
|
-
/**
|
95
|
-
* return the lane data without the deleted components.
|
96
|
-
* the deleted components are filtered out in legacyScope.lanes.getLanesData()
|
97
|
-
*/
|
98
|
-
getLanes({ name, remote, merged, showDefaultLane, notMerged, }: {
|
99
|
-
name?: string;
|
100
|
-
remote?: string;
|
101
|
-
merged?: boolean;
|
102
|
-
showDefaultLane?: boolean;
|
103
|
-
notMerged?: boolean;
|
104
|
-
}): Promise<LaneData[]>;
|
105
|
-
parseLaneId(idStr: string): Promise<LaneId>;
|
106
|
-
getLaneHistory(laneId: LaneId): Promise<LaneHistory>;
|
107
|
-
checkoutHistory(historyId: string, options?: LaneCheckoutOpts): Promise<import("@teambit/merging").ApplyVersionResults>;
|
108
|
-
revertHistory(historyId: string, options?: LaneCheckoutOpts): Promise<import("@teambit/merging").ApplyVersionResults>;
|
109
|
-
private getHistoryItemOfCurrentLane;
|
110
|
-
importLaneHistory(laneId: LaneId): Promise<void>;
|
111
|
-
getCurrentLaneName(): string | null;
|
112
|
-
getCurrentLaneNameOrAlias(): string | null;
|
113
|
-
getCurrentLaneId(): LaneId | null;
|
114
|
-
/**
|
115
|
-
* get the currently checked out lane object, if on main - return null.
|
116
|
-
*/
|
117
|
-
getCurrentLane(): Promise<Lane | null>;
|
118
|
-
getDefaultLaneId(): LaneId;
|
119
|
-
setCurrentLane(laneId: LaneId, alias?: string, exported?: boolean): void;
|
120
|
-
createLane(name: string, { scope, alias, forkLaneNewScope }?: CreateLaneOptions): Promise<CreateLaneResult>;
|
121
|
-
loadLane(id: LaneId): Promise<Lane | null>;
|
122
|
-
trackLane(localName: string, remoteScope: string, remoteName?: string): Promise<{
|
123
|
-
beforeTrackData?: TrackLane;
|
124
|
-
afterTrackData: TrackLane;
|
125
|
-
}>;
|
126
|
-
aliasLane(laneName: string, alias: string): Promise<{
|
127
|
-
laneId: LaneId;
|
128
|
-
}>;
|
129
|
-
changeScope(remoteScope: string, laneName?: string): Promise<{
|
130
|
-
remoteScopeBefore: string;
|
131
|
-
localName: string;
|
132
|
-
}>;
|
133
|
-
/**
|
134
|
-
* change a lane-name and if possible, export the lane to the remote
|
135
|
-
*/
|
136
|
-
rename(newName: string, laneName?: string): Promise<{
|
137
|
-
currentName: string;
|
138
|
-
}>;
|
139
|
-
exportLane(lane: Lane): Promise<void>;
|
140
|
-
importLaneObject(laneId: LaneId, persistIfNotExists?: boolean, includeLaneHistory?: boolean): Promise<Lane>;
|
141
|
-
/**
|
142
|
-
* get the head hash (snap) of main. return undefined if the component exists only on a lane and was never merged to main
|
143
|
-
*/
|
144
|
-
getHeadOnMain(componentId: ComponentID): Promise<string | undefined>;
|
145
|
-
/**
|
146
|
-
* fetch the lane object and its components from the remote.
|
147
|
-
* save the objects and the lane to the local scope.
|
148
|
-
* this method doesn't change anything in the workspace.
|
149
|
-
*/
|
150
|
-
fetchLaneWithItsComponents(laneId: LaneId): Promise<Lane>;
|
151
|
-
removeLanes(laneNames: string[], opts?: {
|
152
|
-
remote: boolean;
|
153
|
-
force: boolean;
|
154
|
-
}): Promise<string[]>;
|
155
|
-
/**
|
156
|
-
* when deleting a lane object, it is sent into the "trash" directory in the scope.
|
157
|
-
* this method restores it and put it back in the "objects" directory.
|
158
|
-
* as an argument, it needs a hash. the reason for not supporting lane-id is because the trash may have multiple
|
159
|
-
* lanes with the same lane-id but different hashes.
|
160
|
-
*/
|
161
|
-
restoreLane(laneHash: string): Promise<void>;
|
162
|
-
/**
|
163
|
-
* switch to a different local or remote lane.
|
164
|
-
* switching to a remote lane also imports and writes the components of that remote lane.
|
165
|
-
* by default, only the components existing on the workspace will be imported from that lane, unless the "getAll"
|
166
|
-
* flag is true.
|
167
|
-
*/
|
168
|
-
switchLanes(laneName: string, { alias, merge, pattern, workspaceOnly, skipDependencyInstallation }: SwitchLaneOptions): Promise<import("@teambit/merging").ApplyVersionResults>;
|
169
|
-
/**
|
170
|
-
* the values array may include zero to two values and will be processed as following:
|
171
|
-
* [] => diff between the current lane and default lane. (only inside workspace).
|
172
|
-
* [to] => diff between the current lane (or default-lane when in scope) and "to" lane.
|
173
|
-
* [from, to] => diff between "from" lane and "to" lane.
|
174
|
-
*/
|
175
|
-
getDiff(values: string[], diffOptions?: DiffOptions, pattern?: string): Promise<LaneDiffResults>;
|
176
|
-
getLaneComponentModels(lane: LaneData): Promise<Component[]>;
|
177
|
-
getLaneComponentIds(lane: LaneData): Promise<ComponentID[]>;
|
178
|
-
getLaneReadmeComponent(lane: LaneData): Promise<Component | undefined>;
|
179
|
-
removeLaneReadme(laneName?: string): Promise<{
|
180
|
-
result: boolean;
|
181
|
-
message?: string;
|
182
|
-
}>;
|
183
|
-
diffStatus(sourceLaneId: LaneId, targetLaneId?: LaneId, options?: LaneDiffStatusOptions): Promise<LaneDiffStatus>;
|
184
|
-
private componentDiffStatus;
|
185
|
-
componentDiffStatusOld(componentId: ComponentID, sourceHead: string, targetHead?: string, options?: LaneDiffStatusOptions): Promise<LaneComponentDiffStatus>;
|
186
|
-
private recreateNewLaneIfDeleted;
|
187
|
-
addLaneReadme(readmeComponentIdStr: string, laneName?: string): Promise<{
|
188
|
-
result: boolean;
|
189
|
-
message?: string;
|
190
|
-
}>;
|
191
|
-
/**
|
192
|
-
* if the local lane was forked from another lane, this gets the differences between the two.
|
193
|
-
* it also fetches the original lane from the remote to make sure the data is up to date.
|
194
|
-
*/
|
195
|
-
listUpdatesFromForked(componentsList: ComponentsList): Promise<DivergeDataPerId[]>;
|
196
|
-
/**
|
197
|
-
* default to remove all of them.
|
198
|
-
* returns true if the lane has changed
|
199
|
-
*/
|
200
|
-
removeUpdateDependents(laneId: LaneId, ids?: ComponentID[]): Promise<Boolean>;
|
201
|
-
private getLaneDataOfDefaultLane;
|
202
|
-
get createRoutePath(): string;
|
203
|
-
get deleteRoutePath(): string;
|
204
|
-
get restoreRoutePath(): string;
|
205
|
-
static slots: never[];
|
206
|
-
static dependencies: import("@teambit/harmony").Aspect[];
|
207
|
-
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
208
|
-
static provider([cli, scope, workspace, graphql, merging, component, loggerMain, importer, exporter, express, componentCompare, componentWriter, remove, checkout,]: [
|
209
|
-
CLIMain,
|
210
|
-
ScopeMain,
|
211
|
-
Workspace,
|
212
|
-
GraphqlMain,
|
213
|
-
MergingMain,
|
214
|
-
ComponentMain,
|
215
|
-
LoggerMain,
|
216
|
-
ImporterMain,
|
217
|
-
ExportMain,
|
218
|
-
ExpressMain,
|
219
|
-
ComponentCompareMain,
|
220
|
-
ComponentWriterMain,
|
221
|
-
RemoveMain,
|
222
|
-
CheckoutMain
|
223
|
-
]): Promise<LanesMain>;
|
224
|
-
}
|
225
|
-
export default LanesMain;
|
@@ -1,13 +0,0 @@
|
|
1
|
-
/// <reference types="express" />
|
2
|
-
import { Route, Verb, Request, Response } from '@teambit/express';
|
3
|
-
import { Logger } from '@teambit/logger';
|
4
|
-
import { LanesMain } from './lanes.main.runtime';
|
5
|
-
export declare class LanesRestoreRoute implements Route {
|
6
|
-
private lanes;
|
7
|
-
private logger;
|
8
|
-
constructor(lanes: LanesMain, logger: Logger);
|
9
|
-
method: string;
|
10
|
-
route: string;
|
11
|
-
verb: Verb;
|
12
|
-
middlewares: ((req: Request, res: Response) => Promise<import("express").Response<any, Record<string, any>>>)[];
|
13
|
-
}
|
package/dist/lanes.spec.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export {};
|