@teambit/lanes 1.0.668 → 1.0.670

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.
@@ -1 +1 @@
1
- {"version":3,"names":["_chalk","data","_interopRequireDefault","require","_lodash","_merging","_legacy","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","SwitchCmd","constructor","lanes","name","description","COMPONENT_PATTERN_HELP","report","lane","head","alias","autoMergeResolve","forceOurs","forceTheirs","getAll","workspaceOnly","skipDependencyInstallation","pattern","verbose","json","branch","switchResult","switchLanes","merge","components","failedComponents","installationError","compilationError","gitBranchWarning","logger","warn","JSON","stringify","getFailureOutput","length","title","body","compact","map","failedComponent","chalk","bold","id","toString","white","unchangedMessage","join","underline","getSuccessfulOutput","laneSwitched","green","applyVersionReport","getGitBranchWarningOutput","yellow","installationErrorOutput","compilationErrorOutput","exports"],"sources":["switch.cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { compact } from 'lodash';\nimport { applyVersionReport, installationErrorOutput, MergeStrategy, compilationErrorOutput } from '@teambit/merging';\nimport { Command, CommandOptions } from '@teambit/cli';\nimport { COMPONENT_PATTERN_HELP } from '@teambit/legacy.constants';\nimport { LanesMain } from './lanes.main.runtime';\n\nexport class SwitchCmd implements Command {\n name = 'switch <lane>';\n description = `switch to the specified lane`;\n extendedDescription = ``;\n private = true;\n group = 'collaborate';\n alias = '';\n arguments = [\n {\n name: 'lane',\n description: 'lane-name or lane-id (if lane is not local) to switch to',\n },\n ];\n options = [\n ['h', 'head', 'switch to the head of the lane/main (fetches the latest changes from the remote)'],\n [\n 'r',\n 'auto-merge-resolve <merge-strategy>',\n 'merge local changes with the checked out version. strategy should be \"theirs\", \"ours\" or \"manual\"',\n ],\n ['', 'force-ours', 'do not merge, preserve local files as is'],\n ['', 'force-theirs', 'do not merge, just overwrite with incoming files'],\n ['a', 'get-all', 'DEPRECATED. this is currently the default behavior'],\n ['', 'workspace-only', 'checkout only the components in the workspace to the selected lane'],\n ['x', 'skip-dependency-installation', 'do not install dependencies of the imported components'],\n [\n 'p',\n 'pattern <component-pattern>',\n `switch only the lane components matching the specified component-pattern. only works when the workspace is empty\\n\n${COMPONENT_PATTERN_HELP}`,\n ],\n [\n 'n',\n 'alias <string>',\n \"relevant when the specified lane is a remote lane. create a local alias for the lane (doesnt affect the lane's name on the remote\",\n ],\n ['', 'verbose', 'display detailed information about components that legitimately were not switched'],\n ['j', 'json', 'return the output as JSON'],\n ['', 'branch', 'create and checkout a new git branch named after the lane'],\n ] as CommandOptions;\n loader = true;\n\n constructor(private lanes: LanesMain) {}\n\n async report(\n [lane]: [string],\n {\n head,\n alias,\n autoMergeResolve,\n forceOurs,\n forceTheirs,\n getAll = false,\n workspaceOnly = false,\n skipDependencyInstallation = false,\n pattern,\n verbose,\n json = false,\n branch = false,\n }: {\n head?: boolean;\n alias?: string;\n autoMergeResolve?: MergeStrategy;\n forceOurs?: boolean;\n forceTheirs?: boolean;\n getAll?: boolean;\n workspaceOnly?: boolean;\n skipDependencyInstallation?: boolean;\n override?: boolean;\n pattern?: string;\n verbose?: boolean;\n json?: boolean;\n branch?: boolean;\n }\n ) {\n const switchResult = await this.lanes.switchLanes(lane, {\n head,\n alias,\n merge: autoMergeResolve,\n forceOurs,\n forceTheirs,\n workspaceOnly,\n pattern,\n skipDependencyInstallation,\n branch,\n });\n const { components, failedComponents, installationError, compilationError, gitBranchWarning } = switchResult;\n\n if (getAll) {\n this.lanes.logger.warn('the --get-all flag is deprecated and currently the default behavior');\n }\n if (json) {\n return JSON.stringify({ components, failedComponents }, null, 4);\n }\n const getFailureOutput = () => {\n if (!failedComponents || !failedComponents.length) return '';\n const title = '\\nswitch skipped for the following component(s)';\n const body = compact(\n failedComponents.map((failedComponent) => {\n // all failures here are \"unchangedLegitimately\". otherwise, it would have been thrown as an error\n if (!verbose) return null;\n return `${chalk.bold(failedComponent.id.toString())} - ${chalk.white(failedComponent.unchangedMessage)}`;\n })\n ).join('\\n');\n if (!body) {\n return `${chalk.bold(`\\nswitch skipped legitimately for ${failedComponents.length} component(s)`)}\n (use --verbose to list them next time)`;\n }\n return `${chalk.underline(title)}\\n${body}`;\n };\n const getSuccessfulOutput = () => {\n const laneSwitched = chalk.green(`\\nsuccessfully set \"${chalk.bold(lane)}\" as the active lane`);\n if (!components || !components.length) return `No components have been changed.${laneSwitched}`;\n const title = `successfully switched ${components.length} components to the head of lane ${lane}\\n`;\n return chalk.bold(title) + applyVersionReport(components, true, false) + laneSwitched;\n };\n\n const getGitBranchWarningOutput = () => {\n return gitBranchWarning ? chalk.yellow(`Warning: ${gitBranchWarning}`) : null;\n };\n\n return compact([\n getFailureOutput(),\n getSuccessfulOutput(),\n getGitBranchWarningOutput(),\n installationErrorOutput(installationError),\n compilationErrorOutput(compilationError),\n ]).join('\\n\\n');\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,QAAA;EAAA,MAAAH,IAAA,GAAAE,OAAA;EAAAC,OAAA,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;AAEA,SAAAK,QAAA;EAAA,MAAAL,IAAA,GAAAE,OAAA;EAAAG,OAAA,YAAAA,CAAA;IAAA,OAAAL,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAAmE,SAAAC,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAA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,IAAAgB,6BAAkB,EAAC3B,UAAU,EAAE,IAAI,EAAE,KAAK,CAAC,GAAGyB,YAAY;IACvF,CAAC;IAED,MAAMG,yBAAyB,GAAGA,CAAA,KAAM;MACtC,OAAOxB,gBAAgB,GAAGY,gBAAK,CAACa,MAAM,CAAC,YAAYzB,gBAAgB,EAAE,CAAC,GAAG,IAAI;IAC/E,CAAC;IAED,OAAO,IAAAS,iBAAO,EAAC,CACbJ,gBAAgB,CAAC,CAAC,EAClBe,mBAAmB,CAAC,CAAC,EACrBI,yBAAyB,CAAC,CAAC,EAC3B,IAAAE,kCAAuB,EAAC5B,iBAAiB,CAAC,EAC1C,IAAA6B,iCAAsB,EAAC5B,gBAAgB,CAAC,CACzC,CAAC,CAACmB,IAAI,CAAC,MAAM,CAAC;EACjB;AACF;AAACU,OAAA,CAAAvD,SAAA,GAAAA,SAAA","ignoreList":[]}
1
+ {"version":3,"names":["_chalk","data","_interopRequireDefault","require","_lodash","_merging","_legacy","e","__esModule","default","_defineProperty","r","t","_toPropertyKey","Object","defineProperty","value","enumerable","configurable","writable","i","_toPrimitive","Symbol","toPrimitive","call","TypeError","String","Number","SwitchCmd","constructor","lanes","name","description","COMPONENT_PATTERN_HELP","report","lane","head","alias","autoMergeResolve","forceOurs","forceTheirs","getAll","workspaceOnly","skipDependencyInstallation","pattern","verbose","json","branch","switchResult","switchLanes","merge","components","failedComponents","installationError","compilationError","gitBranchWarning","logger","warn","JSON","stringify","getFailureOutput","length","title","body","compact","map","failedComponent","chalk","bold","id","toString","white","unchangedMessage","join","underline","getSuccessfulOutput","laneSwitched","green","applyVersionReport","getGitBranchWarningOutput","yellow","installationErrorOutput","compilationErrorOutput","exports"],"sources":["switch.cmd.ts"],"sourcesContent":["import chalk from 'chalk';\nimport { compact } from 'lodash';\nimport type { MergeStrategy } from '@teambit/merging';\nimport { applyVersionReport, installationErrorOutput, compilationErrorOutput } from '@teambit/merging';\nimport type { Command, CommandOptions } from '@teambit/cli';\nimport { COMPONENT_PATTERN_HELP } from '@teambit/legacy.constants';\nimport type { LanesMain } from './lanes.main.runtime';\n\nexport class SwitchCmd implements Command {\n name = 'switch <lane>';\n description = `switch to the specified lane`;\n extendedDescription = ``;\n private = true;\n group = 'collaborate';\n alias = '';\n arguments = [\n {\n name: 'lane',\n description: 'lane-name or lane-id (if lane is not local) to switch to',\n },\n ];\n options = [\n ['h', 'head', 'switch to the head of the lane/main (fetches the latest changes from the remote)'],\n [\n 'r',\n 'auto-merge-resolve <merge-strategy>',\n 'merge local changes with the checked out version. strategy should be \"theirs\", \"ours\" or \"manual\"',\n ],\n ['', 'force-ours', 'do not merge, preserve local files as is'],\n ['', 'force-theirs', 'do not merge, just overwrite with incoming files'],\n ['a', 'get-all', 'DEPRECATED. this is currently the default behavior'],\n ['', 'workspace-only', 'checkout only the components in the workspace to the selected lane'],\n ['x', 'skip-dependency-installation', 'do not install dependencies of the imported components'],\n [\n 'p',\n 'pattern <component-pattern>',\n `switch only the lane components matching the specified component-pattern. only works when the workspace is empty\\n\n${COMPONENT_PATTERN_HELP}`,\n ],\n [\n 'n',\n 'alias <string>',\n \"relevant when the specified lane is a remote lane. create a local alias for the lane (doesnt affect the lane's name on the remote\",\n ],\n ['', 'verbose', 'display detailed information about components that legitimately were not switched'],\n ['j', 'json', 'return the output as JSON'],\n ['', 'branch', 'create and checkout a new git branch named after the lane'],\n ] as CommandOptions;\n loader = true;\n\n constructor(private lanes: LanesMain) {}\n\n async report(\n [lane]: [string],\n {\n head,\n alias,\n autoMergeResolve,\n forceOurs,\n forceTheirs,\n getAll = false,\n workspaceOnly = false,\n skipDependencyInstallation = false,\n pattern,\n verbose,\n json = false,\n branch = false,\n }: {\n head?: boolean;\n alias?: string;\n autoMergeResolve?: MergeStrategy;\n forceOurs?: boolean;\n forceTheirs?: boolean;\n getAll?: boolean;\n workspaceOnly?: boolean;\n skipDependencyInstallation?: boolean;\n override?: boolean;\n pattern?: string;\n verbose?: boolean;\n json?: boolean;\n branch?: boolean;\n }\n ) {\n const switchResult = await this.lanes.switchLanes(lane, {\n head,\n alias,\n merge: autoMergeResolve,\n forceOurs,\n forceTheirs,\n workspaceOnly,\n pattern,\n skipDependencyInstallation,\n branch,\n });\n const { components, failedComponents, installationError, compilationError, gitBranchWarning } = switchResult;\n\n if (getAll) {\n this.lanes.logger.warn('the --get-all flag is deprecated and currently the default behavior');\n }\n if (json) {\n return JSON.stringify({ components, failedComponents }, null, 4);\n }\n const getFailureOutput = () => {\n if (!failedComponents || !failedComponents.length) return '';\n const title = '\\nswitch skipped for the following component(s)';\n const body = compact(\n failedComponents.map((failedComponent) => {\n // all failures here are \"unchangedLegitimately\". otherwise, it would have been thrown as an error\n if (!verbose) return null;\n return `${chalk.bold(failedComponent.id.toString())} - ${chalk.white(failedComponent.unchangedMessage)}`;\n })\n ).join('\\n');\n if (!body) {\n return `${chalk.bold(`\\nswitch skipped legitimately for ${failedComponents.length} component(s)`)}\n (use --verbose to list them next time)`;\n }\n return `${chalk.underline(title)}\\n${body}`;\n };\n const getSuccessfulOutput = () => {\n const laneSwitched = chalk.green(`\\nsuccessfully set \"${chalk.bold(lane)}\" as the active lane`);\n if (!components || !components.length) return `No components have been changed.${laneSwitched}`;\n const title = `successfully switched ${components.length} components to the head of lane ${lane}\\n`;\n return chalk.bold(title) + applyVersionReport(components, true, false) + laneSwitched;\n };\n\n const getGitBranchWarningOutput = () => {\n return gitBranchWarning ? chalk.yellow(`Warning: ${gitBranchWarning}`) : null;\n };\n\n return compact([\n getFailureOutput(),\n getSuccessfulOutput(),\n getGitBranchWarningOutput(),\n installationErrorOutput(installationError),\n compilationErrorOutput(compilationError),\n ]).join('\\n\\n');\n }\n}\n"],"mappings":";;;;;;AAAA,SAAAA,OAAA;EAAA,MAAAC,IAAA,GAAAC,sBAAA,CAAAC,OAAA;EAAAH,MAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAG,QAAA;EAAA,MAAAH,IAAA,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,gBAAK,CAACO,SAAS,CAACZ,KAAK,CAAC,KAAKC,IAAI,EAAE;IAC7C,CAAC;IACD,MAAMY,mBAAmB,GAAGA,CAAA,KAAM;MAChC,MAAMC,YAAY,GAAGT,gBAAK,CAACU,KAAK,CAAC,uBAAuBV,gBAAK,CAACC,IAAI,CAACjC,IAAI,CAAC,sBAAsB,CAAC;MAC/F,IAAI,CAACgB,UAAU,IAAI,CAACA,UAAU,CAACU,MAAM,EAAE,OAAO,mCAAmCe,YAAY,EAAE;MAC/F,MAAMd,KAAK,GAAG,yBAAyBX,UAAU,CAACU,MAAM,mCAAmC1B,IAAI,IAAI;MACnG,OAAOgC,gBAAK,CAACC,IAAI,CAACN,KAAK,CAAC,GAAG,IAAAgB,6BAAkB,EAAC3B,UAAU,EAAE,IAAI,EAAE,KAAK,CAAC,GAAGyB,YAAY;IACvF,CAAC;IAED,MAAMG,yBAAyB,GAAGA,CAAA,KAAM;MACtC,OAAOxB,gBAAgB,GAAGY,gBAAK,CAACa,MAAM,CAAC,YAAYzB,gBAAgB,EAAE,CAAC,GAAG,IAAI;IAC/E,CAAC;IAED,OAAO,IAAAS,iBAAO,EAAC,CACbJ,gBAAgB,CAAC,CAAC,EAClBe,mBAAmB,CAAC,CAAC,EACrBI,yBAAyB,CAAC,CAAC,EAC3B,IAAAE,kCAAuB,EAAC5B,iBAAiB,CAAC,EAC1C,IAAA6B,iCAAsB,EAAC5B,gBAAgB,CAAC,CACzC,CAAC,CAACmB,IAAI,CAAC,MAAM,CAAC;EACjB;AACF;AAACU,OAAA,CAAAvD,SAAA,GAAAA,SAAA","ignoreList":[]}
@@ -1,30 +1,39 @@
1
- import React, { ReactNode, useContext } from 'react';
2
- import { Route, RouteProps } from 'react-router-dom';
3
- import { Slot, Harmony, SlotRegistry } from '@teambit/harmony';
1
+ import type { ReactNode } from 'react';
2
+ import React, { useContext } from 'react';
3
+ import type { RouteProps } from 'react-router-dom';
4
+ import { Route } from 'react-router-dom';
5
+ import type { Harmony, SlotRegistry } from '@teambit/harmony';
6
+ import { Slot } from '@teambit/harmony';
4
7
  import { LaneCompare, type LaneCompareProps as DefaultLaneCompareProps } from '@teambit/lanes.ui.compare.lane-compare';
5
- import { UIRuntime, UiUI, UIAspect } from '@teambit/ui';
8
+ import type { UiUI } from '@teambit/ui';
9
+ import { UIRuntime, UIAspect } from '@teambit/ui';
6
10
  import type { NavigationSlot, RouteSlot } from '@teambit/ui-foundation.ui.react-router.slot-router';
7
11
  import { NotFoundPage } from '@teambit/design.ui.pages.not-found';
8
- import { ScopeAspect, ScopeContext, ScopeUI } from '@teambit/scope';
9
- import { WorkspaceAspect, WorkspaceUI } from '@teambit/workspace';
10
- import { ComponentAspect, ComponentUI, useIdFromLocation, ComponentID } from '@teambit/component';
11
- import { MenuWidget, MenuWidgetSlot } from '@teambit/ui-foundation.ui.menu';
12
- import { LaneOverview, LaneOverviewLine, LaneOverviewLineSlot } from '@teambit/lanes.ui.lane-overview';
13
- import {
14
- LanesNavPlugin,
15
- LanesOrderedNavigationSlot,
16
- LanesOverviewMenu,
17
- } from '@teambit/lanes.ui.menus.lanes-overview-menu';
12
+ import type { ScopeUI } from '@teambit/scope';
13
+ import { ScopeAspect, ScopeContext } from '@teambit/scope';
14
+ import type { WorkspaceUI } from '@teambit/workspace';
15
+ import { WorkspaceAspect } from '@teambit/workspace';
16
+ import type { ComponentUI } from '@teambit/component';
17
+ import { ComponentAspect, useIdFromLocation, ComponentID } from '@teambit/component';
18
+ import type { MenuWidget, MenuWidgetSlot } from '@teambit/ui-foundation.ui.menu';
19
+ import type { LaneOverviewLine, LaneOverviewLineSlot } from '@teambit/lanes.ui.lane-overview';
20
+ import { LaneOverview } from '@teambit/lanes.ui.lane-overview';
21
+ import type { LanesNavPlugin, LanesOrderedNavigationSlot } from '@teambit/lanes.ui.menus.lanes-overview-menu';
22
+ import { LanesOverviewMenu } from '@teambit/lanes.ui.menus.lanes-overview-menu';
18
23
  import { useQuery } from '@teambit/ui-foundation.ui.react-router.use-query';
19
24
  import { UseLaneMenu } from '@teambit/lanes.ui.menus.use-lanes-menu';
20
- import { LanesHost, LanesModel } from '@teambit/lanes.ui.models.lanes-model';
21
- import { LanesProvider, useLanes, IgnoreDerivingFromUrl } from '@teambit/lanes.hooks.use-lanes';
25
+ import type { LanesHost } from '@teambit/lanes.ui.models.lanes-model';
26
+ import { LanesModel } from '@teambit/lanes.ui.models.lanes-model';
27
+ import type { IgnoreDerivingFromUrl } from '@teambit/lanes.hooks.use-lanes';
28
+ import { LanesProvider, useLanes } from '@teambit/lanes.hooks.use-lanes';
22
29
  import { LaneSwitcher } from '@teambit/lanes.ui.navigation.lane-switcher';
23
30
  import { useViewedLaneFromUrl } from '@teambit/lanes.hooks.use-viewed-lane-from-url';
24
- import { ComponentCompareAspect, ComponentCompareUI } from '@teambit/component-compare';
31
+ import type { ComponentCompareUI } from '@teambit/component-compare';
32
+ import { ComponentCompareAspect } from '@teambit/component-compare';
25
33
  import { LaneComparePage } from '@teambit/lanes.ui.compare.lane-compare-page';
26
34
  import { ScopeIcon } from '@teambit/scope.ui.scope-icon';
27
- import { CommandBarUI, CommandBarAspect } from '@teambit/command-bar';
35
+ import type { CommandBarUI } from '@teambit/command-bar';
36
+ import { CommandBarAspect } from '@teambit/command-bar';
28
37
 
29
38
  import { LanesAspect } from './lanes.aspect';
30
39
  import styles from './lanes.ui.module.scss';
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/lanes",
3
- "version": "1.0.668",
3
+ "version": "1.0.670",
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.668"
9
+ "version": "1.0.670"
10
10
  },
