@teambit/workspace 1.0.65 → 1.0.67

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.
@@ -70,7 +70,7 @@ export declare class WorkspaceUI {
70
70
  registerDrawerComponentFilters: (filters: ComponentFilters) => void;
71
71
  registerDrawerWidgets: (widgets: ReactNode[]) => void;
72
72
  uiRoot(): UIRoot;
73
- listSidebarItems(): (React.ComponentClass<{}, any> | React.FunctionComponent<{}>)[];
73
+ listSidebarItems(): (React.FunctionComponent<{}> | React.ComponentClass<{}, any>)[];
74
74
  private menuItems;
75
75
  static dependencies: import("@teambit/harmony").Aspect[];
76
76
  static runtime: import("@teambit/harmony").RuntimeDefinition;
package/esm.mjs ADDED
@@ -0,0 +1,8 @@
1
+ // eslint-disable-next-line import/no-unresolved
2
+ import cjsModule from './index.js';
3
+
4
+ export const ComponentStatus = cjsModule.ComponentStatus;
5
+ export const WorkspaceAspect = cjsModule.WorkspaceAspect;
6
+ export const WorkspaceContext = cjsModule.WorkspaceContext;
7
+
8
+ export default cjsModule;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@teambit/workspace",
3
- "version": "1.0.65",
3
+ "version": "1.0.67",
4
4
  "homepage": "https://bit.cloud/teambit/workspace/workspace",
5
5
  "main": "dist/index.js",
6
6
  "componentId": {
7
7
  "scope": "teambit.workspace",
8
8
  "name": "workspace",
9
- "version": "1.0.65"
9
+ "version": "1.0.67"
10
10
  },
11
11
  "dependencies": {
12
12
  "lodash": "4.17.21",
@@ -14,7 +14,6 @@
14
14
  "lodash.compact": "3.0.1",
15
15
  "p-map-series": "2.1.0",
16
16
  "chalk": "2.4.2",
17
- "ink": "3.2.0",
18
17
  "fs-extra": "10.0.0",
19
18
  "find-root": "1.1.0",
20
19
  "graphql-tag": "2.12.1",
@@ -41,7 +40,7 @@
41
40
  "@teambit/lanes.hooks.use-lane-components": "0.0.253",
42
41
  "@teambit/lanes.hooks.use-lanes": "0.0.254",
43
42
  "@teambit/lanes.ui.models.lanes-model": "0.0.207",
44
- "@teambit/ui-foundation.ui.side-bar": "0.0.870",
43
+ "@teambit/ui-foundation.ui.side-bar": "0.0.871",
45
44
  "@teambit/component.ui.component-filters.component-filter-context": "0.0.214",
46
45
  "@teambit/component.ui.component-filters.deprecate-filter": "0.0.214",
47
46
  "@teambit/component.ui.component-filters.env-filter": "0.0.220",
@@ -62,35 +61,35 @@
62
61
  "@teambit/explorer.ui.gallery.component-grid": "0.0.496",
63
62
  "@teambit/workspace.ui.empty-workspace": "0.0.508",
64
63
  "@teambit/workspace.ui.workspace-component-card": "0.0.516",
65
- "@teambit/component": "1.0.65",
66
- "@teambit/dependency-resolver": "1.0.65",
67
- "@teambit/envs": "1.0.65",
68
- "@teambit/logger": "0.0.915",
69
- "@teambit/scope": "1.0.65",
70
- "@teambit/graph": "1.0.65",
71
- "@teambit/cli": "0.0.822",
72
- "@teambit/isolator": "1.0.65",
73
- "@teambit/component-tree": "1.0.65",
64
+ "@teambit/component": "1.0.67",
65
+ "@teambit/dependency-resolver": "1.0.67",
66
+ "@teambit/envs": "1.0.67",
67
+ "@teambit/logger": "0.0.917",
68
+ "@teambit/scope": "1.0.67",
69
+ "@teambit/graph": "1.0.67",
70
+ "@teambit/cli": "0.0.824",
71
+ "@teambit/isolator": "1.0.67",
72
+ "@teambit/component-tree": "1.0.67",
74
73
  "@teambit/harmony.modules.resolved-component": "0.0.495",
75
- "@teambit/watcher": "1.0.65",
76
- "@teambit/aspect-loader": "1.0.65",
77
- "@teambit/config": "0.0.838",
78
- "@teambit/global-config": "0.0.824",
74
+ "@teambit/watcher": "1.0.67",
75
+ "@teambit/aspect-loader": "1.0.67",
76
+ "@teambit/config": "0.0.840",
77
+ "@teambit/global-config": "0.0.826",
79
78
  "@teambit/harmony.modules.requireable-component": "0.0.495",
80
79
  "@teambit/toolbox.modules.module-resolver": "0.0.5",
81
- "@teambit/workspace.modules.node-modules-linker": "0.0.154",
82
- "@teambit/graphql": "1.0.65",
83
- "@teambit/bundler": "1.0.65",
84
- "@teambit/pubsub": "1.0.65",
85
- "@teambit/ui": "1.0.65",
86
- "@teambit/variants": "0.0.931",
87
- "@teambit/component-issues": "0.0.118",
80
+ "@teambit/workspace.modules.node-modules-linker": "0.0.155",
81
+ "@teambit/graphql": "1.0.67",
82
+ "@teambit/bundler": "1.0.67",
83
+ "@teambit/pubsub": "1.0.67",
84
+ "@teambit/ui": "1.0.67",
85
+ "@teambit/variants": "0.0.933",
86
+ "@teambit/component-issues": "0.0.120",
88
87
  "@teambit/workspace.modules.match-pattern": "0.0.502",
89
- "@teambit/component.ui.component-drawer": "0.0.363",
90
- "@teambit/command-bar": "1.0.65",
91
- "@teambit/sidebar": "1.0.65",
92
- "@teambit/component-descriptor": "0.0.390",
93
- "@teambit/deprecation": "1.0.65"
88
+ "@teambit/component.ui.component-drawer": "0.0.365",
89
+ "@teambit/command-bar": "1.0.67",
90
+ "@teambit/sidebar": "1.0.67",
91
+ "@teambit/component-descriptor": "0.0.392",
92
+ "@teambit/deprecation": "1.0.67"
94
93
  },
95
94
  "devDependencies": {
96
95
  "@types/lodash": "4.14.165",
@@ -112,7 +111,7 @@
112
111
  "peerDependencies": {
113
112
  "@apollo/client": "^3.6.0",
114
113
  "react-router-dom": "^6.0.0",
115
- "@teambit/legacy": "1.0.605",
114
+ "@teambit/legacy": "1.0.607",
116
115
  "react": "^16.8.0 || ^17.0.0",
117
116
  "react-dom": "^16.8.0 || ^17.0.0"
118
117
  },
@@ -1,16 +0,0 @@
1
- import { Command } from '@teambit/cli';
2
- import React from 'react';
3
- import { Workspace } from './workspace';
4
- export declare class ListCmd implements Command {
5
- private workspace;
6
- constructor(workspace: Workspace);
7
- name: string;
8
- description: string;
9
- summery: string;
10
- group: string;
11
- alias: string;
12
- options: never[];
13
- render(params: any, options: {
14
- [key: string]: any;
15
- }): Promise<React.JSX.Element>;
16
- }
package/dist/list.cmd.js DELETED
@@ -1,47 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.ListCmd = void 0;
7
- function _ink() {
8
- const data = require("ink");
9
- _ink = function () {
10
- return data;
11
- };
12
- return data;
13
- }
14
- function _react() {
15
- const data = _interopRequireDefault(require("react"));
16
- _react = function () {
17
- return data;
18
- };
19
- return data;
20
- }
21
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
22
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
23
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
24
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); } // eslint-disable-next-line @typescript-eslint/no-unused-vars
25
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
26
- class ListCmd {
27
- constructor(workspace) {
28
- this.workspace = workspace;
29
- _defineProperty(this, "name", 'lister');
30
- _defineProperty(this, "description", 'list all components in the workspace');
31
- _defineProperty(this, "summery", 'a different text i dont really need');
32
- _defineProperty(this, "group", 'workspace');
33
- _defineProperty(this, "alias", '');
34
- _defineProperty(this, "options", []);
35
- }
36
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
37
- async render(params, options) {
38
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
39
- const list = await this.workspace.list();
40
- return /*#__PURE__*/_react().default.createElement(_ink().Text, {
41
- color: "green"
42
- }, "hi there");
43
- }
44
- }
45
- exports.ListCmd = ListCmd;
46
-
47
- //# sourceMappingURL=list.cmd.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_ink","data","require","_react","_interopRequireDefault","obj","__esModule","default","_defineProperty","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","ListCmd","constructor","workspace","render","params","options","list","createElement","Text","color","exports"],"sources":["list.cmd.tsx"],"sourcesContent":["// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport { Command } from '@teambit/cli';\n// eslint-disable-next-line @typescript-eslint/no-unused-vars\nimport { Text } from 'ink';\nimport React from 'react';\n\nimport { Workspace } from './workspace';\n\nexport class ListCmd implements Command {\n constructor(private workspace: Workspace) {}\n\n name = 'lister';\n\n description = 'list all components in the workspace';\n\n summery = 'a different text i dont really need';\n\n group = 'workspace';\n\n alias = '';\n\n options = [];\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n async render(params: any, options: { [key: string]: any }) {\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const list = await this.workspace.list();\n return <Text color=\"green\">hi there</Text>;\n }\n}\n"],"mappings":";;;;;;AAGA,SAAAA,KAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,IAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAE,OAAA;EAAA,MAAAF,IAAA,GAAAG,sBAAA,CAAAF,OAAA;EAAAC,MAAA,YAAAA,CAAA;IAAA,OAAAF,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAA0B,SAAAG,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,gBAAAH,GAAA,EAAAI,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAJ,GAAA,IAAAO,MAAA,CAAAC,cAAA,CAAAR,GAAA,EAAAI,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAX,GAAA,CAAAI,GAAA,IAAAC,KAAA,WAAAL,GAAA;AAAA,SAAAM,eAAAM,GAAA,QAAAR,GAAA,GAAAS,YAAA,CAAAD,GAAA,2BAAAR,GAAA,gBAAAA,GAAA,GAAAU,MAAA,CAAAV,GAAA;AAAA,SAAAS,aAAAE,KAAA,EAAAC,IAAA,eAAAD,KAAA,iBAAAA,KAAA,kBAAAA,KAAA,MAAAE,IAAA,GAAAF,KAAA,CAAAG,MAAA,CAAAC,WAAA,OAAAF,IAAA,KAAAG,SAAA,QAAAC,GAAA,GAAAJ,IAAA,CAAAK,IAAA,CAAAP,KAAA,EAAAC,IAAA,2BAAAK,GAAA,sBAAAA,GAAA,YAAAE,SAAA,4DAAAP,IAAA,gBAAAF,MAAA,GAAAU,MAAA,EAAAT,KAAA,KAJ1B;AAEA;AAMO,MAAMU,OAAO,CAAoB;EACtCC,WAAWA,CAASC,SAAoB,EAAE;IAAA,KAAtBA,SAAoB,GAApBA,SAAoB;IAAAxB,eAAA,eAEjC,QAAQ;IAAAA,eAAA,sBAED,sCAAsC;IAAAA,eAAA,kBAE1C,qCAAqC;IAAAA,eAAA,gBAEvC,WAAW;IAAAA,eAAA,gBAEX,EAAE;IAAAA,eAAA,kBAEA,EAAE;EAZ+B;EAc3C;EACA,MAAMyB,MAAMA,CAACC,MAAW,EAAEC,OAA+B,EAAE;IACzD;IACA,MAAMC,IAAI,GAAG,MAAM,IAAI,CAACJ,SAAS,CAACI,IAAI,CAAC,CAAC;IACxC,oBAAOjC,MAAA,GAAAI,OAAA,CAAA8B,aAAA,CAACrC,IAAA,GAAAsC,IAAI;MAACC,KAAK,EAAC;IAAO,GAAC,UAAc,CAAC;EAC5C;AACF;AAACC,OAAA,CAAAV,OAAA,GAAAA,OAAA"}
package/list.cmd.tsx DELETED
@@ -1,30 +0,0 @@
1
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
2
- import { Command } from '@teambit/cli';
3
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
4
- import { Text } from 'ink';
5
- import React from 'react';
6
-
7
- import { Workspace } from './workspace';
8
-
9
- export class ListCmd implements Command {
10
- constructor(private workspace: Workspace) {}
11
-
12
- name = 'lister';
13
-
14
- description = 'list all components in the workspace';
15
-
16
- summery = 'a different text i dont really need';
17
-
18
- group = 'workspace';
19
-
20
- alias = '';
21
-
22
- options = [];
23
-
24
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
25
- async render(params: any, options: { [key: string]: any }) {
26
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
27
- const list = await this.workspace.list();
28
- return <Text color="green">hi there</Text>;
29
- }
30
- }