@teambit/workspace 1.0.64 → 1.0.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm.d.mts ADDED
@@ -0,0 +1,5 @@
1
+ export const ComponentStatus: any;
2
+ export const WorkspaceAspect: any;
3
+ export const WorkspaceContext: any;
4
+ export default cjsModule;
5
+ import cjsModule from "./index.js";
package/dist/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/dist/index.d.ts CHANGED
@@ -7,7 +7,8 @@ export * from './events';
7
7
  export type { WorkspaceUI } from './workspace.ui.runtime';
8
8
  export type { SerializableResults, OnComponentLoad, OnComponentEventResult } from './on-component-events';
9
9
  export { ComponentStatus } from './workspace-component';
10
- export { WorkspaceModelComponent, Workspace as WorkspaceModel } from './ui/workspace/workspace-model';
10
+ export type { WorkspaceModelComponent } from './ui/workspace/workspace-model';
11
+ export { Workspace as WorkspaceModel } from './ui/workspace/workspace-model';
11
12
  export { WorkspaceContext } from './ui/workspace/workspace-context';
12
13
  export { OutsideWorkspaceError } from './exceptions/outside-workspace';
13
14
  export type { WorkspaceComponent } from './workspace-component';
package/dist/index.js CHANGED
@@ -6,7 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  var _exportNames = {
7
7
  WorkspaceAspect: true,
8
8
  ComponentStatus: true,
9
- WorkspaceModelComponent: true,
10
9
  WorkspaceModel: true,
11
10
  WorkspaceContext: true,
12
11
  OutsideWorkspaceError: true
@@ -41,12 +40,6 @@ Object.defineProperty(exports, "WorkspaceModel", {
41
40
  return _workspaceModel().Workspace;
42
41
  }
43
42
  });
44
- Object.defineProperty(exports, "WorkspaceModelComponent", {
45
- enumerable: true,
46
- get: function () {
47
- return _workspaceModel().WorkspaceModelComponent;
48
- }
49
- });
50
43
  exports.default = void 0;
