@teambit/workspace 1.0.226 → 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 +1 -1
- package/artifacts/preview/teambit_workspace_workspace-preview.js +1 -1
- package/artifacts/schema.json +568 -2434
- package/dist/{preview-1712632644937.js → preview-1712719054377.js} +2 -2
- package/package.json +29 -29
- package/tsconfig.json +67 -1
- package/dist/aspects-merger.d.ts +0 -58
- package/dist/bit-map.d.ts +0 -75
- package/dist/build-graph-from-fs.d.ts +0 -64
- package/dist/build-graph-ids-from-fs.d.ts +0 -48
- package/dist/capsule.cmd.d.ts +0 -81
- package/dist/component-config-file/component-config-file.d.ts +0 -34
- package/dist/component-config-file/exceptions/already-exists.d.ts +0 -4
- package/dist/component-config-file/exceptions/index.d.ts +0 -1
- package/dist/component-config-file/index.d.ts +0 -2
- package/dist/component-tree.widget.d.ts +0 -4
- package/dist/constants.d.ts +0 -1
- package/dist/eject-conf.cmd.d.ts +0 -20
- package/dist/envs-subcommands/envs-replace.cmd.d.ts +0 -19
- package/dist/envs-subcommands/envs-set.cmd.d.ts +0 -20
- package/dist/envs-subcommands/envs-unset.cmd.d.ts +0 -16
- package/dist/envs-subcommands/envs-update.cmd.d.ts +0 -19
- package/dist/events/index.d.ts +0 -3
- package/dist/events/on-component-add-event.d.ts +0 -14
- package/dist/events/on-component-change-event.d.ts +0 -14
- package/dist/events/on-component-removed-event.d.ts +0 -12
- package/dist/exceptions/incorrect-env-aspect.d.ts +0 -4
- package/dist/exceptions/merge-config-conflict.d.ts +0 -4
- package/dist/exceptions/outside-workspace.d.ts +0 -4
- package/dist/filter.d.ts +0 -27
- package/dist/index.d.ts +0 -20
- package/dist/merge-conflict-file.d.ts +0 -23
- package/dist/on-component-events.d.ts +0 -16
- package/dist/pattern.cmd.d.ts +0 -19
- package/dist/scope-subcommands/scope-set.cmd.d.ts +0 -16
- package/dist/types.d.ts +0 -65
- package/dist/ui/index.d.ts +0 -1
- package/dist/ui/workspace/default-component.d.ts +0 -7
- package/dist/ui/workspace/index.d.ts +0 -1
- package/dist/ui/workspace/use-workspace.d.ts +0 -32
- package/dist/ui/workspace/workspace-context.d.ts +0 -3
- package/dist/ui/workspace/workspace-model.d.ts +0 -68
- package/dist/ui/workspace/workspace-overview/index.d.ts +0 -1
- package/dist/ui/workspace/workspace-overview/link-plugin.d.ts +0 -3
- package/dist/ui/workspace/workspace-overview/workspace-overview.d.ts +0 -6
- package/dist/ui/workspace/workspace-provider.d.ts +0 -16
- package/dist/ui/workspace/workspace.d.ts +0 -14
- package/dist/use.cmd.d.ts +0 -19
- package/dist/workspace-aspects-loader.d.ts +0 -121
- package/dist/workspace-component/comp-files.d.ts +0 -22
- package/dist/workspace-component/component-status-loader.d.ts +0 -38
- package/dist/workspace-component/component-status.d.ts +0 -75
- package/dist/workspace-component/index.d.ts +0 -2
- package/dist/workspace-component/workspace-component-loader.d.ts +0 -100
- package/dist/workspace-component/workspace-component.d.ts +0 -49
- package/dist/workspace-section.d.ts +0 -0
- package/dist/workspace.aspect.d.ts +0 -3
- package/dist/workspace.composition.d.ts +0 -1
- package/dist/workspace.d.ts +0 -543
- package/dist/workspace.graphql.d.ts +0 -44
- package/dist/workspace.main.runtime.d.ts +0 -64
- package/dist/workspace.ui-root.d.ts +0 -43
- package/dist/workspace.ui.drawer.d.ts +0 -13
- package/dist/workspace.ui.runtime.d.ts +0 -99
package/dist/workspace.d.ts
DELETED
|
@@ -1,543 +0,0 @@
|
|
|
1
|
-
import { Graph } from '@teambit/graph.cleargraph';
|
|
2
|
-
import type { PubsubMain } from '@teambit/pubsub';
|
|
3
|
-
import { IssuesList } from '@teambit/component-issues';
|
|
4
|
-
import type { AspectLoaderMain, AspectDefinition } from '@teambit/aspect-loader';
|
|
5
|
-
import { ComponentMain, Component, ComponentFactory, InvalidComponent, ResolveAspectsOptions } from '@teambit/component';
|
|
6
|
-
import { ComponentScopeDirMap } from '@teambit/config';
|
|
7
|
-
import { DependencyResolverMain, DependencyList } from '@teambit/dependency-resolver';
|
|
8
|
-
import { EnvsMain } from '@teambit/envs';
|
|
9
|
-
import { GraphqlMain } from '@teambit/graphql';
|
|
10
|
-
import { Harmony } from '@teambit/harmony';
|
|
11
|
-
import { Logger } from '@teambit/logger';
|
|
12
|
-
import type { ScopeMain } from '@teambit/scope';
|
|
13
|
-
import type { VariantsMain } from '@teambit/variants';
|
|
14
|
-
import { ComponentID, ComponentIdList } from '@teambit/component-id';
|
|
15
|
-
import { BitId } from '@teambit/legacy-bit-id';
|
|
16
|
-
import { LaneId } from '@teambit/lane-id';
|
|
17
|
-
import { Consumer } from '@teambit/legacy/dist/consumer';
|
|
18
|
-
import { GetBitMapComponentOptions } from '@teambit/legacy/dist/consumer/bit-map/bit-map';
|
|
19
|
-
import ComponentsList from '@teambit/legacy/dist/consumer/component/components-list';
|
|
20
|
-
import { ExtensionDataList } from '@teambit/legacy/dist/consumer/config/extension-data';
|
|
21
|
-
import { PathOsBased, PathOsBasedRelative, PathOsBasedAbsolute } from '@teambit/legacy/dist/utils/path';
|
|
22
|
-
import { CompIdGraph, DepEdgeType } from '@teambit/graph';
|
|
23
|
-
import ConsumerComponent from '@teambit/legacy/dist/consumer/component';
|
|
24
|
-
import { WatchOptions } from '@teambit/watcher';
|
|
25
|
-
import type { ComponentLog } from '@teambit/legacy/dist/scope/models/model-component';
|
|
26
|
-
import { SourceFile } from '@teambit/legacy/dist/consumer/component/sources';
|
|
27
|
-
import { Lane } from '@teambit/legacy/dist/scope/models';
|
|
28
|
-
import { GlobalConfigMain } from '@teambit/global-config';
|
|
29
|
-
import { ComponentConfigFile } from './component-config-file';
|
|
30
|
-
import { OnComponentAdd, OnComponentChange, OnComponentEventResult, OnComponentLoad, OnComponentRemove } from './on-component-events';
|
|
31
|
-
import { WorkspaceExtConfig } from './types';
|
|
32
|
-
import { ComponentStatus } from './workspace-component/component-status';
|
|
33
|
-
import { OnAspectsResolve, OnAspectsResolveSlot, OnBitmapChange, OnBitmapChangeSlot, OnWorkspaceConfigChange, OnWorkspaceConfigChangeSlot, OnComponentAddSlot, OnComponentChangeSlot, OnComponentLoadSlot, OnComponentRemoveSlot, OnRootAspectAdded, OnRootAspectAddedSlot } from './workspace.main.runtime';
|
|
34
|
-
import { ComponentLoadOptions, WorkspaceComponentLoader } from './workspace-component/workspace-component-loader';
|
|
35
|
-
import { ShouldLoadFunc } from './build-graph-from-fs';
|
|
36
|
-
import { BitMap } from './bit-map';
|
|
37
|
-
import type { MergeOptions as BitmapMergeOptions } from './bit-map';
|
|
38
|
-
import { AspectPackage, GetConfiguredUserAspectsPackagesOptions, WorkspaceAspectsLoader, WorkspaceLoadAspectsOptions } from './workspace-aspects-loader';
|
|
39
|
-
import { MergeConflictFile } from './merge-conflict-file';
|
|
40
|
-
import { CompFiles } from './workspace-component/comp-files';
|
|
41
|
-
import { Filter } from './filter';
|
|
42
|
-
import { ComponentStatusLegacy, ComponentStatusResult } from './workspace-component/component-status-loader';
|
|
43
|
-
export type EjectConfResult = {
|
|
44
|
-
configPath: string;
|
|
45
|
-
};
|
|
46
|
-
export type ClearCacheOptions = {
|
|
47
|
-
skipClearFailedToLoadEnvs?: boolean;
|
|
48
|
-
};
|
|
49
|
-
export declare const AspectSpecificField = "__specific";
|
|
50
|
-
export declare const ComponentAdded = "componentAdded";
|
|
51
|
-
export declare const ComponentChanged = "componentChanged";
|
|
52
|
-
export declare const ComponentRemoved = "componentRemoved";
|
|
53
|
-
export interface EjectConfOptions {
|
|
54
|
-
propagate?: boolean;
|
|
55
|
-
override?: boolean;
|
|
56
|
-
}
|
|
57
|
-
export type ComponentExtensionsOpts = {
|
|
58
|
-
loadExtensions?: boolean;
|
|
59
|
-
};
|
|
60
|
-
export type ExtensionsOrigin = 'BitmapFile' | 'ModelSpecific' | 'ModelNonSpecific' | 'ConfigMerge' | 'WorkspaceVariants' | 'ComponentJsonFile' | 'FinalAfterMerge';
|
|
61
|
-
/**
|
|
62
|
-
* API of the Bit Workspace
|
|
63
|
-
*/
|
|
64
|
-
export declare class Workspace implements ComponentFactory {
|
|
65
|
-
/**
|
|
66
|
-
* private pubsub.
|
|
67
|
-
*/
|
|
68
|
-
private pubsub;
|
|
69
|
-
private config;
|
|
70
|
-
/**
|
|
71
|
-
* private access to the legacy consumer instance.
|
|
72
|
-
*/
|
|
73
|
-
consumer: Consumer;
|
|
74
|
-
/**
|
|
75
|
-
* access to the workspace `Scope` instance
|
|
76
|
-
*/
|
|
77
|
-
readonly scope: ScopeMain;
|
|
78
|
-
/**
|
|
79
|
-
* access to the `ComponentProvider` instance
|
|
80
|
-
*/
|
|
81
|
-
private componentAspect;
|
|
82
|
-
private dependencyResolver;
|
|
83
|
-
readonly variants: VariantsMain;
|
|
84
|
-
private aspectLoader;
|
|
85
|
-
readonly logger: Logger;
|
|
86
|
-
private componentList;
|
|
87
|
-
/**
|
|
88
|
-
* private reference to the instance of Harmony.
|
|
89
|
-
*/
|
|
90
|
-
private harmony;
|
|
91
|
-
/**
|
|
92
|
-
* on component load slot.
|
|
93
|
-
*/
|
|
94
|
-
onComponentLoadSlot: OnComponentLoadSlot;
|
|
95
|
-
/**
|
|
96
|
-
* on component change slot.
|
|
97
|
-
*/
|
|
98
|
-
private onComponentChangeSlot;
|
|
99
|
-
readonly envs: EnvsMain;
|
|
100
|
-
readonly globalConfig: GlobalConfigMain;
|
|
101
|
-
/**
|
|
102
|
-
* on component add slot.
|
|
103
|
-
*/
|
|
104
|
-
private onComponentAddSlot;
|
|
105
|
-
private onComponentRemoveSlot;
|
|
106
|
-
private onAspectsResolveSlot;
|
|
107
|
-
private onRootAspectAddedSlot;
|
|
108
|
-
private graphql;
|
|
109
|
-
private onBitmapChangeSlot;
|
|
110
|
-
private onWorkspaceConfigChangeSlot;
|
|
111
|
-
private warnedAboutMisconfiguredEnvs;
|
|
112
|
-
priority: boolean;
|
|
113
|
-
owner?: string;
|
|
114
|
-
componentsScopeDirsMap: ComponentScopeDirMap;
|
|
115
|
-
componentLoader: WorkspaceComponentLoader;
|
|
116
|
-
private componentStatusLoader;
|
|
117
|
-
bitMap: BitMap;
|
|
118
|
-
/**
|
|
119
|
-
* Indicate that we are now running installation process
|
|
120
|
-
* This is important to know to ignore missing modules across different places
|
|
121
|
-
*/
|
|
122
|
-
inInstallContext: boolean;
|
|
123
|
-
private componentLoadedSelfAsAspects;
|
|
124
|
-
private aspectsMerger;
|
|
125
|
-
private componentDefaultScopeFromComponentDirAndNameWithoutConfigFileMemoized;
|
|
126
|
-
/**
|
|
127
|
-
* Components paths are calculated from the component package names of the workspace
|
|
128
|
-
* They are used in webpack configuration to only track changes from these paths inside `node_modules`
|
|
129
|
-
*/
|
|
130
|
-
private componentPathsRegExps;
|
|
131
|
-
localAspects: string[];
|
|
132
|
-
filter: Filter;
|
|
133
|
-
constructor(
|
|
134
|
-
/**
|
|
135
|
-
* private pubsub.
|
|
136
|
-
*/
|
|
137
|
-
pubsub: PubsubMain, config: WorkspaceExtConfig,
|
|
138
|
-
/**
|
|
139
|
-
* private access to the legacy consumer instance.
|
|
140
|
-
*/
|
|
141
|
-
consumer: Consumer,
|
|
142
|
-
/**
|
|
143
|
-
* access to the workspace `Scope` instance
|
|
144
|
-
*/
|
|
145
|
-
scope: ScopeMain,
|
|
146
|
-
/**
|
|
147
|
-
* access to the `ComponentProvider` instance
|
|
148
|
-
*/
|
|
149
|
-
componentAspect: ComponentMain, dependencyResolver: DependencyResolverMain, variants: VariantsMain, aspectLoader: AspectLoaderMain, logger: Logger, componentList: ComponentsList,
|
|
150
|
-
/**
|
|
151
|
-
* private reference to the instance of Harmony.
|
|
152
|
-
*/
|
|
153
|
-
harmony: Harmony,
|
|
154
|
-
/**
|
|
155
|
-
* on component load slot.
|
|
156
|
-
*/
|
|
157
|
-
onComponentLoadSlot: OnComponentLoadSlot,
|
|
158
|
-
/**
|
|
159
|
-
* on component change slot.
|
|
160
|
-
*/
|
|
161
|
-
onComponentChangeSlot: OnComponentChangeSlot, envs: EnvsMain, globalConfig: GlobalConfigMain,
|
|
162
|
-
/**
|
|
163
|
-
* on component add slot.
|
|
164
|
-
*/
|
|
165
|
-
onComponentAddSlot: OnComponentAddSlot, onComponentRemoveSlot: OnComponentRemoveSlot, onAspectsResolveSlot: OnAspectsResolveSlot, onRootAspectAddedSlot: OnRootAspectAddedSlot, graphql: GraphqlMain, onBitmapChangeSlot: OnBitmapChangeSlot, onWorkspaceConfigChangeSlot: OnWorkspaceConfigChangeSlot);
|
|
166
|
-
private validateConfig;
|
|
167
|
-
/**
|
|
168
|
-
* root path of the Workspace.
|
|
169
|
-
*/
|
|
170
|
-
get path(): string;
|
|
171
|
-
/** get the `node_modules` folder of this workspace */
|
|
172
|
-
private get modulesPath();
|
|
173
|
-
get isLegacy(): boolean;
|
|
174
|
-
registerOnComponentLoad(loadFn: OnComponentLoad): this;
|
|
175
|
-
registerOnComponentChange(onComponentChangeFunc: OnComponentChange): this;
|
|
176
|
-
registerOnComponentAdd(onComponentAddFunc: OnComponentAdd): this;
|
|
177
|
-
registerOnComponentRemove(onComponentRemoveFunc: OnComponentRemove): this;
|
|
178
|
-
registerOnBitmapChange(OnBitmapChangeFunc: OnBitmapChange): this;
|
|
179
|
-
registerOnWorkspaceConfigChange(onWorkspaceConfigChangeFunc: OnWorkspaceConfigChange): void;
|
|
180
|
-
registerOnAspectsResolve(onAspectsResolveFunc: OnAspectsResolve): this;
|
|
181
|
-
registerOnRootAspectAdded(onRootAspectAddedFunc: OnRootAspectAdded): this;
|
|
182
|
-
/**
|
|
183
|
-
* name of the workspace as configured in either `workspace.json`.
|
|
184
|
-
* defaults to workspace root directory name.
|
|
185
|
-
*/
|
|
186
|
-
get name(): string;
|
|
187
|
-
get icon(): string;
|
|
188
|
-
listAutoTagPendingComponentIds(): Promise<ComponentID[]>;
|
|
189
|
-
hasModifiedDependencies(component: Component): Promise<boolean>;
|
|
190
|
-
/**
|
|
191
|
-
* get Component issues
|
|
192
|
-
*/
|
|
193
|
-
getComponentIssues(component: Component): IssuesList | null;
|
|
194
|
-
/**
|
|
195
|
-
* provides status of all components in the workspace.
|
|
196
|
-
*/
|
|
197
|
-
getComponentStatus(component: Component): Promise<ComponentStatus>;
|
|
198
|
-
/**
|
|
199
|
-
* list all workspace components.
|
|
200
|
-
*/
|
|
201
|
-
list(filter?: {
|
|
202
|
-
offset: number;
|
|
203
|
-
limit: number;
|
|
204
|
-
}, loadOpts?: ComponentLoadOptions): Promise<Component[]>;
|
|
205
|
-
listWithInvalid(loadOpts?: ComponentLoadOptions): Promise<{
|
|
206
|
-
components: Component[];
|
|
207
|
-
invalidComponents: InvalidComponent[];
|
|
208
|
-
}>;
|
|
209
|
-
/**
|
|
210
|
-
* list all invalid components.
|
|
211
|
-
* (see the invalid criteria in ConsumerComponent.isComponentInvalidByErrorType())
|
|
212
|
-
*/
|
|
213
|
-
listInvalid(): Promise<InvalidComponent[]>;
|
|
214
|
-
/**
|
|
215
|
-
* get ids of all workspace components.
|
|
216
|
-
*/
|
|
217
|
-
listIds(): ComponentIdList;
|
|
218
|
-
listIdsIncludeRemoved(): ComponentIdList;
|
|
219
|
-
/**
|
|
220
|
-
* Check if a specific id exist in the workspace
|
|
221
|
-
* @param componentId
|
|
222
|
-
*/
|
|
223
|
-
hasId(componentId: ComponentID): Promise<boolean>;
|
|
224
|
-
/**
|
|
225
|
-
* given component-ids, return the ones that are part of the workspace
|
|
226
|
-
*/
|
|
227
|
-
filterIds(ids: ComponentID[]): Promise<ComponentID[]>;
|
|
228
|
-
/**
|
|
229
|
-
* whether or not a workspace has a component with the given name
|
|
230
|
-
*/
|
|
231
|
-
hasName(name: string): Promise<boolean>;
|
|
232
|
-
/**
|
|
233
|
-
* Check if a specific id exist in the workspace or in the scope
|
|
234
|
-
* @param componentId
|
|
235
|
-
*/
|
|
236
|
-
hasIdNested(componentId: ComponentID, includeCache?: boolean): Promise<boolean>;
|
|
237
|
-
/**
|
|
238
|
-
* list all modified components in the workspace.
|
|
239
|
-
*/
|
|
240
|
-
modified(loadOpts?: ComponentLoadOptions): Promise<Component[]>;
|
|
241
|
-
/**
|
|
242
|
-
* list all new components in the workspace.
|
|
243
|
-
*/
|
|
244
|
-
newComponents(): Promise<Component[]>;
|
|
245
|
-
newComponentIds(): Promise<ComponentID[]>;
|
|
246
|
-
locallyDeletedIds(): Promise<ComponentID[]>;
|
|
247
|
-
duringMergeIds(): Promise<ComponentID[]>;
|
|
248
|
-
/**
|
|
249
|
-
* @deprecated use `listIds()` instead.
|
|
250
|
-
* get all workspace component-ids
|
|
251
|
-
*/
|
|
252
|
-
getAllComponentIds(): ComponentID[];
|
|
253
|
-
listTagPendingIds(): Promise<ComponentID[]>;
|
|
254
|
-
/**
|
|
255
|
-
* list all components that can be tagged. (e.g. when tagging/snapping with --unmodified).
|
|
256
|
-
* which are all components in the workspace, include locally deleted components.
|
|
257
|
-
*/
|
|
258
|
-
listPotentialTagIds(): Promise<ComponentID[]>;
|
|
259
|
-
getNewAndModifiedIds(): Promise<ComponentID[]>;
|
|
260
|
-
newAndModified(): Promise<Component[]>;
|
|
261
|
-
getLogs(id: ComponentID, shortHash?: boolean, startsFrom?: string): Promise<ComponentLog[]>;
|
|
262
|
-
getGraph(ids?: ComponentID[], shouldThrowOnMissingDep?: boolean): Promise<Graph<Component, string>>;
|
|
263
|
-
getGraphIds(ids?: ComponentID[], shouldThrowOnMissingDep?: boolean): Promise<CompIdGraph>;
|
|
264
|
-
getUnavailableOnMainComponents(): Promise<ComponentID[]>;
|
|
265
|
-
getDependencies(component: Component): DependencyList;
|
|
266
|
-
getSavedGraphOfComponentIfExist(component: Component): Promise<Graph<ComponentID, DepEdgeType> | null>;
|
|
267
|
-
/**
|
|
268
|
-
* given component ids, find their dependents in the workspace
|
|
269
|
-
*/
|
|
270
|
-
getDependentsIds(ids: ComponentID[], filterOutNowWorkspaceIds?: boolean): Promise<ComponentID[]>;
|
|
271
|
-
createAspectList(extensionDataList: ExtensionDataList): Promise<import("@teambit/component").AspectList>;
|
|
272
|
-
private extensionDataEntryToAspectEntry;
|
|
273
|
-
/**
|
|
274
|
-
* this is not the complete legacy component (ConsumerComponent), it's missing dependencies and hooks from Harmony
|
|
275
|
-
* are skipped. do not trust the data you get from this method unless you know what you're doing.
|
|
276
|
-
*/
|
|
277
|
-
getLegacyMinimal(id: ComponentID): Promise<ConsumerComponent | undefined>;
|
|
278
|
-
getFilesModification(id: ComponentID): Promise<CompFiles>;
|
|
279
|
-
/**
|
|
280
|
-
* get a component from workspace
|
|
281
|
-
* @param id component ID
|
|
282
|
-
*/
|
|
283
|
-
get(componentId: ComponentID, legacyComponent?: ConsumerComponent, useCache?: boolean, storeInCache?: boolean, loadOpts?: ComponentLoadOptions): Promise<Component>;
|
|
284
|
-
getConfiguredUserAspectsPackages(options: GetConfiguredUserAspectsPackagesOptions): Promise<AspectPackage[]>;
|
|
285
|
-
clearCache(options?: ClearCacheOptions): Promise<void>;
|
|
286
|
-
clearAllComponentsCache(): void;
|
|
287
|
-
clearComponentCache(id: ComponentID): void;
|
|
288
|
-
warmCache(): Promise<void>;
|
|
289
|
-
cleanFromConfig(ids: ComponentID[]): Promise<void>;
|
|
290
|
-
triggerOnComponentChange(id: ComponentID, files: PathOsBasedAbsolute[], removedFiles: PathOsBasedAbsolute[], watchOpts: WatchOptions): Promise<OnComponentEventResult[]>;
|
|
291
|
-
triggerOnComponentAdd(id: ComponentID, watchOpts: WatchOptions): Promise<OnComponentEventResult[]>;
|
|
292
|
-
triggerOnComponentRemove(id: ComponentID): Promise<OnComponentEventResult[]>;
|
|
293
|
-
triggerOnBitmapChange(): Promise<void>;
|
|
294
|
-
/**
|
|
295
|
-
* the purpose is mostly to reload the workspace config when it changes, so entries like "defaultScope" are updated.
|
|
296
|
-
* it also updates the DependencyResolver config. I couldn't find a good way to update all aspects in workspace.jsonc.
|
|
297
|
-
*/
|
|
298
|
-
triggerOnWorkspaceConfigChange(): Promise<void>;
|
|
299
|
-
getState(id: ComponentID, hash: string): Promise<import("@teambit/component").State>;
|
|
300
|
-
getSnap(id: ComponentID, hash: string): Promise<import("@teambit/component").Snap>;
|
|
301
|
-
getCurrentLaneId(): LaneId;
|
|
302
|
-
getCurrentLaneObject(): Promise<Lane | null>;
|
|
303
|
-
isOnMain(): boolean;
|
|
304
|
-
isOnLane(): boolean;
|
|
305
|
-
/**
|
|
306
|
-
* if checked out to a lane and the lane exists in the remote,
|
|
307
|
-
* return the remote lane. otherwise, return null.
|
|
308
|
-
*/
|
|
309
|
-
getCurrentRemoteLane(): Promise<Lane | null>;
|
|
310
|
-
getDefaultExtensions(): ExtensionDataList;
|
|
311
|
-
ejectMultipleConfigs(ids: ComponentID[], options: EjectConfOptions): Promise<EjectConfResult[]>;
|
|
312
|
-
ejectConfig(id: ComponentID, options: EjectConfOptions): Promise<EjectConfResult>;
|
|
313
|
-
getExtensionsFromScopeAndSpecific(id: ComponentID): Promise<ExtensionDataList>;
|
|
314
|
-
/**
|
|
315
|
-
* @deprecated use `this.idsByPattern` instead for consistency. also, it supports negation and list of patterns.
|
|
316
|
-
*
|
|
317
|
-
* load components into the workspace through a variants pattern.
|
|
318
|
-
* @param pattern variants.
|
|
319
|
-
* @param scope scope name.
|
|
320
|
-
*/
|
|
321
|
-
byPattern(pattern: string, scope?: string): Promise<Component[]>;
|
|
322
|
-
hasPattern(strArr: string[]): boolean;
|
|
323
|
-
isPattern(str: string): boolean;
|
|
324
|
-
/**
|
|
325
|
-
* get component-ids matching the given pattern. a pattern can have multiple patterns separated by a comma.
|
|
326
|
-
* it supports negate (!) character to exclude ids.
|
|
327
|
-
*/
|
|
328
|
-
idsByPattern(pattern: string, throwForNoMatch?: boolean, opts?: {
|
|
329
|
-
includeDeleted?: boolean;
|
|
330
|
-
}): Promise<ComponentID[]>;
|
|
331
|
-
filterIdsFromPoolIdsByPattern(pattern: string, ids: ComponentID[], throwForNoMatch?: boolean): Promise<ComponentID[]>;
|
|
332
|
-
/**
|
|
333
|
-
* useful for workspace commands, such as `bit build`, `bit compile`.
|
|
334
|
-
* by default, it should be running on new and modified components.
|
|
335
|
-
* a user can specify `--all` to run on all components or specify a pattern to limit to specific components.
|
|
336
|
-
* some commands such as build/test needs to run also on the dependents.
|
|
337
|
-
*/
|
|
338
|
-
getComponentsByUserInput(all?: boolean, pattern?: string, includeDependents?: boolean): Promise<Component[]>;
|
|
339
|
-
getComponentsUsingEnv(env: string, ignoreVersion?: boolean, throwIfNotFound?: boolean): Promise<Component[]>;
|
|
340
|
-
getMany(ids: Array<ComponentID>, loadOpts?: ComponentLoadOptions, throwOnFailure?: boolean): Promise<Component[]>;
|
|
341
|
-
getManyByLegacy(components: ConsumerComponent[], loadOpts?: ComponentLoadOptions): Promise<Component[]>;
|
|
342
|
-
/**
|
|
343
|
-
* don't throw an error if the component was not found, simply return undefined.
|
|
344
|
-
*/
|
|
345
|
-
getIfExist(componentId: ComponentID): Promise<Component | undefined>;
|
|
346
|
-
/**
|
|
347
|
-
* whether a component exists in the workspace
|
|
348
|
-
*/
|
|
349
|
-
exists(componentId: ComponentID, opts?: {
|
|
350
|
-
includeDeleted?: boolean;
|
|
351
|
-
}): boolean;
|
|
352
|
-
getIdIfExist(componentId: ComponentID): ComponentID | undefined;
|
|
353
|
-
mergeBitmaps(bitmapContent: string, otherBitmapContent: string, opts?: BitmapMergeOptions): string;
|
|
354
|
-
/**
|
|
355
|
-
* This will make sure to fetch the objects prior to load them
|
|
356
|
-
* do not use it if you are not sure you need it.
|
|
357
|
-
* It will influence the performance
|
|
358
|
-
* currently it used only for get many of aspects
|
|
359
|
-
* @param ids
|
|
360
|
-
*/
|
|
361
|
-
importAndGetMany(ids: Array<ComponentID>, reason?: string, loadOpts?: ComponentLoadOptions, throwOnError?: boolean): Promise<Component[]>;
|
|
362
|
-
importCurrentLaneIfMissing(): Promise<Lane | undefined>;
|
|
363
|
-
use(aspectIdStr: string): Promise<string>;
|
|
364
|
-
write(component: Component, rootPath?: string): Promise<void>;
|
|
365
|
-
/**
|
|
366
|
-
* @todo: the return path here is Linux when asking for relative and os-based when asking for absolute. fix this to be consistent.
|
|
367
|
-
*
|
|
368
|
-
* Get the component root dir in the file system (relative to workspace or full)
|
|
369
|
-
* @param componentId
|
|
370
|
-
* @param relative return the path relative to the workspace or full path
|
|
371
|
-
*/
|
|
372
|
-
componentDir(componentId: ComponentID, bitMapOptions?: GetBitMapComponentOptions, options?: {
|
|
373
|
-
relative: boolean;
|
|
374
|
-
}): PathOsBased;
|
|
375
|
-
/**
|
|
376
|
-
* component's files in the workspace are symlinked to the node_modules, and a package.json file is generated on that
|
|
377
|
-
* package directory to simulate a valid node package.
|
|
378
|
-
* @returns the package directory inside the node_module.
|
|
379
|
-
* by default the absolute path, unless `options.relative` was set
|
|
380
|
-
*/
|
|
381
|
-
componentPackageDir(component: Component, options?: {
|
|
382
|
-
relative: boolean;
|
|
383
|
-
}): string;
|
|
384
|
-
componentPackageName(component: Component): string;
|
|
385
|
-
private componentDirFromLegacyId;
|
|
386
|
-
componentDirToAbsolute(relativeComponentDir: PathOsBasedRelative): PathOsBasedAbsolute;
|
|
387
|
-
componentDefaultScope(componentId: ComponentID): Promise<string | undefined>;
|
|
388
|
-
componentDefaultScopeFromComponentDirAndName(relativeComponentDir: PathOsBasedRelative, name: string): Promise<string | undefined>;
|
|
389
|
-
get defaultScope(): string;
|
|
390
|
-
private componentDefaultScopeFromComponentDirAndNameWithoutConfigFile;
|
|
391
|
-
/**
|
|
392
|
-
* Calculate the component config based on:
|
|
393
|
-
* the config property in the .bitmap file
|
|
394
|
-
* the component.json file in the component folder
|
|
395
|
-
* matching pattern in the variants config
|
|
396
|
-
* defaults extensions from workspace config
|
|
397
|
-
* extensions from the model.
|
|
398
|
-
*/
|
|
399
|
-
componentExtensions(componentId: ComponentID, componentFromScope?: Component, excludeOrigins?: ExtensionsOrigin[], opts?: ComponentExtensionsOpts): Promise<{
|
|
400
|
-
extensions: ExtensionDataList;
|
|
401
|
-
beforeMerge: Array<{
|
|
402
|
-
extensions: ExtensionDataList;
|
|
403
|
-
origin: ExtensionsOrigin;
|
|
404
|
-
extraData: any;
|
|
405
|
-
}>;
|
|
406
|
-
errors?: Error[];
|
|
407
|
-
}>;
|
|
408
|
-
warnAboutMisconfiguredEnv(envId: string): Promise<void>;
|
|
409
|
-
getConfigMergeFilePath(): string;
|
|
410
|
-
getConflictMergeFile(): MergeConflictFile;
|
|
411
|
-
getDepsDataOfMergeConfig(id: ComponentID): Record<string, any> | undefined;
|
|
412
|
-
/**
|
|
413
|
-
* @deprecated
|
|
414
|
-
* the workspace.jsonc conflicts are not written to the config-merge file anymore.
|
|
415
|
-
* see https://github.com/teambit/bit/pull/8393 for more details.
|
|
416
|
-
*/
|
|
417
|
-
getWorkspaceJsonConflictFromMergeConfig(): {
|
|
418
|
-
data?: Record<string, any>;
|
|
419
|
-
conflict: boolean;
|
|
420
|
-
};
|
|
421
|
-
getWorkspaceIssues(): Error[];
|
|
422
|
-
listComponentsDuringMerge(): Promise<ComponentID[]>;
|
|
423
|
-
getUnmergedComponent(componentId: ComponentID): Promise<Component | undefined>;
|
|
424
|
-
isModified(component: Component): Promise<boolean>;
|
|
425
|
-
isModifiedOrNew(component: Component): Promise<boolean>;
|
|
426
|
-
isExported(id: ComponentID): boolean;
|
|
427
|
-
getExportedFrom(ids: ComponentID[]): ComponentID[];
|
|
428
|
-
/**
|
|
429
|
-
* filter the given component-ids and set default-scope only to the new ones.
|
|
430
|
-
* returns the affected components.
|
|
431
|
-
*/
|
|
432
|
-
setDefaultScopeToComponents(componentIds: ComponentID[], scopeName: string): Promise<ComponentID[]>;
|
|
433
|
-
/**
|
|
434
|
-
* @param scopeName
|
|
435
|
-
* @param includeComponents whether to update new components in the workspace to use the new default-scope
|
|
436
|
-
* this is relevant only for new components that were using the previous default-scope
|
|
437
|
-
*/
|
|
438
|
-
setDefaultScope(scopeName: string, includeComponents?: boolean): Promise<void>;
|
|
439
|
-
addSpecificComponentConfig(id: ComponentID, aspectId: string, config?: Record<string, any>, { shouldMergeWithExisting, shouldMergeWithPrevious, }?: {
|
|
440
|
-
shouldMergeWithExisting?: boolean;
|
|
441
|
-
/**
|
|
442
|
-
* relevant only when writing to .bitmap.
|
|
443
|
-
* eject config of the given aspect-id, so then it won't override previous config. (see "adding prod dep, tagging then adding devDep" e2e-test)
|
|
444
|
-
*/
|
|
445
|
-
shouldMergeWithPrevious?: boolean;
|
|
446
|
-
}): Promise<void>;
|
|
447
|
-
removeSpecificComponentConfig(id: ComponentID, aspectId: string, markWithMinusIfNotExist?: boolean): Promise<void>;
|
|
448
|
-
getAspectIdFromConfig(componentId: ComponentID, aspectIdStr: string, ignoreAspectVersion?: boolean): Promise<string | undefined>;
|
|
449
|
-
getSpecificComponentConfig(id: ComponentID, aspectId: string): Promise<any>;
|
|
450
|
-
private isVendorComponentByComponentDir;
|
|
451
|
-
/**
|
|
452
|
-
* return the component config from its folder (component.json)
|
|
453
|
-
* @param componentId
|
|
454
|
-
*/
|
|
455
|
-
componentConfigFile(id: ComponentID): Promise<ComponentConfigFile | undefined>;
|
|
456
|
-
/**
|
|
457
|
-
* @param componentPath can be relative or absolute. supports Linux and Windows
|
|
458
|
-
*/
|
|
459
|
-
getComponentIdByPath(componentPath: PathOsBased): Promise<ComponentID | undefined>;
|
|
460
|
-
private componentConfigFileFromComponentDirAndName;
|
|
461
|
-
/**
|
|
462
|
-
* load aspects from the workspace and if not exists in the workspace, load from the scope.
|
|
463
|
-
* keep in mind that the graph may have circles.
|
|
464
|
-
*/
|
|
465
|
-
loadAspects(ids?: string[], throwOnError?: boolean, neededFor?: string, opts?: WorkspaceLoadAspectsOptions): Promise<string[]>;
|
|
466
|
-
loadComponentsExtensions(extensions: ExtensionDataList, originatedFrom?: ComponentID, opts?: WorkspaceLoadAspectsOptions): Promise<void>;
|
|
467
|
-
/**
|
|
468
|
-
* returns one graph that includes all dependencies types. each edge has a label of the dependency
|
|
469
|
-
* type. the nodes content is the Component object.
|
|
470
|
-
*/
|
|
471
|
-
buildOneGraphForComponents(ids: ComponentID[], ignoreIds?: string[], shouldLoadFunc?: ShouldLoadFunc, shouldThrowOnMissingDep?: boolean): Promise<Graph<Component, string>>;
|
|
472
|
-
resolveAspects(runtimeName?: string, componentIds?: ComponentID[], opts?: ResolveAspectsOptions): Promise<AspectDefinition[]>;
|
|
473
|
-
/**
|
|
474
|
-
* Provides a cache folder, unique per key.
|
|
475
|
-
* Return value may be undefined, if workspace folder is unconventional (bare-scope, no node_modules, etc)
|
|
476
|
-
*/
|
|
477
|
-
getTempDir(id: string): string;
|
|
478
|
-
getWorkspaceAspectsLoader(): WorkspaceAspectsLoader;
|
|
479
|
-
getCapsulePath(): string;
|
|
480
|
-
shouldUseHashForCapsules(): boolean;
|
|
481
|
-
/**
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
/**
|
|
485
|
-
* this should be rarely in-use.
|
|
486
|
-
* it's currently used by watch extension as a quick workaround to load .bitmap and the components
|
|
487
|
-
*/
|
|
488
|
-
_reloadConsumer(): Promise<void>;
|
|
489
|
-
getComponentPackagePath(component: Component): Promise<string>;
|
|
490
|
-
get defaultDirectory(): string;
|
|
491
|
-
get legacyDefaultDirectory(): string;
|
|
492
|
-
resolveComponentIdFromPackageName(packageName: string): Promise<ComponentID>;
|
|
493
|
-
/**
|
|
494
|
-
* Transform the id to ComponentId and get the exact id as appear in bitmap
|
|
495
|
-
*/
|
|
496
|
-
resolveComponentId(id: string | BitId | ComponentID): Promise<ComponentID>;
|
|
497
|
-
resolveMultipleComponentIds(ids: Array<string | ComponentID | ComponentID>): Promise<ComponentID[]>;
|
|
498
|
-
/**
|
|
499
|
-
* component-id coming from Scope don't have the defaultScope, the legacyComponentId.scope is always populated.
|
|
500
|
-
* in the .bitmap we need to distinguish between the two, so the componentId needs to be corrected with the defaultScope.
|
|
501
|
-
*/
|
|
502
|
-
resolveIdWithDefaultScope(componentId: ComponentID): ComponentID;
|
|
503
|
-
/**
|
|
504
|
-
* This will mutate the original extensions list and resolve it's ids
|
|
505
|
-
*
|
|
506
|
-
* @param {ExtensionDataList} extensions
|
|
507
|
-
* @returns {Promise<void[]>}
|
|
508
|
-
* @memberof Workspace
|
|
509
|
-
*/
|
|
510
|
-
resolveExtensionsList(extensions: ExtensionDataList): Promise<void[]>;
|
|
511
|
-
/**
|
|
512
|
-
* configure an environment to the given components in the .bitmap file, this configuration overrides other, such as
|
|
513
|
-
* overrides in workspace.jsonc.
|
|
514
|
-
*/
|
|
515
|
-
setEnvToComponents(envId: ComponentID, componentIds: ComponentID[]): Promise<void>;
|
|
516
|
-
/**
|
|
517
|
-
* helpful when a user provides an env-string to be set and this env has no version.
|
|
518
|
-
* in the workspace config, a custom-env needs to be set with a version unless it's part of the workspace.
|
|
519
|
-
* (inside envs/envs it's set without a version).
|
|
520
|
-
*/
|
|
521
|
-
resolveEnvIdWithPotentialVersionForConfig(envId: ComponentID): Promise<string>;
|
|
522
|
-
/**
|
|
523
|
-
* remove env configuration from the .bitmap file, so then other configuration, such as "variants" will take place
|
|
524
|
-
*/
|
|
525
|
-
unsetEnvFromComponents(ids: ComponentID[]): Promise<{
|
|
526
|
-
changed: ComponentID[];
|
|
527
|
-
unchanged: ComponentID[];
|
|
528
|
-
}>;
|
|
529
|
-
updateEnvForComponents(envIdStr?: string, pattern?: string): Promise<{
|
|
530
|
-
updated: {
|
|
531
|
-
[envId: string]: ComponentID[];
|
|
532
|
-
};
|
|
533
|
-
alreadyUpToDate: ComponentID[];
|
|
534
|
-
}>;
|
|
535
|
-
getComponentPathsRegExps(): RegExp[];
|
|
536
|
-
setComponentPathsRegExps(): Promise<void>;
|
|
537
|
-
getInjectedDirs(component: Component): Promise<string[]>;
|
|
538
|
-
getAutoDetectOverrides(configuredExtensions: ExtensionDataList, id: ComponentID, legacyFiles: SourceFile[]): Promise<import("@teambit/legacy/dist/consumer/config/component-overrides").DependenciesOverridesData>;
|
|
539
|
-
getAutoDetectConfigMerge(id: ComponentID): import("@teambit/legacy/dist/consumer/config/component-overrides").DependenciesOverridesData | undefined;
|
|
540
|
-
getManyComponentsStatuses(ids: ComponentID[]): Promise<ComponentStatusResult[]>;
|
|
541
|
-
getComponentStatusById(id: ComponentID): Promise<ComponentStatusLegacy>;
|
|
542
|
-
}
|
|
543
|
-
export default Workspace;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { GraphqlMain } from '@teambit/graphql';
|
|
2
|
-
import { Workspace } from './workspace';
|
|
3
|
-
import { WorkspaceComponent } from './workspace-component';
|
|
4
|
-
declare const _default: (workspace: Workspace, graphql: GraphqlMain) => {
|
|
5
|
-
typeDefs: import("graphql").DocumentNode;
|
|
6
|
-
resolvers: {
|
|
7
|
-
Subscription: {
|
|
8
|
-
componentAdded: {
|
|
9
|
-
subscribe: () => AsyncIterator<unknown, any, undefined>;
|
|
10
|
-
};
|
|
11
|
-
componentChanged: {
|
|
12
|
-
subscribe: () => AsyncIterator<unknown, any, undefined>;
|
|
13
|
-
};
|
|
14
|
-
componentRemoved: {
|
|
15
|
-
subscribe: () => AsyncIterator<unknown, any, undefined>;
|
|
16
|
-
};
|
|
17
|
-
};
|
|
18
|
-
Component: {
|
|
19
|
-
status: (wsComponent: WorkspaceComponent) => Promise<import("./workspace-component").ComponentStatus>;
|
|
20
|
-
issuesCount: (wsComponent: WorkspaceComponent) => number;
|
|
21
|
-
issues: (wsComponent: WorkspaceComponent) => {
|
|
22
|
-
type: string;
|
|
23
|
-
description: string;
|
|
24
|
-
data: string;
|
|
25
|
-
}[] | undefined;
|
|
26
|
-
};
|
|
27
|
-
Workspace: {
|
|
28
|
-
path: (ws: any) => any;
|
|
29
|
-
name: (ws: any) => any;
|
|
30
|
-
icon: (ws: any) => any;
|
|
31
|
-
components: (ws: Workspace, { offset, limit }: {
|
|
32
|
-
offset: number;
|
|
33
|
-
limit: number;
|
|
34
|
-
}) => Promise<import("@teambit/component").Component[]>;
|
|
35
|
-
getComponent: (ws: Workspace, { id }: {
|
|
36
|
-
id: string;
|
|
37
|
-
}) => Promise<import("@teambit/component").Component | null>;
|
|
38
|
-
};
|
|
39
|
-
Query: {
|
|
40
|
-
workspace: () => Workspace;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
export default _default;
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { PubsubMain } from '@teambit/pubsub';
|
|
2
|
-
import { BundlerMain } from '@teambit/bundler';
|
|
3
|
-
import { CLIMain } from '@teambit/cli';
|
|
4
|
-
import { EnvsMain } from '@teambit/envs';
|
|
5
|
-
import { GraphqlMain } from '@teambit/graphql';
|
|
6
|
-
import { Harmony, SlotRegistry } from '@teambit/harmony';
|
|
7
|
-
import { IsolatorMain } from '@teambit/isolator';
|
|
8
|
-
import { LoggerMain } from '@teambit/logger';
|
|
9
|
-
import { ScopeMain } from '@teambit/scope';
|
|
10
|
-
import { UiMain } from '@teambit/ui';
|
|
11
|
-
import { GlobalConfigMain } from '@teambit/global-config';
|
|
12
|
-
import type { AspectLoaderMain } from '@teambit/aspect-loader';
|
|
13
|
-
import { DependencyResolverMain } from '@teambit/dependency-resolver';
|
|
14
|
-
import type { ComponentMain, Component } from '@teambit/component';
|
|
15
|
-
import type { VariantsMain } from '@teambit/variants';
|
|
16
|
-
import { ComponentID } from '@teambit/component-id';
|
|
17
|
-
import { OnComponentAdd, OnComponentChange, OnComponentRemove, OnComponentLoad } from './on-component-events';
|
|
18
|
-
import { WorkspaceExtConfig } from './types';
|
|
19
|
-
import { Workspace } from './workspace';
|
|
20
|
-
export type WorkspaceDeps = [
|
|
21
|
-
PubsubMain,
|
|
22
|
-
CLIMain,
|
|
23
|
-
ScopeMain,
|
|
24
|
-
ComponentMain,
|
|
25
|
-
IsolatorMain,
|
|
26
|
-
DependencyResolverMain,
|
|
27
|
-
VariantsMain,
|
|
28
|
-
LoggerMain,
|
|
29
|
-
GraphqlMain,
|
|
30
|
-
UiMain,
|
|
31
|
-
BundlerMain,
|
|
32
|
-
AspectLoaderMain,
|
|
33
|
-
EnvsMain,
|
|
34
|
-
GlobalConfigMain
|
|
35
|
-
];
|
|
36
|
-
export type OnComponentLoadSlot = SlotRegistry<OnComponentLoad>;
|
|
37
|
-
export type OnComponentChangeSlot = SlotRegistry<OnComponentChange>;
|
|
38
|
-
export type OnComponentAddSlot = SlotRegistry<OnComponentAdd>;
|
|
39
|
-
export type OnComponentRemoveSlot = SlotRegistry<OnComponentRemove>;
|
|
40
|
-
export type OnBitmapChange = () => Promise<void>;
|
|
41
|
-
export type OnBitmapChangeSlot = SlotRegistry<OnBitmapChange>;
|
|
42
|
-
export type OnWorkspaceConfigChange = () => Promise<void>;
|
|
43
|
-
export type OnWorkspaceConfigChangeSlot = SlotRegistry<OnWorkspaceConfigChange>;
|
|
44
|
-
export type OnAspectsResolve = (aspectsComponents: Component[]) => Promise<void>;
|
|
45
|
-
export type OnAspectsResolveSlot = SlotRegistry<OnAspectsResolve>;
|
|
46
|
-
export type OnRootAspectAdded = (aspectsId: ComponentID, inWs: boolean) => Promise<void>;
|
|
47
|
-
export type OnRootAspectAddedSlot = SlotRegistry<OnRootAspectAdded>;
|
|
48
|
-
export declare class WorkspaceMain {
|
|
49
|
-
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
|
50
|
-
static dependencies: import("@teambit/harmony").Aspect[];
|
|
51
|
-
static slots: (((registerFn: () => string) => SlotRegistry<OnComponentLoad>) | ((registerFn: () => string) => SlotRegistry<OnComponentChange>) | ((registerFn: () => string) => SlotRegistry<OnComponentAdd>) | ((registerFn: () => string) => SlotRegistry<OnComponentRemove>) | ((registerFn: () => string) => SlotRegistry<OnAspectsResolve>) | ((registerFn: () => string) => SlotRegistry<OnRootAspectAdded>))[];
|
|
52
|
-
static provider([pubsub, cli, scope, component, isolator, dependencyResolver, variants, loggerExt, graphql, ui, bundler, aspectLoader, envs, globalConfig,]: WorkspaceDeps, config: WorkspaceExtConfig, [onComponentLoadSlot, onComponentChangeSlot, onComponentAddSlot, onComponentRemoveSlot, onAspectsResolveSlot, onRootAspectAddedSlot, onBitmapChangeSlot, onWorkspaceConfigChangeSlot,]: [
|
|
53
|
-
OnComponentLoadSlot,
|
|
54
|
-
OnComponentChangeSlot,
|
|
55
|
-
OnComponentAddSlot,
|
|
56
|
-
OnComponentRemoveSlot,
|
|
57
|
-
OnAspectsResolveSlot,
|
|
58
|
-
OnRootAspectAddedSlot,
|
|
59
|
-
OnBitmapChangeSlot,
|
|
60
|
-
OnWorkspaceConfigChangeSlot
|
|
61
|
-
], harmony: Harmony): Promise<Workspace | undefined>;
|
|
62
|
-
static defineRuntime: string;
|
|
63
|
-
}
|
|
64
|
-
export default WorkspaceMain;
|