@teambit/lanes 1.0.142 → 1.0.144
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/dist/lane.cmd.d.ts +13 -13
- package/dist/lanes.composition.d.ts +1 -0
- package/dist/lanes.main.runtime.d.ts +1 -1
- package/dist/lanes.spec.js +65 -57
- package/dist/lanes.spec.js.map +1 -1
- package/dist/lanes.ui.runtime.d.ts +4 -3
- package/dist/lanes.ui.runtime.js +7 -7
- package/dist/lanes.ui.runtime.js.map +1 -1
- package/dist/{preview-1705806923881.js → preview-1706239131657.js} +2 -2
- package/lanes.ui.runtime.tsx +1 -1
- package/package.json +32 -31
- package/tsconfig.json +4 -1
@@ -1,18 +1,18 @@
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
2
2
|
<testsuites>
|
3
|
-
<testsuite name="teambit.lanes/lanes@1.0.
|
4
|
-
<testcase classname="lanes.spec.js" name="should list all lanes" time="0.
|
5
|
-
<testcase classname="lanes.spec.js" name="should return that the lane is up to date when the lane is ahead of main" time="0.
|
6
|
-
<testcase classname="lanes.spec.js" name="should return that the lane is not up to date when main is ahead" time="0.
|
7
|
-
<testcase classname="lanes.spec.js" name="should return that the lane is up to date when the lane is ahead of main" time="0.
|
8
|
-
<testcase classname="lanes.spec.js" name="should return that the lane is not up to date when main is ahead" time="0.
|
9
|
-
<testcase classname="lanes.spec.js" name="should restore the deleted lane" time="0.
|
10
|
-
<testcase classname="lanes.spec.js" name="should not throw"/>
|
11
|
-
<testcase classname="lanes.spec.js" name="should throw when restoring the lane" time="0.002"/>
|
12
|
-
<testcase classname="lanes.spec.js" name="should create lane history object when creating a new lane" time="0.
|
13
|
-
<testcase classname="lanes.spec.js" name="should add a record to LaneHistory when snapping" time="0.
|
14
|
-
<testcase classname="lanes.spec.js" name="should not add a record to the lane-history"/>
|
15
|
-
<testcase classname="lanes.spec.js" name="should be able to checkout to a previous state of the lane" time="0.038"/>
|
16
|
-
<testcase classname="lanes.spec.js" name="should not throw when creating the second lane" time="0.
|
3
|
+
<testsuite name="teambit.lanes/lanes@1.0.144" tests="13" failures="0" errors="0" skipped="0">
|
4
|
+
<testcase classname="dist/lanes.spec.js" name="should list all lanes" time="0.002"/>
|
5
|
+
<testcase classname="dist/lanes.spec.js" name="should return that the lane is up to date when the lane is ahead of main" time="0.161"/>
|
6
|
+
<testcase classname="dist/lanes.spec.js" name="should return that the lane is not up to date when main is ahead" time="0.281"/>
|
7
|
+
<testcase classname="dist/lanes.spec.js" name="should return that the lane is up to date when the lane is ahead of main" time="0.109"/>
|
8
|
+
<testcase classname="dist/lanes.spec.js" name="should return that the lane is not up to date when main is ahead" time="0.189"/>
|
9
|
+
<testcase classname="dist/lanes.spec.js" name="should restore the deleted lane" time="0.001"/>
|
10
|
+
<testcase classname="dist/lanes.spec.js" name="should not throw"/>
|
11
|
+
<testcase classname="dist/lanes.spec.js" name="should throw when restoring the lane" time="0.002"/>
|
12
|
+
<testcase classname="dist/lanes.spec.js" name="should create lane history object when creating a new lane" time="0.001"/>
|
13
|
+
<testcase classname="dist/lanes.spec.js" name="should add a record to LaneHistory when snapping" time="0.171"/>
|
14
|
+
<testcase classname="dist/lanes.spec.js" name="should not add a record to the lane-history" time="0.001"/>
|
15
|
+
<testcase classname="dist/lanes.spec.js" name="should be able to checkout to a previous state of the lane" time="0.038"/>
|
16
|
+
<testcase classname="dist/lanes.spec.js" name="should not throw when creating the second lane" time="0.121"/>
|
17
17
|
</testsuite>
|
18
18
|
</testsuites>
|
@@ -1 +1 @@
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.lanes/lanes-preview"]=t():e["teambit.lanes/lanes-preview"]=t()}(self,(()=>(()=>{"use strict";var e={24190:(e,t,n)=>{var a={id:"teambit.lanes/lanes@1.0.142",homepage:"https://bit.cloud/teambit/lanes/lanes",exported:!0};function o(){const e=i(n(87363));return o=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,o.__bit_component=a,i.__bit_component=a;const r=()=>o().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},o().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/lanes.svg"}));r.__bit_component=a,t.Logo=r},87363:e=>{e.exports=React}},t={};function n(a){var o=t[a];if(void 0!==o)return o.exports;var i=t[a]={exports:{}};return e[a](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{n.r(a),n.d(a,{compositions:()=>p,compositions_metadata:()=>c,overview:()=>h});var e={};n.r(e),n.d(e,{default:()=>d});var t=n(24190);n(87363);const o=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var r=["components"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},l.apply(this,arguments)}var s={},m="wrapper";function d(e){var t=e.components,n=function(e,t){if(null==e)return{};var n,a,o=function(e,t){if(null==e)return{};var n,a,o={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,r);return(0,o.mdx)(m,l({},s,n,{components:t,mdxType:"MDXLayout"}),(0,o.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,o.mdx)("p",null,"See more details about these two features here: ",(0,o.mdx)("a",{parentName:"p",href:"https://github.com/teambit/bit/issues/1986"},"Lanes"),". ",(0,o.mdx)("a",{parentName:"p",href:"https://github.com/teambit/bit/issues/1985"},"Snaps"),"."),(0,o.mdx)("p",null,"The following describes the final implementation, which differs from the specification above."),(0,o.mdx)("h2",null,"Synopsis"),(0,o.mdx)("pre",null,(0,o.mdx)("code",{parentName:"pre"},"- create a snap: `bit snap` (synopsis similar to the `bit tag`)\n- create a new lane: `bit lane create <name>`\n- list lanes: `bit lane list`\n- switch between lanes: `bit switch <name>`\n- merge lanes: `bit lane merge`\n- show lane details: `bit lane show <name>`\n- diff between lanes: `bit lane diff <values>`\n- track local lane to a remote lane: `bit switch --as`\n- remove a lane: `bit lane remove <name>`.\n- fetch lane objects (without the components): `bit fetch --lanes`\n- import a lane: `bit lane import`\n- export current lane: `bit export`\n- (internal) cat lane object: `bit cat-lane <name>`\n")),(0,o.mdx)("h2",null,"Important points"),(0,o.mdx)("h3",null,"Lane ID"),(0,o.mdx)("p",null,"The Lane id consists of the lane name and the scope. If this is a new lane, the scope is the defaultScope.\nThe ",(0,o.mdx)("inlineCode",{parentName:"p"},"LaneId")," ",(0,o.mdx)("em",{parentName:"p"},"always")," has these two props."),(0,o.mdx)("h3",null,"Performance consideration"),(0,o.mdx)("p",null,"Currently, if it imports with no-deps, it doesn't ask for parents, if it imports with deps it imports with all parents. It is originated from src/api/scope/lib/fetch.ts: ",(0,o.mdx)("inlineCode",{parentName:"p"},"const collectParents = !noDependencies;"),". We need to make a decision here."),(0,o.mdx)("h3",null,"Hash"),(0,o.mdx)("ul",null,(0,o.mdx)("li",{parentName:"ul"},"Snap's hash is generated by a UUID and then converted into sha1. ",(0,o.mdx)("inlineCode",{parentName:"li"},"sha1(v4())"),"."),(0,o.mdx)("li",{parentName:"ul"},"Lane's hash is generated by a UUID and then converted into sha1. ",(0,o.mdx)("inlineCode",{parentName:"li"},"sha1(v4())"),"."),(0,o.mdx)("li",{parentName:"ul"},"Tag's hash stays the same. Generated by the ",(0,o.mdx)("inlineCode",{parentName:"li"},"Version.id()"),"."),(0,o.mdx)("li",{parentName:"ul"},"Lane's hash doesn't get changed even if the lane has been renamed or its scope changed.")),(0,o.mdx)("h3",null,"Lane Data"),(0,o.mdx)("p",null,"Lane data, for the most cases is a map of component-id:snap-head, in other words, it saves per component the head snap. There are 3 different places where we store such data for different purposes."),(0,o.mdx)("ul",null,(0,o.mdx)("li",{parentName:"ul"},(0,o.mdx)("inlineCode",{parentName:"li"},"lane-object"),' "Lane" is saved in the scope ',(0,o.mdx)("inlineCode",{parentName:"li"},".bit/objects")," (.bit can be .git/bit locally), it has a unique hash and contains a map of components and their heads. This object exists on both local and remote scopes. Its main purpose is to sync lane-data between scopes. See ",(0,o.mdx)("inlineCode",{parentName:"li"},"Lane")," class (in scope/model) for the implementation details."),(0,o.mdx)("li",{parentName:"ul"},(0,o.mdx)("inlineCode",{parentName:"li"},"remote-lane")," (component and their heads) is saved in ",(0,o.mdx)("inlineCode",{parentName:"li"},".bit/refs/remote/remote-name/lane-name"),". These refs files are saved in both, local and remote scopes. Its main purpose is to keep track where the remote-heads are per lane. See ",(0,o.mdx)("inlineCode",{parentName:"li"},"RemoteLanes")," class for the implementation details.")),(0,o.mdx)("p",null,"More places that stores lanes related data:"),(0,o.mdx)("ul",null,(0,o.mdx)("li",{parentName:"ul"},"the currently checked out lane is saved in the scope.json file. (e.g. ",(0,o.mdx)("inlineCode",{parentName:"li"},'{ lanes: { current: "lane-a", tracking: "remote/lane-a" } }'),")."),(0,o.mdx)("li",{parentName:"ul"},"When switching to a remote lane, the .bitmap is updated as well with the remote-name, so then, when cloning the project, it's possible to fetch the remote lane data.")),(0,o.mdx)("p",null,"Summary of when/what lanes data is saved per command:"),(0,o.mdx)("ul",null,(0,o.mdx)("li",{parentName:"ul"},(0,o.mdx)("inlineCode",{parentName:"li"},"bit lane create"),": creates a new lane-object and creates a new lane record in scope.json and .bitmap."),(0,o.mdx)("li",{parentName:"ul"},(0,o.mdx)("inlineCode",{parentName:"li"},"bit snap"),": adds an entry to the lane-object."),(0,o.mdx)("li",{parentName:"ul"},(0,o.mdx)("inlineCode",{parentName:"li"},"bit export"),": pushes the lane-object to the remote. On the remote, the lane-object is created or updated/merged."),(0,o.mdx)("li",{parentName:"ul"},(0,o.mdx)("inlineCode",{parentName:"li"},"bit switch --remote"),": 1) creates/updates lane-object in the scope. 2) creates/updates remote-lane. the remote-lane is updated also for main."),(0,o.mdx)("li",{parentName:"ul"},(0,o.mdx)("inlineCode",{parentName:"li"},"bit fetch")," or ",(0,o.mdx)("inlineCode",{parentName:"li"},"bit import --objects"),": creates/updates remote-lane. the remote-lane is updated also for main. It doesn't update/merge the lane object.")),(0,o.mdx)("h3",null,"Merge during import"),(0,o.mdx)("ul",null,(0,o.mdx)("li",{parentName:"ul"},"When the remote is ahead, it's easy, just update the head to the remote-head."),(0,o.mdx)("li",{parentName:"ul"},"When the local and remote have diverged, it's more complex. We need to create a snap-merge that has two parents, one point to the local head and one point to the remote head."),(0,o.mdx)("li",{parentName:"ul"},"On ",(0,o.mdx)("inlineCode",{parentName:"li"},"bit import --objects")," (or ",(0,o.mdx)("inlineCode",{parentName:"li"},"bit fetch"),") we don't merge. The remote head is saved in the .bit/refs/remote dir. Then, ",(0,o.mdx)("inlineCode",{parentName:"li"},"bit status")," shows that these components are merge-pending."),(0,o.mdx)("li",{parentName:"ul"},"On ",(0,o.mdx)("inlineCode",{parentName:"li"},"bit import <id>")," we do the merge."),(0,o.mdx)("li",{parentName:"ul"},"in case the merge wasn't done and the user is trying to export, the remote blocks is as it finds out that its head doesn't exist on the incoming component."),(0,o.mdx)("li",{parentName:"ul"},"in case the snap-merge failed due to a conflict, it saves the conflict and heads data into ",(0,o.mdx)("inlineCode",{parentName:"li"},".bit/unmerged.json")," file.")),(0,o.mdx)("h3",null,"Merge components"),(0,o.mdx)("ul",null,(0,o.mdx)("li",{parentName:"ul"},"to merge an entire lane, use ",(0,o.mdx)("inlineCode",{parentName:"li"},"bit lane merge"),"."),(0,o.mdx)("li",{parentName:"ul"},"to get updates from a remote lane, run ",(0,o.mdx)("inlineCode",{parentName:"li"},"bit import"),", and then ",(0,o.mdx)("inlineCode",{parentName:"li"},"bit checkout head"),". alternatively, run ",(0,o.mdx)("inlineCode",{parentName:"li"},"bit merge <component-id>")," in one command."),(0,o.mdx)("li",{parentName:"ul"},"to merge an individual component from a lane to main, run ",(0,o.mdx)("inlineCode",{parentName:"li"},"bit lane merge <lane> --pattern <component-id>")," when on main.")),(0,o.mdx)("h3",null,"Useful APIs"),(0,o.mdx)("ul",null,(0,o.mdx)("li",{parentName:"ul"},"bit-map ",(0,o.mdx)("inlineCode",{parentName:"li"},"getAllIdsAvailableOnLane()")," filters the currently checked out lane.")),(0,o.mdx)("h3",null,"Remove component from a lane"),(0,o.mdx)("p",null,"Locally, to remove a component from a lane, use ",(0,o.mdx)("inlineCode",{parentName:"p"},"bit remove")," command. It will remove the component from the local lane-object.\nThis change won't affect the remote scope, even after exporting the lane.\nThis is becuase on the remote, the merge-lane process doesn't remove anything, only adds/changes components to the lane object.\nRemember that by default when importing a lane, only the components on the workspace are part of the lane, so the same lane-object, locally can have less components than the remote and obviously in this case we don't want to remove them from the remote on export."),(0,o.mdx)("p",null,"To mark a component as removed on the lane, use ",(0,o.mdx)("inlineCode",{parentName:"p"},"bit remove --delete"),", which will modify the component, mark it as removed, then, on the next snap+export, the remote will be updated.\nOnce a component is marked as removed, it won't be merged during ",(0,o.mdx)("inlineCode",{parentName:"p"},"bit lane merge"),", and won't be imported during ",(0,o.mdx)("inlineCode",{parentName:"p"},"bit lane import"),"."),(0,o.mdx)("h3",null,"Debug issues during merge"),(0,o.mdx)("p",null,"The merge operation performs 3-way merge to minimize the number of conflicts.\nIt searches the common parent of the current-snap and the other-snap. This parent-snap or base-snap is common to these two lanes.\nFor most case, it works as follows:\nIf the base and current has the same data but the other has different data, it means, the other made a change.\nIn which case, no need for conflicts, just bring the data from the other to the local.\nOn the other hand, if the base the other has the same data but the current has different data, then, the current made a change. No need to do anything.\nOnly when the current and the other, both are different, and both are different than the base, there is a conflict."),(0,o.mdx)("p",null,'In case of merging lanes, and it\'s unclear why/how some changes were introduced or marked conflicted, go to the log to find out what is the base-snap and the other-snap.\nThe log message starts with "merging snaps details", and it lists per component-id the base-snap, current-snap and other-snap.\nFrom here, you can investigate the data of each one of the snaps by running ',(0,o.mdx)("inlineCode",{parentName:"p"},"bit cat-object -p <snap>"),".\nTo make this process easier, there are some tools that can help. keep reading."),(0,o.mdx)("h4",null,"source code merges/conflicts"),(0,o.mdx)("p",null,"To find out when a change was introduced to a file or when a file was added/removed, run ",(0,o.mdx)("inlineCode",{parentName:"p"},"bit log-file <file-path>"),".\nIt might be helpful to create a new temporary workspace, import the other lane and run the same there.\nThis way, you get the full picture from both lanes when a change was introduced, and you can see whether it happened before and after the split from the base-snap.\nObviously, ",(0,o.mdx)("inlineCode",{parentName:"p"},"bit log <comp-id> --one-line")," is helpful here to see the distance from each lane from the base-snap."),(0,o.mdx)("h4",null,"dependencies merges/conflicts"),(0,o.mdx)("p",null,"Similar to file-changes, you can run ",(0,o.mdx)("inlineCode",{parentName:"p"},"bit deps blame"),' to understhand when a dependency was introduced/deleted/changed from a component.\nHere again, it\'ll be helpful to import to a new workspace the other lane and run the same there.\nAlso, becuase the dependencies merge is pretty complex, during the merge lots of valuable info is printed to the log.\nHowever, to avoid the extra noise it is not logged as "debug" but as "trace". Before you run the merge, you can add ',(0,o.mdx)("inlineCode",{parentName:"p"},"--log=trace")," to see these messages on the screen.")))}d.isMDXComponent=!0;const p=[t],h=[e],c={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),a})()));
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["teambit.lanes/lanes-preview"]=t():e["teambit.lanes/lanes-preview"]=t()}(self,(()=>(()=>{"use strict";var e={14663:(e,t,n)=>{var a={id:"teambit.lanes/lanes@1.0.144",homepage:"https://bit.cloud/teambit/lanes/lanes",exported:!0};function o(){const e=i(n(87363));return o=function(){return e},e}function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.Logo=void 0,o.__bit_component=a,i.__bit_component=a;const r=()=>o().default.createElement("div",{style:{height:"100%",display:"flex",justifyContent:"center"}},o().default.createElement("img",{style:{width:70},src:"https://static.bit.dev/extensions-icons/lanes.svg"}));r.__bit_component=a,t.Logo=r},87363:e=>{e.exports=React}},t={};function n(a){var o=t[a];if(void 0!==o)return o.exports;var i=t[a]={exports:{}};return e[a](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{n.r(a),n.d(a,{compositions:()=>p,compositions_metadata:()=>c,overview:()=>h});var e={};n.r(e),n.d(e,{default:()=>d});var t=n(14663);n(87363);const o=MdxJsReact,i=TeambitMdxUiMdxScopeContext;var r=["components"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},l.apply(this,arguments)}var s={},m="wrapper";function d(e){var t=e.components,n=function(e,t){if(null==e)return{};var n,a,o=function(e,t){if(null==e)return{};var n,a,o={},i=Object.keys(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)n=i[a],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}(e,r);return(0,o.mdx)(m,l({},s,n,{components:t,mdxType:"MDXLayout"}),(0,o.mdx)(i.MDXScopeProvider,{components:{},mdxType:"MDXScopeProvider"},(0,o.mdx)("p",null,"See more details about these two features here: ",(0,o.mdx)("a",{parentName:"p",href:"https://github.com/teambit/bit/issues/1986"},"Lanes"),". ",(0,o.mdx)("a",{parentName:"p",href:"https://github.com/teambit/bit/issues/1985"},"Snaps"),"."),(0,o.mdx)("p",null,"The following describes the final implementation, which differs from the specification above."),(0,o.mdx)("h2",null,"Synopsis"),(0,o.mdx)("pre",null,(0,o.mdx)("code",{parentName:"pre"},"- create a snap: `bit snap` (synopsis similar to the `bit tag`)\n- create a new lane: `bit lane create <name>`\n- list lanes: `bit lane list`\n- switch between lanes: `bit switch <name>`\n- merge lanes: `bit lane merge`\n- show lane details: `bit lane show <name>`\n- diff between lanes: `bit lane diff <values>`\n- track local lane to a remote lane: `bit switch --as`\n- remove a lane: `bit lane remove <name>`.\n- fetch lane objects (without the components): `bit fetch --lanes`\n- import a lane: `bit lane import`\n- export current lane: `bit export`\n- (internal) cat lane object: `bit cat-lane <name>`\n")),(0,o.mdx)("h2",null,"Important points"),(0,o.mdx)("h3",null,"Lane ID"),(0,o.mdx)("p",null,"The Lane id consists of the lane name and the scope. If this is a new lane, the scope is the defaultScope.\nThe ",(0,o.mdx)("inlineCode",{parentName:"p"},"LaneId")," ",(0,o.mdx)("em",{parentName:"p"},"always")," has these two props."),(0,o.mdx)("h3",null,"Performance consideration"),(0,o.mdx)("p",null,"Currently, if it imports with no-deps, it doesn't ask for parents, if it imports with deps it imports with all parents. It is originated from src/api/scope/lib/fetch.ts: ",(0,o.mdx)("inlineCode",{parentName:"p"},"const collectParents = !noDependencies;"),". We need to make a decision here."),(0,o.mdx)("h3",null,"Hash"),(0,o.mdx)("ul",null,(0,o.mdx)("li",{parentName:"ul"},"Snap's hash is generated by a UUID and then converted into sha1. ",(0,o.mdx)("inlineCode",{parentName:"li"},"sha1(v4())"),"."),(0,o.mdx)("li",{parentName:"ul"},"Lane's hash is generated by a UUID and then converted into sha1. ",(0,o.mdx)("inlineCode",{parentName:"li"},"sha1(v4())"),"."),(0,o.mdx)("li",{parentName:"ul"},"Tag's hash stays the same. Generated by the ",(0,o.mdx)("inlineCode",{parentName:"li"},"Version.id()"),"."),(0,o.mdx)("li",{parentName:"ul"},"Lane's hash doesn't get changed even if the lane has been renamed or its scope changed.")),(0,o.mdx)("h3",null,"Lane Data"),(0,o.mdx)("p",null,"Lane data, for the most cases is a map of component-id:snap-head, in other words, it saves per component the head snap. There are 3 different places where we store such data for different purposes."),(0,o.mdx)("ul",null,(0,o.mdx)("li",{parentName:"ul"},(0,o.mdx)("inlineCode",{parentName:"li"},"lane-object"),' "Lane" is saved in the scope ',(0,o.mdx)("inlineCode",{parentName:"li"},".bit/objects")," (.bit can be .git/bit locally), it has a unique hash and contains a map of components and their heads. This object exists on both local and remote scopes. Its main purpose is to sync lane-data between scopes. See ",(0,o.mdx)("inlineCode",{parentName:"li"},"Lane")," class (in scope/model) for the implementation details."),(0,o.mdx)("li",{parentName:"ul"},(0,o.mdx)("inlineCode",{parentName:"li"},"remote-lane")," (component and their heads) is saved in ",(0,o.mdx)("inlineCode",{parentName:"li"},".bit/refs/remote/remote-name/lane-name"),". These refs files are saved in both, local and remote scopes. Its main purpose is to keep track where the remote-heads are per lane. See ",(0,o.mdx)("inlineCode",{parentName:"li"},"RemoteLanes")," class for the implementation details.")),(0,o.mdx)("p",null,"More places that stores lanes related data:"),(0,o.mdx)("ul",null,(0,o.mdx)("li",{parentName:"ul"},"the currently checked out lane is saved in the scope.json file. (e.g. ",(0,o.mdx)("inlineCode",{parentName:"li"},'{ lanes: { current: "lane-a", tracking: "remote/lane-a" } }'),")."),(0,o.mdx)("li",{parentName:"ul"},"When switching to a remote lane, the .bitmap is updated as well with the remote-name, so then, when cloning the project, it's possible to fetch the remote lane data.")),(0,o.mdx)("p",null,"Summary of when/what lanes data is saved per command:"),(0,o.mdx)("ul",null,(0,o.mdx)("li",{parentName:"ul"},(0,o.mdx)("inlineCode",{parentName:"li"},"bit lane create"),": creates a new lane-object and creates a new lane record in scope.json and .bitmap."),(0,o.mdx)("li",{parentName:"ul"},(0,o.mdx)("inlineCode",{parentName:"li"},"bit snap"),": adds an entry to the lane-object."),(0,o.mdx)("li",{parentName:"ul"},(0,o.mdx)("inlineCode",{parentName:"li"},"bit export"),": pushes the lane-object to the remote. On the remote, the lane-object is created or updated/merged."),(0,o.mdx)("li",{parentName:"ul"},(0,o.mdx)("inlineCode",{parentName:"li"},"bit switch --remote"),": 1) creates/updates lane-object in the scope. 2) creates/updates remote-lane. the remote-lane is updated also for main."),(0,o.mdx)("li",{parentName:"ul"},(0,o.mdx)("inlineCode",{parentName:"li"},"bit fetch")," or ",(0,o.mdx)("inlineCode",{parentName:"li"},"bit import --objects"),": creates/updates remote-lane. the remote-lane is updated also for main. It doesn't update/merge the lane object.")),(0,o.mdx)("h3",null,"Merge during import"),(0,o.mdx)("ul",null,(0,o.mdx)("li",{parentName:"ul"},"When the remote is ahead, it's easy, just update the head to the remote-head."),(0,o.mdx)("li",{parentName:"ul"},"When the local and remote have diverged, it's more complex. We need to create a snap-merge that has two parents, one point to the local head and one point to the remote head."),(0,o.mdx)("li",{parentName:"ul"},"On ",(0,o.mdx)("inlineCode",{parentName:"li"},"bit import --objects")," (or ",(0,o.mdx)("inlineCode",{parentName:"li"},"bit fetch"),") we don't merge. The remote head is saved in the .bit/refs/remote dir. Then, ",(0,o.mdx)("inlineCode",{parentName:"li"},"bit status")," shows that these components are merge-pending."),(0,o.mdx)("li",{parentName:"ul"},"On ",(0,o.mdx)("inlineCode",{parentName:"li"},"bit import <id>")," we do the merge."),(0,o.mdx)("li",{parentName:"ul"},"in case the merge wasn't done and the user is trying to export, the remote blocks is as it finds out that its head doesn't exist on the incoming component."),(0,o.mdx)("li",{parentName:"ul"},"in case the snap-merge failed due to a conflict, it saves the conflict and heads data into ",(0,o.mdx)("inlineCode",{parentName:"li"},".bit/unmerged.json")," file.")),(0,o.mdx)("h3",null,"Merge components"),(0,o.mdx)("ul",null,(0,o.mdx)("li",{parentName:"ul"},"to merge an entire lane, use ",(0,o.mdx)("inlineCode",{parentName:"li"},"bit lane merge"),"."),(0,o.mdx)("li",{parentName:"ul"},"to get updates from a remote lane, run ",(0,o.mdx)("inlineCode",{parentName:"li"},"bit import"),", and then ",(0,o.mdx)("inlineCode",{parentName:"li"},"bit checkout head"),". alternatively, run ",(0,o.mdx)("inlineCode",{parentName:"li"},"bit merge <component-id>")," in one command."),(0,o.mdx)("li",{parentName:"ul"},"to merge an individual component from a lane to main, run ",(0,o.mdx)("inlineCode",{parentName:"li"},"bit lane merge <lane> --pattern <component-id>")," when on main.")),(0,o.mdx)("h3",null,"Useful APIs"),(0,o.mdx)("ul",null,(0,o.mdx)("li",{parentName:"ul"},"bit-map ",(0,o.mdx)("inlineCode",{parentName:"li"},"getAllIdsAvailableOnLane()")," filters the currently checked out lane.")),(0,o.mdx)("h3",null,"Remove component from a lane"),(0,o.mdx)("p",null,"Locally, to remove a component from a lane, use ",(0,o.mdx)("inlineCode",{parentName:"p"},"bit remove")," command. It will remove the component from the local lane-object.\nThis change won't affect the remote scope, even after exporting the lane.\nThis is becuase on the remote, the merge-lane process doesn't remove anything, only adds/changes components to the lane object.\nRemember that by default when importing a lane, only the components on the workspace are part of the lane, so the same lane-object, locally can have less components than the remote and obviously in this case we don't want to remove them from the remote on export."),(0,o.mdx)("p",null,"To mark a component as removed on the lane, use ",(0,o.mdx)("inlineCode",{parentName:"p"},"bit remove --delete"),", which will modify the component, mark it as removed, then, on the next snap+export, the remote will be updated.\nOnce a component is marked as removed, it won't be merged during ",(0,o.mdx)("inlineCode",{parentName:"p"},"bit lane merge"),", and won't be imported during ",(0,o.mdx)("inlineCode",{parentName:"p"},"bit lane import"),"."),(0,o.mdx)("h3",null,"Debug issues during merge"),(0,o.mdx)("p",null,"The merge operation performs 3-way merge to minimize the number of conflicts.\nIt searches the common parent of the current-snap and the other-snap. This parent-snap or base-snap is common to these two lanes.\nFor most case, it works as follows:\nIf the base and current has the same data but the other has different data, it means, the other made a change.\nIn which case, no need for conflicts, just bring the data from the other to the local.\nOn the other hand, if the base the other has the same data but the current has different data, then, the current made a change. No need to do anything.\nOnly when the current and the other, both are different, and both are different than the base, there is a conflict."),(0,o.mdx)("p",null,'In case of merging lanes, and it\'s unclear why/how some changes were introduced or marked conflicted, go to the log to find out what is the base-snap and the other-snap.\nThe log message starts with "merging snaps details", and it lists per component-id the base-snap, current-snap and other-snap.\nFrom here, you can investigate the data of each one of the snaps by running ',(0,o.mdx)("inlineCode",{parentName:"p"},"bit cat-object -p <snap>"),".\nTo make this process easier, there are some tools that can help. keep reading."),(0,o.mdx)("h4",null,"source code merges/conflicts"),(0,o.mdx)("p",null,"To find out when a change was introduced to a file or when a file was added/removed, run ",(0,o.mdx)("inlineCode",{parentName:"p"},"bit log-file <file-path>"),".\nIt might be helpful to create a new temporary workspace, import the other lane and run the same there.\nThis way, you get the full picture from both lanes when a change was introduced, and you can see whether it happened before and after the split from the base-snap.\nObviously, ",(0,o.mdx)("inlineCode",{parentName:"p"},"bit log <comp-id> --one-line")," is helpful here to see the distance from each lane from the base-snap."),(0,o.mdx)("h4",null,"dependencies merges/conflicts"),(0,o.mdx)("p",null,"Similar to file-changes, you can run ",(0,o.mdx)("inlineCode",{parentName:"p"},"bit deps blame"),' to understhand when a dependency was introduced/deleted/changed from a component.\nHere again, it\'ll be helpful to import to a new workspace the other lane and run the same there.\nAlso, becuase the dependencies merge is pretty complex, during the merge lots of valuable info is printed to the log.\nHowever, to avoid the extra noise it is not logged as "debug" but as "trace". Before you run the merge, you can add ',(0,o.mdx)("inlineCode",{parentName:"p"},"--log=trace")," to see these messages on the screen.")))}d.isMDXComponent=!0;const p=[t],h=[e],c={compositions:[{displayName:"Logo",identifier:"Logo"}]}})(),a})()));
|
package/dist/lane.cmd.d.ts
CHANGED
@@ -32,17 +32,17 @@ export declare class LaneListCmd implements Command {
|
|
32
32
|
}[];
|
33
33
|
readmeComponent: {
|
34
34
|
id: string;
|
35
|
-
head: string;
|
36
|
-
};
|
35
|
+
head: string | undefined;
|
36
|
+
} | undefined;
|
37
37
|
name: string;
|
38
|
-
remote: string;
|
38
|
+
remote: string | null;
|
39
39
|
id: LaneId;
|
40
|
-
alias?: string;
|
41
|
-
isMerged: boolean;
|
42
|
-
log?: import("@teambit/legacy/dist/scope/models/lane").Log;
|
40
|
+
alias?: string | null | undefined;
|
41
|
+
isMerged: boolean | null;
|
42
|
+
log?: import("@teambit/legacy/dist/scope/models/lane").Log | undefined;
|
43
43
|
hash: string;
|
44
44
|
}[];
|
45
|
-
currentLane: string;
|
45
|
+
currentLane: string | null;
|
46
46
|
}>;
|
47
47
|
}
|
48
48
|
export declare class LaneShowCmd implements Command {
|
@@ -65,14 +65,14 @@ export declare class LaneShowCmd implements Command {
|
|
65
65
|
}[];
|
66
66
|
readmeComponent: {
|
67
67
|
id: string;
|
68
|
-
head: string;
|
69
|
-
};
|
68
|
+
head: string | undefined;
|
69
|
+
} | undefined;
|
70
70
|
name: string;
|
71
|
-
remote: string;
|
71
|
+
remote: string | null;
|
72
72
|
id: LaneId;
|
73
|
-
alias?: string;
|
74
|
-
isMerged: boolean;
|
75
|
-
log?: import("@teambit/legacy/dist/scope/models/lane").Log;
|
73
|
+
alias?: string | null | undefined;
|
74
|
+
isMerged: boolean | null;
|
75
|
+
log?: import("@teambit/legacy/dist/scope/models/lane").Log | undefined;
|
76
76
|
hash: string;
|
77
77
|
}>;
|
78
78
|
}
|
@@ -192,7 +192,7 @@ export declare class LanesMain {
|
|
192
192
|
get createRoutePath(): string;
|
193
193
|
get deleteRoutePath(): string;
|
194
194
|
get restoreRoutePath(): string;
|
195
|
-
static slots:
|
195
|
+
static slots: never[];
|
196
196
|
static dependencies: import("@teambit/harmony").Aspect[];
|
197
197
|
static runtime: import("@teambit/harmony").RuntimeDefinition;
|
198
198
|
static provider([cli, scope, workspace, graphql, merging, component, loggerMain, importer, exporter, express, componentCompare, componentWriter, remove, checkout,]: [
|
package/dist/lanes.spec.js
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
"use strict";
|
2
2
|
|
3
|
+
function _chai() {
|
4
|
+
const data = require("chai");
|
5
|
+
_chai = function () {
|
6
|
+
return data;
|
7
|
+
};
|
8
|
+
return data;
|
9
|
+
}
|
3
10
|
function _harmonyTesting() {
|
4
11
|
const data = require("@teambit/harmony.testing.load-aspect");
|
5
12
|
_harmonyTesting = function () {
|
@@ -58,10 +65,11 @@ function _lanes() {
|
|
58
65
|
}
|
59
66
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
60
67
|
describe('LanesAspect', function () {
|
68
|
+
this.timeout(0);
|
61
69
|
describe('getLanes()', () => {
|
62
70
|
let lanes;
|
63
71
|
let workspaceData;
|
64
|
-
|
72
|
+
before(async () => {
|
65
73
|
workspaceData = (0, _workspaceTesting().mockWorkspace)();
|
66
74
|
const {
|
67
75
|
workspacePath
|
@@ -69,21 +77,21 @@ describe('LanesAspect', function () {
|
|
69
77
|
await (0, _componentTesting().mockComponents)(workspacePath);
|
70
78
|
lanes = await (0, _harmonyTesting().loadAspect)(_lanes().LanesAspect, workspacePath);
|
71
79
|
await lanes.createLane('stage');
|
72
|
-
}
|
73
|
-
|
80
|
+
});
|
81
|
+
after(async () => {
|
74
82
|
await (0, _workspaceTesting().destroyWorkspace)(workspaceData);
|
75
83
|
});
|
76
84
|
it('should list all lanes', async () => {
|
77
85
|
const currentLanes = await lanes.getLanes({});
|
78
|
-
expect(currentLanes
|
79
|
-
expect(currentLanes[0].
|
86
|
+
(0, _chai().expect)(currentLanes).to.have.lengthOf(1);
|
87
|
+
(0, _chai().expect)(currentLanes[0].name).to.equal('stage');
|
80
88
|
});
|
81
89
|
});
|
82
90
|
describe('isLaneUpToDate', () => {
|
83
91
|
let lanes;
|
84
92
|
let snapping;
|
85
93
|
let workspaceData;
|
86
|
-
|
94
|
+
before(async () => {
|
87
95
|
workspaceData = (0, _workspaceTesting().mockWorkspace)();
|
88
96
|
const {
|
89
97
|
workspacePath
|
@@ -106,9 +114,9 @@ describe('LanesAspect', function () {
|
|
106
114
|
ignoreIssues: 'MissingManuallyConfiguredPackages'
|
107
115
|
});
|
108
116
|
// intermediate step, make sure it is snapped
|
109
|
-
expect(result?.snappedComponents.length).
|
110
|
-
}
|
111
|
-
|
117
|
+
(0, _chai().expect)(result?.snappedComponents.length).to.equal(1);
|
118
|
+
});
|
119
|
+
after(async () => {
|
112
120
|
await (0, _workspaceTesting().destroyWorkspace)(workspaceData);
|
113
121
|
});
|
114
122
|
it('should return that the lane is up to date when the lane is ahead of main', async () => {
|
@@ -117,7 +125,7 @@ describe('LanesAspect', function () {
|
|
117
125
|
const isUpToDate = (await lanes.diffStatus(currentLane.toLaneId(), undefined, {
|
118
126
|
skipChanges: true
|
119
127
|
})).componentsStatus.every(c => c.upToDate);
|
120
|
-
expect(isUpToDate).
|
128
|
+
(0, _chai().expect)(isUpToDate).to.be.true;
|
121
129
|
});
|
122
130
|
it('should return that the lane is not up to date when main is ahead', async () => {
|
123
131
|
const currentLane = await lanes.getCurrentLane();
|
@@ -134,14 +142,14 @@ describe('LanesAspect', function () {
|
|
134
142
|
const isUpToDate = (await lanes.diffStatus(currentLane.toLaneId(), undefined, {
|
135
143
|
skipChanges: true
|
136
144
|
})).componentsStatus.every(c => c.upToDate);
|
137
|
-
expect(isUpToDate).
|
145
|
+
(0, _chai().expect)(isUpToDate).to.be.false;
|
138
146
|
});
|
139
147
|
});
|
140
148
|
describe('laneDiff', () => {
|
141
149
|
let lanes;
|
142
150
|
let snapping;
|
143
151
|
let workspaceData;
|
144
|
-
|
152
|
+
before(async () => {
|
145
153
|
workspaceData = (0, _workspaceTesting().mockWorkspace)();
|
146
154
|
const {
|
147
155
|
workspacePath
|
@@ -162,17 +170,17 @@ describe('LanesAspect', function () {
|
|
162
170
|
unmodified: true
|
163
171
|
});
|
164
172
|
// intermediate step, make sure it is snapped
|
165
|
-
expect(result?.snappedComponents.length).
|
166
|
-
}
|
167
|
-
|
173
|
+
(0, _chai().expect)(result?.snappedComponents.length).to.equal(1);
|
174
|
+
});
|
175
|
+
after(async () => {
|
168
176
|
await (0, _workspaceTesting().destroyWorkspace)(workspaceData);
|
169
177
|
});
|
170
178
|
it('should return that the lane is up to date when the lane is ahead of main', async () => {
|
171
179
|
const currentLane = await lanes.getCurrentLane();
|
172
180
|
if (!currentLane) throw new Error('unable to get the current lane');
|
173
181
|
const laneDiffResults = await lanes.diffStatus(currentLane.toLaneId());
|
174
|
-
expect(laneDiffResults.componentsStatus[0].upToDate).
|
175
|
-
expect(laneDiffResults.componentsStatus[0].changeType).
|
182
|
+
(0, _chai().expect)(laneDiffResults.componentsStatus[0].upToDate).to.be.true;
|
183
|
+
(0, _chai().expect)(laneDiffResults.componentsStatus[0].changeType).to.equal(_lanesEntities().ChangeType.NONE);
|
176
184
|
});
|
177
185
|
it('should return that the lane is not up to date when main is ahead', async () => {
|
178
186
|
const currentLane = await lanes.getCurrentLane();
|
@@ -186,14 +194,14 @@ describe('LanesAspect', function () {
|
|
186
194
|
unmodified: true
|
187
195
|
});
|
188
196
|
const laneDiffResults = await lanes.diffStatus(currentLane.toLaneId());
|
189
|
-
expect(laneDiffResults.componentsStatus[0].upToDate).
|
190
|
-
expect(laneDiffResults.componentsStatus[0].changeType).
|
197
|
+
(0, _chai().expect)(laneDiffResults.componentsStatus[0].upToDate).to.be.false;
|
198
|
+
(0, _chai().expect)(laneDiffResults.componentsStatus[0].changeType).to.equal(_lanesEntities().ChangeType.NONE);
|
191
199
|
});
|
192
200
|
});
|
193
201
|
describe('restoreLane()', () => {
|
194
202
|
let lanes;
|
195
203
|
let workspaceData;
|
196
|
-
|
204
|
+
before(async () => {
|
197
205
|
workspaceData = (0, _workspaceTesting().mockWorkspace)();
|
198
206
|
const {
|
199
207
|
workspacePath
|
@@ -204,7 +212,7 @@ describe('LanesAspect', function () {
|
|
204
212
|
|
205
213
|
// as an intermediate step, make sure the lane was created
|
206
214
|
const currentLanes = await lanes.getLanes({});
|
207
|
-
expect(currentLanes
|
215
|
+
(0, _chai().expect)(currentLanes).to.have.lengthOf(1);
|
208
216
|
await lanes.switchLanes('main', {
|
209
217
|
skipDependencyInstallation: true
|
210
218
|
});
|
@@ -212,24 +220,24 @@ describe('LanesAspect', function () {
|
|
212
220
|
|
213
221
|
// as an intermediate step, make sure the lane was removed
|
214
222
|
const lanesAfterDelete = await lanes.getLanes({});
|
215
|
-
expect(lanesAfterDelete
|
223
|
+
(0, _chai().expect)(lanesAfterDelete).to.have.lengthOf(0);
|
216
224
|
await lanes.restoreLane(currentLanes[0].hash);
|
217
|
-
}
|
218
|
-
|
225
|
+
});
|
226
|
+
after(async () => {
|
219
227
|
await (0, _workspaceTesting().destroyWorkspace)(workspaceData);
|
220
228
|
});
|
221
229
|
it('should restore the deleted lane', async () => {
|
222
230
|
const currentLanes = await lanes.getLanes({});
|
223
|
-
expect(currentLanes
|
224
|
-
expect(currentLanes[0].id.name).
|
231
|
+
(0, _chai().expect)(currentLanes).to.have.lengthOf(1);
|
232
|
+
(0, _chai().expect)(currentLanes[0].id.name).to.equal('stage');
|
225
233
|
});
|
226
234
|
describe('delete restored lane', () => {
|
227
235
|
let output;
|
228
|
-
|
236
|
+
before(async () => {
|
229
237
|
output = await lanes.removeLanes(['stage']);
|
230
238
|
});
|
231
239
|
it('should not throw', () => {
|
232
|
-
expect(output
|
240
|
+
(0, _chai().expect)(output).to.have.lengthOf(1);
|
233
241
|
});
|
234
242
|
});
|
235
243
|
});
|
@@ -237,7 +245,7 @@ describe('LanesAspect', function () {
|
|
237
245
|
let lanes;
|
238
246
|
let workspaceData;
|
239
247
|
let laneHash;
|
240
|
-
|
248
|
+
before(async () => {
|
241
249
|
workspaceData = (0, _workspaceTesting().mockWorkspace)();
|
242
250
|
const {
|
243
251
|
workspacePath
|
@@ -248,15 +256,15 @@ describe('LanesAspect', function () {
|
|
248
256
|
|
249
257
|
// as an intermediate step, make sure the lane was created
|
250
258
|
const currentLanes = await lanes.getLanes({});
|
251
|
-
expect(currentLanes
|
259
|
+
(0, _chai().expect)(currentLanes).to.have.lengthOf(1);
|
252
260
|
await lanes.switchLanes('main', {
|
253
261
|
skipDependencyInstallation: true
|
254
262
|
});
|
255
263
|
await lanes.removeLanes(['stage']);
|
256
264
|
await lanes.createLane('stage');
|
257
265
|
laneHash = currentLanes[0].hash;
|
258
|
-
}
|
259
|
-
|
266
|
+
});
|
267
|
+
after(async () => {
|
260
268
|
await (0, _workspaceTesting().destroyWorkspace)(workspaceData);
|
261
269
|
});
|
262
270
|
it('should throw when restoring the lane', async () => {
|
@@ -266,8 +274,8 @@ describe('LanesAspect', function () {
|
|
266
274
|
} catch (err) {
|
267
275
|
error = err;
|
268
276
|
}
|
269
|
-
expect(error).
|
270
|
-
expect(error?.message).
|
277
|
+
(0, _chai().expect)(error).to.be.instanceOf(Error);
|
278
|
+
(0, _chai().expect)(error?.message).to.include('unable to restore lane');
|
271
279
|
});
|
272
280
|
});
|
273
281
|
describe('lane history', () => {
|
@@ -275,7 +283,7 @@ describe('LanesAspect', function () {
|
|
275
283
|
let workspaceData;
|
276
284
|
let snapping;
|
277
285
|
let laneId;
|
278
|
-
|
286
|
+
before(async () => {
|
279
287
|
(0, _featureToggle().addFeature)(_featureToggle().SUPPORT_LANE_HISTORY);
|
280
288
|
workspaceData = (0, _workspaceTesting().mockWorkspace)();
|
281
289
|
const {
|
@@ -288,15 +296,15 @@ describe('LanesAspect', function () {
|
|
288
296
|
const currentLaneId = lanes.getCurrentLaneId();
|
289
297
|
if (!currentLaneId) throw new Error('unable to get the current lane-id');
|
290
298
|
laneId = currentLaneId;
|
291
|
-
}
|
292
|
-
|
299
|
+
});
|
300
|
+
after(async () => {
|
293
301
|
(0, _featureToggle().removeFeature)(_featureToggle().SUPPORT_LANE_HISTORY);
|
294
302
|
await (0, _workspaceTesting().destroyWorkspace)(workspaceData);
|
295
303
|
});
|
296
304
|
it('should create lane history object when creating a new lane', async () => {
|
297
305
|
const laneHistory = await lanes.getLaneHistory(laneId);
|
298
306
|
const history = laneHistory.getHistory();
|
299
|
-
expect(Object.keys(history).length).
|
307
|
+
(0, _chai().expect)(Object.keys(history).length).to.equal(1);
|
300
308
|
});
|
301
309
|
it('should add a record to LaneHistory when snapping', async () => {
|
302
310
|
const results = await snapping.snap({
|
@@ -306,15 +314,15 @@ describe('LanesAspect', function () {
|
|
306
314
|
});
|
307
315
|
const laneHistory = await lanes.getLaneHistory(laneId);
|
308
316
|
const history = laneHistory.getHistory();
|
309
|
-
expect(Object.keys(history).length).
|
317
|
+
(0, _chai().expect)(Object.keys(history).length).to.equal(2);
|
310
318
|
const snapHistory = history[Object.keys(history)[1]];
|
311
|
-
expect(snapHistory.log.message).
|
312
|
-
expect(snapHistory.components.length).
|
313
|
-
expect(snapHistory.components[0]).
|
319
|
+
(0, _chai().expect)(snapHistory.log.message).to.equal('snap (first snap)');
|
320
|
+
(0, _chai().expect)(snapHistory.components.length).to.equal(1);
|
321
|
+
(0, _chai().expect)(snapHistory.components[0]).to.equal(results?.snappedComponents[0].id.toString());
|
314
322
|
});
|
315
323
|
describe('import to another workspace', () => {
|
316
324
|
let newWorkspace;
|
317
|
-
|
325
|
+
before(async () => {
|
318
326
|
// make another snap to check to test the checkout later.
|
319
327
|
await snapping.snap({
|
320
328
|
pattern: 'comp1',
|
@@ -323,11 +331,11 @@ describe('LanesAspect', function () {
|
|
323
331
|
});
|
324
332
|
const laneHistory = await lanes.getLaneHistory(laneId);
|
325
333
|
const history = laneHistory.getHistory();
|
326
|
-
expect(Object.keys(history).length).
|
334
|
+
(0, _chai().expect)(Object.keys(history).length).to.equal(3);
|
327
335
|
const exporter = await (0, _harmonyTesting().loadAspect)(_export().ExportAspect, workspaceData.workspacePath);
|
328
336
|
const exportResults = await exporter.export();
|
329
|
-
expect(exportResults.componentsIds.length).
|
330
|
-
expect(exportResults.exportedLanes.length).
|
337
|
+
(0, _chai().expect)(exportResults.componentsIds.length).to.equal(1);
|
338
|
+
(0, _chai().expect)(exportResults.exportedLanes.length).to.equal(1);
|
331
339
|
newWorkspace = (0, _workspaceTesting().mockWorkspace)({
|
332
340
|
bareScopeName: workspaceData.remoteScopeName
|
333
341
|
});
|
@@ -337,14 +345,14 @@ describe('LanesAspect', function () {
|
|
337
345
|
getAll: true
|
338
346
|
});
|
339
347
|
await lanes.importLaneObject(laneId, true, true);
|
340
|
-
}
|
341
|
-
|
348
|
+
});
|
349
|
+
after(async () => {
|
342
350
|
await (0, _workspaceTesting().destroyWorkspace)(newWorkspace);
|
343
351
|
});
|
344
352
|
it('should not add a record to the lane-history', async () => {
|
345
353
|
const laneHistory = await lanes.getLaneHistory(laneId);
|
346
354
|
const history = laneHistory.getHistory();
|
347
|
-
expect(Object.keys(history).length).
|
355
|
+
(0, _chai().expect)(Object.keys(history).length).to.equal(3);
|
348
356
|
});
|
349
357
|
it('should be able to checkout to a previous state of the lane', async () => {
|
350
358
|
const laneHistory = await lanes.getLaneHistory(laneId);
|
@@ -354,15 +362,15 @@ describe('LanesAspect', function () {
|
|
354
362
|
const results = await lanes.checkoutHistory(snapHistoryId, {
|
355
363
|
skipDependencyInstallation: true
|
356
364
|
});
|
357
|
-
expect(results.components?.length).
|
358
|
-
expect(results.failedComponents?.length).
|
365
|
+
(0, _chai().expect)(results.components?.length).to.equal(1);
|
366
|
+
(0, _chai().expect)(results.failedComponents?.length).to.equal(0);
|
359
367
|
});
|
360
368
|
});
|
361
369
|
});
|
362
370
|
describe('create lanes with the same name different scope', () => {
|
363
371
|
let lanes;
|
364
372
|
let workspaceData;
|
365
|
-
|
373
|
+
before(async () => {
|
366
374
|
workspaceData = (0, _workspaceTesting().mockWorkspace)();
|
367
375
|
const {
|
368
376
|
workspacePath
|
@@ -373,8 +381,8 @@ describe('LanesAspect', function () {
|
|
373
381
|
await lanes.switchLanes('main', {
|
374
382
|
skipDependencyInstallation: true
|
375
383
|
});
|
376
|
-
}
|
377
|
-
|
384
|
+
});
|
385
|
+
after(async () => {
|
378
386
|
await (0, _workspaceTesting().destroyWorkspace)(workspaceData);
|
379
387
|
});
|
380
388
|
it('should not throw when creating the second lane', async () => {
|
@@ -382,9 +390,9 @@ describe('LanesAspect', function () {
|
|
382
390
|
scope: 'new-scope'
|
383
391
|
});
|
384
392
|
const currentLanes = await lanes.getLanes({});
|
385
|
-
expect(currentLanes.length).
|
386
|
-
expect(currentLanes[0].id.name).
|
387
|
-
expect(currentLanes[1].id.name).
|
393
|
+
(0, _chai().expect)(currentLanes.length).to.equal(2);
|
394
|
+
(0, _chai().expect)(currentLanes[0].id.name).to.equal('stage');
|
395
|
+
(0, _chai().expect)(currentLanes[1].id.name).to.equal('stage');
|
388
396
|
});
|
389
397
|
});
|
390
398
|
});
|
package/dist/lanes.spec.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_harmonyTesting","data","require","_snapping","_interopRequireDefault","_export","_featureToggle","_workspaceTesting","_componentTesting","_lanesEntities","_lanes","obj","__esModule","default","describe","lanes","workspaceData","beforeAll","mockWorkspace","workspacePath","mockComponents","loadAspect","LanesAspect","createLane","afterAll","destroyWorkspace","it","currentLanes","getLanes","expect","length","toEqual","id","name","snapping","SnappingAspect","tag","ids","build","ignoreIssues","exporter","ExportAspect","export","modifyMockedComponents","result","snap","pattern","snappedComponents","currentLane","getCurrentLane","Error","isUpToDate","diffStatus","toLaneId","undefined","skipChanges","componentsStatus","every","c","upToDate","switchLanes","skipDependencyInstallation","unmodified","laneDiffResults","changeType","ChangeType","NONE","removeLanes","lanesAfterDelete","restoreLane","hash","output","laneHash","error","err","toBeInstanceOf","message","toMatch","laneId","addFeature","SUPPORT_LANE_HISTORY","currentLaneId","getCurrentLaneId","removeFeature","laneHistory","getLaneHistory","history","getHistory","Object","keys","results","snapHistory","log","components","toString","newWorkspace","exportResults","componentsIds","exportedLanes","bareScopeName","remoteScopeName","getAll","importLaneObject","snapHistoryId","find","key","includes","checkoutHistory","failedComponents","scope"],"sources":["lanes.spec.ts"],"sourcesContent":["import { loadAspect } from '@teambit/harmony.testing.load-aspect';\nimport SnappingAspect, { SnappingMain } from '@teambit/snapping';\nimport { ExportAspect, ExportMain } from '@teambit/export';\nimport { LaneId } from '@teambit/lane-id';\nimport { SUPPORT_LANE_HISTORY, addFeature, removeFeature } from '@teambit/legacy/dist/api/consumer/lib/feature-toggle';\nimport { mockWorkspace, destroyWorkspace, WorkspaceData } from '@teambit/workspace.testing.mock-workspace';\nimport { mockComponents, modifyMockedComponents } from '@teambit/component.testing.mock-components';\nimport { ChangeType } from '@teambit/lanes.entities.lane-diff';\nimport { LanesAspect } from './lanes.aspect';\nimport { LanesMain } from './lanes.main.runtime';\n\ndescribe('LanesAspect', function () {\n describe('getLanes()', () => {\n let lanes: LanesMain;\n let workspaceData: WorkspaceData;\n beforeAll(async () => {\n workspaceData = mockWorkspace();\n const { workspacePath } = workspaceData;\n await mockComponents(workspacePath);\n lanes = await loadAspect(LanesAspect, workspacePath);\n await lanes.createLane('stage');\n }, 30000);\n afterAll(async () => {\n await destroyWorkspace(workspaceData);\n });\n it('should list all lanes', async () => {\n const currentLanes = await lanes.getLanes({});\n expect(currentLanes.length).toEqual(1);\n expect(currentLanes[0].id.name).toEqual('stage');\n });\n });\n\n describe('isLaneUpToDate', () => {\n let lanes: LanesMain;\n let snapping: SnappingMain;\n let workspaceData: WorkspaceData;\n beforeAll(async () => {\n workspaceData = mockWorkspace();\n const { workspacePath } = workspaceData;\n await mockComponents(workspacePath);\n snapping = await loadAspect(SnappingAspect, workspacePath);\n await snapping.tag({ ids: ['comp1'], build: false, ignoreIssues: 'MissingManuallyConfiguredPackages' });\n const exporter: ExportMain = await loadAspect(ExportAspect, workspacePath);\n await exporter.export();\n lanes = await loadAspect(LanesAspect, workspacePath);\n await lanes.createLane('stage');\n await modifyMockedComponents(workspacePath, 'v2');\n const result = await snapping.snap({\n pattern: 'comp1',\n build: false,\n ignoreIssues: 'MissingManuallyConfiguredPackages',\n });\n // intermediate step, make sure it is snapped\n expect(result?.snappedComponents.length).toEqual(1);\n }, 30000);\n afterAll(async () => {\n await destroyWorkspace(workspaceData);\n });\n it('should return that the lane is up to date when the lane is ahead of main', async () => {\n const currentLane = await lanes.getCurrentLane();\n if (!currentLane) throw new Error('unable to get the current lane');\n const isUpToDate = (\n await lanes.diffStatus(currentLane.toLaneId(), undefined, { skipChanges: true })\n ).componentsStatus.every((c) => c.upToDate);\n\n expect(isUpToDate).toEqual(true);\n });\n it('should return that the lane is not up to date when main is ahead', async () => {\n const currentLane = await lanes.getCurrentLane();\n if (!currentLane) throw new Error('unable to get the current lane');\n await lanes.switchLanes('main', { skipDependencyInstallation: true });\n await snapping.snap({\n pattern: 'comp1',\n build: false,\n unmodified: true,\n ignoreIssues: 'MissingManuallyConfiguredPackages',\n });\n const isUpToDate = (\n await lanes.diffStatus(currentLane.toLaneId(), undefined, { skipChanges: true })\n ).componentsStatus.every((c) => c.upToDate);\n\n expect(isUpToDate).toEqual(false);\n });\n });\n\n describe('laneDiff', () => {\n let lanes: LanesMain;\n let snapping: SnappingMain;\n let workspaceData: WorkspaceData;\n beforeAll(async () => {\n workspaceData = mockWorkspace();\n const { workspacePath } = workspaceData;\n await mockComponents(workspacePath);\n snapping = await loadAspect(SnappingAspect, workspacePath);\n await snapping.tag({ ids: ['comp1'], build: false });\n const exporter: ExportMain = await loadAspect(ExportAspect, workspacePath);\n await exporter.export();\n lanes = await loadAspect(LanesAspect, workspacePath);\n await lanes.createLane('stage');\n const result = await snapping.snap({ pattern: 'comp1', build: false, unmodified: true });\n // intermediate step, make sure it is snapped\n expect(result?.snappedComponents.length).toEqual(1);\n }, 30000);\n afterAll(async () => {\n await destroyWorkspace(workspaceData);\n });\n it('should return that the lane is up to date when the lane is ahead of main', async () => {\n const currentLane = await lanes.getCurrentLane();\n if (!currentLane) throw new Error('unable to get the current lane');\n const laneDiffResults = await lanes.diffStatus(currentLane.toLaneId());\n expect(laneDiffResults.componentsStatus[0].upToDate).toEqual;\n expect(laneDiffResults.componentsStatus[0].changeType).toEqual(ChangeType.NONE);\n });\n it('should return that the lane is not up to date when main is ahead', async () => {\n const currentLane = await lanes.getCurrentLane();\n if (!currentLane) throw new Error('unable to get the current lane');\n await lanes.switchLanes('main', { skipDependencyInstallation: true });\n await snapping.snap({ pattern: 'comp1', build: false, unmodified: true });\n\n const laneDiffResults = await lanes.diffStatus(currentLane.toLaneId());\n expect(laneDiffResults.componentsStatus[0].upToDate).toEqual(false);\n expect(laneDiffResults.componentsStatus[0].changeType).toEqual(ChangeType.NONE);\n });\n });\n\n describe('restoreLane()', () => {\n let lanes: LanesMain;\n let workspaceData: WorkspaceData;\n beforeAll(async () => {\n workspaceData = mockWorkspace();\n const { workspacePath } = workspaceData;\n await mockComponents(workspacePath);\n lanes = await loadAspect(LanesAspect, workspacePath);\n await lanes.createLane('stage');\n\n // as an intermediate step, make sure the lane was created\n const currentLanes = await lanes.getLanes({});\n expect(currentLanes.length).toEqual(1);\n\n await lanes.switchLanes('main', { skipDependencyInstallation: true });\n await lanes.removeLanes(['stage']);\n\n // as an intermediate step, make sure the lane was removed\n const lanesAfterDelete = await lanes.getLanes({});\n expect(lanesAfterDelete.length).toEqual(0);\n\n await lanes.restoreLane(currentLanes[0].hash);\n }, 30000);\n afterAll(async () => {\n await destroyWorkspace(workspaceData);\n });\n it('should restore the deleted lane', async () => {\n const currentLanes = await lanes.getLanes({});\n expect(currentLanes.length).toEqual(1);\n expect(currentLanes[0].id.name).toEqual('stage');\n });\n describe('delete restored lane', () => {\n let output: string[];\n beforeAll(async () => {\n output = await lanes.removeLanes(['stage']);\n });\n it('should not throw', () => {\n expect(output.length).toEqual(1);\n });\n });\n });\n\n describe('restore lane when an existing lane has the same id', () => {\n let lanes: LanesMain;\n let workspaceData: WorkspaceData;\n let laneHash: string;\n beforeAll(async () => {\n workspaceData = mockWorkspace();\n const { workspacePath } = workspaceData;\n await mockComponents(workspacePath);\n lanes = await loadAspect(LanesAspect, workspacePath);\n await lanes.createLane('stage');\n\n // as an intermediate step, make sure the lane was created\n const currentLanes = await lanes.getLanes({});\n expect(currentLanes.length).toEqual(1);\n\n await lanes.switchLanes('main', { skipDependencyInstallation: true });\n await lanes.removeLanes(['stage']);\n\n await lanes.createLane('stage');\n laneHash = currentLanes[0].hash;\n }, 30000);\n afterAll(async () => {\n await destroyWorkspace(workspaceData);\n });\n it('should throw when restoring the lane', async () => {\n let error: Error | undefined;\n try {\n await lanes.restoreLane(laneHash);\n } catch (err: any) {\n error = err;\n }\n expect(error).toBeInstanceOf(Error);\n expect(error?.message).toMatch(/unable to restore lane/);\n });\n });\n\n describe('lane history', () => {\n let lanes: LanesMain;\n let workspaceData: WorkspaceData;\n let snapping: SnappingMain;\n let laneId: LaneId;\n beforeAll(async () => {\n addFeature(SUPPORT_LANE_HISTORY);\n workspaceData = mockWorkspace();\n const { workspacePath } = workspaceData;\n await mockComponents(workspacePath);\n lanes = await loadAspect(LanesAspect, workspacePath);\n await lanes.createLane('stage');\n snapping = await loadAspect(SnappingAspect, workspacePath);\n const currentLaneId = lanes.getCurrentLaneId();\n if (!currentLaneId) throw new Error('unable to get the current lane-id');\n laneId = currentLaneId;\n }, 30000);\n afterAll(async () => {\n removeFeature(SUPPORT_LANE_HISTORY);\n await destroyWorkspace(workspaceData);\n });\n it('should create lane history object when creating a new lane', async () => {\n const laneHistory = await lanes.getLaneHistory(laneId);\n const history = laneHistory.getHistory();\n expect(Object.keys(history).length).toEqual(1);\n });\n it('should add a record to LaneHistory when snapping', async () => {\n const results = await snapping.snap({ pattern: 'comp1', build: false, message: 'first snap' });\n const laneHistory = await lanes.getLaneHistory(laneId);\n const history = laneHistory.getHistory();\n expect(Object.keys(history).length).toEqual(2);\n const snapHistory = history[Object.keys(history)[1]];\n expect(snapHistory.log.message).toEqual('snap (first snap)');\n expect(snapHistory.components.length).toEqual(1);\n expect(snapHistory.components[0]).toEqual(results?.snappedComponents[0].id.toString() as string);\n });\n describe('import to another workspace', () => {\n let newWorkspace: WorkspaceData;\n beforeAll(async () => {\n // make another snap to check to test the checkout later.\n await snapping.snap({ pattern: 'comp1', build: false, message: 'second snap' });\n const laneHistory = await lanes.getLaneHistory(laneId);\n const history = laneHistory.getHistory();\n expect(Object.keys(history).length).toEqual(3);\n\n const exporter: ExportMain = await loadAspect(ExportAspect, workspaceData.workspacePath);\n const exportResults = await exporter.export();\n expect(exportResults.componentsIds.length).toEqual(1);\n expect(exportResults.exportedLanes.length).toEqual(1);\n\n newWorkspace = mockWorkspace({ bareScopeName: workspaceData.remoteScopeName });\n\n lanes = await loadAspect(LanesAspect, newWorkspace.workspacePath);\n await lanes.switchLanes(laneId.toString(), { skipDependencyInstallation: true, getAll: true });\n await lanes.importLaneObject(laneId, true, true);\n }, 30000);\n afterAll(async () => {\n await destroyWorkspace(newWorkspace);\n });\n it('should not add a record to the lane-history', async () => {\n const laneHistory = await lanes.getLaneHistory(laneId);\n const history = laneHistory.getHistory();\n expect(Object.keys(history).length).toEqual(3);\n });\n it('should be able to checkout to a previous state of the lane', async () => {\n const laneHistory = await lanes.getLaneHistory(laneId);\n const history = laneHistory.getHistory();\n const snapHistoryId = Object.keys(history).find((key) => history[key].log.message?.includes('first snap'));\n if (!snapHistoryId) throw new Error('unable to find snap history of the first snap');\n const results = await lanes.checkoutHistory(snapHistoryId, { skipDependencyInstallation: true });\n expect(results.components?.length).toEqual(1);\n expect(results.failedComponents?.length).toEqual(0);\n });\n });\n });\n\n describe('create lanes with the same name different scope', () => {\n let lanes: LanesMain;\n let workspaceData: WorkspaceData;\n beforeAll(async () => {\n workspaceData = mockWorkspace();\n const { workspacePath } = workspaceData;\n await mockComponents(workspacePath);\n lanes = await loadAspect(LanesAspect, workspacePath);\n await lanes.createLane('stage');\n await lanes.switchLanes('main', { skipDependencyInstallation: true });\n }, 30000);\n afterAll(async () => {\n await destroyWorkspace(workspaceData);\n });\n it('should not throw when creating the second lane', async () => {\n await lanes.createLane('stage', { scope: 'new-scope' });\n const currentLanes = await lanes.getLanes({});\n expect(currentLanes.length).toEqual(2);\n expect(currentLanes[0].id.name).toEqual('stage');\n expect(currentLanes[1].id.name).toEqual('stage');\n });\n });\n});\n"],"mappings":";;AAAA,SAAAA,gBAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,eAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,UAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAC,SAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,QAAA;EAAA,MAAAJ,IAAA,GAAAC,OAAA;EAAAG,OAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAK,eAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,cAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,kBAAA;EAAA,MAAAN,IAAA,GAAAC,OAAA;EAAAK,iBAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,kBAAA;EAAA,MAAAP,IAAA,GAAAC,OAAA;EAAAM,iBAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,eAAA;EAAA,MAAAR,IAAA,GAAAC,OAAA;EAAAO,cAAA,YAAAA,CAAA;IAAA,OAAAR,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAS,OAAA;EAAA,MAAAT,IAAA,GAAAC,OAAA;EAAAQ,MAAA,YA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AK,GAAG,MAAM,IAAAM,4BAAU,EAACC,oBAAW,EAAEH,aAAa,CAAC;MACpD,MAAMJ,KAAK,CAACQ,UAAU,CAAC,OAAO,CAAC;MAC/B,MAAMR,KAAK,CAAC6C,WAAW,CAAC,MAAM,EAAE;QAAEC,0BAA0B,EAAE;MAAK,CAAC,CAAC;IACvE,CAAC,EAAE,KAAK,CAAC;IACTrC,QAAQ,CAAC,YAAY;MACnB,MAAM,IAAAC,oCAAgB,EAACT,aAAa,CAAC;IACvC,CAAC,CAAC;IACFU,EAAE,CAAC,gDAAgD,EAAE,YAAY;MAC/D,MAAMX,KAAK,CAACQ,UAAU,CAAC,OAAO,EAAE;QAAEsF,KAAK,EAAE;MAAY,CAAC,CAAC;MACvD,MAAMlF,YAAY,GAAG,MAAMZ,KAAK,CAACa,QAAQ,CAAC,CAAC,CAAC,CAAC;MAC7CC,MAAM,CAACF,YAAY,CAACG,MAAM,CAAC,CAACC,OAAO,CAAC,CAAC,CAAC;MACtCF,MAAM,CAACF,YAAY,CAAC,CAAC,CAAC,CAACK,EAAE,CAACC,IAAI,CAAC,CAACF,OAAO,CAAC,OAAO,CAAC;MAChDF,MAAM,CAACF,YAAY,CAAC,CAAC,CAAC,CAACK,EAAE,CAACC,IAAI,CAAC,CAACF,OAAO,CAAC,OAAO,CAAC;IAClD,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
1
|
+
{"version":3,"names":["_chai","data","require","_harmonyTesting","_snapping","_interopRequireDefault","_export","_featureToggle","_workspaceTesting","_componentTesting","_lanesEntities","_lanes","obj","__esModule","default","describe","timeout","lanes","workspaceData","before","mockWorkspace","workspacePath","mockComponents","loadAspect","LanesAspect","createLane","after","destroyWorkspace","it","currentLanes","getLanes","expect","to","have","lengthOf","name","equal","snapping","SnappingAspect","tag","ids","build","ignoreIssues","exporter","ExportAspect","export","modifyMockedComponents","result","snap","pattern","snappedComponents","length","currentLane","getCurrentLane","Error","isUpToDate","diffStatus","toLaneId","undefined","skipChanges","componentsStatus","every","c","upToDate","be","true","switchLanes","skipDependencyInstallation","unmodified","false","laneDiffResults","changeType","ChangeType","NONE","removeLanes","lanesAfterDelete","restoreLane","hash","id","output","laneHash","error","err","instanceOf","message","include","laneId","addFeature","SUPPORT_LANE_HISTORY","currentLaneId","getCurrentLaneId","removeFeature","laneHistory","getLaneHistory","history","getHistory","Object","keys","results","snapHistory","log","components","toString","newWorkspace","exportResults","componentsIds","exportedLanes","bareScopeName","remoteScopeName","getAll","importLaneObject","snapHistoryId","find","key","includes","checkoutHistory","failedComponents","scope"],"sources":["lanes.spec.ts"],"sourcesContent":["import { expect } from 'chai';\nimport { loadAspect } from '@teambit/harmony.testing.load-aspect';\nimport SnappingAspect, { SnappingMain } from '@teambit/snapping';\nimport { ExportAspect, ExportMain } from '@teambit/export';\nimport { LaneId } from '@teambit/lane-id';\nimport { SUPPORT_LANE_HISTORY, addFeature, removeFeature } from '@teambit/legacy/dist/api/consumer/lib/feature-toggle';\nimport { mockWorkspace, destroyWorkspace, WorkspaceData } from '@teambit/workspace.testing.mock-workspace';\nimport { mockComponents, modifyMockedComponents } from '@teambit/component.testing.mock-components';\nimport { ChangeType } from '@teambit/lanes.entities.lane-diff';\nimport { LanesAspect } from './lanes.aspect';\nimport { LanesMain } from './lanes.main.runtime';\n\ndescribe('LanesAspect', function () {\n this.timeout(0);\n\n describe('getLanes()', () => {\n let lanes: LanesMain;\n let workspaceData: WorkspaceData;\n before(async () => {\n workspaceData = mockWorkspace();\n const { workspacePath } = workspaceData;\n await mockComponents(workspacePath);\n lanes = await loadAspect(LanesAspect, workspacePath);\n await lanes.createLane('stage');\n });\n after(async () => {\n await destroyWorkspace(workspaceData);\n });\n it('should list all lanes', async () => {\n const currentLanes = await lanes.getLanes({});\n expect(currentLanes).to.have.lengthOf(1);\n expect(currentLanes[0].name).to.equal('stage');\n });\n });\n\n describe('isLaneUpToDate', () => {\n let lanes: LanesMain;\n let snapping: SnappingMain;\n let workspaceData: WorkspaceData;\n before(async () => {\n workspaceData = mockWorkspace();\n const { workspacePath } = workspaceData;\n await mockComponents(workspacePath);\n snapping = await loadAspect(SnappingAspect, workspacePath);\n await snapping.tag({ ids: ['comp1'], build: false, ignoreIssues: 'MissingManuallyConfiguredPackages' });\n const exporter: ExportMain = await loadAspect(ExportAspect, workspacePath);\n await exporter.export();\n lanes = await loadAspect(LanesAspect, workspacePath);\n await lanes.createLane('stage');\n await modifyMockedComponents(workspacePath, 'v2');\n const result = await snapping.snap({\n pattern: 'comp1',\n build: false,\n ignoreIssues: 'MissingManuallyConfiguredPackages',\n });\n // intermediate step, make sure it is snapped\n expect(result?.snappedComponents.length).to.equal(1);\n });\n after(async () => {\n await destroyWorkspace(workspaceData);\n });\n it('should return that the lane is up to date when the lane is ahead of main', async () => {\n const currentLane = await lanes.getCurrentLane();\n if (!currentLane) throw new Error('unable to get the current lane');\n const isUpToDate = (\n await lanes.diffStatus(currentLane.toLaneId(), undefined, { skipChanges: true })\n ).componentsStatus.every((c) => c.upToDate);\n\n expect(isUpToDate).to.be.true;\n });\n it('should return that the lane is not up to date when main is ahead', async () => {\n const currentLane = await lanes.getCurrentLane();\n if (!currentLane) throw new Error('unable to get the current lane');\n await lanes.switchLanes('main', { skipDependencyInstallation: true });\n await snapping.snap({\n pattern: 'comp1',\n build: false,\n unmodified: true,\n ignoreIssues: 'MissingManuallyConfiguredPackages',\n });\n const isUpToDate = (\n await lanes.diffStatus(currentLane.toLaneId(), undefined, { skipChanges: true })\n ).componentsStatus.every((c) => c.upToDate);\n\n expect(isUpToDate).to.be.false;\n });\n });\n\n describe('laneDiff', () => {\n let lanes: LanesMain;\n let snapping: SnappingMain;\n let workspaceData: WorkspaceData;\n before(async () => {\n workspaceData = mockWorkspace();\n const { workspacePath } = workspaceData;\n await mockComponents(workspacePath);\n snapping = await loadAspect(SnappingAspect, workspacePath);\n await snapping.tag({ ids: ['comp1'], build: false });\n const exporter: ExportMain = await loadAspect(ExportAspect, workspacePath);\n await exporter.export();\n lanes = await loadAspect(LanesAspect, workspacePath);\n await lanes.createLane('stage');\n const result = await snapping.snap({ pattern: 'comp1', build: false, unmodified: true });\n // intermediate step, make sure it is snapped\n expect(result?.snappedComponents.length).to.equal(1);\n });\n after(async () => {\n await destroyWorkspace(workspaceData);\n });\n it('should return that the lane is up to date when the lane is ahead of main', async () => {\n const currentLane = await lanes.getCurrentLane();\n if (!currentLane) throw new Error('unable to get the current lane');\n const laneDiffResults = await lanes.diffStatus(currentLane.toLaneId());\n expect(laneDiffResults.componentsStatus[0].upToDate).to.be.true;\n expect(laneDiffResults.componentsStatus[0].changeType).to.equal(ChangeType.NONE);\n });\n it('should return that the lane is not up to date when main is ahead', async () => {\n const currentLane = await lanes.getCurrentLane();\n if (!currentLane) throw new Error('unable to get the current lane');\n await lanes.switchLanes('main', { skipDependencyInstallation: true });\n await snapping.snap({ pattern: 'comp1', build: false, unmodified: true });\n\n const laneDiffResults = await lanes.diffStatus(currentLane.toLaneId());\n expect(laneDiffResults.componentsStatus[0].upToDate).to.be.false;\n expect(laneDiffResults.componentsStatus[0].changeType).to.equal(ChangeType.NONE);\n });\n });\n\n describe('restoreLane()', () => {\n let lanes: LanesMain;\n let workspaceData: WorkspaceData;\n before(async () => {\n workspaceData = mockWorkspace();\n const { workspacePath } = workspaceData;\n await mockComponents(workspacePath);\n lanes = await loadAspect(LanesAspect, workspacePath);\n await lanes.createLane('stage');\n\n // as an intermediate step, make sure the lane was created\n const currentLanes = await lanes.getLanes({});\n expect(currentLanes).to.have.lengthOf(1);\n\n await lanes.switchLanes('main', { skipDependencyInstallation: true });\n await lanes.removeLanes(['stage']);\n\n // as an intermediate step, make sure the lane was removed\n const lanesAfterDelete = await lanes.getLanes({});\n expect(lanesAfterDelete).to.have.lengthOf(0);\n\n await lanes.restoreLane(currentLanes[0].hash);\n });\n after(async () => {\n await destroyWorkspace(workspaceData);\n });\n it('should restore the deleted lane', async () => {\n const currentLanes = await lanes.getLanes({});\n expect(currentLanes).to.have.lengthOf(1);\n expect(currentLanes[0].id.name).to.equal('stage');\n });\n describe('delete restored lane', () => {\n let output: string[];\n before(async () => {\n output = await lanes.removeLanes(['stage']);\n });\n it('should not throw', () => {\n expect(output).to.have.lengthOf(1);\n });\n });\n });\n\n describe('restore lane when an existing lane has the same id', () => {\n let lanes: LanesMain;\n let workspaceData: WorkspaceData;\n let laneHash: string;\n before(async () => {\n workspaceData = mockWorkspace();\n const { workspacePath } = workspaceData;\n await mockComponents(workspacePath);\n lanes = await loadAspect(LanesAspect, workspacePath);\n await lanes.createLane('stage');\n\n // as an intermediate step, make sure the lane was created\n const currentLanes = await lanes.getLanes({});\n expect(currentLanes).to.have.lengthOf(1);\n\n await lanes.switchLanes('main', { skipDependencyInstallation: true });\n await lanes.removeLanes(['stage']);\n\n await lanes.createLane('stage');\n laneHash = currentLanes[0].hash;\n });\n after(async () => {\n await destroyWorkspace(workspaceData);\n });\n it('should throw when restoring the lane', async () => {\n let error: Error | undefined;\n try {\n await lanes.restoreLane(laneHash);\n } catch (err: any) {\n error = err;\n }\n expect(error).to.be.instanceOf(Error);\n expect(error?.message).to.include('unable to restore lane');\n });\n });\n\n describe('lane history', () => {\n let lanes: LanesMain;\n let workspaceData: WorkspaceData;\n let snapping: SnappingMain;\n let laneId: LaneId;\n before(async () => {\n addFeature(SUPPORT_LANE_HISTORY);\n workspaceData = mockWorkspace();\n const { workspacePath } = workspaceData;\n await mockComponents(workspacePath);\n lanes = await loadAspect(LanesAspect, workspacePath);\n await lanes.createLane('stage');\n snapping = await loadAspect(SnappingAspect, workspacePath);\n const currentLaneId = lanes.getCurrentLaneId();\n if (!currentLaneId) throw new Error('unable to get the current lane-id');\n laneId = currentLaneId;\n });\n after(async () => {\n removeFeature(SUPPORT_LANE_HISTORY);\n await destroyWorkspace(workspaceData);\n });\n it('should create lane history object when creating a new lane', async () => {\n const laneHistory = await lanes.getLaneHistory(laneId);\n const history = laneHistory.getHistory();\n expect(Object.keys(history).length).to.equal(1);\n });\n it('should add a record to LaneHistory when snapping', async () => {\n const results = await snapping.snap({ pattern: 'comp1', build: false, message: 'first snap' });\n const laneHistory = await lanes.getLaneHistory(laneId);\n const history = laneHistory.getHistory();\n expect(Object.keys(history).length).to.equal(2);\n const snapHistory = history[Object.keys(history)[1]];\n expect(snapHistory.log.message).to.equal('snap (first snap)');\n expect(snapHistory.components.length).to.equal(1);\n expect(snapHistory.components[0]).to.equal(results?.snappedComponents[0].id.toString() as string);\n });\n describe('import to another workspace', () => {\n let newWorkspace: WorkspaceData;\n before(async () => {\n // make another snap to check to test the checkout later.\n await snapping.snap({ pattern: 'comp1', build: false, message: 'second snap' });\n const laneHistory = await lanes.getLaneHistory(laneId);\n const history = laneHistory.getHistory();\n expect(Object.keys(history).length).to.equal(3);\n\n const exporter: ExportMain = await loadAspect(ExportAspect, workspaceData.workspacePath);\n const exportResults = await exporter.export();\n expect(exportResults.componentsIds.length).to.equal(1);\n expect(exportResults.exportedLanes.length).to.equal(1);\n\n newWorkspace = mockWorkspace({ bareScopeName: workspaceData.remoteScopeName });\n\n lanes = await loadAspect(LanesAspect, newWorkspace.workspacePath);\n await lanes.switchLanes(laneId.toString(), { skipDependencyInstallation: true, getAll: true });\n await lanes.importLaneObject(laneId, true, true);\n });\n after(async () => {\n await destroyWorkspace(newWorkspace);\n });\n it('should not add a record to the lane-history', async () => {\n const laneHistory = await lanes.getLaneHistory(laneId);\n const history = laneHistory.getHistory();\n expect(Object.keys(history).length).to.equal(3);\n });\n it('should be able to checkout to a previous state of the lane', async () => {\n const laneHistory = await lanes.getLaneHistory(laneId);\n const history = laneHistory.getHistory();\n const snapHistoryId = Object.keys(history).find((key) => history[key].log.message?.includes('first snap'));\n if (!snapHistoryId) throw new Error('unable to find snap history of the first snap');\n const results = await lanes.checkoutHistory(snapHistoryId, { skipDependencyInstallation: true });\n expect(results.components?.length).to.equal(1);\n expect(results.failedComponents?.length).to.equal(0);\n });\n });\n });\n\n describe('create lanes with the same name different scope', () => {\n let lanes: LanesMain;\n let workspaceData: WorkspaceData;\n before(async () => {\n workspaceData = mockWorkspace();\n const { workspacePath } = workspaceData;\n await mockComponents(workspacePath);\n lanes = await loadAspect(LanesAspect, workspacePath);\n await lanes.createLane('stage');\n await lanes.switchLanes('main', { skipDependencyInstallation: true });\n });\n after(async () => {\n await destroyWorkspace(workspaceData);\n });\n it('should not throw when creating the second lane', async () => {\n await lanes.createLane('stage', { scope: 'new-scope' });\n const currentLanes = await lanes.getLanes({});\n expect(currentLanes.length).to.equal(2);\n expect(currentLanes[0].id.name).to.equal('stage');\n expect(currentLanes[1].id.name).to.equal('stage');\n });\n });\n});\n"],"mappings":";;AAAA,SAAAA,MAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,KAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,gBAAA;EAAA,MAAAF,IAAA,GAAAC,OAAA;EAAAC,eAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,UAAA;EAAA,MAAAH,IAAA,GAAAI,sBAAA,CAAAH,OAAA;EAAAE,SAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,QAAA;EAAA,MAAAL,IAAA,GAAAC,OAAA;EAAAI,OAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAM,eAAA;EAAA,MAAAN,IAAA,GAAAC,OAAA;EAAAK,cAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAO,kBAAA;EAAA,MAAAP,IAAA,GAAAC,OAAA;EAAAM,iBAAA,YAAAA,CAAA;IAAA,OAAAP,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAQ,kBAAA;EAAA,MAAAR,IAAA,GAAA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,YAAY,GAAG,MAAMZ,KAAK,CAACa,QAAQ,CAAC,CAAC,CAAC,CAAC;MAC7C,IAAAC,cAAM,EAACF,YAAY,CAACsB,MAAM,CAAC,CAACnB,EAAE,CAACI,KAAK,CAAC,CAAC,CAAC;MACvC,IAAAL,cAAM,EAACF,YAAY,CAAC,CAAC,CAAC,CAACiD,EAAE,CAAC3C,IAAI,CAAC,CAACH,EAAE,CAACI,KAAK,CAAC,OAAO,CAAC;MACjD,IAAAL,cAAM,EAACF,YAAY,CAAC,CAAC,CAAC,CAACiD,EAAE,CAAC3C,IAAI,CAAC,CAACH,EAAE,CAACI,KAAK,CAAC,OAAO,CAAC;IACnD,CAAC,CAAC;EACJ,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
/// <reference types="react" />
|
1
2
|
import { RouteProps } from 'react-router-dom';
|
2
3
|
import { Harmony, SlotRegistry } from '@teambit/harmony';
|
3
4
|
import { LaneCompareProps as DefaultLaneCompareProps } from '@teambit/lanes.ui.compare.lane-compare';
|
@@ -24,7 +25,7 @@ export declare function useComponentFilters(): {
|
|
24
25
|
};
|
25
26
|
};
|
26
27
|
export declare function useLaneComponentIdFromUrl(): ComponentID | undefined | null;
|
27
|
-
export declare function useComponentId(): string;
|
28
|
+
export declare function useComponentId(): string | undefined;
|
28
29
|
export declare class LanesUI {
|
29
30
|
private componentUI;
|
30
31
|
private componentCompareUI;
|
@@ -45,7 +46,7 @@ export declare class LanesUI {
|
|
45
46
|
/**
|
46
47
|
* overview line slot to add new lines beneath the overview section
|
47
48
|
*/
|
48
|
-
overviewSlot: LaneOverviewLineSlot, laneProviderIgnoreSlot: LaneProviderIgnoreSlot, workspace?: WorkspaceUI, scope?: ScopeUI);
|
49
|
+
overviewSlot: LaneOverviewLineSlot, laneProviderIgnoreSlot: LaneProviderIgnoreSlot, workspace?: WorkspaceUI | undefined, scope?: ScopeUI | undefined);
|
49
50
|
private readonly lanesHost;
|
50
51
|
private readonly hostAspect?;
|
51
52
|
private readonly host;
|
@@ -85,7 +86,7 @@ export declare class LanesUI {
|
|
85
86
|
*/
|
86
87
|
registerOverviewLine(...lines: LaneOverviewLine[]): this;
|
87
88
|
registerNavigation(routes: LanesNavPlugin[]): void;
|
88
|
-
getLaneCompare: (props: LaneCompareProps) => JSX.Element;
|
89
|
+
getLaneCompare: (props: LaneCompareProps) => JSX.Element | null;
|
89
90
|
static provider([uiUi, componentUI, workspaceUi, scopeUi, componentCompareUI]: [
|
90
91
|
UiUI,
|
91
92
|
ComponentUI,
|
package/dist/lanes.ui.runtime.js
CHANGED
@@ -42,13 +42,6 @@ function _ui() {
|
|
42
42
|
};
|
43
43
|
return data;
|
44
44
|
}
|
45
|
-
function _lanes() {
|
46
|
-
const data = require("@teambit/lanes");
|
47
|
-
_lanes = function () {
|
48
|
-
return data;
|
49
|
-
};
|
50
|
-
return data;
|
51
|
-
}
|
52
45
|
function _designUiPages() {
|
53
46
|
const data = require("@teambit/design.ui.pages.not-found");
|
54
47
|
_designUiPages = function () {
|
@@ -154,6 +147,13 @@ function _scopeUi() {
|
|
154
147
|
};
|
155
148
|
return data;
|
156
149
|
}
|
150
|
+
function _lanes() {
|
151
|
+
const data = require("./lanes.aspect");
|
152
|
+
_lanes = function () {
|
153
|
+
return data;
|
154
|
+
};
|
155
|
+
return data;
|
156
|
+
}
|
157
157
|
function _lanesUiModule() {
|
158
158
|
const data = _interopRequireDefault(require("./lanes.ui.module.scss"));
|
159
159
|
_lanesUiModule = function () {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["_react","data","_interopRequireWildcard","require","_reactRouterDom","_harmony","_lanesUiCompare","_ui","_lanes","_designUiPages","_scope","_workspace","_interopRequireDefault","_component","_lanesUi","_lanesUiMenus","_uiFoundationUiReactRouter","_lanesUiMenus2","_lanesUiModels","_lanesHooks","_lanesUiNavigation","_lanesHooks2","_componentCompare","_lanesUiCompare2","_scopeUi","_lanesUiModule","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_extends","assign","bind","target","arguments","length","source","key","apply","_defineProperty","value","_toPropertyKey","enumerable","configurable","writable","_toPrimitive","String","Symbol","toPrimitive","TypeError","Number","useComponentFilters","idFromLocation","useIdFromLocation","undefined","lanesModel","loading","useLanes","laneFromUrl","useViewedLaneFromUrl","laneComponentId","isDefault","resolveComponentFromUrl","log","head","version","useLaneComponentIdFromUrl","query","useQuery","componentVersion","compIdFromLocation","ComponentID","tryFromString","lanesComp","changeVersion","useComponentId","toString","LanesUI","constructor","componentUI","componentCompareUI","routeSlot","navSlot","menuWidgetSlot","overviewSlot","laneProviderIgnoreSlot","workspace","scope","children","ignoreFns","values","createElement","LanesProvider","ignoreDerivingFromUrl","props","tabs","base","compare","LaneCompare","host","hostAspect","lanesHost","WorkspaceAspect","id","ScopeAspect","registerHostAspectRoutes","registerRoutes","getLaneRoutes","registerMenuRoutes","getMenuRoutes","path","LanesModel","lanesPrefix","Fragment","Route","lanePath","index","element","getLaneOverview","getLaneComponent","getLanesComparePage","NotFoundPage","overrideComputeLaneUrl","fn","prefix","getLaneComponentUrl","getLaneIdFromPathname","getLaneUrl","getComponentUI","componentId","getLaneComponentMenu","getMenu","LaneOverview","LaneComparePage","getLaneCompare","groupByScope","getLanesOverviewMenu","LanesOverviewMenu","navigationSlot","widgetSlot","registerMenuWidget","menuItems","register","registerLaneProviderIgnoreSlot","ignoreFn","registerLanesRoutes","registerNavigation","href","exact","order","hide","viewedLane","lanes","getLanesSwitcher","mainIcon","useContext","ScopeContext","ScopeIcon","size","scopeImage","icon","bgColor","backgroundIconColor","className","styles","mainLaneIcon","LanesSwitcher","LaneSwitcher","getLanesProvider","getUseLanes","registerLanesDropdown","registerSidebarLink","component","Gallery","weight","registerRoute","route","registerOverviewLine","lines","routes","provider","uiUi","workspaceUi","scopeUi","_","harmony","config","lanesUi","registerRenderHooks","reactContext","renderContext","currentLane","UseLaneMenu","actionName","actionIcon","viewedLaneId","currentLaneId","exports","UIAspect","ComponentAspect","ComponentCompareAspect","UIRuntime","Slot","withType","_default","LanesAspect","addRuntime"],"sources":["lanes.ui.runtime.tsx"],"sourcesContent":["import React, { ReactNode, useContext } from 'react';\nimport { Route, RouteProps } from 'react-router-dom';\nimport { Slot, Harmony, SlotRegistry } from '@teambit/harmony';\nimport { LaneCompare, LaneCompareProps as DefaultLaneCompareProps } from '@teambit/lanes.ui.compare.lane-compare';\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 { NotFoundPage } from '@teambit/design.ui.pages.not-found';\nimport ScopeAspect, { ScopeContext, ScopeUI } from '@teambit/scope';\nimport WorkspaceAspect, { WorkspaceUI } from '@teambit/workspace';\nimport ComponentAspect, { ComponentUI, useIdFromLocation, ComponentID } from '@teambit/component';\nimport { MenuWidget, MenuWidgetSlot } from '@teambit/ui-foundation.ui.menu';\nimport { LaneOverview, LaneOverviewLine, LaneOverviewLineSlot } from '@teambit/lanes.ui.lane-overview';\nimport {\n LanesNavPlugin,\n LanesOrderedNavigationSlot,\n LanesOverviewMenu,\n} from '@teambit/lanes.ui.menus.lanes-overview-menu';\nimport { useQuery } from '@teambit/ui-foundation.ui.react-router.use-query';\nimport { UseLaneMenu } from '@teambit/lanes.ui.menus.use-lanes-menu';\nimport { LanesHost, LanesModel } from '@teambit/lanes.ui.models.lanes-model';\nimport { LanesProvider, useLanes, IgnoreDerivingFromUrl } from '@teambit/lanes.hooks.use-lanes';\nimport { LaneSwitcher } from '@teambit/lanes.ui.navigation.lane-switcher';\nimport { LaneId } from '@teambit/lane-id';\nimport { useViewedLaneFromUrl } from '@teambit/lanes.hooks.use-viewed-lane-from-url';\nimport { ComponentCompareAspect, ComponentCompareUI } from '@teambit/component-compare';\nimport { LaneComparePage } from '@teambit/lanes.ui.compare.lane-compare-page';\nimport { ScopeIcon } from '@teambit/scope.ui.scope-icon';\n\nimport styles from './lanes.ui.module.scss';\n\nexport type LaneCompareProps = Partial<DefaultLaneCompareProps>;\nexport type LaneProviderIgnoreSlot = SlotRegistry<IgnoreDerivingFromUrl>;\nexport function useComponentFilters() {\n const idFromLocation = useIdFromLocation(undefined, true);\n const { lanesModel, loading } = useLanes();\n const laneFromUrl = useViewedLaneFromUrl();\n const laneComponentId =\n idFromLocation && !laneFromUrl?.isDefault()\n ? lanesModel?.resolveComponentFromUrl(idFromLocation, laneFromUrl) ?? null\n : null;\n\n if (laneComponentId === null || loading) {\n return {\n loading: true,\n };\n }\n\n return {\n loading: false,\n log: {\n head: laneComponentId.version,\n },\n };\n}\n\nexport function useLaneComponentIdFromUrl(): ComponentID | undefined | null {\n const idFromLocation = useIdFromLocation(undefined, true);\n const { lanesModel, loading } = useLanes();\n const laneFromUrl = useViewedLaneFromUrl();\n const query = useQuery();\n const componentVersion = query.get('version');\n\n if (!idFromLocation) return null;\n\n const compIdFromLocation = ComponentID.tryFromString(\n `${idFromLocation}${componentVersion ? `@${componentVersion}` : ''}`\n );\n\n if (compIdFromLocation) return compIdFromLocation;\n if (loading) return undefined;\n\n const lanesComp = (lanesModel?.resolveComponentFromUrl(idFromLocation, laneFromUrl) as any | undefined) ?? null;\n\n if (componentVersion) {\n return lanesComp?.changeVersion(componentVersion);\n }\n\n return lanesComp;\n}\n\nexport function useComponentId() {\n return useLaneComponentIdFromUrl()?.toString();\n}\n\nexport class LanesUI {\n static dependencies = [UIAspect, ComponentAspect, WorkspaceAspect, ScopeAspect, ComponentCompareAspect];\n\n static runtime = UIRuntime;\n static slots = [\n Slot.withType<RouteProps>(),\n Slot.withType<LaneOverviewLineSlot>(),\n Slot.withType<NavigationSlot>(),\n Slot.withType<MenuWidgetSlot>(),\n Slot.withType<LaneProviderIgnoreSlot>(),\n ];\n\n constructor(\n private componentUI: ComponentUI,\n private componentCompareUI: ComponentCompareUI,\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 laneProviderIgnoreSlot: LaneProviderIgnoreSlot,\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(this.getLaneRoutes());\n this.hostAspect.registerMenuRoutes(this.getMenuRoutes());\n }\n\n getLaneRoutes() {\n return [\n {\n path: LanesModel.lanesPrefix,\n children: (\n <>\n <Route path={LanesModel.lanePath}>\n <Route index element={this.getLaneOverview()} />\n <Route path=\"~component/*\" element={this.getLaneComponent()} />\n <Route path=\"~compare/*\" element={this.getLanesComparePage()} />\n <Route path=\"*\" element={<NotFoundPage />} />\n </Route>\n <Route path=\"*\" element={<NotFoundPage />} />\n </>\n ),\n },\n ];\n }\n\n overrideComputeLaneUrl(\n fn: () => {\n prefix: string;\n path: string;\n getLaneIdFromPathname: (pathname: string) => LaneId | undefined;\n getLaneUrl: (laneId: LaneId, relative?: boolean) => string;\n getLaneComponentUrl: (componentId: ComponentID, laneId: LaneId) => string;\n }\n ) {\n const { prefix, path, getLaneComponentUrl, getLaneIdFromPathname, getLaneUrl } = fn();\n LanesModel.lanesPrefix = prefix;\n LanesModel.lanePath = path;\n LanesModel.getLaneComponentUrl = getLaneComponentUrl as any;\n LanesModel.getLaneUrl = getLaneUrl;\n LanesModel.getLaneIdFromPathname = getLaneIdFromPathname;\n }\n\n // getLaneReadme() {\n // return <LaneReadmeOverview host={this.host} overviewSlot={this.overviewSlot} routeSlot={this.routeSlot} />;\n // }\n\n getLaneComponent() {\n return this.componentUI.getComponentUI(this.host, {\n componentId: useComponentId,\n useComponentFilters,\n });\n }\n\n getLaneComponentMenu() {\n return this.componentUI.getMenu(this.host, {\n componentId: useComponentId,\n useComponentFilters,\n });\n }\n\n getLaneOverview() {\n return (\n <LaneOverview\n routeSlot={this.routeSlot}\n overviewSlot={this.overviewSlot}\n host={this.lanesHost}\n useLanes={useLanes}\n />\n );\n }\n\n getLanesComparePage() {\n return <LaneComparePage getLaneCompare={this.getLaneCompare} groupByScope={this.lanesHost === 'workspace'} />;\n }\n\n getMenuRoutes() {\n return [\n {\n path: LanesModel.lanesPrefix,\n children: (\n <Route path={`${LanesModel.lanePath}/*`}>\n <Route path={'*'} element={this.getLanesOverviewMenu()} />\n <Route path=\"~component/*\" element={this.getLaneComponentMenu()} />\n </Route>\n ),\n },\n ];\n }\n\n getLanesOverviewMenu() {\n return <LanesOverviewMenu navigationSlot={this.navSlot} widgetSlot={this.menuWidgetSlot} />;\n }\n\n registerMenuWidget(...menuItems: MenuWidget[]) {\n this.menuWidgetSlot.register(menuItems);\n return this;\n }\n\n registerLaneProviderIgnoreSlot(ignoreFn: IgnoreDerivingFromUrl) {\n this.laneProviderIgnoreSlot.register(ignoreFn);\n return this;\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 { lanesModel } = useLanes();\n // return !lanesModel?.viewedLane?.readmeComponent;\n // },\n // },\n {\n props: {\n href: '.',\n exact: true,\n children: 'Overview',\n },\n order: 1,\n },\n {\n props: {\n href: '~compare',\n children: 'Compare',\n },\n order: 2,\n hide: () => {\n const { lanesModel } = useLanes();\n return !lanesModel?.viewedLane || lanesModel?.lanes.length < 2;\n },\n },\n ]);\n }\n\n private registerRoutes() {\n this.registerHostAspectRoutes();\n this.registerLanesRoutes();\n }\n\n getLanesSwitcher() {\n const mainIcon = () => {\n const scope = useContext(ScopeContext);\n return (\n <ScopeIcon\n size={24}\n scopeImage={scope.icon}\n bgColor={scope.backgroundIconColor}\n className={styles.mainLaneIcon}\n />\n );\n };\n\n const LanesSwitcher = (\n <LaneSwitcher\n groupByScope={this.lanesHost === 'workspace'}\n mainIcon={this.lanesHost === 'scope' ? mainIcon : undefined}\n useLanes={useLanes}\n />\n );\n\n return LanesSwitcher;\n }\n\n getLanesProvider() {\n return LanesProvider;\n }\n\n getUseLanes() {\n return useLanes;\n }\n\n private registerLanesDropdown() {\n const LanesSwitcher = this.getLanesSwitcher();\n\n this.hostAspect?.registerSidebarLink({\n component: function Gallery() {\n return LanesSwitcher;\n },\n weight: 1000,\n });\n }\n\n private renderContext = ({ children }: { children: ReactNode }) => {\n const ignoreFns = this.laneProviderIgnoreSlot.values();\n\n return <LanesProvider ignoreDerivingFromUrl={ignoreFns}>{children}</LanesProvider>;\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 getLaneCompare = (props: LaneCompareProps) => {\n const tabs = this.componentCompareUI.tabs;\n\n if (!props.base || !props.compare) return null;\n\n return (\n <LaneCompare\n {...props}\n base={props.base}\n compare={props.compare}\n host={props.host || this.host}\n tabs={props.tabs || tabs}\n />\n );\n };\n\n static async provider(\n [uiUi, componentUI, workspaceUi, scopeUi, componentCompareUI]: [\n UiUI,\n ComponentUI,\n WorkspaceUI,\n ScopeUI,\n ComponentCompareUI\n ],\n _,\n [routeSlot, overviewSlot, navSlot, menuWidgetSlot, laneProviderIgnoreSlot]: [\n RouteSlot,\n LaneOverviewLineSlot,\n LanesOrderedNavigationSlot,\n MenuWidgetSlot,\n LaneProviderIgnoreSlot\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(\n componentUI,\n componentCompareUI,\n routeSlot,\n navSlot,\n menuWidgetSlot,\n overviewSlot,\n laneProviderIgnoreSlot,\n workspace,\n scope\n );\n if (uiUi) uiUi.registerRenderHooks({ reactContext: lanesUi.renderContext });\n lanesUi.registerRoutes();\n lanesUi.registerMenuWidget(() => {\n const { lanesModel } = useLanes();\n if (!lanesModel?.viewedLane) return null;\n const { viewedLane, currentLane } = lanesModel;\n return (\n <UseLaneMenu\n actionName={'Import'}\n actionIcon={'terminal'}\n host={lanesUi.lanesHost}\n viewedLaneId={viewedLane.id}\n currentLaneId={currentLane?.id}\n />\n );\n });\n lanesUi.registerLanesDropdown();\n return lanesUi;\n }\n}\n\nexport default LanesUI;\n\nLanesAspect.addRuntime(LanesUI);\n"],"mappings":";;;;;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,uBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,gBAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,eAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,SAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,QAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,gBAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,eAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,IAAA;EAAA,MAAAN,IAAA,GAAAE,OAAA;EAAAI,GAAA,YAAA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QACVC,UAAU,EAAE,QAAS;QACrBC,UAAU,EAAE,UAAW;QACvB/F,IAAI,EAAEwF,OAAO,CAACtF,SAAU;QACxB8F,YAAY,EAAE5C,UAAU,CAAChD,EAAG;QAC5B6F,aAAa,EAAEL,WAAW,EAAExF;MAAG,CAChC,CAAC;IAEN,CAAC,CAAC;IACFoF,OAAO,CAACjB,qBAAqB,CAAC,CAAC;IAC/B,OAAOiB,OAAO;EAChB;AACF;AAACU,OAAA,CAAAxH,OAAA,GAAAA,OAAA;AAAAtC,eAAA,CA/TYsC,OAAO,kBACI,CAACyH,cAAQ,EAAEC,oBAAe,EAAEjG,oBAAe,EAAEE,gBAAW,EAAEgG,0CAAsB,CAAC;AAAAjK,eAAA,CAD5FsC,OAAO,aAGD4H,eAAS;AAAAlK,eAAA,CAHfsC,OAAO,WAIH,CACb6H,eAAI,CAACC,QAAQ,CAAa,CAAC,EAC3BD,eAAI,CAACC,QAAQ,CAAuB,CAAC,EACrCD,eAAI,CAACC,QAAQ,CAAiB,CAAC,EAC/BD,eAAI,CAACC,QAAQ,CAAiB,CAAC,EAC/BD,eAAI,CAACC,QAAQ,CAAyB,CAAC,CACxC;AAAA,IAAAC,QAAA,GAAAP,OAAA,CAAA3L,OAAA,GAuTYmE,OAAO;AAEtBgI,oBAAW,CAACC,UAAU,CAACjI,OAAO,CAAC"}
|
1
|
+
{"version":3,"names":["_react","data","_interopRequireWildcard","require","_reactRouterDom","_harmony","_lanesUiCompare","_ui","_designUiPages","_scope","_workspace","_interopRequireDefault","_component","_lanesUi","_lanesUiMenus","_uiFoundationUiReactRouter","_lanesUiMenus2","_lanesUiModels","_lanesHooks","_lanesUiNavigation","_lanesHooks2","_componentCompare","_lanesUiCompare2","_scopeUi","_lanes","_lanesUiModule","obj","__esModule","default","_getRequireWildcardCache","e","WeakMap","r","t","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_extends","assign","bind","target","arguments","length","source","key","apply","_defineProperty","value","_toPropertyKey","enumerable","configurable","writable","_toPrimitive","String","Symbol","toPrimitive","TypeError","Number","useComponentFilters","idFromLocation","useIdFromLocation","undefined","lanesModel","loading","useLanes","laneFromUrl","useViewedLaneFromUrl","laneComponentId","isDefault","resolveComponentFromUrl","log","head","version","useLaneComponentIdFromUrl","query","useQuery","componentVersion","compIdFromLocation","ComponentID","tryFromString","lanesComp","changeVersion","useComponentId","toString","LanesUI","constructor","componentUI","componentCompareUI","routeSlot","navSlot","menuWidgetSlot","overviewSlot","laneProviderIgnoreSlot","workspace","scope","children","ignoreFns","values","createElement","LanesProvider","ignoreDerivingFromUrl","props","tabs","base","compare","LaneCompare","host","hostAspect","lanesHost","WorkspaceAspect","id","ScopeAspect","registerHostAspectRoutes","registerRoutes","getLaneRoutes","registerMenuRoutes","getMenuRoutes","path","LanesModel","lanesPrefix","Fragment","Route","lanePath","index","element","getLaneOverview","getLaneComponent","getLanesComparePage","NotFoundPage","overrideComputeLaneUrl","fn","prefix","getLaneComponentUrl","getLaneIdFromPathname","getLaneUrl","getComponentUI","componentId","getLaneComponentMenu","getMenu","LaneOverview","LaneComparePage","getLaneCompare","groupByScope","getLanesOverviewMenu","LanesOverviewMenu","navigationSlot","widgetSlot","registerMenuWidget","menuItems","register","registerLaneProviderIgnoreSlot","ignoreFn","registerLanesRoutes","registerNavigation","href","exact","order","hide","viewedLane","lanes","getLanesSwitcher","mainIcon","useContext","ScopeContext","ScopeIcon","size","scopeImage","icon","bgColor","backgroundIconColor","className","styles","mainLaneIcon","LanesSwitcher","LaneSwitcher","getLanesProvider","getUseLanes","registerLanesDropdown","registerSidebarLink","component","Gallery","weight","registerRoute","route","registerOverviewLine","lines","routes","provider","uiUi","workspaceUi","scopeUi","_","harmony","config","lanesUi","registerRenderHooks","reactContext","renderContext","currentLane","UseLaneMenu","actionName","actionIcon","viewedLaneId","currentLaneId","exports","UIAspect","ComponentAspect","ComponentCompareAspect","UIRuntime","Slot","withType","_default","LanesAspect","addRuntime"],"sources":["lanes.ui.runtime.tsx"],"sourcesContent":["import React, { ReactNode, useContext } from 'react';\nimport { Route, RouteProps } from 'react-router-dom';\nimport { Slot, Harmony, SlotRegistry } from '@teambit/harmony';\nimport { LaneCompare, LaneCompareProps as DefaultLaneCompareProps } from '@teambit/lanes.ui.compare.lane-compare';\nimport { UIRuntime, UiUI, UIAspect } from '@teambit/ui';\nimport { NavigationSlot, RouteSlot } from '@teambit/ui-foundation.ui.react-router.slot-router';\nimport { NotFoundPage } from '@teambit/design.ui.pages.not-found';\nimport ScopeAspect, { ScopeContext, ScopeUI } from '@teambit/scope';\nimport WorkspaceAspect, { WorkspaceUI } from '@teambit/workspace';\nimport ComponentAspect, { ComponentUI, useIdFromLocation, ComponentID } from '@teambit/component';\nimport { MenuWidget, MenuWidgetSlot } from '@teambit/ui-foundation.ui.menu';\nimport { LaneOverview, LaneOverviewLine, LaneOverviewLineSlot } from '@teambit/lanes.ui.lane-overview';\nimport {\n LanesNavPlugin,\n LanesOrderedNavigationSlot,\n LanesOverviewMenu,\n} from '@teambit/lanes.ui.menus.lanes-overview-menu';\nimport { useQuery } from '@teambit/ui-foundation.ui.react-router.use-query';\nimport { UseLaneMenu } from '@teambit/lanes.ui.menus.use-lanes-menu';\nimport { LanesHost, LanesModel } from '@teambit/lanes.ui.models.lanes-model';\nimport { LanesProvider, useLanes, IgnoreDerivingFromUrl } from '@teambit/lanes.hooks.use-lanes';\nimport { LaneSwitcher } from '@teambit/lanes.ui.navigation.lane-switcher';\nimport { LaneId } from '@teambit/lane-id';\nimport { useViewedLaneFromUrl } from '@teambit/lanes.hooks.use-viewed-lane-from-url';\nimport { ComponentCompareAspect, ComponentCompareUI } from '@teambit/component-compare';\nimport { LaneComparePage } from '@teambit/lanes.ui.compare.lane-compare-page';\nimport { ScopeIcon } from '@teambit/scope.ui.scope-icon';\n\nimport { LanesAspect } from './lanes.aspect';\nimport styles from './lanes.ui.module.scss';\n\nexport type LaneCompareProps = Partial<DefaultLaneCompareProps>;\nexport type LaneProviderIgnoreSlot = SlotRegistry<IgnoreDerivingFromUrl>;\nexport function useComponentFilters() {\n const idFromLocation = useIdFromLocation(undefined, true);\n const { lanesModel, loading } = useLanes();\n const laneFromUrl = useViewedLaneFromUrl();\n const laneComponentId =\n idFromLocation && !laneFromUrl?.isDefault()\n ? lanesModel?.resolveComponentFromUrl(idFromLocation, laneFromUrl) ?? null\n : null;\n\n if (laneComponentId === null || loading) {\n return {\n loading: true,\n };\n }\n\n return {\n loading: false,\n log: {\n head: laneComponentId.version,\n },\n };\n}\n\nexport function useLaneComponentIdFromUrl(): ComponentID | undefined | null {\n const idFromLocation = useIdFromLocation(undefined, true);\n const { lanesModel, loading } = useLanes();\n const laneFromUrl = useViewedLaneFromUrl();\n const query = useQuery();\n const componentVersion = query.get('version');\n\n if (!idFromLocation) return null;\n\n const compIdFromLocation = ComponentID.tryFromString(\n `${idFromLocation}${componentVersion ? `@${componentVersion}` : ''}`\n );\n\n if (compIdFromLocation) return compIdFromLocation;\n if (loading) return undefined;\n\n const lanesComp = (lanesModel?.resolveComponentFromUrl(idFromLocation, laneFromUrl) as any | undefined) ?? null;\n\n if (componentVersion) {\n return lanesComp?.changeVersion(componentVersion);\n }\n\n return lanesComp;\n}\n\nexport function useComponentId() {\n return useLaneComponentIdFromUrl()?.toString();\n}\n\nexport class LanesUI {\n static dependencies = [UIAspect, ComponentAspect, WorkspaceAspect, ScopeAspect, ComponentCompareAspect];\n\n static runtime = UIRuntime;\n static slots = [\n Slot.withType<RouteProps>(),\n Slot.withType<LaneOverviewLineSlot>(),\n Slot.withType<NavigationSlot>(),\n Slot.withType<MenuWidgetSlot>(),\n Slot.withType<LaneProviderIgnoreSlot>(),\n ];\n\n constructor(\n private componentUI: ComponentUI,\n private componentCompareUI: ComponentCompareUI,\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 laneProviderIgnoreSlot: LaneProviderIgnoreSlot,\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(this.getLaneRoutes());\n this.hostAspect.registerMenuRoutes(this.getMenuRoutes());\n }\n\n getLaneRoutes() {\n return [\n {\n path: LanesModel.lanesPrefix,\n children: (\n <>\n <Route path={LanesModel.lanePath}>\n <Route index element={this.getLaneOverview()} />\n <Route path=\"~component/*\" element={this.getLaneComponent()} />\n <Route path=\"~compare/*\" element={this.getLanesComparePage()} />\n <Route path=\"*\" element={<NotFoundPage />} />\n </Route>\n <Route path=\"*\" element={<NotFoundPage />} />\n </>\n ),\n },\n ];\n }\n\n overrideComputeLaneUrl(\n fn: () => {\n prefix: string;\n path: string;\n getLaneIdFromPathname: (pathname: string) => LaneId | undefined;\n getLaneUrl: (laneId: LaneId, relative?: boolean) => string;\n getLaneComponentUrl: (componentId: ComponentID, laneId: LaneId) => string;\n }\n ) {\n const { prefix, path, getLaneComponentUrl, getLaneIdFromPathname, getLaneUrl } = fn();\n LanesModel.lanesPrefix = prefix;\n LanesModel.lanePath = path;\n LanesModel.getLaneComponentUrl = getLaneComponentUrl as any;\n LanesModel.getLaneUrl = getLaneUrl;\n LanesModel.getLaneIdFromPathname = getLaneIdFromPathname;\n }\n\n // getLaneReadme() {\n // return <LaneReadmeOverview host={this.host} overviewSlot={this.overviewSlot} routeSlot={this.routeSlot} />;\n // }\n\n getLaneComponent() {\n return this.componentUI.getComponentUI(this.host, {\n componentId: useComponentId,\n useComponentFilters,\n });\n }\n\n getLaneComponentMenu() {\n return this.componentUI.getMenu(this.host, {\n componentId: useComponentId,\n useComponentFilters,\n });\n }\n\n getLaneOverview() {\n return (\n <LaneOverview\n routeSlot={this.routeSlot}\n overviewSlot={this.overviewSlot}\n host={this.lanesHost}\n useLanes={useLanes}\n />\n );\n }\n\n getLanesComparePage() {\n return <LaneComparePage getLaneCompare={this.getLaneCompare} groupByScope={this.lanesHost === 'workspace'} />;\n }\n\n getMenuRoutes() {\n return [\n {\n path: LanesModel.lanesPrefix,\n children: (\n <Route path={`${LanesModel.lanePath}/*`}>\n <Route path={'*'} element={this.getLanesOverviewMenu()} />\n <Route path=\"~component/*\" element={this.getLaneComponentMenu()} />\n </Route>\n ),\n },\n ];\n }\n\n getLanesOverviewMenu() {\n return <LanesOverviewMenu navigationSlot={this.navSlot} widgetSlot={this.menuWidgetSlot} />;\n }\n\n registerMenuWidget(...menuItems: MenuWidget[]) {\n this.menuWidgetSlot.register(menuItems);\n return this;\n }\n\n registerLaneProviderIgnoreSlot(ignoreFn: IgnoreDerivingFromUrl) {\n this.laneProviderIgnoreSlot.register(ignoreFn);\n return this;\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 { lanesModel } = useLanes();\n // return !lanesModel?.viewedLane?.readmeComponent;\n // },\n // },\n {\n props: {\n href: '.',\n exact: true,\n children: 'Overview',\n },\n order: 1,\n },\n {\n props: {\n href: '~compare',\n children: 'Compare',\n },\n order: 2,\n hide: () => {\n const { lanesModel } = useLanes();\n return !lanesModel?.viewedLane || lanesModel?.lanes.length < 2;\n },\n },\n ]);\n }\n\n private registerRoutes() {\n this.registerHostAspectRoutes();\n this.registerLanesRoutes();\n }\n\n getLanesSwitcher() {\n const mainIcon = () => {\n const scope = useContext(ScopeContext);\n return (\n <ScopeIcon\n size={24}\n scopeImage={scope.icon}\n bgColor={scope.backgroundIconColor}\n className={styles.mainLaneIcon}\n />\n );\n };\n\n const LanesSwitcher = (\n <LaneSwitcher\n groupByScope={this.lanesHost === 'workspace'}\n mainIcon={this.lanesHost === 'scope' ? mainIcon : undefined}\n useLanes={useLanes}\n />\n );\n\n return LanesSwitcher;\n }\n\n getLanesProvider() {\n return LanesProvider;\n }\n\n getUseLanes() {\n return useLanes;\n }\n\n private registerLanesDropdown() {\n const LanesSwitcher = this.getLanesSwitcher();\n\n this.hostAspect?.registerSidebarLink({\n component: function Gallery() {\n return LanesSwitcher;\n },\n weight: 1000,\n });\n }\n\n private renderContext = ({ children }: { children: ReactNode }) => {\n const ignoreFns = this.laneProviderIgnoreSlot.values();\n\n return <LanesProvider ignoreDerivingFromUrl={ignoreFns}>{children}</LanesProvider>;\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 getLaneCompare = (props: LaneCompareProps) => {\n const tabs = this.componentCompareUI.tabs;\n\n if (!props.base || !props.compare) return null;\n\n return (\n <LaneCompare\n {...props}\n base={props.base}\n compare={props.compare}\n host={props.host || this.host}\n tabs={props.tabs || tabs}\n />\n );\n };\n\n static async provider(\n [uiUi, componentUI, workspaceUi, scopeUi, componentCompareUI]: [\n UiUI,\n ComponentUI,\n WorkspaceUI,\n ScopeUI,\n ComponentCompareUI\n ],\n _,\n [routeSlot, overviewSlot, navSlot, menuWidgetSlot, laneProviderIgnoreSlot]: [\n RouteSlot,\n LaneOverviewLineSlot,\n LanesOrderedNavigationSlot,\n MenuWidgetSlot,\n LaneProviderIgnoreSlot\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(\n componentUI,\n componentCompareUI,\n routeSlot,\n navSlot,\n menuWidgetSlot,\n overviewSlot,\n laneProviderIgnoreSlot,\n workspace,\n scope\n );\n if (uiUi) uiUi.registerRenderHooks({ reactContext: lanesUi.renderContext });\n lanesUi.registerRoutes();\n lanesUi.registerMenuWidget(() => {\n const { lanesModel } = useLanes();\n if (!lanesModel?.viewedLane) return null;\n const { viewedLane, currentLane } = lanesModel;\n return (\n <UseLaneMenu\n actionName={'Import'}\n actionIcon={'terminal'}\n host={lanesUi.lanesHost}\n viewedLaneId={viewedLane.id}\n currentLaneId={currentLane?.id}\n />\n );\n });\n lanesUi.registerLanesDropdown();\n return lanesUi;\n }\n}\n\nexport default LanesUI;\n\nLanesAspect.addRuntime(LanesUI);\n"],"mappings":";;;;;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,uBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,gBAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,eAAA,YAAAA,CAAA;IAAA,OAAAH,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAI,SAAA;EAAA,MAAAJ,IAAA,GAAAE,OAAA;EAAAE,QAAA,YAAAA,CAAA;IAAA,OAAAJ,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAK,gBAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,eAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAM,IAAA;EAAA,MAAAN,IAAA,GAAAE,OAAA;EAAAI,GAAA,YAAAA,CAAA;IAAA,OAAAN,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAO,eAAA;EAAA,MAAAP,IAAA,GAAAE,OAAA;EAAAK,cAAA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ChD,EAAG;QAC5B6F,aAAa,EAAEL,WAAW,EAAExF;MAAG,CAChC,CAAC;IAEN,CAAC,CAAC;IACFoF,OAAO,CAACjB,qBAAqB,CAAC,CAAC;IAC/B,OAAOiB,OAAO;EAChB;AACF;AAACU,OAAA,CAAAxH,OAAA,GAAAA,OAAA;AAAAtC,eAAA,CA/TYsC,OAAO,kBACI,CAACyH,cAAQ,EAAEC,oBAAe,EAAEjG,oBAAe,EAAEE,gBAAW,EAAEgG,0CAAsB,CAAC;AAAAjK,eAAA,CAD5FsC,OAAO,aAGD4H,eAAS;AAAAlK,eAAA,CAHfsC,OAAO,WAIH,CACb6H,eAAI,CAACC,QAAQ,CAAa,CAAC,EAC3BD,eAAI,CAACC,QAAQ,CAAuB,CAAC,EACrCD,eAAI,CAACC,QAAQ,CAAiB,CAAC,EAC/BD,eAAI,CAACC,QAAQ,CAAiB,CAAC,EAC/BD,eAAI,CAACC,QAAQ,CAAyB,CAAC,CACxC;AAAA,IAAAC,QAAA,GAAAP,OAAA,CAAA3L,OAAA,GAuTYmE,OAAO;AAEtBgI,oBAAW,CAACC,UAAU,CAACjI,OAAO,CAAC"}
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.lanes_lanes@1.0.
|
2
|
-
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.lanes_lanes@1.0.
|
1
|
+
import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.lanes_lanes@1.0.144/dist/lanes.composition.js';
|
2
|
+
import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.lanes_lanes@1.0.144/dist/lanes.docs.mdx';
|
3
3
|
|
4
4
|
export const compositions = [compositions_0];
|
5
5
|
export const overview = [overview_0];
|
package/lanes.ui.runtime.tsx
CHANGED
@@ -3,7 +3,6 @@ import { Route, RouteProps } from 'react-router-dom';
|
|
3
3
|
import { Slot, Harmony, SlotRegistry } from '@teambit/harmony';
|
4
4
|
import { LaneCompare, LaneCompareProps as DefaultLaneCompareProps } from '@teambit/lanes.ui.compare.lane-compare';
|
5
5
|
import { UIRuntime, UiUI, UIAspect } from '@teambit/ui';
|
6
|
-
import { LanesAspect } from '@teambit/lanes';
|
7
6
|
import { NavigationSlot, RouteSlot } from '@teambit/ui-foundation.ui.react-router.slot-router';
|
8
7
|
import { NotFoundPage } from '@teambit/design.ui.pages.not-found';
|
9
8
|
import ScopeAspect, { ScopeContext, ScopeUI } from '@teambit/scope';
|
@@ -27,6 +26,7 @@ import { ComponentCompareAspect, ComponentCompareUI } from '@teambit/component-c
|
|
27
26
|
import { LaneComparePage } from '@teambit/lanes.ui.compare.lane-compare-page';
|
28
27
|
import { ScopeIcon } from '@teambit/scope.ui.scope-icon';
|
29
28
|
|
29
|
+
import { LanesAspect } from './lanes.aspect';
|
30
30
|
import styles from './lanes.ui.module.scss';
|
31
31
|
|
32
32
|
export type LaneCompareProps = Partial<DefaultLaneCompareProps>;
|
package/package.json
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
{
|
2
2
|
"name": "@teambit/lanes",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.144",
|
4
4
|
"homepage": "https://bit.cloud/teambit/lanes/lanes",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"componentId": {
|
7
7
|
"scope": "teambit.lanes",
|
8
8
|
"name": "lanes",
|
9
|
-
"version": "1.0.
|
9
|
+
"version": "1.0.144"
|
10
10
|
},
|
11
11
|
"dependencies": {
|
12
12
|
"lodash": "4.17.21",
|
@@ -28,47 +28,47 @@
|
|
28
28
|
"@teambit/ui-foundation.ui.menu": "0.0.502",
|
29
29
|
"@teambit/ui-foundation.ui.react-router.slot-router": "0.0.506",
|
30
30
|
"@teambit/ui-foundation.ui.react-router.use-query": "0.0.501",
|
31
|
-
"@teambit/scope": "1.0.
|
32
|
-
"@teambit/workspace": "1.0.
|
31
|
+
"@teambit/scope": "1.0.144",
|
32
|
+
"@teambit/workspace": "1.0.144",
|
33
33
|
"@teambit/lanes.ui.models.lanes-model": "0.0.212",
|
34
|
-
"@teambit/checkout": "1.0.
|
35
|
-
"@teambit/cli": "0.0.
|
36
|
-
"@teambit/express": "0.0.
|
37
|
-
"@teambit/logger": "0.0.
|
38
|
-
"@teambit/graphql": "1.0.
|
39
|
-
"@teambit/component-compare": "1.0.
|
40
|
-
"@teambit/component-writer": "1.0.
|
41
|
-
"@teambit/component": "1.0.
|
42
|
-
"@teambit/export": "1.0.
|
43
|
-
"@teambit/importer": "1.0.
|
34
|
+
"@teambit/checkout": "1.0.144",
|
35
|
+
"@teambit/cli": "0.0.849",
|
36
|
+
"@teambit/express": "0.0.948",
|
37
|
+
"@teambit/logger": "0.0.942",
|
38
|
+
"@teambit/graphql": "1.0.144",
|
39
|
+
"@teambit/component-compare": "1.0.144",
|
40
|
+
"@teambit/component-writer": "1.0.144",
|
41
|
+
"@teambit/component": "1.0.144",
|
42
|
+
"@teambit/export": "1.0.144",
|
43
|
+
"@teambit/importer": "1.0.144",
|
44
44
|
"@teambit/lanes.entities.lane-diff": "0.0.166",
|
45
45
|
"@teambit/lanes.modules.diff": "0.0.442",
|
46
|
-
"@teambit/merging": "1.0.
|
47
|
-
"@teambit/remove": "1.0.
|
48
|
-
"@teambit/lanes.hooks.use-lanes": "0.0.
|
46
|
+
"@teambit/merging": "1.0.144",
|
47
|
+
"@teambit/remove": "1.0.144",
|
48
|
+
"@teambit/lanes.hooks.use-lanes": "0.0.259",
|
49
49
|
"@teambit/lanes.hooks.use-viewed-lane-from-url": "0.0.218",
|
50
|
-
"@teambit/lanes.ui.compare.lane-compare-page": "0.0.
|
51
|
-
"@teambit/lanes.ui.compare.lane-compare": "0.0.
|
52
|
-
"@teambit/lanes.ui.lane-overview": "0.0.
|
53
|
-
"@teambit/lanes.ui.menus.use-lanes-menu": "0.0.
|
54
|
-
"@teambit/lanes.ui.navigation.lane-switcher": "0.0.
|
55
|
-
"@teambit/ui": "1.0.
|
50
|
+
"@teambit/lanes.ui.compare.lane-compare-page": "0.0.154",
|
51
|
+
"@teambit/lanes.ui.compare.lane-compare": "0.0.172",
|
52
|
+
"@teambit/lanes.ui.lane-overview": "0.0.215",
|
53
|
+
"@teambit/lanes.ui.menus.use-lanes-menu": "0.0.210",
|
54
|
+
"@teambit/lanes.ui.navigation.lane-switcher": "0.0.217",
|
55
|
+
"@teambit/ui": "1.0.144"
|
56
56
|
},
|
57
57
|
"devDependencies": {
|
58
58
|
"@types/lodash": "4.14.165",
|
59
|
+
"@types/chai": "4.2.15",
|
60
|
+
"chai": "4.3.0",
|
59
61
|
"@types/mocha": "9.1.0",
|
60
|
-
"@
|
61
|
-
"@
|
62
|
-
"@teambit/harmony.
|
63
|
-
"@teambit/
|
64
|
-
"@teambit/harmony.testing.load-aspect": "0.0.183",
|
65
|
-
"@teambit/snapping": "1.0.142",
|
62
|
+
"@teambit/harmony.envs.core-aspect-env": "0.0.24",
|
63
|
+
"@teambit/component.testing.mock-components": "0.0.185",
|
64
|
+
"@teambit/harmony.testing.load-aspect": "0.0.184",
|
65
|
+
"@teambit/snapping": "1.0.144",
|
66
66
|
"@teambit/workspace.testing.mock-workspace": "0.0.23"
|
67
67
|
},
|
68
68
|
"peerDependencies": {
|
69
69
|
"react": "^17.0.0 || ^18.0.0",
|
70
70
|
"react-router-dom": "^6.8.1",
|
71
|
-
"@types/react": "17.0.
|
71
|
+
"@types/react": "^17.0.73",
|
72
72
|
"@teambit/legacy": "1.0.624"
|
73
73
|
},
|
74
74
|
"license": "Apache-2.0",
|
@@ -83,7 +83,8 @@
|
|
83
83
|
"default": "./dist/index.js"
|
84
84
|
},
|
85
85
|
"./dist/*": "./dist/*",
|
86
|
-
"./artifacts/*": "./artifacts/*"
|
86
|
+
"./artifacts/*": "./artifacts/*",
|
87
|
+
"./*": "./*.ts"
|
87
88
|
},
|
88
89
|
"private": false,
|
89
90
|
"engines": {
|
package/tsconfig.json
CHANGED
@@ -17,7 +17,10 @@
|
|
17
17
|
"resolveJsonModule": true,
|
18
18
|
"allowJs": true,
|
19
19
|
"outDir": "dist",
|
20
|
-
"emitDeclarationOnly": true
|
20
|
+
"emitDeclarationOnly": true,
|
21
|
+
"strict": true,
|
22
|
+
"strictPropertyInitialization": false,
|
23
|
+
"noImplicitAny": false
|
21
24
|
},
|
22
25
|
"exclude": [
|
23
26
|
"artifacts",
|