@teambit/lanes 0.0.315 → 0.0.316
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/dist/lanes.ui.runtime.d.ts +1 -3
- package/dist/lanes.ui.runtime.js +64 -34
- package/dist/lanes.ui.runtime.js.map +1 -1
- package/lanes.ui.runtime.tsx +37 -23
- package/package-tar/teambit-lanes-0.0.316.tgz +0 -0
- package/package.json +14 -14
- package/{preview-1653708349111.js → preview-1653827208409.js} +2 -2
- package/package-tar/teambit-lanes-0.0.315.tgz +0 -0
@@ -21,9 +21,7 @@ export declare class LanesUI {
|
|
21
21
|
private scope?;
|
22
22
|
static dependencies: import("@teambit/harmony").Aspect[];
|
23
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<NavigationSlot>) | ((registerFn: () => string) => import("@teambit/harmony").SlotRegistry<LaneOverviewLineSlot>))[];
|
24
|
+
static slots: (((registerFn: () => string) => import("@teambit/harmony").SlotRegistry<RouteProps>) | ((registerFn: () => string) => import("@teambit/harmony").SlotRegistry<NavigationSlot>) | ((registerFn: () => string) => import("@teambit/harmony").SlotRegistry<LaneOverviewLineSlot>))[];
|
27
25
|
constructor(componentUi: ComponentUI, routeSlot: RouteSlot, navSlot: LanesOrderedNavigationSlot, menuWidgetSlot: MenuWidgetSlot,
|
28
26
|
/**
|
29
27
|
* overview line slot to add new lines beneath the overview section
|
package/dist/lanes.ui.runtime.js
CHANGED
@@ -31,6 +31,16 @@ function _react() {
|
|
31
31
|
return data;
|
32
32
|
}
|
33
33
|
|
34
|
+
function _reactRouterDom() {
|
35
|
+
const data = require("react-router-dom");
|
36
|
+
|
37
|
+
_reactRouterDom = function () {
|
38
|
+
return data;
|
39
|
+
};
|
40
|
+
|
41
|
+
return data;
|
42
|
+
}
|
43
|
+
|
34
44
|
function _harmony() {
|
35
45
|
const data = require("@teambit/harmony");
|
36
46
|
|
@@ -71,6 +81,16 @@ function _lanesUi() {
|
|
71
81
|
return data;
|
72
82
|
}
|
73
83
|
|
84
|
+
function _designUiPages() {
|
85
|
+
const data = require("@teambit/design.ui.pages.not-found");
|
86
|
+
|
87
|
+
_designUiPages = function () {
|
88
|
+
return data;
|
89
|
+
};
|
90
|
+
|
91
|
+
return data;
|
92
|
+
}
|
93
|
+
|
74
94
|
function _scope() {
|
75
95
|
const data = _interopRequireDefault(require("@teambit/scope"));
|
76
96
|
|
@@ -140,40 +160,48 @@ class LanesUI {
|
|
140
160
|
registerHostAspectRoutes() {
|
141
161
|
if (!this.hostAspect) return;
|
142
162
|
this.hostAspect.registerRoutes([{
|
143
|
-
path: _lanesUi().LanesModel.
|
144
|
-
children:
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
})
|
163
|
+
path: _lanesUi().LanesModel.lanesPrefix,
|
164
|
+
children: /*#__PURE__*/_react().default.createElement(_react().default.Fragment, null, /*#__PURE__*/_react().default.createElement(_reactRouterDom().Route, {
|
165
|
+
path: _lanesUi().LanesModel.lanePath
|
166
|
+
}, /*#__PURE__*/_react().default.createElement(_reactRouterDom().Route, {
|
167
|
+
index: true,
|
168
|
+
element: /*#__PURE__*/_react().default.createElement(_lanesUi().LaneReadmeOverview, {
|
169
|
+
host: this.host,
|
170
|
+
overviewSlot: this.overviewSlot,
|
171
|
+
routeSlot: this.routeSlot
|
172
|
+
})
|
173
|
+
}), /*#__PURE__*/_react().default.createElement(_reactRouterDom().Route, {
|
174
|
+
path: "~gallery",
|
175
|
+
element: /*#__PURE__*/_react().default.createElement(_lanesUi().LaneGallery, {
|
176
|
+
routeSlot: this.routeSlot,
|
177
|
+
overviewSlot: this.overviewSlot,
|
178
|
+
host: this.lanesHost
|
179
|
+
})
|
180
|
+
}), /*#__PURE__*/_react().default.createElement(_reactRouterDom().Route, {
|
181
|
+
path: "~component/*",
|
182
|
+
element: this.componentUi.getComponentUI(this.host)
|
183
|
+
}), /*#__PURE__*/_react().default.createElement(_reactRouterDom().Route, {
|
184
|
+
path: "*",
|
185
|
+
element: /*#__PURE__*/_react().default.createElement(_designUiPages().NotFoundPage, null)
|
186
|
+
})), /*#__PURE__*/_react().default.createElement(_reactRouterDom().Route, {
|
187
|
+
path: "*",
|
188
|
+
element: /*#__PURE__*/_react().default.createElement(_designUiPages().NotFoundPage, null)
|
189
|
+
}))
|
167
190
|
}]);
|
168
191
|
this.hostAspect.registerMenuRoutes([{
|
169
|
-
path: _lanesUi().LanesModel.
|
170
|
-
children:
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
192
|
+
path: _lanesUi().LanesModel.lanesPrefix,
|
193
|
+
children: /*#__PURE__*/_react().default.createElement(_reactRouterDom().Route, {
|
194
|
+
path: `${_lanesUi().LanesModel.lanePath}/*`
|
195
|
+
}, /*#__PURE__*/_react().default.createElement(_reactRouterDom().Route, {
|
196
|
+
path: "*",
|
197
|
+
element: /*#__PURE__*/_react().default.createElement(_lanesUi().LanesOverviewMenu, {
|
198
|
+
navigationSlot: this.navSlot,
|
199
|
+
widgetSlot: this.menuWidgetSlot
|
200
|
+
})
|
201
|
+
}), /*#__PURE__*/_react().default.createElement(_reactRouterDom().Route, {
|
202
|
+
path: "~component/*",
|
203
|
+
element: this.componentUi.getMenu(this.host)
|
204
|
+
}))
|
177
205
|
}]);
|
178
206
|
}
|
179
207
|
|
@@ -184,7 +212,8 @@ class LanesUI {
|
|
184
212
|
registerLanesRoutes() {
|
185
213
|
this.registerNavigation([{
|
186
214
|
props: {
|
187
|
-
href: '',
|
215
|
+
href: '.',
|
216
|
+
exact: true,
|
188
217
|
children: 'README'
|
189
218
|
},
|
190
219
|
order: 1,
|
@@ -197,7 +226,8 @@ class LanesUI {
|
|
197
226
|
}, {
|
198
227
|
props: {
|
199
228
|
href: '~gallery',
|
200
|
-
children: 'Gallery'
|
229
|
+
children: 'Gallery',
|
230
|
+
exact: true
|
201
231
|
},
|
202
232
|
order: 1
|
203
233
|
}]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["LanesUI","constructor","componentUi","routeSlot","navSlot","menuWidgetSlot","overviewSlot","workspace","scope","children","hostAspect","lanesHost","host","WorkspaceAspect","id","ScopeAspect","registerHostAspectRoutes","registerRoutes","path","LanesModel","laneComponentUrlRegex","getComponentUI","laneRouteUrlRegex","exact","registerMenuRoutes","getMenu","registerMenuWidget","menuItems","register","registerLanesRoutes","registerNavigation","props","href","order","hide","lanesContext","useLanesContext","viewedLane","readmeComponent","registerRoute","route","registerOverviewLine","lines","routes","provider","uiUi","workspaceUi","scopeUi","sidebarUi","_","harmony","config","String","get","lanesUi","registerRenderHooks","reactContext","renderContext","drawer","LanesDrawer","showScope","registerDrawer","UIAspect","ComponentAspect","SidebarAspect","UIRuntime","Slot","withType","LanesAspect","addRuntime"],"sources":["lanes.ui.runtime.tsx"],"sourcesContent":["import React, { ReactNode } from 'react';\nimport { RouteProps } from 'react-router-dom';\nimport { Slot, Harmony } from '@teambit/harmony';\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 LaneGallery,\n LanesOrderedNavigationSlot,\n LanesModel,\n LanesOverviewMenu,\n ViewedLaneFromUrl,\n LaneOverviewLineSlot,\n LaneOverviewLine,\n UseLaneMenu,\n useLanesContext,\n LanesNavPlugin,\n LaneReadmeOverview,\n} from '@teambit/lanes.ui.lanes';\nimport ScopeAspect, { ScopeUI } from '@teambit/scope';\nimport WorkspaceAspect, { WorkspaceUI } from '@teambit/workspace';\nimport ComponentAspect, { ComponentUI } from '@teambit/component';\nimport SidebarAspect, { SidebarUI } from '@teambit/sidebar';\nimport { MenuWidget, MenuWidgetSlot } from '@teambit/ui-foundation.ui.menu';\n\nexport class LanesUI {\n static dependencies = [UIAspect, ComponentAspect, WorkspaceAspect, ScopeAspect, SidebarAspect];\n static runtime = UIRuntime;\n static slots = [\n Slot.withType<RouteProps>(),\n Slot.withType<LaneOverviewLineSlot>(),\n Slot.withType<NavigationSlot>(),\n Slot.withType<MenuWidgetSlot>(),\n ];\n\n constructor(\n private componentUi: ComponentUI,\n private routeSlot: RouteSlot,\n private navSlot: LanesOrderedNavigationSlot,\n private menuWidgetSlot: MenuWidgetSlot,\n /**\n * overview line slot to add new lines beneath the overview section\n */\n private overviewSlot: LaneOverviewLineSlot,\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}/~readme`,\n children: <LaneReadmeOverview host={this.host} overviewSlot={this.overviewSlot} routeSlot={this.routeSlot} />,\n },\n {\n path: `${LanesModel.laneRouteUrlRegex}/~gallery`,\n children: <LaneGallery routeSlot={this.routeSlot} overviewSlot={this.overviewSlot} host={this.lanesHost}/>,\n },\n {\n exact: true,\n path: `${LanesModel.laneRouteUrlRegex}`,\n children: <LaneReadmeOverview host={this.host} overviewSlot={this.overviewSlot} 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} widgetSlot={this.menuWidgetSlot} />,\n },\n ]);\n }\n\n registerMenuWidget(...menuItems: MenuWidget[]) {\n this.menuWidgetSlot.register(menuItems);\n }\n\n private registerLanesRoutes() {\n this.registerNavigation([\n {\n props: {\n href: '',\n children: 'README',\n },\n order: 1,\n hide: () => {\n const lanesContext = useLanesContext();\n return !lanesContext?.viewedLane?.readmeComponent;\n },\n },\n {\n props: {\n href: '~gallery',\n children: 'Gallery',\n },\n order: 1,\n },\n ]);\n }\n\n private registerRoutes() {\n this.registerHostAspectRoutes();\n this.registerLanesRoutes();\n }\n\n private renderContext = ({ children }: { children: ReactNode }) => {\n return <ViewedLaneFromUrl>{children}</ViewedLaneFromUrl>;\n };\n\n registerRoute(route: RouteProps) {\n this.routeSlot.register(route);\n return this;\n }\n\n /**\n * register a new line beneath the lane overview section.\n */\n registerOverviewLine(...lines: LaneOverviewLine[]) {\n this.overviewSlot.register(lines);\n return this;\n }\n\n registerNavigation(routes: LanesNavPlugin[]) {\n this.navSlot.register(routes);\n }\n\n static async provider(\n [uiUi, componentUi, workspaceUi, scopeUi, sidebarUi]: [UiUI, ComponentUI, WorkspaceUI, ScopeUI, SidebarUI],\n _,\n [routeSlot, overviewSlot, navSlot, menuWidgetSlot]: [\n RouteSlot,\n LaneOverviewLineSlot,\n LanesOrderedNavigationSlot,\n MenuWidgetSlot\n ],\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(componentUi, routeSlot, navSlot, overviewSlot, menuWidgetSlot, workspace, scope);\n uiUi.registerRenderHooks({ reactContext: lanesUi.renderContext });\n const drawer = new LanesDrawer({ showScope: lanesUi.lanesHost === 'workspace' });\n sidebarUi.registerDrawer(drawer);\n lanesUi.registerRoutes();\n lanesUi.registerMenuWidget(() => <UseLaneMenu host={lanesUi.lanesHost} />);\n return lanesUi;\n }\n}\n\nexport default LanesUI;\n\nLanesAspect.addRuntime(LanesUI);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAeA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAGO,MAAMA,OAAN,CAAc;EAUnBC,WAAW,CACDC,WADC,EAEDC,SAFC,EAGDC,OAHC,EAIDC,cAJC;EAKT;AACJ;AACA;EACYC,YARC,EASDC,SATC,EAUDC,KAVC,EAWT;IAAA,KAVQN,WAUR,GAVQA,WAUR;IAAA,KATQC,SASR,GATQA,SASR;IAAA,KARQC,OAQR,GARQA,OAQR;IAAA,KAPQC,cAOR,GAPQA,cAOR;IAAA,KAHQC,YAGR,GAHQA,YAGR;IAAA,KAFQC,SAER,GAFQA,SAER;IAAA,KADQC,KACR,GADQA,KACR;IAAA;IAAA;IAAA;IAAA,uDA2EsB,CAAC;MAAEC;IAAF,CAAD,KAA2C;MACjE,oBAAO,+BAAC,4BAAD,QAAoBA,QAApB,CAAP;IACD,CA7EC;IACA,KAAKC,UAAL,GAAkBH,SAAS,IAAIC,KAA/B;IACA,KAAK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Fa,EAGbD,eAAA,CAAKC,QAAL,EAHa,EAIbD,eAAA,CAAKC,QAAL,EAJa,C;eAiJFnE,O;;;AAEfoE,oBAAA,CAAYC,UAAZ,CAAuBrE,OAAvB"}
|
1
|
+
{"version":3,"names":["LanesUI","constructor","componentUi","routeSlot","navSlot","menuWidgetSlot","overviewSlot","workspace","scope","children","hostAspect","lanesHost","host","WorkspaceAspect","id","ScopeAspect","registerHostAspectRoutes","registerRoutes","path","LanesModel","lanesPrefix","lanePath","getComponentUI","registerMenuRoutes","getMenu","registerMenuWidget","menuItems","register","registerLanesRoutes","registerNavigation","props","href","exact","order","hide","lanesContext","useLanesContext","viewedLane","readmeComponent","registerRoute","route","registerOverviewLine","lines","routes","provider","uiUi","workspaceUi","scopeUi","sidebarUi","_","harmony","config","String","get","lanesUi","registerRenderHooks","reactContext","renderContext","drawer","LanesDrawer","showScope","registerDrawer","UIAspect","ComponentAspect","SidebarAspect","UIRuntime","Slot","withType","LanesAspect","addRuntime"],"sources":["lanes.ui.runtime.tsx"],"sourcesContent":["import React, { ReactNode } from 'react';\nimport { Route, RouteProps } from 'react-router-dom';\nimport { Slot, Harmony } from '@teambit/harmony';\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 LaneGallery,\n LanesOrderedNavigationSlot,\n LanesModel,\n LanesOverviewMenu,\n ViewedLaneFromUrl,\n LaneOverviewLineSlot,\n LaneOverviewLine,\n UseLaneMenu,\n useLanesContext,\n LanesNavPlugin,\n LaneReadmeOverview,\n} from '@teambit/lanes.ui.lanes';\nimport { NotFoundPage } from '@teambit/design.ui.pages.not-found';\nimport ScopeAspect, { ScopeUI } from '@teambit/scope';\nimport WorkspaceAspect, { WorkspaceUI } from '@teambit/workspace';\nimport ComponentAspect, { ComponentUI } from '@teambit/component';\nimport SidebarAspect, { SidebarUI } from '@teambit/sidebar';\nimport { MenuWidget, MenuWidgetSlot } from '@teambit/ui-foundation.ui.menu';\n\nexport class LanesUI {\n static dependencies = [UIAspect, ComponentAspect, WorkspaceAspect, ScopeAspect, SidebarAspect];\n static runtime = UIRuntime;\n static slots = [\n Slot.withType<RouteProps>(),\n Slot.withType<LaneOverviewLineSlot>(),\n Slot.withType<NavigationSlot>(),\n Slot.withType<MenuWidgetSlot>(),\n ];\n\n constructor(\n private componentUi: ComponentUI,\n private routeSlot: RouteSlot,\n private navSlot: LanesOrderedNavigationSlot,\n private menuWidgetSlot: MenuWidgetSlot,\n /**\n * overview line slot to add new lines beneath the overview section\n */\n private overviewSlot: LaneOverviewLineSlot,\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.lanesPrefix,\n children: (\n <>\n <Route path={LanesModel.lanePath}>\n <Route\n index\n element={\n <LaneReadmeOverview host={this.host} overviewSlot={this.overviewSlot} routeSlot={this.routeSlot} />\n }\n />\n <Route\n path=\"~gallery\"\n element={\n <LaneGallery routeSlot={this.routeSlot} overviewSlot={this.overviewSlot} host={this.lanesHost} />\n }\n />\n <Route path=\"~component/*\" element={this.componentUi.getComponentUI(this.host)} />\n <Route path=\"*\" element={<NotFoundPage />} />\n </Route>\n <Route path=\"*\" element={<NotFoundPage />} />\n </>\n ),\n },\n ]);\n this.hostAspect.registerMenuRoutes([\n {\n path: LanesModel.lanesPrefix,\n children: (\n <Route path={`${LanesModel.lanePath}/*`}>\n <Route\n path=\"*\"\n element={<LanesOverviewMenu navigationSlot={this.navSlot} widgetSlot={this.menuWidgetSlot} />}\n />\n <Route path=\"~component/*\" element={this.componentUi.getMenu(this.host)} />\n </Route>\n ),\n },\n ]);\n }\n\n registerMenuWidget(...menuItems: MenuWidget[]) {\n this.menuWidgetSlot.register(menuItems);\n }\n\n private registerLanesRoutes() {\n this.registerNavigation([\n {\n props: {\n href: '.',\n exact: true,\n children: 'README',\n },\n order: 1,\n hide: () => {\n const lanesContext = useLanesContext();\n return !lanesContext?.viewedLane?.readmeComponent;\n },\n },\n {\n props: {\n href: '~gallery',\n children: 'Gallery',\n exact: true,\n },\n order: 1,\n },\n ]);\n }\n\n private registerRoutes() {\n this.registerHostAspectRoutes();\n this.registerLanesRoutes();\n }\n\n private renderContext = ({ children }: { children: ReactNode }) => {\n return <ViewedLaneFromUrl>{children}</ViewedLaneFromUrl>;\n };\n\n registerRoute(route: RouteProps) {\n this.routeSlot.register(route);\n return this;\n }\n\n /**\n * register a new line beneath the lane overview section.\n */\n registerOverviewLine(...lines: LaneOverviewLine[]) {\n this.overviewSlot.register(lines);\n return this;\n }\n\n registerNavigation(routes: LanesNavPlugin[]) {\n this.navSlot.register(routes);\n }\n\n static async provider(\n [uiUi, componentUi, workspaceUi, scopeUi, sidebarUi]: [UiUI, ComponentUI, WorkspaceUI, ScopeUI, SidebarUI],\n _,\n [routeSlot, overviewSlot, navSlot, menuWidgetSlot]: [\n RouteSlot,\n LaneOverviewLineSlot,\n LanesOrderedNavigationSlot,\n MenuWidgetSlot\n ],\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(componentUi, routeSlot, navSlot, overviewSlot, menuWidgetSlot, workspace, scope);\n uiUi.registerRenderHooks({ reactContext: lanesUi.renderContext });\n const drawer = new LanesDrawer({ showScope: lanesUi.lanesHost === 'workspace' });\n sidebarUi.registerDrawer(drawer);\n lanesUi.registerRoutes();\n lanesUi.registerMenuWidget(() => <UseLaneMenu host={lanesUi.lanesHost} />);\n return lanesUi;\n }\n}\n\nexport default LanesUI;\n\nLanesAspect.addRuntime(LanesUI);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAEA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAeA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AACA;EAAA;;EAAA;IAAA;EAAA;;EAAA;AAAA;;AAGO,MAAMA,OAAN,CAAc;EAUnBC,WAAW,CACDC,WADC,EAEDC,SAFC,EAGDC,OAHC,EAIDC,cAJC;EAKT;AACJ;AACA;EACYC,YARC,EASDC,SATC,EAUDC,KAVC,EAWT;IAAA,KAVQN,WAUR,GAVQA,WAUR;IAAA,KATQC,SASR,GATQA,SASR;IAAA,KARQC,OAQR,GARQA,OAQR;IAAA,KAPQC,cAOR,GAPQA,cAOR;IAAA,KAHQC,YAGR,GAHQA,YAGR;IAAA,KAFQC,SAER,GAFQA,SAER;IAAA,KADQC,KACR,GADQA,KACR;IAAA;IAAA;IAAA;IAAA,uDAwFsB,CAAC;MAAEC;IAAF,CAAD,KAA2C;MACjE,oBAAO,+BAAC,4BAAD,QAAoBA,QAApB,CAAP;IACD,CA1FC;IACA,KAAKC,UAAL,GAAkBH,SAAS,IAAIC,KAA/B;IACA,KAAK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;AA9JkB;;;gCAARtD,O,kBACW,CAAC8D,cAAD,EAAWC,oBAAX,EAA4BlD,oBAA5B,EAA6CE,gBAA7C,EAA0DiD,kBAA1D,C;gCADXhE,O,aAEMiE,e;gCAFNjE,O,WAGI,CACbkE,eAAA,CAAKC,QAAL,EADa,EAEbD,eAAA,CAAKC,QAAL,EAFa,EAGbD,eAAA,CAAKC,QAAL,EAHa,EAIbD,eAAA,CAAKC,QAAL,EAJa,C;eA8JFnE,O;;;AAEfoE,oBAAA,CAAYC,UAAZ,CAAuBrE,OAAvB"}
|
package/lanes.ui.runtime.tsx
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import React, { ReactNode } from 'react';
|
2
|
-
import { RouteProps } from 'react-router-dom';
|
2
|
+
import { Route, RouteProps } from 'react-router-dom';
|
3
3
|
import { Slot, Harmony } from '@teambit/harmony';
|
4
4
|
import { UIRuntime, UiUI, UIAspect } from '@teambit/ui';
|
5
5
|
import { LanesAspect } from '@teambit/lanes';
|
@@ -19,6 +19,7 @@ import {
|
|
19
19
|
LanesNavPlugin,
|
20
20
|
LaneReadmeOverview,
|
21
21
|
} from '@teambit/lanes.ui.lanes';
|
22
|
+
import { NotFoundPage } from '@teambit/design.ui.pages.not-found';
|
22
23
|
import ScopeAspect, { ScopeUI } from '@teambit/scope';
|
23
24
|
import WorkspaceAspect, { WorkspaceUI } from '@teambit/workspace';
|
24
25
|
import ComponentAspect, { ComponentUI } from '@teambit/component';
|
@@ -60,31 +61,42 @@ export class LanesUI {
|
|
60
61
|
if (!this.hostAspect) return;
|
61
62
|
this.hostAspect.registerRoutes([
|
62
63
|
{
|
63
|
-
path: LanesModel.
|
64
|
-
children:
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
64
|
+
path: LanesModel.lanesPrefix,
|
65
|
+
children: (
|
66
|
+
<>
|
67
|
+
<Route path={LanesModel.lanePath}>
|
68
|
+
<Route
|
69
|
+
index
|
70
|
+
element={
|
71
|
+
<LaneReadmeOverview host={this.host} overviewSlot={this.overviewSlot} routeSlot={this.routeSlot} />
|
72
|
+
}
|
73
|
+
/>
|
74
|
+
<Route
|
75
|
+
path="~gallery"
|
76
|
+
element={
|
77
|
+
<LaneGallery routeSlot={this.routeSlot} overviewSlot={this.overviewSlot} host={this.lanesHost} />
|
78
|
+
}
|
79
|
+
/>
|
80
|
+
<Route path="~component/*" element={this.componentUi.getComponentUI(this.host)} />
|
81
|
+
<Route path="*" element={<NotFoundPage />} />
|
82
|
+
</Route>
|
83
|
+
<Route path="*" element={<NotFoundPage />} />
|
84
|
+
</>
|
85
|
+
),
|
78
86
|
},
|
79
87
|
]);
|
80
88
|
this.hostAspect.registerMenuRoutes([
|
81
89
|
{
|
82
|
-
path: LanesModel.
|
83
|
-
children:
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
90
|
+
path: LanesModel.lanesPrefix,
|
91
|
+
children: (
|
92
|
+
<Route path={`${LanesModel.lanePath}/*`}>
|
93
|
+
<Route
|
94
|
+
path="*"
|
95
|
+
element={<LanesOverviewMenu navigationSlot={this.navSlot} widgetSlot={this.menuWidgetSlot} />}
|
96
|
+
/>
|
97
|
+
<Route path="~component/*" element={this.componentUi.getMenu(this.host)} />
|
98
|
+
</Route>
|
99
|
+
),
|
88
100
|
},
|
89
101
|
]);
|
90
102
|
}
|
@@ -97,7 +109,8 @@ export class LanesUI {
|
|
97
109
|
this.registerNavigation([
|
98
110
|
{
|
99
111
|
props: {
|
100
|
-
href: '',
|
112
|
+
href: '.',
|
113
|
+
exact: true,
|
101
114
|
children: 'README',
|
102
115
|
},
|
103
116
|
order: 1,
|
@@ -110,6 +123,7 @@ export class LanesUI {
|
|
110
123
|
props: {
|
111
124
|
href: '~gallery',
|
112
125
|
children: 'Gallery',
|
126
|
+
exact: true,
|
113
127
|
},
|
114
128
|
order: 1,
|
115
129
|
},
|
Binary file
|
package/package.json
CHANGED
@@ -1,45 +1,44 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/lanes",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.316",
|
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.316"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"chalk": "2.4.2",
|
13
13
|
"yn": "2.0.0",
|
14
14
|
"graphql-tag": "2.12.1",
|
15
15
|
"lodash": "4.17.21",
|
16
|
-
"react-router-dom": "5.2.0",
|
17
16
|
"p-map-series": "2.1.0",
|
18
17
|
"@babel/runtime": "7.12.18",
|
19
18
|
"core-js": "^3.0.0",
|
20
19
|
"@teambit/harmony": "0.3.3",
|
21
20
|
"@teambit/bit-error": "0.0.394",
|
22
21
|
"@teambit/cli": "0.0.493",
|
23
|
-
"@teambit/merging": "0.0.
|
24
|
-
"@teambit/scope": "0.0.
|
25
|
-
"@teambit/workspace": "0.0.
|
26
|
-
"@teambit/graphql": "0.0.
|
22
|
+
"@teambit/merging": "0.0.59",
|
23
|
+
"@teambit/scope": "0.0.744",
|
24
|
+
"@teambit/workspace": "0.0.744",
|
25
|
+
"@teambit/graphql": "0.0.744",
|
27
26
|
"@teambit/community": "0.0.41",
|
28
|
-
"@teambit/component": "0.0.
|
27
|
+
"@teambit/component": "0.0.744",
|
29
28
|
"@teambit/lane-id": "0.0.12",
|
30
29
|
"@teambit/lanes.modules.diff": "0.0.120",
|
31
30
|
"@teambit/legacy-bit-id": "0.0.399",
|
32
|
-
"@teambit/logger": "0.0.
|
33
|
-
"@teambit/
|
34
|
-
"@teambit/
|
31
|
+
"@teambit/logger": "0.0.586",
|
32
|
+
"@teambit/design.ui.pages.not-found": "0.0.355",
|
33
|
+
"@teambit/lanes.ui.lanes": "0.0.60",
|
34
|
+
"@teambit/sidebar": "0.0.744",
|
35
35
|
"@teambit/ui-foundation.ui.menu": "0.0.487",
|
36
|
-
"@teambit/ui-foundation.ui.react-router.slot-router": "0.0.
|
37
|
-
"@teambit/ui": "0.0.
|
36
|
+
"@teambit/ui-foundation.ui.react-router.slot-router": "0.0.490",
|
37
|
+
"@teambit/ui": "0.0.744"
|
38
38
|
},
|
39
39
|
"devDependencies": {
|
40
40
|
"@types/react": "^17.0.8",
|
41
41
|
"@types/lodash": "4.14.165",
|
42
|
-
"@types/react-router-dom": "5.1.7",
|
43
42
|
"@types/mocha": "9.1.0",
|
44
43
|
"@types/testing-library__jest-dom": "5.9.5",
|
45
44
|
"@types/jest": "^26.0.0",
|
@@ -50,6 +49,7 @@
|
|
50
49
|
"@teambit/workspace.testing.mock-workspace": "0.0.5"
|
51
50
|
},
|
52
51
|
"peerDependencies": {
|
52
|
+
"react-router-dom": "^6.0.0",
|
53
53
|
"@teambit/legacy": "1.0.273",
|
54
54
|
"react-dom": "^16.8.0 || ^17.0.0",
|
55
55
|
"react": "^16.8.0 || ^17.0.0"
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.lanes_lanes@0.0.
|
2
|
-
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.lanes_lanes@0.0.
|
1
|
+
export const compositions = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.lanes_lanes@0.0.316/dist/lanes.composition.js')]
|
2
|
+
export const overview = [require('/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.lanes_lanes@0.0.316/dist/lanes.docs.mdx')]
|
Binary file
|