51
44
  function _workspace() {
52
45
  const data = require("./workspace.aspect");
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["_workspace","data","require","_events","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_workspaceComponent","_workspaceModel","_workspaceContext","_outsideWorkspace","_default","default","WorkspaceAspect"],"sources":["index.ts"],"sourcesContent":["import { WorkspaceAspect } from './workspace.aspect';\n// eslint-disable-next-line import/prefer-default-export\nexport type { default as Workspace, ExtensionsOrigin } from './workspace';\n// TODO: change to module path once track the utils folder\nexport type { ResolvedComponent } from '@teambit/harmony.modules.resolved-component';\nexport type { AlreadyExistsError as ComponentConfigFileAlreadyExistsError } from './component-config-file';\nexport type { WorkspaceMain } from './workspace.main.runtime';\nexport * from './events';\nexport type { WorkspaceUI } from './workspace.ui.runtime';\nexport type { SerializableResults, OnComponentLoad, OnComponentEventResult } from './on-component-events';\nexport { ComponentStatus } from './workspace-component';\nexport { WorkspaceModelComponent, Workspace as WorkspaceModel } from './ui/workspace/workspace-model';\nexport { WorkspaceContext } from './ui/workspace/workspace-context';\nexport { OutsideWorkspaceError } from './exceptions/outside-workspace';\nexport type { WorkspaceComponent } from './workspace-component';\nexport type { ComponentConfigFile } from './component-config-file';\nexport type { CompFiles, FilesStatus } from './workspace-component/comp-files';\nexport type { MergeOptions as BitmapMergeOptions } from './bit-map';\nexport type { WorkspaceExtConfig } from './types';\nexport { WorkspaceAspect };\nexport default WorkspaceAspect;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAAA,WAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,UAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAOA,IAAAE,OAAA,GAAAD,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAF,OAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,OAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,OAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AAGA,SAAAS,oBAAA;EAAA,MAAAf,IAAA,GAAAC,OAAA;EAAAc,mBAAA,YAAAA,CAAA;IAAA,OAAAf,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAgB,gBAAA;EAAA,MAAAhB,IAAA,GAAAC,OAAA;EAAAe,eAAA,YAAAA,CAAA;IAAA,OAAAhB,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAiB,kBAAA;EAAA,MAAAjB,IAAA,GAAAC,OAAA;EAAAgB,iBAAA,YAAAA,CAAA;IAAA,OAAAjB,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAkB,kBAAA;EAAA,MAAAlB,IAAA,GAAAC,OAAA;EAAAiB,iBAAA,YAAAA,CAAA;IAAA,OAAAlB,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAZA;AAEA;AAAA,IAAAmB,QAAA,GAAAR,OAAA,CAAAS,OAAA,GAiBeC,4BAAe"}
1
+ {"version":3,"names":["_workspace","data","require","_events","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_workspaceComponent","_workspaceModel","_workspaceContext","_outsideWorkspace","_default","default","WorkspaceAspect"],"sources":["index.ts"],"sourcesContent":["import { WorkspaceAspect } from './workspace.aspect';\n// eslint-disable-next-line import/prefer-default-export\nexport type { default as Workspace, ExtensionsOrigin } from './workspace';\n// TODO: change to module path once track the utils folder\nexport type { ResolvedComponent } from '@teambit/harmony.modules.resolved-component';\nexport type { AlreadyExistsError as ComponentConfigFileAlreadyExistsError } from './component-config-file';\nexport type { WorkspaceMain } from './workspace.main.runtime';\nexport * from './events';\nexport type { WorkspaceUI } from './workspace.ui.runtime';\nexport type { SerializableResults, OnComponentLoad, OnComponentEventResult } from './on-component-events';\nexport { ComponentStatus } from './workspace-component';\nexport type { WorkspaceModelComponent } from './ui/workspace/workspace-model';\nexport { Workspace as WorkspaceModel } from './ui/workspace/workspace-model';\nexport { WorkspaceContext } from './ui/workspace/workspace-context';\nexport { OutsideWorkspaceError } from './exceptions/outside-workspace';\nexport type { WorkspaceComponent } from './workspace-component';\nexport type { ComponentConfigFile } from './component-config-file';\nexport type { CompFiles, FilesStatus } from './workspace-component/comp-files';\nexport type { MergeOptions as BitmapMergeOptions } from './bit-map';\nexport type { WorkspaceExtConfig } from './types';\nexport { WorkspaceAspect };\nexport default WorkspaceAspect;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAAA,WAAA;EAAA,MAAAC,IAAA,GAAAC,OAAA;EAAAF,UAAA,YAAAA,CAAA;IAAA,OAAAC,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAOA,IAAAE,OAAA,GAAAD,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAF,OAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,OAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,OAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AAGA,SAAAS,oBAAA;EAAA,MAAAf,IAAA,GAAAC,OAAA;EAAAc,mBAAA,YAAAA,CAAA;IAAA,OAAAf,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAEA,SAAAgB,gBAAA;EAAA,MAAAhB,IAAA,GAAAC,OAAA;EAAAe,eAAA,YAAAA,CAAA;IAAA,OAAAhB,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAiB,kBAAA;EAAA,MAAAjB,IAAA,GAAAC,OAAA;EAAAgB,iBAAA,YAAAA,CAAA;IAAA,OAAAjB,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AACA,SAAAkB,kBAAA;EAAA,MAAAlB,IAAA,GAAAC,OAAA;EAAAiB,iBAAA,YAAAA,CAAA;IAAA,OAAAlB,IAAA;EAAA;EAAA,OAAAA,IAAA;AAAA;AAbA;AAEA;AAAA,IAAAmB,QAAA,GAAAR,OAAA,CAAAS,OAAA,GAkBeC,4BAAe"}
@@ -1,5 +1,5 @@
1
- import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@1.0.64/dist/workspace.composition.js';
2
- import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@1.0.64/dist/workspace.docs.mdx';
1
+ import * as compositions_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@1.0.66/dist/workspace.composition.js';
2
+ import * as overview_0 from '/home/circleci/Library/Caches/Bit/capsules/8891be5ad3d35bfc38b9cd90c0e05b598a5a55af/teambit.workspace_workspace@1.0.66/dist/workspace.docs.mdx';
3
3
 
4
4
  export const compositions = [compositions_0];
5
5
  export const overview = [overview_0];
@@ -14,12 +14,12 @@ export declare function useWorkspace(options?: UseWorkspaceOptions): {
14
14
  loading: boolean;
15
15
  networkStatus: import("@apollo/client").NetworkStatus;
16
16
  called: boolean;
17
+ variables: import("@apollo/client").OperationVariables | undefined;
17
18
  startPolling: (pollInterval: number) => void;
18
19
  stopPolling: () => void;
19
20
  updateQuery: <TVars = import("@apollo/client").OperationVariables>(mapFn: (previousQueryResult: any, options: Pick<import("@apollo/client").WatchQueryOptions<TVars, any>, "variables">) => any) => void;
20
21
  refetch: (variables?: Partial<import("@apollo/client").OperationVariables> | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
21
22
  reobserve: (newOptions?: Partial<import("@apollo/client").WatchQueryOptions<import("@apollo/client").OperationVariables, any>> | undefined, newNetworkStatus?: import("@apollo/client").NetworkStatus | undefined) => Promise<import("@apollo/client").ApolloQueryResult<any>>;
22
- variables: import("@apollo/client").OperationVariables | undefined;
23
23
  fetchMore: <TFetchData = any, TFetchVars = import("@apollo/client").OperationVariables>(fetchMoreOptions: import("@apollo/client").FetchMoreQueryOptions<TFetchVars, TFetchData> & {
24
24
  updateQuery?: ((previousQueryResult: any, options: {
25
25
  fetchMoreResult: TFetchData;
@@ -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.64",
3
+ "version": "1.0.66",
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.64"
9
+ "version": "1.0.66"
10
10
  },
11
11
  "dependencies": {
12
12
  "lodash": "4.17.21",
@@ -62,35 +62,35 @@
62
62
  "@teambit/explorer.ui.gallery.component-grid": "0.0.496",
63
63
  "@teambit/workspace.ui.empty-workspace": "0.0.508",
64
64
  "@teambit/workspace.ui.workspace-component-card": "0.0.516",
65
- "@teambit/component": "1.0.64",
66
- "@teambit/dependency-resolver": "1.0.64",
67
- "@teambit/envs": "1.0.64",
68
- "@teambit/logger": "0.0.915",
69
- "@teambit/scope": "1.0.64",
70
- "@teambit/graph": "1.0.64",
71
- "@teambit/cli": "0.0.822",
72
- "@teambit/isolator": "1.0.64",
73
- "@teambit/component-tree": "1.0.64",
65
+ "@teambit/component": "1.0.66",
66
+ "@teambit/dependency-resolver": "1.0.66",
67
+ "@teambit/envs": "1.0.66",
68
+ "@teambit/logger": "0.0.916",
69
+ "@teambit/scope": "1.0.66",
70
+ "@teambit/graph": "1.0.66",
71
+ "@teambit/cli": "0.0.823",
72
+ "@teambit/isolator": "1.0.66",
73
+ "@teambit/component-tree": "1.0.66",
74
74
  "@teambit/harmony.modules.resolved-component": "0.0.495",
75
- "@teambit/watcher": "1.0.64",
76
- "@teambit/aspect-loader": "1.0.64",
77
- "@teambit/config": "0.0.838",
78
- "@teambit/global-config": "0.0.824",
75
+ "@teambit/watcher": "1.0.66",
76
+ "@teambit/aspect-loader": "1.0.66",
77
+ "@teambit/config": "0.0.839",
78
+ "@teambit/global-config": "0.0.825",
79
79
  "@teambit/harmony.modules.requireable-component": "0.0.495",
80
80
  "@teambit/toolbox.modules.module-resolver": "0.0.5",
81
- "@teambit/workspace.modules.node-modules-linker": "0.0.154",
82
- "@teambit/graphql": "1.0.64",
83
- "@teambit/bundler": "1.0.64",
84
- "@teambit/pubsub": "1.0.64",
85
- "@teambit/ui": "1.0.64",
86
- "@teambit/variants": "0.0.931",
87
- "@teambit/component-issues": "0.0.118",
81
+ "@teambit/workspace.modules.node-modules-linker": "0.0.155",
82
+ "@teambit/graphql": "1.0.66",
83
+ "@teambit/bundler": "1.0.66",
84
+ "@teambit/pubsub": "1.0.66",
85
+ "@teambit/ui": "1.0.66",
86
+ "@teambit/variants": "0.0.932",
87
+ "@teambit/component-issues": "0.0.119",
88
88
  "@teambit/workspace.modules.match-pattern": "0.0.502",
89
- "@teambit/component.ui.component-drawer": "0.0.363",
90
- "@teambit/command-bar": "1.0.64",
91
- "@teambit/sidebar": "1.0.64",
92
- "@teambit/component-descriptor": "0.0.390",
93
- "@teambit/deprecation": "1.0.64"
89
+ "@teambit/component.ui.component-drawer": "0.0.364",
90
+ "@teambit/command-bar": "1.0.66",
91
+ "@teambit/sidebar": "1.0.66",
92
+ "@teambit/component-descriptor": "0.0.391",
93
+ "@teambit/deprecation": "1.0.66"
94
94
  },
95
95
  "devDependencies": {
96
96
  "@types/lodash": "4.14.165",
@@ -112,7 +112,7 @@
112
112
  "peerDependencies": {
113
113
  "@apollo/client": "^3.6.0",
114
114
  "react-router-dom": "^6.0.0",
115
- "@teambit/legacy": "1.0.605",
115
+ "@teambit/legacy": "1.0.606",
116
116
  "react": "^16.8.0 || ^17.0.0",
117
117
  "react-dom": "^16.8.0 || ^17.0.0"
118
118
  },