11
11
  "dependencies": {
12
12
  "chalk": "4.1.2",
@@ -24,23 +24,23 @@
24
24
  "@teambit/lane-id": "0.0.312",
25
25
  "@teambit/legacy.cli.prompts": "0.0.19",
26
26
  "@teambit/legacy.constants": "0.0.13",
27
- "@teambit/legacy.scope": "0.0.57",
27
+ "@teambit/legacy.scope": "0.0.58",
28
28
  "@teambit/harmony": "0.4.7",
29
29
  "@teambit/component-id": "1.2.4",
30
- "@teambit/component.snap-distance": "0.0.58",
30
+ "@teambit/component.snap-distance": "0.0.59",
31
31
  "@teambit/git.modules.git-executable": "0.0.14",
32
32
  "@teambit/harmony.modules.concurrency": "0.0.14",
33
- "@teambit/lanes.entities.lane-diff": "0.0.177",
34
- "@teambit/lanes.modules.create-lane": "0.0.91",
35
- "@teambit/lanes.modules.diff": "0.0.555",
33
+ "@teambit/lanes.entities.lane-diff": "0.0.178",
34
+ "@teambit/lanes.modules.create-lane": "0.0.92",
35
+ "@teambit/lanes.modules.diff": "0.0.556",
36
36
  "@teambit/legacy-bit-id": "1.1.3",
37
- "@teambit/legacy.component-diff": "0.0.111",
38
- "@teambit/legacy.component-list": "0.0.111",
39
- "@teambit/scope.remotes": "0.0.57",
37
+ "@teambit/legacy.component-diff": "0.0.112",
38
+ "@teambit/legacy.component-list": "0.0.112",
39
+ "@teambit/scope.remotes": "0.0.58",
40
40
  "@teambit/design.ui.pages.not-found": "0.0.371",
41
41
  "@teambit/lanes.hooks.use-lanes": "0.0.289",
42
42
  "@teambit/lanes.hooks.use-viewed-lane-from-url": "0.0.242",
43
- "@teambit/lanes.ui.lane-overview": "0.0.277",
43
+ "@teambit/lanes.ui.lane-overview": "0.0.278",
44
44
  "@teambit/lanes.ui.menus.lanes-overview-menu": "0.0.11",
45
45
  "@teambit/lanes.ui.menus.use-lanes-menu": "0.0.232",
46
46
  "@teambit/scope.ui.scope-icon": "0.0.91",
@@ -50,37 +50,37 @@
50
50
  "@teambit/lanes.ui.compare.lane-compare-page": "0.0.172",
51
51
  "@teambit/lanes.ui.compare.lane-compare": "0.0.205",
52
52
  "@teambit/lanes.ui.navigation.lane-switcher": "0.0.234",
53
- "@teambit/legacy.consumer": "0.0.57",
54
- "@teambit/scope.network": "0.0.57",
55
- "@teambit/checkout": "1.0.667",
56
- "@teambit/cli": "0.0.1244",
57
- "@teambit/importer": "1.0.667",
58
- "@teambit/scope": "1.0.667",
59
- "@teambit/workspace": "1.0.667",
60
- "@teambit/express": "0.0.1343",
61
- "@teambit/logger": "0.0.1337",
62
- "@teambit/graphql": "1.0.667",
63
- "@teambit/component-compare": "1.0.667",
64
- "@teambit/component-writer": "1.0.667",
65
- "@teambit/component": "1.0.667",
66
- "@teambit/export": "1.0.667",
67
- "@teambit/install": "1.0.667",
68
- "@teambit/merging": "1.0.667",
69
- "@teambit/objects": "0.0.174",
70
- "@teambit/remove": "1.0.667",
71
- "@teambit/command-bar": "1.0.667",
72
- "@teambit/ui": "1.0.667"
53
+ "@teambit/legacy.consumer": "0.0.58",
54
+ "@teambit/scope.network": "0.0.58",
55
+ "@teambit/checkout": "1.0.669",
56
+ "@teambit/cli": "0.0.1246",
57
+ "@teambit/importer": "1.0.669",
58
+ "@teambit/scope": "1.0.669",
59
+ "@teambit/workspace": "1.0.669",
60
+ "@teambit/express": "0.0.1345",
61
+ "@teambit/logger": "0.0.1339",
62
+ "@teambit/graphql": "1.0.669",
63
+ "@teambit/component-compare": "1.0.669",
64
+ "@teambit/component-writer": "1.0.669",
65
+ "@teambit/component": "1.0.669",
66
+ "@teambit/export": "1.0.669",
67
+ "@teambit/install": "1.0.669",
68
+ "@teambit/merging": "1.0.669",
69
+ "@teambit/objects": "0.0.176",
70
+ "@teambit/remove": "1.0.669",
71
+ "@teambit/command-bar": "1.0.669",
72
+ "@teambit/ui": "1.0.669"
73
73
  },
74
74
  "devDependencies": {
75
75
  "@types/lodash": "4.14.165",
76
76
  "@types/fs-extra": "9.0.7",
77
77
  "@types/mocha": "9.1.0",
78
- "@teambit/component.testing.mock-components": "0.0.321",
79
- "@teambit/harmony.testing.load-aspect": "0.0.316",
78
+ "@teambit/component.testing.mock-components": "0.0.322",
79
+ "@teambit/harmony.testing.load-aspect": "0.0.317",
80
+ "@teambit/workspace.testing.mock-workspace": "0.0.101",
80
81
  "@teambit/harmony.envs.core-aspect-env": "0.0.72",
81
- "@teambit/merge-lanes": "1.0.668",
82
- "@teambit/snapping": "1.0.667",
83
- "@teambit/workspace.testing.mock-workspace": "0.0.100"
82
+ "@teambit/merge-lanes": "1.0.670",
83
+ "@teambit/snapping": "1.0.669"
84
84
  },
85
85
  "peerDependencies": {
86
86
  "react": "^17.0.0 || ^18.0.0",