@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
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { BundlerMain } from '@teambit/bundler';
|
|
2
|
-
import { Component, ComponentID, ResolveAspectsOptions } from '@teambit/component';
|
|
3
|
-
import { UIRoot } from '@teambit/ui';
|
|
4
|
-
import { GetBitMapComponentOptions } from '@teambit/legacy/dist/consumer/bit-map/bit-map';
|
|
5
|
-
import { PathOsBased } from '@teambit/legacy/dist/utils/path';
|
|
6
|
-
import { Workspace } from './workspace';
|
|
7
|
-
export declare class WorkspaceUIRoot implements UIRoot {
|
|
8
|
-
/**
|
|
9
|
-
* workspace extension.
|
|
10
|
-
*/
|
|
11
|
-
private workspace;
|
|
12
|
-
/**
|
|
13
|
-
* bundler extension
|
|
14
|
-
*/
|
|
15
|
-
private bundler;
|
|
16
|
-
constructor(
|
|
17
|
-
/**
|
|
18
|
-
* workspace extension.
|
|
19
|
-
*/
|
|
20
|
-
workspace: Workspace,
|
|
21
|
-
/**
|
|
22
|
-
* bundler extension
|
|
23
|
-
*/
|
|
24
|
-
bundler: BundlerMain);
|
|
25
|
-
priority: boolean;
|
|
26
|
-
get name(): string;
|
|
27
|
-
get path(): string;
|
|
28
|
-
get configFile(): string;
|
|
29
|
-
buildOptions: {
|
|
30
|
-
ssr: boolean;
|
|
31
|
-
launchBrowserOnStart: boolean;
|
|
32
|
-
prebundle: boolean;
|
|
33
|
-
};
|
|
34
|
-
resolveAspects(runtimeName: string, componentIds?: ComponentID[], opts?: ResolveAspectsOptions): Promise<import("@teambit/aspect-loader").AspectDefinition[]>;
|
|
35
|
-
resolvePattern(pattern: string): Promise<Component[]>;
|
|
36
|
-
getConfig(): {};
|
|
37
|
-
/**
|
|
38
|
-
* proxy to `workspace.componentDir()`
|
|
39
|
-
*/
|
|
40
|
-
componentDir(componentId: ComponentID, bitMapOptions?: GetBitMapComponentOptions, options?: {
|
|
41
|
-
relative: boolean;
|
|
42
|
-
}): PathOsBased;
|
|
43
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ComponentsDrawer, ComponentFiltersSlot, DrawerWidgetSlot } from '@teambit/component.ui.component-drawer';
|
|
2
|
-
import { LanesModel } from '@teambit/lanes.ui.models.lanes-model';
|
|
3
|
-
import { SidebarWidgetSlot } from './workspace.ui.runtime';
|
|
4
|
-
export type WorkspaceDrawerProps = {
|
|
5
|
-
treeWidgets: SidebarWidgetSlot;
|
|
6
|
-
filtersSlot: ComponentFiltersSlot;
|
|
7
|
-
drawerWidgetSlot: DrawerWidgetSlot;
|
|
8
|
-
overrideUseLanes?: () => {
|
|
9
|
-
lanesModel?: LanesModel;
|
|
10
|
-
loading?: boolean;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
export declare const workspaceDrawer: ({ treeWidgets, filtersSlot, drawerWidgetSlot, overrideUseLanes: useLanesFromProps, }: WorkspaceDrawerProps) => ComponentsDrawer;
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { ComponentUI, ComponentModel } from '@teambit/component';
|
|
2
|
-
import { ComponentTreeUI, ComponentTreeNode } from '@teambit/component-tree';
|
|
3
|
-
import { SlotRegistry } from '@teambit/harmony';
|
|
4
|
-
import type { RouteSlot } from '@teambit/ui-foundation.ui.react-router.slot-router';
|
|
5
|
-
import { MenuWidgetSlot, MenuWidget } from '@teambit/ui-foundation.ui.menu';
|
|
6
|
-
import { SidebarUI, SidebarItem, SidebarItemSlot } from '@teambit/sidebar';
|
|
7
|
-
import { MenuItemSlot, MenuItem } from '@teambit/ui-foundation.ui.main-dropdown';
|
|
8
|
-
import { UIRootUI as UIRoot, UiUI } from '@teambit/ui';
|
|
9
|
-
import { GraphUI } from '@teambit/graph';
|
|
10
|
-
import React, { ReactNode } from 'react';
|
|
11
|
-
import { RouteProps } from 'react-router-dom';
|
|
12
|
-
import { CommandBarUI } from '@teambit/command-bar';
|
|
13
|
-
import type { DrawerType } from '@teambit/ui-foundation.ui.tree.drawer';
|
|
14
|
-
import { ComponentFilters } from '@teambit/component.ui.component-filters.component-filter-context';
|
|
15
|
-
import { DrawerWidgetSlot, ComponentFiltersSlot } from '@teambit/component.ui.component-drawer';
|
|
16
|
-
export type SidebarWidgetSlot = SlotRegistry<ComponentTreeNode>;
|
|
17
|
-
export declare class WorkspaceUI {
|
|
18
|
-
/**
|
|
19
|
-
* route slot.
|
|
20
|
-
*/
|
|
21
|
-
private routeSlot;
|
|
22
|
-
/**
|
|
23
|
-
* component ui extension.
|
|
24
|
-
*/
|
|
25
|
-
private componentUi;
|
|
26
|
-
/**
|
|
27
|
-
* menu slot
|
|
28
|
-
*/
|
|
29
|
-
private menuSlot;
|
|
30
|
-
private menuItemSlot;
|
|
31
|
-
private sidebar;
|
|
32
|
-
private sidebarSlot;
|
|
33
|
-
/**
|
|
34
|
-
* sidebar link slot
|
|
35
|
-
*/
|
|
36
|
-
private sidebarItemSlot;
|
|
37
|
-
private drawerWidgetSlot;
|
|
38
|
-
private drawerComponentsFiltersSlot;
|
|
39
|
-
private commandBarUI;
|
|
40
|
-
private menuWidgetSlot;
|
|
41
|
-
constructor(
|
|
42
|
-
/**
|
|
43
|
-
* route slot.
|
|
44
|
-
*/
|
|
45
|
-
routeSlot: RouteSlot,
|
|
46
|
-
/**
|
|
47
|
-
* component ui extension.
|
|
48
|
-
*/
|
|
49
|
-
componentUi: ComponentUI,
|
|
50
|
-
/**
|
|
51
|
-
* menu slot
|
|
52
|
-
*/
|
|
53
|
-
menuSlot: RouteSlot, menuItemSlot: MenuItemSlot, sidebar: SidebarUI, sidebarSlot: SidebarWidgetSlot,
|
|
54
|
-
/**
|
|
55
|
-
* sidebar link slot
|
|
56
|
-
*/
|
|
57
|
-
sidebarItemSlot: SidebarItemSlot, drawerWidgetSlot: DrawerWidgetSlot, drawerComponentsFiltersSlot: ComponentFiltersSlot, commandBarUI: CommandBarUI, menuWidgetSlot: MenuWidgetSlot);
|
|
58
|
-
private setKeyBindHandler;
|
|
59
|
-
/**
|
|
60
|
-
* register a route to the workspace.
|
|
61
|
-
*/
|
|
62
|
-
registerRoutes(routes: RouteProps[]): this;
|
|
63
|
-
registerDrawers(...drawers: DrawerType[]): this;
|
|
64
|
-
registerSidebarWidget(componentTreeNode: ComponentTreeNode): this;
|
|
65
|
-
registerMenuItem: (menuItems: MenuItem[]) => void;
|
|
66
|
-
registerMenuWidget: (menuWidgets: MenuWidget[]) => void;
|
|
67
|
-
registerMenuRoutes: (routes: RouteProps[]) => this;
|
|
68
|
-
setComponents: (components: ComponentModel[]) => void;
|
|
69
|
-
registerSidebarLink: (...links: SidebarItem[]) => void;
|
|
70
|
-
/**
|
|
71
|
-
* register component filters
|
|
72
|
-
*/
|
|
73
|
-
registerDrawerComponentFilters: (filters: ComponentFilters) => void;
|
|
74
|
-
registerDrawerWidgets: (widgets: ReactNode[]) => void;
|
|
75
|
-
uiRoot(): UIRoot;
|
|
76
|
-
listSidebarItems(): (React.ComponentClass<{}, any> | React.FunctionComponent<{}>)[];
|
|
77
|
-
private menuItems;
|
|
78
|
-
static dependencies: import("@teambit/harmony").Aspect[];
|
|
79
|
-
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
|
80
|
-
static slots: (((registerFn: () => string) => SlotRegistry<RouteProps>) | ((registerFn: () => string) => SlotRegistry<ComponentTreeNode>) | ((registerFn: () => string) => SlotRegistry<DrawerWidgetSlot>))[];
|
|
81
|
-
static provider([ui, componentUi, sidebar, componentTree, commandBarUI, graphUI]: [
|
|
82
|
-
UiUI,
|
|
83
|
-
ComponentUI,
|
|
84
|
-
SidebarUI,
|
|
85
|
-
ComponentTreeUI,
|
|
86
|
-
CommandBarUI,
|
|
87
|
-
GraphUI
|
|
88
|
-
], config: any, [routeSlot, menuSlot, menuItemSlot, sidebarSlot, sidebarItemSlot, drawerWidgetSlot, drawerComponentsFiltersSlot, menuWidgetSlot,]: [
|
|
89
|
-
RouteSlot,
|
|
90
|
-
RouteSlot,
|
|
91
|
-
MenuItemSlot,
|
|
92
|
-
SidebarWidgetSlot,
|
|
93
|
-
SidebarItemSlot,
|
|
94
|
-
DrawerWidgetSlot,
|
|
95
|
-
ComponentFiltersSlot,
|
|
96
|
-
MenuWidgetSlot
|
|
97
|
-
]): Promise<WorkspaceUI>;
|
|
98
|
-
}
|
|
99
|
-
export default WorkspaceUI;
|