@teambit/lanes 0.0.224 → 0.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/{__preview-1645372601675.js → __preview-1645630586060.js} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js.map +1 -1
- package/dist/lanes.graphql.js +13 -9
- package/dist/lanes.graphql.js.map +1 -1
- package/dist/lanes.ui.runtime.d.ts +46 -0
- package/dist/lanes.ui.runtime.js +234 -0
- package/dist/lanes.ui.runtime.js.map +1 -0
- package/lanes.ui.runtime.tsx +150 -0
- package/package-tar/teambit-lanes-0.0.227.tgz +0 -0
- package/package.json +19 -10
- package/package-tar/teambit-lanes-0.0.224.tgz +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.lanes_lanes@0.0.
|
|
1
|
+
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.lanes_lanes@0.0.227/dist/lanes.docs.md')]
|
package/dist/index.d.ts
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["index.ts"],"names":["LanesAspect"],"mappings":";;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;
|
|
1
|
+
{"version":3,"sources":["index.ts"],"names":["LanesAspect"],"mappings":";;;;;;;;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;eAIeA,oB","sourcesContent":["import { LanesAspect } from './lanes.aspect';\n\nexport type { LanesMain } from './lanes.main.runtime';\nexport type { LanesUI } from './lanes.ui.runtime';\nexport default LanesAspect;\nexport { LanesAspect };\n"]}
|
package/dist/lanes.graphql.js
CHANGED
|
@@ -39,7 +39,7 @@ function lanesSchema(lanesMain) {
|
|
|
39
39
|
return {
|
|
40
40
|
typeDefs: (0, _graphqlTag().default)`
|
|
41
41
|
type CompLaneData {
|
|
42
|
-
id:
|
|
42
|
+
id: ComponentID!
|
|
43
43
|
head: String!
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -47,6 +47,7 @@ function lanesSchema(lanesMain) {
|
|
|
47
47
|
name: String!
|
|
48
48
|
components: [CompLaneData]
|
|
49
49
|
isMerged: Boolean
|
|
50
|
+
remote: String
|
|
50
51
|
}
|
|
51
52
|
|
|
52
53
|
type FileDiff {
|
|
@@ -94,11 +95,17 @@ function lanesSchema(lanesMain) {
|
|
|
94
95
|
const lanesResults = await lanes.getLanes({});
|
|
95
96
|
return lanesResults.map(lane => ({
|
|
96
97
|
name: lane.name,
|
|
97
|
-
components: lane.components.map(
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
components: lane.components.map(component => _objectSpread(_objectSpread({}, component), {}, {
|
|
99
|
+
/**
|
|
100
|
+
* make sure the BitId has the version mapped,
|
|
101
|
+
* otherwise graphql will cache the lane component response across different lanes with the same component id
|
|
102
|
+
*/
|
|
103
|
+
id: _objectSpread(_objectSpread({}, component.id), {}, {
|
|
104
|
+
version: component.head
|
|
105
|
+
})
|
|
100
106
|
})),
|
|
101
|
-
isMerged: Boolean(lane.isMerged)
|
|
107
|
+
isMerged: Boolean(lane.isMerged),
|
|
108
|
+
remote: lane.remote
|
|
102
109
|
}));
|
|
103
110
|
},
|
|
104
111
|
getLaneByName: async (lanes, {
|
|
@@ -110,10 +117,7 @@ function lanesSchema(lanesMain) {
|
|
|
110
117
|
const laneResult = lanesResults[0];
|
|
111
118
|
return {
|
|
112
119
|
name: laneResult.name,
|
|
113
|
-
components: laneResult.components
|
|
114
|
-
id: c.id.toString(),
|
|
115
|
-
head: c.head.toString()
|
|
116
|
-
})),
|
|
120
|
+
components: laneResult.components,
|
|
117
121
|
isMerged: Boolean(laneResult.isMerged)
|
|
118
122
|
};
|
|
119
123
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["lanes.graphql.ts"],"names":["lanesSchema","lanesMain","typeDefs","resolvers","Lanes","getLanes","lanes","lanesResults","map","lane","name","components","
|
|
1
|
+
{"version":3,"sources":["lanes.graphql.ts"],"names":["lanesSchema","lanesMain","typeDefs","resolvers","Lanes","getLanes","lanes","lanesResults","map","lane","name","components","component","id","version","head","isMerged","Boolean","remote","getLaneByName","laneResult","getCurrentLaneName","getCurrentLane","getDiff","values","options","getDiffResults","compsWithDiff","item","toString","Query"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;;;;;AAGO,SAASA,WAAT,CAAqBC,SAArB,EAAmD;AACxD,SAAO;AACLC,IAAAA,QAAQ,EAAE,0BAAI;AAClB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KApDS;AAqDLC,IAAAA,SAAS,EAAE;AACTC,MAAAA,KAAK,EAAE;AACLC,QAAAA,QAAQ,EAAE,MAAOC,KAAP,IAA4B;AACpC,gBAAMC,YAAY,GAAG,MAAMD,KAAK,CAACD,QAAN,CAAe,EAAf,CAA3B;AACA,iBAAOE,YAAY,CAACC,GAAb,CAAkBC,IAAD,KAAW;AACjCC,YAAAA,IAAI,EAAED,IAAI,CAACC,IADsB;AAEjCC,YAAAA,UAAU,EAAEF,IAAI,CAACE,UAAL,CAAgBH,GAAhB,CAAqBI,SAAD,oCAC3BA,SAD2B;AAE9B;AACd;AACA;AACA;AACcC,cAAAA,EAAE,kCAAOD,SAAS,CAACC,EAAjB;AAAqBC,gBAAAA,OAAO,EAAEF,SAAS,CAACG;AAAxC;AAN4B,cAApB,CAFqB;AAUjCC,YAAAA,QAAQ,EAAEC,OAAO,CAACR,IAAI,CAACO,QAAN,CAVgB;AAWjCE,YAAAA,MAAM,EAAET,IAAI,CAACS;AAXoB,WAAX,CAAjB,CAAP;AAaD,SAhBI;AAiBLC,QAAAA,aAAa,EAAE,OAAOb,KAAP,EAAyB;AAAEI,UAAAA;AAAF,SAAzB,KAAwD;AACrE,gBAAMH,YAAY,GAAG,MAAMD,KAAK,CAACD,QAAN,CAAe;AAAEK,YAAAA;AAAF,WAAf,CAA3B;AACA,gBAAMU,UAAU,GAAGb,YAAY,CAAC,CAAD,CAA/B;AACA,iBAAO;AACLG,YAAAA,IAAI,EAAEU,UAAU,CAACV,IADZ;AAELC,YAAAA,UAAU,EAAES,UAAU,CAACT,UAFlB;AAGLK,YAAAA,QAAQ,EAAEC,OAAO,CAACG,UAAU,CAACJ,QAAZ;AAHZ,WAAP;AAKD,SAzBI;AA0BLK,QAAAA,kBAAkB,EAAGf,KAAD,IAAsB;AACxC,iBAAOA,KAAK,CAACgB,cAAN,EAAP;AACD,SA5BI;AA6BLC,QAAAA,OAAO,EAAE,OAAOjB,KAAP,EAAyB;AAAEkB,UAAAA,MAAF;AAAUC,UAAAA;AAAV,SAAzB,KAAqG;AAC5G,gBAAMC,cAAc,GAAG,MAAMpB,KAAK,CAACiB,OAAN,CAAcC,MAAd,EAAsBC,OAAtB,CAA7B;AACA,iDACKC,cADL;AAEEC,YAAAA,aAAa,EAAED,cAAc,CAACC,aAAf,CAA6BnB,GAA7B,CAAkCoB,IAAD,oCAAgBA,IAAhB;AAAsBf,cAAAA,EAAE,EAAEe,IAAI,CAACf,EAAL,CAAQgB,QAAR;AAA1B,cAAjC;AAFjB;AAID;AAnCI,OADE;AAsCTC,MAAAA,KAAK,EAAE;AACLxB,QAAAA,KAAK,EAAE,MAAML;AADR;AAtCE;AArDN,GAAP;AAgGD","sourcesContent":["import { Schema } from '@teambit/graphql';\nimport gql from 'graphql-tag';\nimport { LanesMain } from './lanes.main.runtime';\n\nexport function lanesSchema(lanesMain: LanesMain): Schema {\n return {\n typeDefs: gql`\n type CompLaneData {\n id: ComponentID!\n head: String!\n }\n\n type LanesData {\n name: String!\n components: [CompLaneData]\n isMerged: Boolean\n remote: String\n }\n\n type FileDiff {\n filePath: String!\n diffOutput: String\n }\n\n type FieldsDiff {\n fieldName: String!\n diffOutput: String\n }\n\n type DiffResults {\n id: String\n hasDiff: Boolean\n filesDiff: [FileDiff]\n fieldsDiff: [FieldsDiff]\n }\n\n type GetDiffResult {\n newComps: [String]\n compsWithNoChanges: [String]\n toLaneName: String\n compsWithDiff: [DiffResults]\n }\n\n input DiffOptions {\n color: Boolean\n }\n\n type Lanes {\n getLanes: [LanesData]\n getLaneByName(name: String): LanesData\n getCurrentLaneName: String\n getDiff(values: [String], options: DiffOptions): GetDiffResult\n }\n\n type Query {\n lanes: Lanes\n }\n `,\n resolvers: {\n Lanes: {\n getLanes: async (lanes: LanesMain) => {\n const lanesResults = await lanes.getLanes({});\n return lanesResults.map((lane) => ({\n name: lane.name,\n components: lane.components.map((component) => ({\n ...component,\n /**\n * make sure the BitId has the version mapped,\n * otherwise graphql will cache the lane component response across different lanes with the same component id\n */\n id: { ...component.id, version: component.head },\n })),\n isMerged: Boolean(lane.isMerged),\n remote: lane.remote,\n }));\n },\n getLaneByName: async (lanes: LanesMain, { name }: { name: string }) => {\n const lanesResults = await lanes.getLanes({ name });\n const laneResult = lanesResults[0];\n return {\n name: laneResult.name,\n components: laneResult.components,\n isMerged: Boolean(laneResult.isMerged),\n };\n },\n getCurrentLaneName: (lanes: LanesMain) => {\n return lanes.getCurrentLane();\n },\n getDiff: async (lanes: LanesMain, { values, options }: { values: string[]; options: { color?: boolean } }) => {\n const getDiffResults = await lanes.getDiff(values, options);\n return {\n ...getDiffResults,\n compsWithDiff: getDiffResults.compsWithDiff.map((item) => ({ ...item, id: item.id.toString() })),\n };\n },\n },\n Query: {\n lanes: () => lanesMain,\n },\n },\n };\n}\n"]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { RouteProps } from 'react-router-dom';
|
|
2
|
+
import { Harmony } from '@teambit/harmony';
|
|
3
|
+
import { MenuItemSlot } from '@teambit/ui-foundation.ui.main-dropdown';
|
|
4
|
+
import { UiUI } from '@teambit/ui';
|
|
5
|
+
import { NavigationSlot, RouteSlot } from '@teambit/ui-foundation.ui.react-router.slot-router';
|
|
6
|
+
import { LanesOrderedNavigationSlot } from '@teambit/lanes.ui.lanes';
|
|
7
|
+
import { ScopeUI } from '@teambit/scope';
|
|
8
|
+
import { WorkspaceUI } from '@teambit/workspace';
|
|
9
|
+
import { NavLinkProps, ReactRouterUI } from '@teambit/react-router';
|
|
10
|
+
import { ComponentUI } from '@teambit/component';
|
|
11
|
+
import { SidebarUI } from '@teambit/sidebar';
|
|
12
|
+
export declare class LanesUI {
|
|
13
|
+
private uiUi;
|
|
14
|
+
private componentUi;
|
|
15
|
+
private routeSlot;
|
|
16
|
+
private menuRouteSlot;
|
|
17
|
+
private navSlot;
|
|
18
|
+
private menuItemSlot;
|
|
19
|
+
private reactRouter;
|
|
20
|
+
private workspace?;
|
|
21
|
+
private scope?;
|
|
22
|
+
static dependencies: import("@teambit/harmony").Aspect[];
|
|
23
|
+
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
|
24
|
+
static slots: (((registerFn: () => string) => import("@teambit/harmony").SlotRegistry<RouteProps<string, {
|
|
25
|
+
[x: string]: string | undefined;
|
|
26
|
+
}>>) | ((registerFn: () => string) => import("@teambit/harmony").SlotRegistry<MenuItemSlot>) | ((registerFn: () => string) => import("@teambit/harmony").SlotRegistry<NavigationSlot>))[];
|
|
27
|
+
constructor(uiUi: UiUI, componentUi: ComponentUI, routeSlot: RouteSlot, menuRouteSlot: RouteSlot, navSlot: LanesOrderedNavigationSlot, menuItemSlot: MenuItemSlot, reactRouter: ReactRouterUI, workspace?: WorkspaceUI | undefined, scope?: ScopeUI | undefined);
|
|
28
|
+
private readonly lanesHost;
|
|
29
|
+
private readonly hostAspect?;
|
|
30
|
+
private readonly host;
|
|
31
|
+
private registerHostAspectRoutes;
|
|
32
|
+
private registerLanesRoutes;
|
|
33
|
+
private registerRoutes;
|
|
34
|
+
private renderContext;
|
|
35
|
+
registerRoute(route: RouteProps): this;
|
|
36
|
+
registerNavigation(nav: NavLinkProps, order?: number): void;
|
|
37
|
+
static provider([uiUi, reactRouter, componentUi, workspaceUi, scopeUi, sidebarUi]: [
|
|
38
|
+
UiUI,
|
|
39
|
+
ReactRouterUI,
|
|
40
|
+
ComponentUI,
|
|
41
|
+
WorkspaceUI,
|
|
42
|
+
ScopeUI,
|
|
43
|
+
SidebarUI
|
|
44
|
+
], _: any, [routeSlot, menuItemSlot, menuRouteSlot, navSlot]: [RouteSlot, MenuItemSlot, RouteSlot, LanesOrderedNavigationSlot], harmony: Harmony): Promise<LanesUI>;
|
|
45
|
+
}
|
|
46
|
+
export default LanesUI;
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
require("core-js/modules/es.array.iterator.js");
|
|
6
|
+
|
|
7
|
+
require("core-js/modules/es.promise.js");
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "__esModule", {
|
|
10
|
+
value: true
|
|
11
|
+
});
|
|
12
|
+
exports.default = exports.LanesUI = void 0;
|
|
13
|
+
|
|
14
|
+
function _defineProperty2() {
|
|
15
|
+
const data = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
16
|
+
|
|
17
|
+
_defineProperty2 = function () {
|
|
18
|
+
return data;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
return data;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function _react() {
|
|
25
|
+
const data = _interopRequireDefault(require("react"));
|
|
26
|
+
|
|
27
|
+
_react = function () {
|
|
28
|
+
return data;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
return data;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function _harmony() {
|
|
35
|
+
const data = require("@teambit/harmony");
|
|
36
|
+
|
|
37
|
+
_harmony = function () {
|
|
38
|
+
return data;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
return data;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function _ui() {
|
|
45
|
+
const data = require("@teambit/ui");
|
|
46
|
+
|
|
47
|
+
_ui = function () {
|
|
48
|
+
return data;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
return data;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
function _lanes() {
|
|
55
|
+
const data = require("@teambit/lanes");
|
|
56
|
+
|
|
57
|
+
_lanes = function () {
|
|
58
|
+
return data;
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
return data;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function _lanesUi() {
|
|
65
|
+
const data = require("@teambit/lanes.ui.lanes");
|
|
66
|
+
|
|
67
|
+
_lanesUi = function () {
|
|
68
|
+
return data;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
return data;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
function _scope() {
|
|
75
|
+
const data = _interopRequireDefault(require("@teambit/scope"));
|
|
76
|
+
|
|
77
|
+
_scope = function () {
|
|
78
|
+
return data;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
return data;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
function _workspace() {
|
|
85
|
+
const data = _interopRequireDefault(require("@teambit/workspace"));
|
|
86
|
+
|
|
87
|
+
_workspace = function () {
|
|
88
|
+
return data;
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
return data;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
function _reactRouter() {
|
|
95
|
+
const data = _interopRequireDefault(require("@teambit/react-router"));
|
|
96
|
+
|
|
97
|
+
_reactRouter = function () {
|
|
98
|
+
return data;
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
return data;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
function _component() {
|
|
105
|
+
const data = _interopRequireDefault(require("@teambit/component"));
|
|
106
|
+
|
|
107
|
+
_component = function () {
|
|
108
|
+
return data;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
return data;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
function _sidebar() {
|
|
115
|
+
const data = _interopRequireDefault(require("@teambit/sidebar"));
|
|
116
|
+
|
|
117
|
+
_sidebar = function () {
|
|
118
|
+
return data;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
return data;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
class LanesUI {
|
|
125
|
+
constructor(uiUi, componentUi, routeSlot, menuRouteSlot, navSlot, menuItemSlot, reactRouter, workspace, scope) {
|
|
126
|
+
this.uiUi = uiUi;
|
|
127
|
+
this.componentUi = componentUi;
|
|
128
|
+
this.routeSlot = routeSlot;
|
|
129
|
+
this.menuRouteSlot = menuRouteSlot;
|
|
130
|
+
this.navSlot = navSlot;
|
|
131
|
+
this.menuItemSlot = menuItemSlot;
|
|
132
|
+
this.reactRouter = reactRouter;
|
|
133
|
+
this.workspace = workspace;
|
|
134
|
+
this.scope = scope;
|
|
135
|
+
(0, _defineProperty2().default)(this, "lanesHost", void 0);
|
|
136
|
+
(0, _defineProperty2().default)(this, "hostAspect", void 0);
|
|
137
|
+
(0, _defineProperty2().default)(this, "host", void 0);
|
|
138
|
+
(0, _defineProperty2().default)(this, "renderContext", ({
|
|
139
|
+
children
|
|
140
|
+
}) => {
|
|
141
|
+
return /*#__PURE__*/_react().default.createElement(_lanesUi().CurrentLaneFromUrl, null, children);
|
|
142
|
+
});
|
|
143
|
+
this.hostAspect = workspace || scope;
|
|
144
|
+
this.lanesHost = workspace ? 'workspace' : 'scope';
|
|
145
|
+
this.host = workspace ? _workspace().default.id : _scope().default.id;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
registerHostAspectRoutes() {
|
|
149
|
+
if (!this.hostAspect) return;
|
|
150
|
+
this.hostAspect.registerRoutes([{
|
|
151
|
+
path: _lanesUi().LanesModel.laneComponentUrlRegex,
|
|
152
|
+
children: this.componentUi.getComponentUI(this.host)
|
|
153
|
+
}, {
|
|
154
|
+
path: _lanesUi().LanesModel.laneRouteUrlRegex,
|
|
155
|
+
children: /*#__PURE__*/_react().default.createElement(_lanesUi().LanesOverview, {
|
|
156
|
+
routeSlot: this.routeSlot
|
|
157
|
+
})
|
|
158
|
+
}]);
|
|
159
|
+
this.hostAspect.registerMenuRoutes([{
|
|
160
|
+
path: _lanesUi().LanesModel.laneComponentUrlRegex,
|
|
161
|
+
children: this.componentUi.getMenu(this.host)
|
|
162
|
+
}, {
|
|
163
|
+
path: _lanesUi().LanesModel.laneRouteUrlRegex,
|
|
164
|
+
children: /*#__PURE__*/_react().default.createElement(_lanesUi().LanesOverviewMenu, {
|
|
165
|
+
navigationSlot: this.navSlot,
|
|
166
|
+
host: this.host
|
|
167
|
+
})
|
|
168
|
+
}]);
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
registerLanesRoutes() {
|
|
172
|
+
this.registerNavigation({
|
|
173
|
+
href: '',
|
|
174
|
+
children: 'Gallery'
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
registerRoutes() {
|
|
179
|
+
this.registerHostAspectRoutes();
|
|
180
|
+
this.registerLanesRoutes();
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
registerRoute(route) {
|
|
184
|
+
this.routeSlot.register(route);
|
|
185
|
+
return this;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
registerNavigation(nav, order) {
|
|
189
|
+
this.navSlot.register({
|
|
190
|
+
props: nav,
|
|
191
|
+
order
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
static async provider([uiUi, reactRouter, componentUi, workspaceUi, scopeUi, sidebarUi], _, [routeSlot, menuItemSlot, menuRouteSlot, navSlot], harmony) {
|
|
196
|
+
const {
|
|
197
|
+
config
|
|
198
|
+
} = harmony;
|
|
199
|
+
const host = String(config.get('teambit.harmony/bit'));
|
|
200
|
+
let workspace;
|
|
201
|
+
let scope;
|
|
202
|
+
|
|
203
|
+
if (host === _workspace().default.id) {
|
|
204
|
+
workspace = workspaceUi;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
if (host === _scope().default.id) {
|
|
208
|
+
scope = scopeUi;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
const lanesUi = new LanesUI(uiUi, componentUi, routeSlot, menuRouteSlot, navSlot, menuItemSlot, reactRouter, workspace, scope);
|
|
212
|
+
uiUi.registerRenderHooks({
|
|
213
|
+
reactContext: lanesUi.renderContext
|
|
214
|
+
});
|
|
215
|
+
const drawer = new (_lanesUi().LanesDrawer)({
|
|
216
|
+
showScope: lanesUi.lanesHost === 'workspace'
|
|
217
|
+
});
|
|
218
|
+
sidebarUi.registerDrawer(drawer);
|
|
219
|
+
lanesUi.registerRoutes();
|
|
220
|
+
return lanesUi;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
exports.LanesUI = LanesUI;
|
|
226
|
+
(0, _defineProperty2().default)(LanesUI, "dependencies", [_ui().UIAspect, _reactRouter().default, _component().default, _workspace().default, _scope().default, _sidebar().default]);
|
|
227
|
+
(0, _defineProperty2().default)(LanesUI, "runtime", _ui().UIRuntime);
|
|
228
|
+
(0, _defineProperty2().default)(LanesUI, "slots", [_harmony().Slot.withType(), _harmony().Slot.withType(), _harmony().Slot.withType(), _harmony().Slot.withType()]);
|
|
229
|
+
var _default = LanesUI;
|
|
230
|
+
exports.default = _default;
|
|
231
|
+
|
|
232
|
+
_lanes().LanesAspect.addRuntime(LanesUI);
|
|
233
|
+
|
|
234
|
+
//# sourceMappingURL=lanes.ui.runtime.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["lanes.ui.runtime.tsx"],"names":["LanesUI","constructor","uiUi","componentUi","routeSlot","menuRouteSlot","navSlot","menuItemSlot","reactRouter","workspace","scope","children","hostAspect","lanesHost","host","WorkspaceAspect","id","ScopeAspect","registerHostAspectRoutes","registerRoutes","path","LanesModel","laneComponentUrlRegex","getComponentUI","laneRouteUrlRegex","registerMenuRoutes","getMenu","registerLanesRoutes","registerNavigation","href","registerRoute","route","register","nav","order","props","provider","workspaceUi","scopeUi","sidebarUi","_","harmony","config","String","get","lanesUi","registerRenderHooks","reactContext","renderContext","drawer","LanesDrawer","showScope","registerDrawer","UIAspect","ReactRouterAspect","ComponentAspect","SidebarAspect","UIRuntime","Slot","withType","LanesAspect","addRuntime"],"mappings":"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","sourcesContent":["import React, { ReactNode } from 'react';\nimport { RouteProps } from 'react-router-dom';\nimport { Slot, Harmony } from '@teambit/harmony';\nimport { MenuItemSlot } from '@teambit/ui-foundation.ui.main-dropdown';\nimport { UIRuntime, UiUI, UIAspect } from '@teambit/ui';\nimport { LanesAspect } from '@teambit/lanes';\nimport { NavigationSlot, RouteSlot } from '@teambit/ui-foundation.ui.react-router.slot-router';\nimport {\n LanesDrawer,\n LanesHost,\n LanesOverview,\n LanesOrderedNavigationSlot,\n LanesModel,\n LanesOverviewMenu,\n CurrentLaneFromUrl,\n} from '@teambit/lanes.ui.lanes';\nimport ScopeAspect, { ScopeUI } from '@teambit/scope';\nimport WorkspaceAspect, { WorkspaceUI } from '@teambit/workspace';\nimport ReactRouterAspect, { NavLinkProps, ReactRouterUI } from '@teambit/react-router';\nimport ComponentAspect, { ComponentUI } from '@teambit/component';\nimport SidebarAspect, { SidebarUI } from '@teambit/sidebar';\n\nexport class LanesUI {\n static dependencies = [UIAspect, ReactRouterAspect, ComponentAspect, WorkspaceAspect, ScopeAspect, SidebarAspect];\n static runtime = UIRuntime;\n static slots = [\n Slot.withType<RouteProps>(),\n Slot.withType<MenuItemSlot>(),\n Slot.withType<RouteProps>(),\n Slot.withType<NavigationSlot>(),\n ];\n\n constructor(\n private uiUi: UiUI,\n private componentUi: ComponentUI,\n private routeSlot: RouteSlot,\n private menuRouteSlot: RouteSlot,\n private navSlot: LanesOrderedNavigationSlot,\n private menuItemSlot: MenuItemSlot,\n private reactRouter: ReactRouterUI,\n private workspace?: WorkspaceUI,\n private scope?: ScopeUI\n ) {\n this.hostAspect = workspace || scope;\n this.lanesHost = workspace ? 'workspace' : 'scope';\n this.host = workspace ? WorkspaceAspect.id : ScopeAspect.id;\n }\n\n private readonly lanesHost: LanesHost;\n private readonly hostAspect?: WorkspaceUI | ScopeUI;\n private readonly host: string;\n\n private registerHostAspectRoutes() {\n if (!this.hostAspect) return;\n this.hostAspect.registerRoutes([\n {\n path: LanesModel.laneComponentUrlRegex,\n children: this.componentUi.getComponentUI(this.host),\n },\n {\n path: LanesModel.laneRouteUrlRegex,\n children: <LanesOverview routeSlot={this.routeSlot} />,\n },\n ]);\n this.hostAspect.registerMenuRoutes([\n {\n path: LanesModel.laneComponentUrlRegex,\n children: this.componentUi.getMenu(this.host),\n },\n {\n path: LanesModel.laneRouteUrlRegex,\n children: <LanesOverviewMenu navigationSlot={this.navSlot} host={this.host} />,\n },\n ]);\n }\n\n private registerLanesRoutes() {\n this.registerNavigation({\n href: '',\n children: 'Gallery',\n });\n }\n\n private registerRoutes() {\n this.registerHostAspectRoutes();\n this.registerLanesRoutes();\n }\n\n private renderContext = ({ children }: { children: ReactNode }) => {\n return <CurrentLaneFromUrl>{children}</CurrentLaneFromUrl>;\n };\n\n registerRoute(route: RouteProps) {\n this.routeSlot.register(route);\n return this;\n }\n\n registerNavigation(nav: NavLinkProps, order?: number) {\n this.navSlot.register({\n props: nav,\n order,\n });\n }\n\n static async provider(\n [uiUi, reactRouter, componentUi, workspaceUi, scopeUi, sidebarUi]: [\n UiUI,\n ReactRouterUI,\n ComponentUI,\n WorkspaceUI,\n ScopeUI,\n SidebarUI\n ],\n _,\n [routeSlot, menuItemSlot, menuRouteSlot, navSlot]: [RouteSlot, MenuItemSlot, RouteSlot, LanesOrderedNavigationSlot],\n harmony: Harmony\n ) {\n const { config } = harmony;\n const host = String(config.get('teambit.harmony/bit'));\n let workspace: WorkspaceUI | undefined;\n let scope: ScopeUI | undefined;\n if (host === WorkspaceAspect.id) {\n workspace = workspaceUi;\n }\n if (host === ScopeAspect.id) {\n scope = scopeUi;\n }\n const lanesUi = new LanesUI(\n uiUi,\n componentUi,\n routeSlot,\n menuRouteSlot,\n navSlot,\n menuItemSlot,\n reactRouter,\n workspace,\n scope\n );\n uiUi.registerRenderHooks({ reactContext: lanesUi.renderContext });\n const drawer = new LanesDrawer({ showScope: lanesUi.lanesHost === 'workspace' });\n sidebarUi.registerDrawer(drawer);\n lanesUi.registerRoutes();\n\n return lanesUi;\n }\n}\n\nexport default LanesUI;\n\nLanesAspect.addRuntime(LanesUI);\n"]}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { RouteProps } from 'react-router-dom';
|
|
3
|
+
import { Slot, Harmony } from '@teambit/harmony';
|
|
4
|
+
import { MenuItemSlot } from '@teambit/ui-foundation.ui.main-dropdown';
|
|
5
|
+
import { UIRuntime, UiUI, UIAspect } from '@teambit/ui';
|
|
6
|
+
import { LanesAspect } from '@teambit/lanes';
|
|
7
|
+
import { NavigationSlot, RouteSlot } from '@teambit/ui-foundation.ui.react-router.slot-router';
|
|
8
|
+
import {
|
|
9
|
+
LanesDrawer,
|
|
10
|
+
LanesHost,
|
|
11
|
+
LanesOverview,
|
|
12
|
+
LanesOrderedNavigationSlot,
|
|
13
|
+
LanesModel,
|
|
14
|
+
LanesOverviewMenu,
|
|
15
|
+
CurrentLaneFromUrl,
|
|
16
|
+
} from '@teambit/lanes.ui.lanes';
|
|
17
|
+
import ScopeAspect, { ScopeUI } from '@teambit/scope';
|
|
18
|
+
import WorkspaceAspect, { WorkspaceUI } from '@teambit/workspace';
|
|
19
|
+
import ReactRouterAspect, { NavLinkProps, ReactRouterUI } from '@teambit/react-router';
|
|
20
|
+
import ComponentAspect, { ComponentUI } from '@teambit/component';
|
|
21
|
+
import SidebarAspect, { SidebarUI } from '@teambit/sidebar';
|
|
22
|
+
|
|
23
|
+
export class LanesUI {
|
|
24
|
+
static dependencies = [UIAspect, ReactRouterAspect, ComponentAspect, WorkspaceAspect, ScopeAspect, SidebarAspect];
|
|
25
|
+
static runtime = UIRuntime;
|
|
26
|
+
static slots = [
|
|
27
|
+
Slot.withType<RouteProps>(),
|
|
28
|
+
Slot.withType<MenuItemSlot>(),
|
|
29
|
+
Slot.withType<RouteProps>(),
|
|
30
|
+
Slot.withType<NavigationSlot>(),
|
|
31
|
+
];
|
|
32
|
+
|
|
33
|
+
constructor(
|
|
34
|
+
private uiUi: UiUI,
|
|
35
|
+
private componentUi: ComponentUI,
|
|
36
|
+
private routeSlot: RouteSlot,
|
|
37
|
+
private menuRouteSlot: RouteSlot,
|
|
38
|
+
private navSlot: LanesOrderedNavigationSlot,
|
|
39
|
+
private menuItemSlot: MenuItemSlot,
|
|
40
|
+
private reactRouter: ReactRouterUI,
|
|
41
|
+
private workspace?: WorkspaceUI,
|
|
42
|
+
private scope?: ScopeUI
|
|
43
|
+
) {
|
|
44
|
+
this.hostAspect = workspace || scope;
|
|
45
|
+
this.lanesHost = workspace ? 'workspace' : 'scope';
|
|
46
|
+
this.host = workspace ? WorkspaceAspect.id : ScopeAspect.id;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
private readonly lanesHost: LanesHost;
|
|
50
|
+
private readonly hostAspect?: WorkspaceUI | ScopeUI;
|
|
51
|
+
private readonly host: string;
|
|
52
|
+
|
|
53
|
+
private registerHostAspectRoutes() {
|
|
54
|
+
if (!this.hostAspect) return;
|
|
55
|
+
this.hostAspect.registerRoutes([
|
|
56
|
+
{
|
|
57
|
+
path: LanesModel.laneComponentUrlRegex,
|
|
58
|
+
children: this.componentUi.getComponentUI(this.host),
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
path: LanesModel.laneRouteUrlRegex,
|
|
62
|
+
children: <LanesOverview routeSlot={this.routeSlot} />,
|
|
63
|
+
},
|
|
64
|
+
]);
|
|
65
|
+
this.hostAspect.registerMenuRoutes([
|
|
66
|
+
{
|
|
67
|
+
path: LanesModel.laneComponentUrlRegex,
|
|
68
|
+
children: this.componentUi.getMenu(this.host),
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
path: LanesModel.laneRouteUrlRegex,
|
|
72
|
+
children: <LanesOverviewMenu navigationSlot={this.navSlot} host={this.host} />,
|
|
73
|
+
},
|
|
74
|
+
]);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
private registerLanesRoutes() {
|
|
78
|
+
this.registerNavigation({
|
|
79
|
+
href: '',
|
|
80
|
+
children: 'Gallery',
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
private registerRoutes() {
|
|
85
|
+
this.registerHostAspectRoutes();
|
|
86
|
+
this.registerLanesRoutes();
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
private renderContext = ({ children }: { children: ReactNode }) => {
|
|
90
|
+
return <CurrentLaneFromUrl>{children}</CurrentLaneFromUrl>;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
registerRoute(route: RouteProps) {
|
|
94
|
+
this.routeSlot.register(route);
|
|
95
|
+
return this;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
registerNavigation(nav: NavLinkProps, order?: number) {
|
|
99
|
+
this.navSlot.register({
|
|
100
|
+
props: nav,
|
|
101
|
+
order,
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
static async provider(
|
|
106
|
+
[uiUi, reactRouter, componentUi, workspaceUi, scopeUi, sidebarUi]: [
|
|
107
|
+
UiUI,
|
|
108
|
+
ReactRouterUI,
|
|
109
|
+
ComponentUI,
|
|
110
|
+
WorkspaceUI,
|
|
111
|
+
ScopeUI,
|
|
112
|
+
SidebarUI
|
|
113
|
+
],
|
|
114
|
+
_,
|
|
115
|
+
[routeSlot, menuItemSlot, menuRouteSlot, navSlot]: [RouteSlot, MenuItemSlot, RouteSlot, LanesOrderedNavigationSlot],
|
|
116
|
+
harmony: Harmony
|
|
117
|
+
) {
|
|
118
|
+
const { config } = harmony;
|
|
119
|
+
const host = String(config.get('teambit.harmony/bit'));
|
|
120
|
+
let workspace: WorkspaceUI | undefined;
|
|
121
|
+
let scope: ScopeUI | undefined;
|
|
122
|
+
if (host === WorkspaceAspect.id) {
|
|
123
|
+
workspace = workspaceUi;
|
|
124
|
+
}
|
|
125
|
+
if (host === ScopeAspect.id) {
|
|
126
|
+
scope = scopeUi;
|
|
127
|
+
}
|
|
128
|
+
const lanesUi = new LanesUI(
|
|
129
|
+
uiUi,
|
|
130
|
+
componentUi,
|
|
131
|
+
routeSlot,
|
|
132
|
+
menuRouteSlot,
|
|
133
|
+
navSlot,
|
|
134
|
+
menuItemSlot,
|
|
135
|
+
reactRouter,
|
|
136
|
+
workspace,
|
|
137
|
+
scope
|
|
138
|
+
);
|
|
139
|
+
uiUi.registerRenderHooks({ reactContext: lanesUi.renderContext });
|
|
140
|
+
const drawer = new LanesDrawer({ showScope: lanesUi.lanesHost === 'workspace' });
|
|
141
|
+
sidebarUi.registerDrawer(drawer);
|
|
142
|
+
lanesUi.registerRoutes();
|
|
143
|
+
|
|
144
|
+
return lanesUi;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
export default LanesUI;
|
|
149
|
+
|
|
150
|
+
LanesAspect.addRuntime(LanesUI);
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,41 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teambit/lanes",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.227",
|
|
4
4
|
"homepage": "https://bit.dev/teambit/lanes/lanes",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"componentId": {
|
|
7
7
|
"scope": "teambit.lanes",
|
|
8
8
|
"name": "lanes",
|
|
9
|
-
"version": "0.0.
|
|
9
|
+
"version": "0.0.227"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"chalk": "2.4.2",
|
|
13
13
|
"yn": "2.0.0",
|
|
14
14
|
"@teambit/harmony": "0.2.11",
|
|
15
15
|
"graphql-tag": "2.12.1",
|
|
16
|
+
"react-router-dom": "5.2.0",
|
|
16
17
|
"ramda": "0.27.1",
|
|
17
18
|
"@babel/runtime": "7.12.18",
|
|
18
19
|
"core-js": "^3.0.0",
|
|
19
20
|
"@teambit/bit-error": "0.0.394",
|
|
20
|
-
"@teambit/cli": "0.0.
|
|
21
|
-
"@teambit/scope": "0.0.
|
|
22
|
-
"@teambit/workspace": "0.0.
|
|
23
|
-
"@teambit/graphql": "0.0.
|
|
24
|
-
"@teambit/lanes.modules.diff": "0.0.106"
|
|
21
|
+
"@teambit/cli": "0.0.446",
|
|
22
|
+
"@teambit/scope": "0.0.655",
|
|
23
|
+
"@teambit/workspace": "0.0.655",
|
|
24
|
+
"@teambit/graphql": "0.0.655",
|
|
25
|
+
"@teambit/lanes.modules.diff": "0.0.106",
|
|
26
|
+
"@teambit/component": "0.0.655",
|
|
27
|
+
"@teambit/lanes.ui.lanes": "0.0.1",
|
|
28
|
+
"@teambit/react-router": "0.0.655",
|
|
29
|
+
"@teambit/sidebar": "0.0.655",
|
|
30
|
+
"@teambit/ui-foundation.ui.main-dropdown": "0.0.486",
|
|
31
|
+
"@teambit/ui-foundation.ui.react-router.slot-router": "0.0.488",
|
|
32
|
+
"@teambit/ui": "0.0.655"
|
|
25
33
|
},
|
|
26
34
|
"devDependencies": {
|
|
35
|
+
"@types/react-router-dom": "5.1.7",
|
|
36
|
+
"@types/react": "^17.0.8",
|
|
27
37
|
"@types/mocha": "9.1.0",
|
|
28
38
|
"@types/testing-library__jest-dom": "5.9.5",
|
|
29
39
|
"@types/jest": "^26.0.0",
|
|
30
40
|
"@types/react-dom": "^17.0.5",
|
|
31
|
-
"@types/react": "^17.0.8",
|
|
32
41
|
"@types/node": "12.20.4",
|
|
33
42
|
"@teambit/component.testing.mock-components": "0.0.3",
|
|
34
43
|
"@teambit/harmony.testing.load-aspect": "0.0.3",
|
|
35
44
|
"@teambit/workspace.testing.mock-workspace": "0.0.3"
|
|
36
45
|
},
|
|
37
46
|
"peerDependencies": {
|
|
38
|
-
"@teambit/legacy": "1.0.
|
|
47
|
+
"@teambit/legacy": "1.0.225",
|
|
39
48
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
40
49
|
"react": "^16.8.0 || ^17.0.0"
|
|
41
50
|
},
|
|
@@ -63,7 +72,7 @@
|
|
|
63
72
|
"react": "-"
|
|
64
73
|
},
|
|
65
74
|
"peerDependencies": {
|
|
66
|
-
"@teambit/legacy": "1.0.
|
|
75
|
+
"@teambit/legacy": "1.0.225",
|
|
67
76
|
"react-dom": "^16.8.0 || ^17.0.0",
|
|
68
77
|
"react": "^16.8.0 || ^17.0.0"
|
|
69
78
|
}
|
|
Binary file
|