@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
@@ -1,103 +0,0 @@
|
|
1
|
-
import { RouteProps } from 'react-router-dom';
|
2
|
-
import { Harmony, SlotRegistry } from '@teambit/harmony';
|
3
|
-
import { type LaneCompareProps as DefaultLaneCompareProps } from '@teambit/lanes.ui.compare.lane-compare';
|
4
|
-
import { UiUI } from '@teambit/ui';
|
5
|
-
import type { NavigationSlot, RouteSlot } from '@teambit/ui-foundation.ui.react-router.slot-router';
|
6
|
-
import { ScopeUI } from '@teambit/scope';
|
7
|
-
import { WorkspaceUI } from '@teambit/workspace';
|
8
|
-
import { ComponentUI, ComponentID } from '@teambit/component';
|
9
|
-
import { MenuWidget, MenuWidgetSlot } from '@teambit/ui-foundation.ui.menu';
|
10
|
-
import { LaneOverviewLine, LaneOverviewLineSlot } from '@teambit/lanes.ui.lane-overview';
|
11
|
-
import { LanesNavPlugin, LanesOrderedNavigationSlot } from '@teambit/lanes.ui.menus.lanes-overview-menu';
|
12
|
-
import { LanesProvider, IgnoreDerivingFromUrl } from '@teambit/lanes.hooks.use-lanes';
|
13
|
-
import { LaneId } from '@teambit/lane-id';
|
14
|
-
import { ComponentCompareUI } from '@teambit/component-compare';
|
15
|
-
export type LaneCompareProps = Partial<DefaultLaneCompareProps>;
|
16
|
-
export type LaneProviderIgnoreSlot = SlotRegistry<IgnoreDerivingFromUrl>;
|
17
|
-
export declare function useComponentFilters(): {
|
18
|
-
loading: boolean;
|
19
|
-
log?: undefined;
|
20
|
-
} | {
|
21
|
-
loading: boolean;
|
22
|
-
log: {
|
23
|
-
head: string;
|
24
|
-
};
|
25
|
-
};
|
26
|
-
export declare function useLaneComponentIdFromUrl(): ComponentID | undefined | null;
|
27
|
-
export declare function useComponentId(): string | undefined;
|
28
|
-
export declare class LanesUI {
|
29
|
-
private componentUI;
|
30
|
-
private componentCompareUI;
|
31
|
-
private routeSlot;
|
32
|
-
private navSlot;
|
33
|
-
private menuWidgetSlot;
|
34
|
-
/**
|
35
|
-
* overview line slot to add new lines beneath the overview section
|
36
|
-
*/
|
37
|
-
private overviewSlot;
|
38
|
-
private laneProviderIgnoreSlot;
|
39
|
-
private workspace?;
|
40
|
-
private scope?;
|
41
|
-
static dependencies: import("@teambit/harmony").Aspect[];
|
42
|
-
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
43
|
-
static slots: (((registerFn: () => string) => SlotRegistry<RouteProps>) | ((registerFn: () => string) => SlotRegistry<LaneOverviewLineSlot>) | ((registerFn: () => string) => SlotRegistry<NavigationSlot>) | ((registerFn: () => string) => SlotRegistry<LaneProviderIgnoreSlot>))[];
|
44
|
-
constructor(componentUI: ComponentUI, componentCompareUI: ComponentCompareUI, routeSlot: RouteSlot, navSlot: LanesOrderedNavigationSlot, menuWidgetSlot: MenuWidgetSlot,
|
45
|
-
/**
|
46
|
-
* overview line slot to add new lines beneath the overview section
|
47
|
-
*/
|
48
|
-
overviewSlot: LaneOverviewLineSlot, laneProviderIgnoreSlot: LaneProviderIgnoreSlot, workspace?: WorkspaceUI | undefined, scope?: ScopeUI | undefined);
|
49
|
-
private readonly lanesHost;
|
50
|
-
private readonly hostAspect?;
|
51
|
-
private readonly host;
|
52
|
-
private registerHostAspectRoutes;
|
53
|
-
getLaneRoutes(): {
|
54
|
-
path: string;
|
55
|
-
children: import("react/jsx-runtime").JSX.Element;
|
56
|
-
}[];
|
57
|
-
overrideComputeLaneUrl(fn: () => {
|
58
|
-
prefix: string;
|
59
|
-
path: string;
|
60
|
-
getLaneIdFromPathname: (pathname: string) => LaneId | undefined;
|
61
|
-
getLaneUrl: (laneId: LaneId, relative?: boolean) => string;
|
62
|
-
getLaneComponentUrl: (componentId: ComponentID, laneId: LaneId) => string;
|
63
|
-
}): void;
|
64
|
-
getLaneComponent(): import("react/jsx-runtime").JSX.Element;
|
65
|
-
getLaneComponentMenu(): import("react/jsx-runtime").JSX.Element;
|
66
|
-
getLaneOverview(): import("react/jsx-runtime").JSX.Element;
|
67
|
-
getLanesComparePage(): import("react/jsx-runtime").JSX.Element;
|
68
|
-
getMenuRoutes(): {
|
69
|
-
path: string;
|
70
|
-
children: import("react/jsx-runtime").JSX.Element;
|
71
|
-
}[];
|
72
|
-
getLanesOverviewMenu(): import("react/jsx-runtime").JSX.Element;
|
73
|
-
registerMenuWidget(...menuItems: MenuWidget[]): this;
|
74
|
-
registerLaneProviderIgnoreSlot(ignoreFn: IgnoreDerivingFromUrl): this;
|
75
|
-
private registerLanesRoutes;
|
76
|
-
private registerRoutes;
|
77
|
-
getLanesSwitcher(): import("react/jsx-runtime").JSX.Element;
|
78
|
-
getLanesProvider(): typeof LanesProvider;
|
79
|
-
getUseLanes(): import("@teambit/lanes.hooks.use-lanes").UseLanes;
|
80
|
-
private registerLanesDropdown;
|
81
|
-
private renderContext;
|
82
|
-
registerRoute(route: RouteProps): this;
|
83
|
-
/**
|
84
|
-
* register a new line beneath the lane overview section.
|
85
|
-
*/
|
86
|
-
registerOverviewLine(...lines: LaneOverviewLine[]): this;
|
87
|
-
registerNavigation(routes: LanesNavPlugin[]): void;
|
88
|
-
getLaneCompare: (props: LaneCompareProps) => import("react/jsx-runtime").JSX.Element | null;
|
89
|
-
static provider([uiUi, componentUI, workspaceUi, scopeUi, componentCompareUI]: [
|
90
|
-
UiUI,
|
91
|
-
ComponentUI,
|
92
|
-
WorkspaceUI,
|
93
|
-
ScopeUI,
|
94
|
-
ComponentCompareUI
|
95
|
-
], _: any, [routeSlot, overviewSlot, navSlot, menuWidgetSlot, laneProviderIgnoreSlot]: [
|
96
|
-
RouteSlot,
|
97
|
-
LaneOverviewLineSlot,
|
98
|
-
LanesOrderedNavigationSlot,
|
99
|
-
MenuWidgetSlot,
|
100
|
-
LaneProviderIgnoreSlot
|
101
|
-
], harmony: Harmony): Promise<LanesUI>;
|
102
|
-
}
|
103
|
-
export default LanesUI;
|
package/dist/switch-lanes.d.ts
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
import { ComponentID } from '@teambit/component-id';
|
2
|
-
import { ApplyVersionResults } from '@teambit/merging';
|
3
|
-
import { Lane } from '@teambit/legacy/dist/scope/models';
|
4
|
-
import { CheckoutProps } from '@teambit/checkout';
|
5
|
-
import { Workspace } from '@teambit/workspace';
|
6
|
-
import { Logger } from '@teambit/logger';
|
7
|
-
import { LanesMain } from './lanes.main.runtime';
|
8
|
-
export type SwitchProps = {
|
9
|
-
laneName: string;
|
10
|
-
ids?: ComponentID[];
|
11
|
-
laneBitIds?: ComponentID[];
|
12
|
-
pattern?: string;
|
13
|
-
existingOnWorkspaceOnly?: boolean;
|
14
|
-
remoteLane?: Lane;
|
15
|
-
localTrackedLane?: string;
|
16
|
-
alias?: string;
|
17
|
-
};
|
18
|
-
export declare class LaneSwitcher {
|
19
|
-
private workspace;
|
20
|
-
private logger;
|
21
|
-
private switchProps;
|
22
|
-
private checkoutProps;
|
23
|
-
private lanes;
|
24
|
-
private consumer;
|
25
|
-
private laneIdToSwitchTo;
|
26
|
-
private laneToSwitchTo;
|
27
|
-
constructor(workspace: Workspace, logger: Logger, switchProps: SwitchProps, checkoutProps: CheckoutProps, lanes: LanesMain);
|
28
|
-
switch(): Promise<ApplyVersionResults>;
|
29
|
-
private populateSwitchProps;
|
30
|
-
private populatePropsAccordingToRemoteLane;
|
31
|
-
private populatePropsAccordingToDefaultLane;
|
32
|
-
private populatePropsAccordingToLocalLane;
|
33
|
-
private throwForSwitchingToCurrentLane;
|
34
|
-
private saveLanesData;
|
35
|
-
}
|
package/dist/switch.cmd.d.ts
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
import { Command, CommandOptions } from '@teambit/cli';
|
2
|
-
import { MergeStrategy } from '@teambit/legacy/dist/consumer/versions-ops/merge-version';
|
3
|
-
import { LanesMain } from './lanes.main.runtime';
|
4
|
-
export declare class SwitchCmd implements Command {
|
5
|
-
private lanes;
|
6
|
-
name: string;
|
7
|
-
description: string;
|
8
|
-
extendedDescription: string;
|
9
|
-
private: boolean;
|
10
|
-
alias: string;
|
11
|
-
arguments: {
|
12
|
-
name: string;
|
13
|
-
description: string;
|
14
|
-
}[];
|
15
|
-
options: CommandOptions;
|
16
|
-
loader: boolean;
|
17
|
-
constructor(lanes: LanesMain);
|
18
|
-
report([lane]: [string], { alias, merge, getAll, workspaceOnly, skipDependencyInstallation, pattern, json, }: {
|
19
|
-
alias?: string;
|
20
|
-
merge?: MergeStrategy;
|
21
|
-
getAll?: boolean;
|
22
|
-
workspaceOnly?: boolean;
|
23
|
-
skipDependencyInstallation?: boolean;
|
24
|
-
override?: boolean;
|
25
|
-
pattern?: string;
|
26
|
-
json?: boolean;
|
27
|
-
}): Promise<string>;
|
28
|
-
}
|