@teambit/workspace 0.0.879 → 0.0.881

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/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/workspace",
3
- "version": "0.0.879",
3
+ "version": "0.0.881",
4
4
  "homepage": "https://bit.dev/teambit/workspace/workspace",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.workspace",
8
8
  "name": "workspace",
9
- "version": "0.0.879"
9
+ "version": "0.0.881"
10
10
  },
11
11
  "dependencies": {
12
12
  "lodash": "4.17.21",
@@ -34,48 +34,48 @@
34
34
  "@teambit/base-ui.surfaces.split-pane.split-pane": "1.0.0",
35
35
  "@teambit/bit-error": "0.0.400",
36
36
  "@teambit/component-id": "0.0.418",
37
- "@teambit/lane-id": "0.0.107",
37
+ "@teambit/lane-id": "0.0.109",
38
38
  "@teambit/legacy-bit-id": "0.0.414",
39
- "@teambit/logger": "0.0.682",
40
- "@teambit/scope": "0.0.879",
41
- "@teambit/cli": "0.0.589",
42
- "@teambit/isolator": "0.0.879",
43
- "@teambit/component-tree": "0.0.667",
39
+ "@teambit/logger": "0.0.684",
40
+ "@teambit/scope": "0.0.881",
41
+ "@teambit/cli": "0.0.591",
42
+ "@teambit/isolator": "0.0.881",
43
+ "@teambit/component-tree": "0.0.669",
44
44
  "@teambit/component.ui.component-status-resolver": "0.0.500",
45
- "@teambit/lanes.hooks.use-lanes": "0.0.49",
45
+ "@teambit/lanes.hooks.use-lanes": "0.0.51",
46
46
  "@teambit/harmony.modules.resolved-component": "0.0.490",
47
- "@teambit/compiler": "0.0.879",
48
- "@teambit/component": "0.0.879",
49
- "@teambit/graphql": "0.0.879",
50
- "@teambit/aspect-loader": "0.0.879",
51
- "@teambit/bundler": "0.0.879",
52
- "@teambit/dependency-resolver": "0.0.879",
53
- "@teambit/envs": "0.0.879",
54
- "@teambit/pubsub": "0.0.879",
55
- "@teambit/ui": "0.0.879",
56
- "@teambit/variants": "0.0.692",
57
- "@teambit/component-issues": "0.0.72",
58
- "@teambit/config": "0.0.602",
47
+ "@teambit/compiler": "0.0.881",
48
+ "@teambit/component": "0.0.881",
49
+ "@teambit/graphql": "0.0.881",
50
+ "@teambit/aspect-loader": "0.0.881",
51
+ "@teambit/bundler": "0.0.881",
52
+ "@teambit/dependency-resolver": "0.0.881",
53
+ "@teambit/envs": "0.0.881",
54
+ "@teambit/pubsub": "0.0.881",
55
+ "@teambit/ui": "0.0.881",
56
+ "@teambit/variants": "0.0.694",
57
+ "@teambit/component-issues": "0.0.73",
58
+ "@teambit/config": "0.0.604",
59
59
  "@teambit/harmony.modules.requireable-component": "0.0.490",
60
60
  "@teambit/workspace.modules.match-pattern": "0.0.495",
61
- "@teambit/component.ui.component-drawer": "0.0.143",
61
+ "@teambit/component.ui.component-drawer": "0.0.145",
62
62
  "@teambit/design.ui.tree": "0.0.12",
63
- "@teambit/lanes.hooks.use-lane-components": "0.0.48",
64
- "@teambit/ui-foundation.ui.side-bar": "0.0.660",
65
- "@teambit/command-bar": "0.0.879",
66
- "@teambit/component.ui.component-filters.component-filter-context": "0.0.18",
67
- "@teambit/component.ui.component-filters.deprecate-filter": "0.0.18",
68
- "@teambit/component.ui.component-filters.env-filter": "0.0.24",
69
- "@teambit/component.ui.component-filters.show-main-filter": "0.0.11",
70
- "@teambit/graph": "0.0.879",
71
- "@teambit/sidebar": "0.0.879",
63
+ "@teambit/lanes.hooks.use-lane-components": "0.0.50",
64
+ "@teambit/ui-foundation.ui.side-bar": "0.0.662",
65
+ "@teambit/command-bar": "0.0.881",
66
+ "@teambit/component.ui.component-filters.component-filter-context": "0.0.20",
67
+ "@teambit/component.ui.component-filters.deprecate-filter": "0.0.20",
68
+ "@teambit/component.ui.component-filters.env-filter": "0.0.26",
69
+ "@teambit/component.ui.component-filters.show-main-filter": "0.0.13",
70
+ "@teambit/graph": "0.0.881",
71
+ "@teambit/sidebar": "0.0.881",
72
72
  "@teambit/ui-foundation.ui.main-dropdown": "0.0.493",
73
73
  "@teambit/ui-foundation.ui.menu": "0.0.493",
74
74
  "@teambit/ui-foundation.ui.react-router.slot-router": "0.0.496",
75
- "@teambit/ui-foundation.ui.tree.drawer": "0.0.506",
75
+ "@teambit/ui-foundation.ui.tree.drawer": "0.0.507",
76
76
  "@teambit/ui-foundation.ui.hooks.use-data-query": "0.0.496",
77
- "@teambit/component-descriptor": "0.0.157",
78
- "@teambit/deprecation": "0.0.879",
77
+ "@teambit/component-descriptor": "0.0.159",
78
+ "@teambit/deprecation": "0.0.881",
79
79
  "@teambit/ui-foundation.ui.constants.z-indexes": "0.0.494",
80
80
  "@teambit/ui-foundation.ui.buttons.collapser": "0.0.202",
81
81
  "@teambit/ui-foundation.ui.corner": "0.0.504",
@@ -102,7 +102,7 @@
102
102
  "peerDependencies": {
103
103
  "react-router-dom": "^6.0.0",
104
104
  "@apollo/client": "^3.6.0",
105
- "@teambit/legacy": "1.0.370",
105
+ "@teambit/legacy": "1.0.374",
106
106
  "react-dom": "^16.8.0 || ^17.0.0",
107
107
  "react": "^16.8.0 || ^17.0.0"
108
108
  },
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@0.0.879/dist/workspace.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@0.0.879/dist/workspace.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@0.0.881/dist/workspace.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@0.0.881/dist/workspace.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
@@ -30,13 +30,13 @@ export class WorkspaceComponentLoader {
30
30
  this.componentsCache = createInMemoryCache({ maxSize: getMaxSizeForComponents() });
31
31
  }
32
32
 
33
- async getMany(ids: Array<ComponentID>): Promise<Component[]> {
33
+ async getMany(ids: Array<ComponentID>, loadOpts?: ComponentLoadOptions): Promise<Component[]> {
34
34
  const idsWithoutEmpty = compact(ids);
35
35
  const errors: { id: ComponentID; err: Error }[] = [];
36
36
  const longProcessLogger = this.logger.createLongProcessLogger('loading components', ids.length);
37
37
  const componentsP = mapSeries(idsWithoutEmpty, async (id: ComponentID) => {
38
38
  longProcessLogger.logProgress(id.toString());
39
- return this.get(id).catch((err) => {
39
+ return this.get(id, undefined, undefined, undefined, loadOpts).catch((err) => {
40
40
  if (this.isComponentNotExistsError(err)) {
41
41
  errors.push({
42
42
  id,
@@ -175,7 +175,8 @@ export class WorkspaceComponentLoader {
175
175
  componentFromScope.tags,
176
176
  this.workspace
177
177
  );
178
- return this.executeLoadSlot(workspaceComponent, loadOpts);
178
+ const updatedComp = await this.executeLoadSlot(workspaceComponent, loadOpts);
179
+ return updatedComp;
179
180
  }
180
181
  return this.executeLoadSlot(this.newComponentFromState(id, state), loadOpts);
181
182
  }
@@ -276,8 +277,9 @@ export class WorkspaceComponentLoader {
276
277
  }
277
278
 
278
279
  private async upsertExtensionData(component: Component, extension: string, data: any) {
280
+ if (!data) return;
279
281
  const existingExtension = component.state.config.extensions.findExtension(extension);
280
- if (existingExtension && data) {
282
+ if (existingExtension) {
281
283
  // Only merge top level of extension data
282
284
  Object.assign(existingExtension.data, data);
283
285
  return;